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

Cannot import name 'SOM' from partially initialized module 'sompy' #136

Open
dejudicibus opened this issue Nov 14, 2023 · 2 comments
Open

Comments

@dejudicibus
Copy link

I get

Traceback (most recent call last):
File "D:\Projects\AI\SOM\data\sompy_clustering.py", line 1, in
import sompy
File "C:\Python\lib\site-packages\sompy_init_.py", line 2, in
from sompy import SOM
ImportError: cannot import name 'SOM' from partially initialized module 'sompy' (most likely due to a circular import) (C:\Python\lib\site-packages\sompy_init_.py)

@agr17
Copy link

agr17 commented Dec 3, 2023

I had the same problem, in my case by installing using pip install sompy. Then I realized that this package has nothing to do with this repository. To install this one you have the instructions in the readme, I have not seen that it is available via pip.

@DanieleGiannuzzi98
Copy link

DanieleGiannuzzi98 commented Dec 22, 2023

If you still have problem, try these passages from anaconda cmd (if you use anaconda):

  • pip uninstall sompy
  • git clone <code link of this library>
  • cd_sompy
  • python setup.py install

Then on your notebook you just have to:

  • import sompy

Probably you already have a version of sompy that is the one that has recursively problems with python>3.0
Therefore, uninstalling sompy and following the right procedures could help.
Tell me if this is the case! :)

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

3 participants