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 <[email protected]>
Sender: [email protected]
Date: Sat, 30 Jul 2011 17:49:02 
To: <[email protected]>
Reply-To: [email protected], Tom Roche <[email protected]>
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@it:~$ uname -rv
> 2.6.32-33-generic #70-Ubuntu SMP Thu Jul 7 21:13:52 UTC 2011
me@it:~$ which pypy
> /usr/local/bin/pypy
me@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@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@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 <[email protected]>
_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to