Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ASK] Installing Cornac on Mac after Forking the repo lead to ModuleNotFoundError #630

Open
quentinhaenn opened this issue Jun 26, 2024 · 1 comment

Comments

@quentinhaenn
Copy link
Contributor

Description

I forked the main repo to try to fix an issue I opened (#629) but I cannot build cornac using either python setup.py install or pip install -e .

The workflow I followed is the one described on cornac doc, that said:

brew install gcc | brew link gcc
cloning the cornac repo

git checkout -b fix-scipy-alias

Then I did modify some cornac files, and used the python setup clean and python setup install commands. The files seemed to compile well, despite several non blocking warnings.

But when I tried to do a simple example to test the changes I made, I got the error:

ModuleNotFoundError: No module named 'cornac.utils.fast_sparse_funcs'

But I did not modify any import statement. I don't know from where it really comes since the import statements described seem correct.

This also rise a Syntax Warning:

/cornac/cornac/data/text.py:134: SyntaxWarning: invalid escape sequence '\]'

This is in a docstring stuff in the file described, I tried with and without this specific docstring, it does not impact the original error.

Have you ever faced such error ? Is it because I'm using a Macintosh distro on ARM architecture ?

This is the first time I'm using a local-compiled package so I cannot manage to resolve the issue by myself yet, I'll keep investigate, but if you have any insight or advice, it would be great.

Thanks !

@tqtg
Copy link
Member

tqtg commented Jun 27, 2024

Have you tried to move the Python example somewhere outside of cornac folder? It should not be inside cornac source dir.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants