[Announcement] Python2.7 for Maemo5
Now in extras-devel.
Currently Maemo5 has python2.5. There are some interesting python2.7 applications which can't be ported to N900. Check python2.7-minimal from extras-devel. *Packages are fully optified. *Python2.5 and python2.7 can be simultaneously installed There are no yet modules for python2.7, but in some cases it is possible to use modules from python2.5. It is not intended that existing and working applications use python2.7, but if new application needs python2.7 it states that explicitly. -------- First test: AdvancedCaching (this is existing application and works great with python2.5) Code:
/opt/agtl-maemo/core.py --------- Some existing applications fail to start with python2.7, and I'm suspecting mismatch of old python2.5 modules, so maybe modules (or some of them) must be recompiled against new python. I'm asking You to test and report your thoughts. What modules cause errors? ---------------- Source: https://gitorious.org/python27-maemo5/python27-maemo5 [EDIT] ctypes works with version 2.7.3~rc2-2.1-maemo6 (on extras-devel) [/EDIT] |
Re: [WIP] Python2.7 for Maemo5
Is it really optified without the trickery used for Python 2.5?. That would be really a definitive improvement over current installation.
Have you tried to build it with Linaro toolchain and Thumb2?. It could give a boost to Python applications (specially startup times). Then, you could use CSSU's Thumb repository to upload this package (if freemangordon agrees). |
Re: [WIP] Python2.7 for Maemo5
Quote:
("just" = You can count how many modifications and commits it took to achieve this.) Quote:
|
Re: [WIP] Python2.7 for Maemo5
This is an excelent news, because python 2.5 have any problem with any packages for example wifite_r85, pyrit and others. This required python 2.7. Wait that you compiled python2.7 completely and upload to repositories.
Here are some errors that usually come with some applications using python:(with pyrit):D:D Code:
/home/user # pyrit I would like to continue testing the improvements that are implemented with python Regards. |
Re: [WIP] Python2.7 for Maemo5
@AapoRantalainen - check your debian/control file (along with others that may be affected) in the package you sent to autobuilder, it seems line endings are windoze style.
|
Re: [WIP] Python2.7 for Maemo5
Quote:
|
Re: [WIP] Python2.7 for Maemo5
Quote:
|
Re: [WIP] Python2.7 for Maemo5
Thank You.
|
Re: [WIP] Python2.7 for Maemo5
Quote:
For testing I sent only debian-directory without source files, and then I get error log as expected. I will continue investigation. |
Re: [WIP] Python2.7 for Maemo5
Quote:
|
Re: [WIP] Python2.7 for Maemo5
Python2.7 hit in extras-devel.
You might want install package named python2.7-minimal (This is package which contains python2.7-binary). --- When pushing to extras-devel, I only use scp/rcp. When I (accidentally) checked this page: https://garage.maemo.org/extras-assistant/index.php I can see one of my trials on the queue (over six days now). This explains why there wasn't any log (but it doesn't explain why it got stuck on queue) |
Re: [WIP] Python2.7 for Maemo5
Quote:
Aapo, could you make some way like that: if an env. variable, let's call it USE_PYTHON27, (when calling python) then /usr/bin/python2.7 is called, the other way python2.5 is used. Is this possible? |
Re: [Announcement] Python2.7 for Maemo5
Is it possible to use pip or easy_install with python2.7 so as to have access to all of the Python packages?
|
Re: [Announcement] Python2.7 for Maemo5
Quote:
---- Pip is http://www.pip-installer.org/en/latest/ Installing it needs distribute or setuptools. ----- http://cc.oulu.fi/~rantalai/maemo5/python27-setuptools/ So there are python-pkg-resources_0.6.24-1-maemo1_all.deb and python-setuptools_0.6.24-1-maemo1_all.deb (from Ubuntu) made against optified python2.7. Install python2.7 and then these both. Use Code:
sudo gainroot |
Re: [Announcement] Python2.7 for Maemo5
Quote:
|
Re: [Announcement] Python2.7 for Maemo5
I can't see the package in FAM. Any suggestions?
|
Re: [Announcement] Python2.7 for Maemo5
Quote:
|
Re: [Announcement] Python2.7 for Maemo5
Quote:
|
Re: [Announcement] Python2.7 for Maemo5
Can anyone create pyside for python2.7?
|
Re: [Announcement] Python2.7 for Maemo5
Quote:
+1 |
Re: [Announcement] Python2.7 for Maemo5
PyQT would also be appreciated. This would allow me to finally run Anki 2 -- the new version of the main program I use my N900 for. I tried at length to get qmake working on my device so I could compile it myself, but it always complained:
Code:
/usr/bin/ld: cannot find -lQtCore |
Re: [Announcement] Python2.7 for Maemo5
Quote:
/edit: do you have libqt4-dev installed? |
Re: [Announcement] Python2.7 for Maemo5
Hi,
First, good to see that there's some effort for porting Python 2.7, thanks a lot to all who are working on it! I have installed the version 2.7.3~rc2-2.1-maemo4, and facing some problem with the ctypes module, which is required in many applications (eg Twisted). Even a simple "import ctypes" crashes with "Aborted" message. I have not tried to debug it, just reporting. Can someone else try and validate this is a genuine problem? |
Re: [Announcement] Python2.7 for Maemo5
Did someone try "import ctypes" in a python 2.7 console ?
it gives this wonderful result: Aborted I traced this problem when trying to make weboob (WEB Outside Of Browsers) works on my N900, and it seems that any weboob backend using PIL, and more specifically ctypes, gives the above result. I don't have the required skills to go futher in my investigation: does someone manage to understand why this could happen, and possibly propose a solution ? thanks EDIT: sorry I did not read the aprilmay post above, so obviously this has been reported several month ago |
Re: [Announcement] Python2.7 for Maemo5
I found this page "Cross compiling python for embedded linux" with a patch fixing specifically ctypes for python 2.7.
Maybe, AapoRantalainen could try to make a new release with this fix if it was not already applied in the currently available package, or even use the other patches to compile python 3.x |
Re: [Announcement] Python2.7 for Maemo5
noob question, plz answer
what is advantage of version 2.7? |
Re: [Announcement] Python2.7 for Maemo5
none if you're only using python 2.5 compliant scripts.
If you want to install the latest version of your preferred python software, odds are high that python 2.5 support has been abandoned in favor of 2.7 |
Re: [Announcement] Python2.7 for Maemo5
I got python2.7 ctypes working with this: http://whocares.de/finally-a-fix-for...ort-of-ctypes/ (I have tried to fix the cause of this without success)
I modified python2.7 from extras-devel and pushed it back to the builder, but seems builder is not in good shape currently and I'm not getting success nor failure (there are several packages built but not moved to the repository which implies some kind of issues). Here is locally built debs for early adopters: http://www.cs.helsinki.fi/u/rantalai/maemo5/python2.7/ |
Re: [Announcement] Python2.7 for Maemo5
Couldn't find a bugtracker link so posting here
Code:
Core was generated by `/home/fmg/embedlite/mozilla-central/objdir-armel/_virtualenv/bin/python ./confi'. Code:
[sbox-FREMANTLE_ARMEL_GCC472: ~/embedlite/mozilla-central/objdir-armel] > dpkg -l | grep python |
Re: [Announcement] Python2.7 for Maemo5
Quote:
Do you mind to put that in the repos? Increasing the version ofc, as it is the same as the latest in extras-devel :) |
Re: [Announcement] Python2.7 for Maemo5
Quote:
I should use bigger version number for fixed version (and not same than non-fixed version). |
Re: [Announcement] Python2.7 for Maemo5
Quote:
However, could you reupload python2.7_2.7.3~rc2-2.1-maemo5 (I guess this is the fixed version) to the builder again, I have the feeling your attempt coincide with some maintaining or reboot. Try first without increasing the version. EDIT: If it fails again, I'll look at it more closely EDIT2: And I'll appreciate if I receive reports for anything suspicious related to the autobuilder/package interface ;) EDIT3: don;t reupload to builder, there are some problems, will inform you when the builder is fixed |
Re: [Announcement] Python2.7 for Maemo5
Now I can see builder logs (you did something?)
armel build ok: 04-Aug-2013 21:17 i386 failed: 15-Aug-2013 18:07 (Reading from logs) During tests on arm qemu seg faults and then skips tests and success with packages. On i386 it runs tests and fails with "Name or service not known" during test_docxmlrpc (SimpleXMLRPCServer.py+SocketServer.py) which looks something that builder might block for reason. And actually it is not tests, but run_profile_task on Code:
profile-opt: |
Re: [Announcement] Python2.7 for Maemo5
Quote:
Could you upload python2.7 again, to see if it will work this time. |
Re: [Announcement] Python2.7 for Maemo5
@aapo - Definitely it is not autobuilder to blame, for some reason a python process got stuck. I killed it by hand, so the build will succeed, but I think you should check the build rules and disable whatever is not really needed. Like profiled build, tests, etc.
EDIT: Code:
Exception in thread Thread-268: |
Re: [Announcement] Python2.7 for Maemo5
Built success. Waiting package coming to the repository for testing.
Quote:
Code:
test_exceptions Quote:
|
Re: [Announcement] Python2.7 for Maemo5
Quote:
I guess your SB setup differs from autobuilder. Code:
ii scratchbox-core:i386 1.0.18 Scratchbox base system |
Re: [Announcement] Python2.7 for Maemo5
Builder got -maemo5 built (arm+i386) , but there were also stucked -maemo6, so it didn't push it to the repository.
I bumped version number and reuploaded, but seems i386 version is again exhausted, armel deps are already in results: https://garage.maemo.org/builder/fre...c2-2.1-maemo6/ |
Re: [Announcement] Python2.7 for Maemo5
Quote:
There seems to be another problem with python2.7, similar to the KP problem - newest version does not appear in the package interface as the latest version. I'll look at that problem as soon as I have some spare time. |
Re: [Announcement] Python2.7 for Maemo5
Quote:
Quote:
Is there risk that builder will remove it as a old version? Should I save it to the testing? |
All times are GMT. The time now is 13:42. |
vBulletin® Version 3.8.8