On 10/27/2001 02:19:07 AM jython-users-admin wrote:
>
>     java -Dpython.home=/export/cvs/jython \

Do you have a Lib directory in your python home?  If you do, you could be getting pawt from there.

> One guess might be that you have a package that is missing its __init__.py
> file.

Hmm, There is a __init__.py in the pawt directory, but none in the Lib directory (just a __future__.py)
Could that be the cause?

Windows 2000SP2
java full version "1.3.1_01a"

I run it like this:

java -Dpython.path=jython-lib.jar!Lib -classpath "jython.jar;jython-lib.jar" org.python.util.jython -v
import: 'exceptions' as org.python.core.exceptions in builtin modules
Jython 2.1a3 on java1.3.1_01 (JIT: null)
import: 'site' as Lib/site$py.class
import: 'sys' as sys in builtin modules
import: 'os' as org.python.modules.os in builtin modules
import: 'javaos' as Lib/javaos$py.class
import: 'java' as java package
import: 'File' as java class
import: 'javapath' as Lib/javapath$py.class
import: 'System' as java class
import: 'sitecustomize' not found (=> ImportError)
Type "copyright", "credits" or "license" for more information.
>>> import string
import: 'string' as Lib/string$py.class
import: 'strop' not found (=> ImportError)
>>> import pawt
import: 'pawt' not found (=> ImportError)
Traceback (innermost last):
  File "<console>", line 1, in ?
ImportError: no module named pawt
>>>

I can validate the contents of jython-lib.jar by uncompressing it into a temp directory and running against that instead, with the following results:

unzip jython-lib.jar t
java -Dpython.path=./t/Lib -classpath"jython.jar" org.python.util.jython -v
import: 'exceptions' as org.python.core.exceptions in builtin modules
Jython 2.1a3 on java1.3.1_01 (JIT: null)
import: 'site' as .\t\Lib\site$py.class
import: 'sys' as sys in builtin modules
import: 'os' as org.python.modules.os in builtin modules
import: 'javaos' as .\t\Lib\javaos$py.class
import: 'java' as java package
import: 'File' as java class
import: 'javapath' as .\t\Lib\javapath$py.class
import: 'System' as java class
import: 'sitecustomize' not found (=> ImportError)
Type "copyright", "credits" or "license" for more information.
>>> import string
import: 'string' as C:\dvobs\a-Source\CommonServices\dist\lib\.\t\Lib\string$py.class
import: 'strop' not found (=> ImportError)
>>> import pawt
import: 'pawt' as C:\dvobs\a-Source\CommonServices\dist\lib\.\t\Lib\pawt\__init__.py
import: 'pawt' as java package
>>>

Any ideas?

Matt