[pypy-dev] problems running pypy-jvm

Marek Paška paskma at gmail.com
Mon Jul 14 22:30:26 CEST 2008


Hi pypy hackers :-),

I have the same problem. pypy-jvm is unable to start in interactive mode:

paskma at paskma:goal$ ./pypy-jvm
'import site' failed
Python 2.4.1 (pypy 1.0.0 build 56547) on linux2
Type "help", "copyright", "credits" or "license" for more information.
``choose your hack''
Error calling sys.excepthook:
debug: OperationError:
debug:  operror-type: ImportError
debug:  operror-value: cannot import name 'curdir'

Here is an investigation of sys.path, maybe it helps you:

paskma at paskma:goal$ pwd
/home/data/opt/svnpypy/dist/pypy/translator/goal
paskma at paskma:goal$ ./pypy-c -c 'import sys; print sys.path'
['/home/data/opt/svnpypy/dist/pypy/translator/goal',
'/home/data/opt/svnpypy/dist/pypy/lib',
'/home/data/opt/svnpypy/dist/lib-python/modified-2.4.1',
'/home/data/opt/svnpypy/dist/lib-python/2.4.1',
'/usr/lib/python2.4/site-packages']
paskma at paskma:goal$ ./pypy-jvm -c 'import sys; print sys.path'
'import site' failed
['', '/home/data/opt/svnpypy/dist/pypy/lib',
'/home/data/opt/svnpypy/dist/lib-python/modified-2.4.1',
'/home/data/opt/svnpypy/dist/lib-python/2.4.1']

The sys.path of the pypy-jvm lacks
'/home/data/opt/svnpypy/dist/pypy/translator/goal' and mainly
'/usr/lib/python2.4/site-packages'. The translation of the pypy-jvm
was done without any significant switches.

Marek Paška

On Fri, Jul 4, 2008 at 09:57, Antonio Cuni <anto.cuni at gmail.com> wrote:
> Hi Maciek,
>
> Maciej Fijalkowski wrote:
>> First of all, I cannot get jar to work. It's complaining about '@' in
>> front of paths. Even if I remove it, it still cannot find Main class.
>
> what do you exactly mean? Could you paste the error message please?
>
>> When I run it by hand I get:
>>
>> debug: WARNING: library path not found, using compiled-in sys.path
>> 'import site' failed
>> Error calling sys.excepthook:
>> debug: OperationError:
>> debug:  operror-type: ImportError
>> debug:  operror-value: cannot import name 'curdir'
>>
>> What's wrong?
>
> No clue. I've translated pypy-jvm yesterday just after the merging of
> the less-meta-instance branch, and it works fine:
>
> antocuni at viper goal $ ./pypy-jvm
> Python 2.4.1 (pypy 1.0.0 build 56259) on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> ``nothing is true''
>  >>>>
>
> If I move pypy-jvm to another dir and rename my wc to prevent it to find
> the compiled-in sys.path, I get another error, which seems reasonable:
>
> antocuni at viper tmp $ ./pypy-jvm
> debug: WARNING: library path not found, using compiled-in sys.path
> 'import site' failed
> Python 2.4.1 (pypy 1.0.0 build 56259) on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> debug: OperationError:
> debug:  operror-type: ImportError
> debug:  operror-value: No module named _pypy_interact
>
> Which revision is your pypy-jvm? Any clue why it doesn't find the
> library path?
> What ./pypy-jvm -c 'import sys; print sys.path' prints?
>
> ciao,
> Anto
> _______________________________________________
> pypy-dev at codespeak.net
> http://codespeak.net/mailman/listinfo/pypy-dev
>



More information about the Pypy-dev mailing list