473,387 Members | 3,781 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 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 3335

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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.