472,811 Members | 1,254 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,811 software developers and data experts.

Psyco & Linux


Hi All;

I have Psyco (on Windows XP) and now I want to install it on Linux, too.
I FTP'd the tarball (tar.gz) from Psyco's site but can't get it compiled.
First, I tried the usual "python setup.py install" but that did not work.
I later found a RPM for Psyco but it wasn't suitable to the Linux version
I'm currently using.

Has any of you had a similar experience? If so, how did you manage
to solve the problem (in the case that you did)? Before one asks, I
must say that I'm trying to build the package as the super user (root).
:-)

The specifics of my system are:

Athlon AMD-64 3300+
SuSE 9.3 Professional (64-bit)
Python 2.4
gcc/g++ 3.3.5

Thanks in advance for any help.

---Fausto
Aug 12 '05 #1
5 3274

First, I tried the usual "python setup.py install" but that did not work.


How exactly did it fail? Perhaps you can paste the error output from
this command.

Aug 12 '05 #2

Hi Steve;

Steve M wrote:
First, I tried the usual "python setup.py install" but that did not work.
How exactly did it fail? Perhaps you can paste the error output from
this command.


Sure, he is the output:

linux:/home/fausto/Documents/psyco-1.4 # python setup.py install
PROCESSOR = 'ivm'
Copying c/ivm/prolog/insns-igen-h.i.default -> c/ivm/prolog/insns-igen-h.i
Copying c/ivm/prolog/insns-threaded.i.default -> c/ivm/prolog/insns-threaded.i
Copying c/ivm/prolog/insns-switch.i.default -> c/ivm/prolog/insns-switch.i
Copying c/ivm/prolog/insns-igen.i.default -> c/ivm/prolog/insns-igen.i
Copying c/ivm/prolog/mode_combine.pl.default -> c/ivm/prolog/mode_combine.pl
Copying c/ivm/prolog/insns-table.py.default -> c/ivm/prolog/insns-table.py
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.4
creating build/lib.linux-x86_64-2.4/psyco
copying psyco/core.py -> build/lib.linux-x86_64-2.4/psyco
copying psyco/kdictproxy.py -> build/lib.linux-x86_64-2.4/psyco
copying psyco/logger.py -> build/lib.linux-x86_64-2.4/psyco
copying psyco/profiler.py -> build/lib.linux-x86_64-2.4/psyco
copying psyco/support.py -> build/lib.linux-x86_64-2.4/psyco
copying psyco/__init__.py -> build/lib.linux-x86_64-2.4/psyco
copying psyco/classes.py -> build/lib.linux-x86_64-2.4/psyco
running build_ext
building 'psyco._psyco' extension
creating build/temp.linux-x86_64-2.4
creating build/temp.linux-x86_64-2.4/c
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -fmessage-length=0 -Wall -g -fPIC -DALL_STATIC=1
-Ic/ivm -I/usr/include/python2.4 -c c/psyco.c -o build/temp.linux-x86_64-2.4/c/psyco.o
In file included from c/dispatcher.h:12,
from c/codemanager.h:10,
from c/psyco.c:3:
c/codegen.h:19:3: #error "sorry -- I guess it won't work like that on 64-bits machines"
In file included from c/initialize.h:46,
from c/psyco.c:13:
c/dispatcher.c: In function `fz_compress':
c/dispatcher.c:232: warning: cast from pointer to integer of different size
c/dispatcher.c:238: warning: cast to pointer from integer of different size
In file included from c/initialize.h:53,
from c/psyco.c:13:
c/codemanager.c: In function `psyco_shrink_code_buffer':
c/codemanager.c:252: warning: int format, different type arg (arg 3)
In file included from c/initialize.h:61,
from c/psyco.c:13:
c/Objects/pabstract.c:716:3: #error "omitted code from Python 2.3 here"
In file included from c/initialize.h:75,
from c/psyco.c:13:
c/Objects/pstructmember.c: In function `PsycoMember_GetOne':
c/Objects/pstructmember.c:16: warning: unused variable `w2'
c/Objects/compactobject.c: At top level:
c/codegen.c:711: warning: `integer_lshift' defined but not used
c/ivm/prolog/insns-igen.i:175: warning: `psyco_insn_assertdepth' defined but not used
c/ivm/prolog/insns-igen.i:197: warning: `psyco_insn_dynamicfreq' defined but not used
c/Objects/plongobject.c:21: warning: `PsycoLong_AsDouble' defined but not used
c/Objects/plistobject.c:116: warning: `PsycoList_SingletonNew' defined but not used
error: command 'gcc' failed with exit status 1

Any ideas? ;-) Clueless in Edmonton...

---Fausto

Aug 12 '05 #3
Fausto Arinos Barbuto wrote:
The specifics of my system are:

Athlon AMD-64 3300+
SuSE 9.3 Professional (64-bit)
Python 2.4
gcc/g++ 3.3.5


Ummm... I thought psyco only supported 32 bit systems. I haven't seen
anything else to suggest otherwise. See

http://psyco.sourceforge.net/psycoguide/req.html

Maybe you could recompile your python in 32 bit mode. You may find that
native 64 bit python is faster than 32 bit psyco however!

--
Jeremy Sanders
http://www.jeremysanders.net/
Aug 12 '05 #4
"Jeremy Sanders" <je*******************@jeremysanders.net> wrote in
message
Fausto Arinos Barbuto wrote:
The specifics of my system are:

Athlon AMD-64 3300+
SuSE 9.3 Professional (64-bit)
Python 2.4
gcc/g++ 3.3.5

Ummm... I thought psyco only supported 32 bit systems. I haven't seen
anything else to suggest otherwise. See
You're probably right. I will try to compile psyco on another
32-bit Linux box I have.
Maybe you could recompile your python in 32 bit mode. You may find that
native 64 bit python is faster than 32 bit psyco however!


When properly designed, scripts using Psyco are so much faster
than the original code that I doubt native 64-bit Python can
defeat it in terms of speed. A fair benchmark though could
only be carried out if I had a 64-bit version of Psyco. I
guess I 'll have to wait for one.

Thanks for your reply.

---Fausto

Aug 12 '05 #5
> c/codegen.h:19:3: #error "sorry -- I guess it won't work like that on 64-bits machines"

The first error output by gcc suggests the 64-bit OS might be the
problem. But I don't actually know what that error means.

Aug 13 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ingo Blank | last post by:
Hi, while 95% of my 'psycoed' applications run fine, it throws SIGSEGVs in conjunction with expat. Anybody noticed the same ? Python 2.3.2 (#4, Nov 13 2003, 02:10:49) on linux2 $ uname...
10
by: William S. Perrin | last post by:
I'm a python rookie, anyone have and suggestions to streamline this function? Thanks in advance..... def getdata(myurl): sock = urllib.urlopen(myurl) xmlSrc = sock.read() sock.close() ...
0
by: Jeremy Sanders | last post by:
Hi - I'm trying to build a Psyco rpm on Fedora 1. I try the command xpc5:~/psyco-1.1.1> python setup.py bdist_rpm this fails with: .... copying dist/psyco-1.1.1.tar.gz ->...
3
by: Dick Moores | last post by:
psyco is acting a bit psycho for me. Please see my spinForWeb.py at <http://www.rcblue.com/Python/spinForWeb.py> When psyco is in use, entering an integer somewhere between 2000 and 2500...
0
by: Buday Gergely | last post by:
Hi, I run an ubuntu hoary linux. I have psyco installed as apt-get says, but when I launch python and try "import psyco" it does not find. I have tried "locate psyco" to find its source or...
6
by: danmcleran | last post by:
I'm not seeing much benefit from psyco (only 5-10% faster). Maybe this example is too trivial? Can someone give me some pointers as to what kind of code would see a dramatic benefit? Here's the...
3
by: a | last post by:
hi i tried psyco+webpy here is the error that i got please let me know if any of you has success run psyco+webpy thanks import web, psyco urls = ( '/', 'view', '/add','add'
0
by: Kyo Guan | last post by:
Hi all: When you import psyco in python2.5, you can see the memery grow up near 40MB in linux. but the same version python and psyco, is only grow up 1MB under windows. kyo
6
by: sert | last post by:
I used the windows installer for the latest version of psyco, which is labeled as compatible with 2.5, but it gives the following error: ImportError: DLL load failed: The specified module could...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
How does React native implement an English player?
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.