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 #3

Open
alyferryhalo opened this issue Sep 2, 2022 · 7 comments

Comments

@alyferryhalo
Copy link

After command python spci.py according to installation guide I got this error:

    from . import sdf_field2title
ImportError: attempted relative import with no known parent package

Is there a way to solve this problem?

I used macOS.

@DrrDom
Copy link
Owner

DrrDom commented Sep 2, 2022

Installation section in the manual is outdated. Sorry for that.
Try to use pip install spci instead as written in README. This should work.

@alyferryhalo
Copy link
Author

Same error anyway :(

@DrrDom
Copy link
Owner

DrrDom commented Sep 2, 2022

Understood. Try simply spci from command line, this is an alias. Running of scripts does not require explicit python call after creating a package. I forgot to update the manual. Probably there may be some other inconsistencies, but generally program works as described.

@alyferryhalo
Copy link
Author

After this I found an error Library not loaded: @rpath/libopenblas.dylib on macOS Monterey 12.1

@DrrDom
Copy link
Owner

DrrDom commented Sep 2, 2022

Maybe you have some issues with scikit-learn installation?

@alyferryhalo
Copy link
Author

No issue, but I use scikit-learn 1.0.2 version. Could it be a reason?

@DrrDom
Copy link
Owner

DrrDom commented Sep 2, 2022

I just created a new conda env from scratch. It works test.txt, but I'm on Linux.
BLAS library is definitely a dependence from scipy, numpy or scikit-learn. Look at that direction.

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