Skip to content

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

Description

@quentinhaenn

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 !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions