Re: [Tutor] ImportError: cannot import name

2016-08-31 Thread Peter Otten
fa306...@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 from sompy import SOMFactory > > ImportError: cannot import name 'SOMFactory' > > Wh

Re: [Tutor] ImportError: cannot import name

2016-08-30 Thread Steven D'Aprano
On Wed, Aug 31, 2016 at 10:25:17AM +1000, Steven D'Aprano wrote: > (4) Are you sure that SOMFactory actually exists? I don't see it in any > of the five notebooks here: > > https://github.com/sevamoo/SOMPY > > although maybe I've missed something. I may have... there's a sixth notepad here: h

Re: [Tutor] ImportError: cannot import name

2016-08-30 Thread Steven D'Aprano
On Tue, Aug 30, 2016 at 11:25:44AM +0200, fa306...@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 from sompy import SOMFactory > > ImportError:

Re: [Tutor] ImportError: cannot import name

2016-08-30 Thread Alan Gauld via Tutor
On 30/08/16 10:25, fa306...@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 from sompy import SOMFactory ImportError: cannot import name 'SOMFactory' Wh

[Tutor] ImportError: cannot import name

2016-08-30 Thread fa306...@skynet.be
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 from sompy import SOMFactory ImportError: cannot import name 'SOMFactory' What could cause such an error? Thanks in advance

Re: [Tutor] ImportError: cannot import name log

2009-09-17 Thread vishwajeet singh
On Thu, Sep 17, 2009 at 8:41 PM, steve wrote: > Hello Vishwajeet, > > On 09/16/2009 11:21 PM, vishwajeet singh wrote: > >> Hi, >> >> Below is the content of __init__.py >> >> import sys >> from django.core.signals import got_request_exception >> from . import log >> logger = log._get_logger() >>

Re: [Tutor] ImportError: cannot import name log

2009-09-17 Thread steve
Hello Vishwajeet, On 09/16/2009 11:21 PM, vishwajeet singh wrote: Hi, Below is the content of __init__.py import sys from django.core.signals import got_request_exception from . import log logger = log._get_logger() def got_request_exception_callback(sender, **kwargs): """Logging all unhandle

[Tutor] ImportError: cannot import name log

2009-09-16 Thread vishwajeet singh
Hi, Below is the content of __init__.py import sys from django.core.signals import got_request_exception from . import log logger = log._get_logger() def got_request_exception_callback(sender, **kwargs): """Logging all unhandled exceptions.""" type, exception, traceback = sys.exc_info()