igormarfin / shedskin

Automatically exported from code.google.com/p/shedskin
0 stars 0 forks source link

wrong ELF class when importing 32-bit extensions in 64 bit Ubuntu #194

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
In 64 bit Ubuntu:
1. Install 32 bit python (I used Enthought's Canopy distribution, 32 bit)
2. shedskin -e test
3. in a .py file: import test
4. Run the file (32 bit environment)

What is the expected output? What do you see instead?
/directory/test.so: wrong ELF class: ELFCLASS64

What version of the product are you using? On what operating system?
shedskin 0.9.4, running on Ubuntu 12.04 LTS, running python from the 32 bit 
canopy editor 

Original issue reported on code.google.com by panavi...@gmail.com on 2 Aug 2013 at 8:21

GoogleCodeExporter commented 8 years ago
thanks for reporting, and apologies for the late reply. my first guess would be 
that the 'shedskin' command here still uses the regular 64-bit python..? what 
happens if you make sure you run in with the 32 bit installation?

Original comment by mark.duf...@gmail.com on 14 Aug 2013 at 9:41

GoogleCodeExporter commented 8 years ago
Embarrassing question: how can I do that?

Original comment by panavi...@gmail.com on 20 Aug 2013 at 10:36

GoogleCodeExporter commented 8 years ago
/usr/bin/shedskin is basically just a python script that you could run with the 
32 bit version of python.

Original comment by mark.duf...@gmail.com on 22 Aug 2013 at 7:07

GoogleCodeExporter commented 8 years ago
Yup, fixed it. Thanks! Great tool.

On another note: I'm trying to install shedskin on a computing cluster
without root access. Is there a simple prefix I can change so that it
installs in my user directory rather than /usr? (Our admin has moved to a
new job and no one has been appointed to manage the cluster in his absence).

Original comment by panavi...@gmail.com on 26 Aug 2013 at 8:38

GoogleCodeExporter commented 8 years ago
sure, I always run it this way.. :-) just change the shedskin path here to 
where you unpacked the tarball:

#!/usr/bin/python
import sys
sys.path.insert(0, '/home/srepmub/shedskin')
import shedskin
shedskin.main()

Original comment by mark.duf...@gmail.com on 26 Aug 2013 at 8:47

GoogleCodeExporter commented 8 years ago
Hmm. I changed the files for both 2.4 and 2.7 and still got

error: could not create '/usr/lib/python2.4/site-packages/shedskin':
Permission denied

Original comment by panavi...@gmail.com on 27 Aug 2013 at 3:07

GoogleCodeExporter commented 8 years ago
you don't have to run setup.py - just unpack the tarball, and run the above 
script. 

Original comment by mark.duf...@gmail.com on 27 Aug 2013 at 3:19

GoogleCodeExporter commented 8 years ago
Hmm, still breaks on the make command, can't find gc. I installed Boehm gc
locally and the admin installed it globally in usr/lib64 - no luck.

-Josh

Original comment by panavi...@gmail.com on 4 Sep 2013 at 5:53

GoogleCodeExporter commented 8 years ago
Never mind - got it going.

Original comment by panavi...@gmail.com on 4 Sep 2013 at 7:18