[Python-bugs-list] [ python-Bugs-428724 ] SystemError on import w/ invalid package
noreply@sourceforge.net
noreply@sourceforge.net
Wed, 30 May 2001 09:50:51 -0700
Bugs item #428724, was updated on 2001-05-30 09:50
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=428724&group_id=5470
Category: Windows
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Jeremy Hylton (jhylton)
Assigned to: Tim Peters (tim_one)
Summary: SystemError on import w/ invalid package
Initial Comment:
This problem occurs with Python 2.1 and Windows 2000.
I created a directory Test with a file foo.py in it. I
forgot to put an __init__.py in Test. I ran Python
from the directory that contains Test.
>>> import Test.foo
Traceback (most recent call last):
File "<stdin>", line 1, in ?
SystemError: NULL result without error in call_object
If I place an __init__.py in the Test directory, the
import works.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=428724&group_id=5470