Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4038491
By: pwaldo
Hi all,
I am running PyDev 1.0.3 under Kubuntu Linux and Eclipse 3.1.2. I can run my
program fine, but when I try to debug, it look like the interpreter is placing
system modules before mine.
I have a class called Image. There are also Image classes installed on the
system:
/usr/lib/python2.4/site-packages/PIL/Image.py
/usr/lib/zope2.8/lib/python/OFS/Image.py
As I said, Run mode works fine, but I get this when I try to debug:
Traceback (most recent call last):
[snip]
File "/home/pwaldo/src/kmediauploader-python/src/ImageFactory.py", line 10,
in getImage
return Image(kFileItem, parent)
TypeError: __init__() takes exactly 1 argument (3 given)
My Image *does* take 3 args (including self). Since it works OK in Run mode,
but not debug, I am concluding that the PYTHONPATH is getting set differently
for each mode. I'm not sure why, though. "Resulting command line" for Debug
mode gives this:
/usr/bin/python2.4 -u
/usr/share/eclipse/plugins/org.python.pydev.debug_1.0.3/pysrc/pydevd.py --type
python --client localhost --port 0 --file
/home/pwaldo/src/kmediauploader-python/src/kmediauploader.py --config
develconfig
The PYTHONPATH that will be used is:
/usr/share/eclipse/plugins/org.python.pydev_1.0.3/PySrc:/usr/lib/python2.4:/usr/
lib/python2.4/plat-linux2:/usr/lib/python2.4/lib-tk:/usr/lib/python2.4/lib-dynlo
ad:/usr/local/lib/python2.4/site-packages:/usr/lib/python2.4/site-packages:/usr/
lib/python2.4/site-packages/HTMLgen:/usr/lib/python2.4/site-packages/Numeric:/us
r/lib/python2.4/site-packages/PIL:/usr/lib/python2.4/site-packages/cairo:/usr/li
b/python2.4/site-packages/gtk-2.0:/usr/lib/site-python:/home/pwaldo/src/kmediaup
loader-python/src
Any thoughts on this would be greatly appreciated!
Paul
______________________________________________________________________
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
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Pydev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-users