PreferredAI / cornac

A Comparative Framework for Multimodal Recommender Systems
https://cornac.preferred.ai
Apache License 2.0
845 stars 138 forks source link

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

Open quentinhaenn opened 1 week ago

quentinhaenn commented 1 week ago

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 commented 1 week ago

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

jefflittle commented 6 hours ago

no, Didn't make any changes~

image