Hi pypy hackers :-), I have the same problem. pypy-jvm is unable to start in interactive mode:
[EMAIL PROTECTED]: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: [EMAIL PROTECTED]:goal$ pwd /home/data/opt/svnpypy/dist/pypy/translator/goal [EMAIL PROTECTED]: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'] [EMAIL PROTECTED]: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 <[EMAIL PROTECTED]> 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: > > [EMAIL PROTECTED] 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: > > [EMAIL PROTECTED] 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 > _______________________________________________ > [email protected] > http://codespeak.net/mailman/listinfo/pypy-dev > _______________________________________________ [email protected] http://codespeak.net/mailman/listinfo/pypy-dev
