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

ModuleNotFoundError upon from cumulator import base #25

Open
Grim-bot opened this issue Jun 1, 2022 · 1 comment
Open

ModuleNotFoundError upon from cumulator import base #25

Grim-bot opened this issue Jun 1, 2022 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed important This should be addressed with high priority

Comments

@Grim-bot
Copy link
Collaborator

Grim-bot commented Jun 1, 2022

We got the following feedback:

I just pip install Cumulator and its dependencies and from cumulator import base as suggested by the project description, and there is this error.

>>>from cumulator import base
File "/home/roazbind/.conda/envs/robin_env/lib/python3.8/site-packages/cumulator/base.py", line 16, in <module>
    from src.cumulator.prediction_feature.prediction_helper import get_predictions, compute_features
ModuleNotFoundError: No module named 'src'
```
@Grim-bot Grim-bot added bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers important This should be addressed with high priority labels Jun 1, 2022
@dinotuku
Copy link

I got the same error from from cumulator import base when I installed cumulator with pip install -e . after cloning the repository. It would throw this error whenever I was not in the base directory of the repo.

I was able to make it work by removing src. in lines 16 and 17 of base.py. After doing this, there is no more error no matter which directory I am in.

I am not super familiar with how the path searching works in a package, but I hope this experience could help a bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed important This should be addressed with high priority
Projects
None yet
Development

No branches or pull requests

2 participants