ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> visualpython-discuss
visualpython-discuss
[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


Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved