[Tutor] newbie needs pypy setup tips

eire1130 at gmail.com eire1130 at gmail.com
Sun Jul 31 00:06:04 CEST 2011


I think, but not 100 percent, that pypy has a list. You might get better traction there if you don't get a good *nswer here.

Although I have a couple questions. Have you profiled in python to look for hotspots?

Have you tried writting portions in c?

What kind of model is it, out of curiousity.
Sent from my Verizon Wireless BlackBerry

-----Original Message-----
From: Tom Roche <Tom_Roche at pobox.com>
Sender: tutor-bounces+eire1130=gmail.com at python.org
Date: Sat, 30 Jul 2011 17:49:02 
To: <tutor at python.org>
Reply-To: tutor at python.org, Tom Roche <Tom_Roche at pobox.com>
Subject: [Tutor] newbie needs pypy setup tips


I need advice about configuring pypy to run other python code. Why I ask:

I'm running a model implemented in python. Unfortunately a run on "straight" python 2.6.x or 2.7.x requires

- 130 min on my ubuntu laptop (on which working would be more convenient)
- 55 min on a better build machine on which I currently have access

However I have read that this model runs 5x faster under pypy, so I wanna get me that, but I'm finding the pypy docs pretty inscrutable. Nevertheless, I have managed to do

me at it:~$ uname -rv
> 2.6.32-33-generic #70-Ubuntu SMP Thu Jul 7 21:13:52 UTC 2011
me at it:~$ which pypy
> /usr/local/bin/pypy
me at it:~$ ls -al $(which pypy)
> lrwxrwxrwx 1 root root 37 2011-07-30 16:06 /usr/local/bin/pypy -> /opt/pypy-c-jit-1.5.0-alpha0/bin/pypy
me at it:~$ pypy --version
> Python 2.7.1 (b590cf6de419, Apr 30 2011, 02:00:34)
> [PyPy 1.5.0-alpha0 with GCC 4.4.3]

However, when I try to *really* run the @#$%^&! thing, it spews:

me at it:~$ pypy
> debug: WARNING: library path not found, using compiled-in sys.path and sys.prefix will be unset
> 'import site' failed
> Python 2.7.1 (b590cf6de419, Apr 30 2011, 02:00:34)
> [PyPy 1.5.0-alpha0 with GCC 4.4.3] 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

What do I need to do to fix its library path?

TIA, Tom Roche <Tom_Roche at pobox.com>
_______________________________________________
Tutor maillist  -  Tutor at python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


More information about the Tutor mailing list