Git Product home page Git Product logo

Comments (18)

altermarkive avatar altermarkive commented on July 30, 2024 6

I had the same problem and the SOMPY version forked by @compmonks worked for me:

pip3 install git+https://github.com/compmonks/SOMPY.git

I only had to remove ipdb import from sompy.py and mapview.py because due to other dependencies I had installed the ipdb import was opening a prompt in my setup.
Thank you @compmonks for the fork!

from sompy.

dryjins avatar dryjins commented on July 30, 2024 3

Same issue. It’s because of ipdb module.Afrer I commented them out in sompy.py and mapview.py, it worked. It’s just debugger

from sompy.

compmonks avatar compmonks commented on July 30, 2024 1

Sompy would not work when loaded as a package for py 3+ for dependencies and syntax reasons.
@azize @sevamoo , I should have pushed a version for this. Let me know if it works.

from sompy.

Nicowhaz avatar Nicowhaz commented on July 30, 2024

I have exactly the same issue

from sompy.

honorinli151 avatar honorinli151 commented on July 30, 2024

Me too

from sompy.

sevamoo avatar sevamoo commented on July 30, 2024

Sorry, not tested with Py3. with Py2.7 it should work.

from sompy.

njali2001 avatar njali2001 commented on July 30, 2024

Is there any solution for this issue right now?

from sompy.

sevamoo avatar sevamoo commented on July 30, 2024

@compmonks did you have a solution for this? If I remember correctly you used it in py3?
Thanks

from sompy.

cranzlerdave avatar cranzlerdave commented on July 30, 2024

Have the same issue, but problem appers in my case also in python 2.7. Is there already a solution?

from sompy.

riverzhou avatar riverzhou commented on July 30, 2024

I have exactly the same issue

from sompy.

piaebe avatar piaebe commented on July 30, 2024

Hi, I have the same issue. @Nomad-Jin What exactly did you comment out? what is 'ipdb'?

from sompy.

altermarkive avatar altermarkive commented on July 30, 2024

@pricklpitty - ipdb is a module which gives access the IPython debugger (https://pypi.python.org/pypi/ipdb).
Besides import ipdb in sompy.py and mapview.py there are no other references to that module in the code so it was probably left accidentally after a debugging session...

from sompy.

yangzhili1992 avatar yangzhili1992 commented on July 30, 2024

how could i save the model , and predict the cluster of new data , like kmeans in sklearn "model.predict(new_data)"?????????

from sompy.

rebelgiri avatar rebelgiri commented on July 30, 2024

Did anyone found the solution for this open issue?

from sompy.

abdoulsn avatar abdoulsn commented on July 30, 2024

for me I installed SOMPY using the setup source, this fixed my bug last year. That longtime I've used it.

from sompy.

mashirali avatar mashirali commented on July 30, 2024

git clone https://github.com/sevamoo/SOMPY.git
cd SOMPY
python setup.py install

This fixed my issue

from sompy.

dejudicibus avatar dejudicibus commented on July 30, 2024

I get

Traceback (most recent call last):
File "D:\Projects\AI\SOM\data\sompy_clustering.py", line 3, in
import sompy as 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)

Getting the package from GIT does NOT fix the issue. I have Python 3.10.5

from sompy.

dimonussir5 avatar dimonussir5 commented on July 30, 2024

I get

Traceback (most recent call last):
File "c:\Users\New\Desktop\clone\som\random_distributions.py", line 2, in
from som import simom
ImportError: cannot import name 'simom' from 'som' (C:\Program Files\Python312\Lib\s
ite-packages\som_init_.py)
PS C:\Users\New\Desktop\clone>

from sompy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.