[Tutor] ImportError: cannot import name
Alan Gauld
alan.gauld at yahoo.co.uk
Tue Aug 30 16:23:55 EDT 2016
On 30/08/16 10:25, fa306795 at skynet.be wrote:
> Hello,
> I use python 3.5.1 and try to import sompy and get the following error:
>
> File "C:\Anaconda3\lib\site-packages\sompy-1.0-py3.5.egg\sompy\__init__.py",
> line 30, in <module> from sompy import SOMFactory
>
> ImportError: cannot import name 'SOMFactory'
>
> What could cause such an error? Thanks in advance for any suggestions.
The most likely cause is that the module sompy does not contain the name
SOMFactory (check the spelling...). Try
>>> import sompy
>>> dir(sompy)
To check the available names
Alan G
More information about the Tutor
mailing list