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

ImportError: attempted relative import with no known parent package #31

Open
chrisdane opened this issue Nov 13, 2023 · 1 comment
Open

Comments

@chrisdane
Copy link

chrisdane commented Nov 13, 2023

Hi

After successful installation (6ab4ddb) I get this error:

python fint.py 
Traceback (most recent call last):
  File "/home/a/a270073/models/fesom/fint/src/fint/fint.py", line 18, in <module>
    from .regions import define_region, define_region_from_file, mask_ne
ImportError: attempted relative import with no known parent package

Thanks a lot for help,
Chris

ps: I would find it useful if this package is mentioned in the pyfesom2 docu.

@boryasbora
Copy link
Collaborator

Hi Chris!

Could you say how you installed fint?

fint can be installed with pip install -e .
you can try then to run test.sh in the test folder to check if everything is working.

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

2 participants