maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Python breakage on newly-flashed N900 (https://talk.maemo.org/showthread.php?t=94093)

CRCulver 2014-10-30 14:29

Python breakage on newly-flashed N900
 
I bought a used N900 and flashed it. Once I had flashed the Nokia firmware and upgraded to the latest CSSU testing, I installed through App Manager all of the applications that I wanted. However, Python is now broken, so that when I try to launch, for example, Mnemosyne, it doesn't open. Opening a shell and typing python produces the following output:

Quote:

Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
Python 2.5.4 (r254:67916, May 17 2010, 21:00:32)
[GCC 4.2.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
What happened, how do I fix this?

marmistrz 2014-11-01 10:25

Re: Python breakage on newly-flashed N900
 
Try the suggested -v option to get some sensible traceback

CRCulver 2014-11-01 16:48

Re: Python breakage on newly-flashed N900
 
This appears to be a pymaemo-optify bug, where the mounting setup is not done properly on boot. If I install all these python packages in the right order, then things work fine as long as I don’t shut the device down. If I do shut my N900 down and reboot, python produces the error I pasted above. I guess I’ll have to go searching through the pymaemo-optify .deb to find the startup script and ensure myself that it gets executed on boot.


All times are GMT. The time now is 05:00.

vBulletin® Version 3.8.8