[Visualpython-discuss] can't import extensions in the current directory in vs.net
by Alex Law other posts by this author
Dec 3 2003 10:21AM messages near this date
view in the new Beta List Site
RE: [Visualpython-discuss] Waiting for the Python debugger
|
[Visualpython-discuss] Crashing
I'm using WindowsXP+vs.net2003+ActivePython2.2.3+visualpython, and =
trying to debug a Python extension written in c++.
I made a python project, added a file in the project named "test.py". =
the file contains only one line:
import PyJPEG
I put PyJPEG.pyd(a extension written by myself) into the same directory =
of test.py, then run the project in vs.net, but it fails:
Starting Python debug run ...
Traceback (most recent call last):
File "c:\program files\activestate visual python\callvpython.py ", =
line 101, in ?
main(sys.argv[1:])
File "c:\program files\activestate visual python\callvpython.py ", =
line 96, in main
else: requestor.start(script_args)
File "c:\program files\activestate visual python\kdbxml.py", line 702, =
in start
return Requester.start(self, debug_args)
File "c:\program files\activestate visual python\kdbxml.py", line 299, =
in start
self._do_start(debug_args)
File "c:\program files\activestate visual python\kdbxml.py", line 331, =
in _do_start
self.kdb.run(code_ob, locals, locals)
File "C:\Python22\lib\bdb.py", line 349, in run
exec cmd in globals, locals
File "E:\MyApp\PyJPEG\test.py", line 1, in ?
import PyJPEG
ImportError: No module named PyJPEG
I tried run test.py in command prompt, I got no error message.
And I tried copy PyJPEG.pyd into PYTHON_HOME\lib, the script works well =
both in command prompt and in vs.net.
Is this a bug?
Attachments:
unknown1
unknown2
unknown1
|