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

modern imports creating a problem #98

Open
grg2rsr opened this issue Oct 3, 2024 · 0 comments
Open

modern imports creating a problem #98

grg2rsr opened this issue Oct 3, 2024 · 0 comments

Comments

@grg2rsr
Copy link
Collaborator

grg2rsr commented Oct 3, 2024

trying to run IBL-to-nwb/src/ibl_to_nwb/_scripts/convert_brainwide_map_processed_only.py

gives me the following error:

(ibl2nwb) (base) georg@georg-laptop:~/code/IBL-to-nwb$ /home/georg/anaconda3/envs/ibl2nwb/bin/python /home/georg/code/IBL-to-nwb/src/ibl_to_nwb/_scripts/convert_brainwide_map_processed_only.py
Traceback (most recent call last):
  File "/home/georg/code/IBL-to-nwb/src/ibl_to_nwb/_scripts/convert_brainwide_map_processed_only.py", line 5, in <module>
    from ibl_to_nwb.converters import BrainwideMapConverter
  File "/home/georg/code/IBL-to-nwb/src/ibl_to_nwb/converters/__init__.py", line 1, in <module>
    from ._brainwide_map_converter import BrainwideMapConverter
  File "/home/georg/code/IBL-to-nwb/src/ibl_to_nwb/converters/_brainwide_map_converter.py", line 5, in <module>
    from src.ibl_to_nwb.converters._iblconverter import IblConverter
ModuleNotFoundError: No module named 'src'

In the file converters/_brainwide_map_converter.py, removing the src. from the import line makes it run (although crashes later at a different issue atm).

Introduced at d632ceb

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

1 participant