![]() ![]() |
||
![]() |
![]() |
|
![]() |
[wingide-users] ImportError: cannot import name PersistentWing IDE Support support at wingide.com13 Oct 2003 11:45:42 -0400
The problem seems to be that the name Persistent cannot be found in the Persistence module. Everything after the first ImportError is suspect because Python leaves a partially initialized module object around after an ImportError that will be picked up by future import statements (this as fooled me a number of times). My hunch is that it's either a circular import problem or somehow the Persistence module is not built correctly. What program are you trying to debug? From the module names, I think it's Zope, but what version? And, how exactly is the Wing debugger handling this? Thanks, John On Mon, 2003-10-13 at 09:12, Jerry Nickolai wrote: > I see lots of references to this on the net most of them with an answer of > "No Idea" > > >>> from Persistence import Persistent > Traceback (most recent call last): > File "<pyshell#0>", line 1, in ? > from Persistence import Persistent > ImportError: cannot import name Persistent > >>> import Globals > Traceback (most recent call last): > File "<pyshell#1>", line 1, in ? > import Globals > File "C:\PROGRA~1\WEBSite\lib\python\Globals.py", line 23, in ? > import Acquisition, ComputedAttribute, App.PersistentExtra, os > File "C:\Program Files\WebSite\lib\python\App\PersistentExtra.py", line > 15, in ? > from Persistence import Persistent > ImportError: cannot import name Persistent > >>> > > If I do the Import Globals a second time it works. > the problem I am having is that wingIDE debugger blows up on this and I can > not get to my program in debug mode. > it seems anything that uses globals or persistent I have to debug manually. > Anyone have a Idea > I am running python 2.1.3 > WingIDE 1.1 > on windows XP > Thanks for any help > Jerry > > > **************************************************** > Jerry Nickolai > Marathon Electric / Regal Beloit Corporation > Motor Technologies Group > Engineering Systems Analyst / Oracle DBA > jwnickolai@marathonelectric.com > jerry.nickolai@rbcmtg.com > 715-675-3359 x4366 > **************************************************** > > _________________________________________________ > Wing IDE discussion list > http://wingide.com/support/forum
Run by Mailman v 2.0.8 |
|
|
Copyright (c) 2000-2002, Archaeopteryx Software, Inc. Legal Statements | ||