[Python-bugs-list] [ python-Bugs-619713 ] Import fails in Idle

noreply@sourceforge.net noreply@sourceforge.net
Mon, 07 Oct 2002 14:53:59 -0700


Bugs item #619713, was opened at 2002-10-07 10:15
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=619713&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Leslie Brooks (lesliebrooks)
Assigned to: Nobody/Anonymous (nobody)
Summary: Import fails in Idle

Initial Comment:
The import command works in the command line
interpreter, but fails in Idle:

>>> os.listdir('.')
['Debug', 'example.cxx', 'example.dsp', 'example.h',
'example.i', 'example.ncb', 'example.py',
'example.pyc', 'example.sln', 'example.suo',
'example.vcproj', 'example_wrap.cxx', 'foo',
'index.html', 'Makefile', 'runme.py', '_example.dll',
'_example.ilk']
>>> import _example
Traceback (most recent call last):
  File "<pyshell#16>", line 1, in ?
    import _example
ImportError: No module named _example
>>> 

     I have gotten it to work _once_ in Idle, but was
never able to repeat it.

     I am running Python 2.2.1 under Win2K (5.00.2195 SP3).


----------------------------------------------------------------------

>Comment By: Leslie Brooks (lesliebrooks)
Date: 2002-10-07 17:53

Message:
Logged In: YES 
user_id=271417

     I should have noted that 'import' _does_ work to a
degree - 'import os' worked.

     The '_example.dll' that I am trying to import is the
'shapes' example that is distributed with SWIG 1.3.15, and
should import without any trouble.  It does import just fine
from the command line version of Python, but not from Idle.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=619713&group_id=5470