Bugs item #1246413, was opened at 2005-07-27 18:38
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1246413&group_id=12867
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Mike Hostetler (thehaas)
Assigned to: Nobody/Anonymous (nobody)
Summary: can't import Python package
Initial Comment:
I have a Python library that I call that is in the same directory as my application. It has a __init__.py that doesn't seem to be called:
$ dir WorkPoint
#wpWindows.py# __init__.pyc utils.pyc wpWindows.py
TAGS semantic.cache wpJava.py wpWindows.pyc
__init__.py utils.py wpJava.pyc
$ ./PerformWork.bat cmd
ECHO is off.
Jython 2.2a1 on java1.4.2_03 (JIT: null)
Type "copyright", "credits" or "license" for more information.
>>> import WorkPoint
>>> s =WorkPoint.Session()
Traceback (innermost last):
File "<console>", line 1, in ?
AttributeError: java package 'WorkPoint' has no attribute 'Session'
>>> dir(WorkPoint)
['__name__']
It looks like this in 2.1:
$ ./PerformWork.bat cmd
ECHO is off.
Jython 2.1 on java1.4.2_03 (JIT: null)
Type "copyright", "credits" or "license" for more information.
>>> import WorkPoint
>>> s = WorkPoint.Session()
>>> dir(WorkPoint)
['JAVA', 'Session', 'WPexception', '__doc__', '__file__', '__name__', '__path__'
, 'isJava', 'sys', 'wpJava', 'wpWrapper']
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1246413&group_id=12867
|