Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=3940165
By: l_connell
I have same problem as well. I am running 1.2.4 pydev and eclipse 3.2. If
i use "from mod1 import MyClass" or if i use "import mod1" and use "yo
= mod1.MyClass" I get the following error in debugger which actually thinks
my class is a different name. MyClass definately is defined in mod1.py within
MyPack package as code completion works just fine as far as I can tell.
#!/bin/python
from mod1 import MyClass
yo = MyClass()
yo.Doh()
-----------------
yo.Doh()
File "C:\Documents and Settings\Lee Connell\workspace\Test\src\MyPack\mod1.py",
line 12, in Doh
clazz = MyClOass(self)
NameError: global name 'MyClOass' is not defined
------------------
If I use "import mod1" and use "yo = MyClass()" I it doesn't know what MyClass
is which it should.
------------------
File "C:\Documents and Settings\Lee Connell\workspace\Test\src\MyPack\__init__.py",
line 5, in ?
yo = MyClass()
NameError: name 'MyClass' is not defined
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=293649
|