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: No module named 'experiments' #45

Open
skzxc00 opened this issue Aug 8, 2024 · 6 comments
Open

ModuleNotFoundError: No module named 'experiments' #45

skzxc00 opened this issue Aug 8, 2024 · 6 comments

Comments

@skzxc00
Copy link

skzxc00 commented Aug 8, 2024

There is always a problem when training experiment scripts:ModuleNotFoundError: No module named 'experiments'. Have you ever encountered such an error?

@Adapter525
Copy link

from ...metrics import SequenceAccuracy
ImportError: attempted relative import beyond top-level package

@kpoeppel
Copy link
Collaborator

pip install experiments should probably fix the issue

Do not do that.

@kpoeppel
Copy link
Collaborator

Should be fixed now by adding an init.py in the experiments folder.

@Majorry
Copy link

Majorry commented Nov 9, 2024

@SajayR @Adapter525 @skzxc00
Put the main function at the same level as experiments!!!!!!!!

@rcj1
Copy link

rcj1 commented Nov 14, 2024

Include the following in pyproject.toml:

[tool.setuptools.packages]
find = { include = ["xlstm*", "experiments*"] }

@pbrandstet
Copy link

Adding the repository to your PYTHONPATH also resolves the issue.

f.e. export PYTHONPATH=$PYTHONPATH:~/repos/xlstm

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

6 participants