python2.5 with the Raspberry Pi

I had been working on a project using some legacy python code. Because of the liquid nature of the language, many things either become depracated or worse, totally unavailable with later releases. For part of the project, python2.5 was needed and there was no package from the given mirrors. Deciding to install from source, I ran into the following error when running 'make'.

Code: gcc -pthread -c -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include   -DPy_BUILD_CORE -DSVNVERSION=\"`LC_ALL=C svnversion .`\" -o Modules/getbuildinfo.o ./Modules/getbuildinfo.c
gcc: error: directory": No such file or directory
make: *** [Modules/getbuildinfo.o] Error 1
I spent quite some time frustratingly trying to figure out the problem of the error and found that svnversion has changed its output with newer versions and the subversion installed with Raspbian has a different expected output than the subversion that was available when python2.5 was released. Specifically, svnversion returns 'Unversioned directory' rather than 'exported'. This causes the build to fail.

After much searching, I found a thread discussing a workaround here...https://github.com/yyuu/pyenv/issues/14

Basically, creat a file called svnversion with the following contents and place it somewhere early in your $PATH variable (before it appears normally - use 'which svnversion' to find this location). Then run 'make' and 'make altinstall' and once the build has completed, remove this "fake" version of svnversion.

Code: #!/bin/sh
echo exported

This is not exactly a problem needing to be fixed, but rather something that caused me much headache and I'd like to help others avoid the same problem. Enjoy

Tagged as: python2.5 raspberry


Probable answsers

Note that python is available for diablo. Python-runtime only is a metapackage depending of others python packages. The better way of installing python is installiing a package depending of others python ...

Okay, people, thanks to fellow poster RogerS, I managed to install Python 2.5 on my N800. Here's what I did: I went to the Python page: http://pymaemo.garage.maemo.org/ and clicked on the link to the Bora ...

I've seen and inwardly digested the post - you're actually best off emailing me at (I kind of hate the forum mail, and unlike some folk round here pride myself on a nice clean inbox) - it'd also be helpful if you ...

I tried to get the android sdk running. Not for developing on the pi, but for using the Pi as CI server.But I failed. I couldn't compile the Android SDK to work on arm. This is rather complicated, if you don't know ...

More information,after "dmesg" command,The results from my pc areBluetooth: L2CAP ver 2.15Bluetooth: L2CAP socket layer initializedThe results from RPi areBluetooth: L2CAP socket layer initializedAfter ...


Similair questions

I've been developing bluetooth application using Bluecove library with java.It works fine when I tested on PC, but the error occurs on raspberry pi. (no changes in code)The error shows when the code try to make ...

HelloHas anyone get eclipse and the android SDK working on the raspberry pi, I want to start coding android apps.ThanksMatthew

Hi,Is it possible to talk to anyone at raspberry Pi about collaboration and using the product in education?I'm a lecturer at the Open University in the UK and we'd be REALLY interested in producing and distributing ...

Is there any way to connect multiple Pi's together to create a supercomputer?E.g If you have 4 B Pi's there would be 1024mb of RAM and 4 700mhz cores, that would be a pretty speedy system.I know they do this kind ...

I've been thinking for a while about a project for an old all-in-one pc and decided that I'd like to re-purpose it as a portable raspberry Pi Pad.I've stripped the screen from it and intend to attach a touch screen ...

Hi guys, im not trying to advertise or make a profit in anyway - my 2nd raspberry Pi arrived the other day and I do not want it as I already have one. I have put it on ebay for anybody to have; check it out if you ...

Hello, raspberry Pi Community! I'm James Webb and I got to school at St John's Marlborough. I am currently in Year 9, and at the end of Year 9 everyone does a project. So I decided that for my project I would programme ...

Open Embedded Linux Entertainment Center, or OpenELEC for short, is a small Linux distribution built from scratch as a platform to turn your computer into a complete XBMC media center. OpenELEC is designed to make ...

Yesterday I have got my raspberry pi. I love its performance I love its size. I want to use this for Robotics project. PWM Connector Motor Controller [] I wonder if some can throw any idea how to use my existing ...

It would be interesting to use raspberry pc with an touchscreen eink (no power needed if you don't refresh your display, good readability). Don't you think so?Thanks for your beautiful project ;)

More evidence that a start-from-absolute-scratch, modular-lesson website for kids going from how-do-i-turn-this-thing-on newbie to Jedi Code Master in 99 project steps would yield HUGE benefits:http://www.theregister.co.uk/2011/09/30/dont_bother_with_it_degree/ ...

Hi, reading from wiki [1] I found out about armhf - "hard float" optimization that some raspberry Pi distros have but most dont.There are some info online that "hard float" optimization can speed ...

I love the Lego Case, but the post in the forum got me thinking about other neat alternatives. The key is to ensure a snug fit to a bespoke item (the raspberry Pi) and optional extras (e.g., Gertboard). One ...

I modelled a low quality 3d printer ready case for raspberry:Here the STL format:http://dl.dropbox.com/u/43696308/online/raspberry/TOP.stlhttp://dl.dropbox.com/u/43696308/online/raspberry/BOTTOM.stlI need to verify ...

after alot of thought i think im going to just eventually smack a screen portable keyboard and pinpoint mouse on this thing for a hand help desktop, only thing i need help with is i have no clue about voltages for ...

There has been a few comparisons to some of the gaming consoles, even some talk of using the Raspi as one. So, I got to thinking, "would would be a nice way to do that?"So, here are my thoughts:Plastic topRaspi, ...

- Did you already receive your ?- Would you like to get one sample of http://marcoalici.wordpress.com/2012/03/08/me-and-the-raspberrypi-3/ for your raspberry Pi for free?http://marcoalici.files.wordpress.com/2012/02/raspberry-pi-case_05c.jpgIf ...

While I, like many of you, am awaiting for the delivery of my raspberry Pi B I thought it would be nice to share something with you and get your opinion.I am a Dutch designer and working for about a year on a project ...

New topic, so it isn't buried in the other one:Today https://www.riscosopen.org/news/articles/2012/10/26/risc-os-pi-released-risc-os-for-the-raspberry-pi You can get it from the http://downloads.raspberrypi.org/images/riscos/riscos-2012-10-16-RC5, ...

how do I install/compile Quemu for the pi?I believe this is faster than dosbox, so I'm using it as my next step to get better performance for some games.