maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   [Announcement] Python2.7 for Maemo5 (https://talk.maemo.org/showthread.php?t=86900)

Doctor Colossus 2012-10-29 01:50

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

marmistrz 2012-10-29 16:09

Re: [Announcement] Python2.7 for Maemo5
 
Quote:

Originally Posted by Doctor Colossus (Post 1286879)
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

I guess you need to use scratchbox
/edit: do you have libqt4-dev installed?

aprilmay 2012-12-10 14:32

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?

pierrem 2013-05-29 21:02

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

pierrem 2013-06-04 14:03

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

seanmcken 2013-06-04 15:23

Re: [Announcement] Python2.7 for Maemo5
 
noob question, plz answer

what is advantage of version 2.7?

pierrem 2013-06-04 15:41

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

AapoRantalainen 2013-06-18 10:20

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/

freemangordon 2013-08-15 08:50

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'.
Program terminated with signal 6, Aborted.
#0  0x42299548 in raise () from /lib/libc.so.6
(gdb) bt
#0  0x42299548 in raise () from /lib/libc.so.6
#1  0x4229ab6c in abort () from /lib/libc.so.6
#2  0x4264edc8 in free (mem=0x423ba6b0)
    at /home/builder4/maemo-fremantle-armel-extras-devel/work/python2.7-2.7.3~rc2-2.1/Modules/_ctypes/libffi/src/dlmalloc.c:4272
#3  0x4264bb10 in selinux_enabled_check (start=0x0, length=4096, prot=3, flags=1111204368, fd=-1,
    offset=0)
    at /home/builder4/maemo-fremantle-armel-extras-devel/work/python2.7-2.7.3~rc2-2.1/Modules/_ctypes/libffi/src/closures.c:151
#4  dlmmap (start=0x0, length=4096, prot=3, flags=1111204368, fd=-1, offset=0)
    at /home/builder4/maemo-fremantle-armel-extras-devel/work/python2.7-2.7.3~rc2-2.1/Modules/_ctypes/libffi/src/closures.c:456
#5  0x4264c344 in sys_alloc (size=32, code=0x44fb98)
    at /home/builder4/maemo-fremantle-armel-extras-devel/work/python2.7-2.7.3~rc2-2.1/Modules/_ctypes/libffi/src/dlmalloc.c:3458
#6  dlmalloc (size=32, code=0x44fb98)
    at /home/builder4/maemo-fremantle-armel-extras-devel/work/python2.7-2.7.3~rc2-2.1/Modules/_ctypes/libffi/src/dlmalloc.c:4188
#7  ffi_closure_alloc (size=32, code=0x44fb98)
    at /home/builder4/maemo-fremantle-armel-extras-devel/work/python2.7-2.7.3~rc2-2.1/Modules/_ctypes/libffi/src/closures.c:538
#8  0x42643358 in _ctypes_alloc_callback (callable=0x464cf0, converters=0x423bc030, restype=0x54ef78,
    flags=257)
---Type <return> to continue, or q <return> to quit---
    at /home/builder4/maemo-fremantle-armel-extras-devel/work/python2.7-2.7.3~rc2-2.1/Modules/_ctypes/callbacks.c:426
#9  0x42641190 in PyCFuncPtr_new (type=0x56f748, args=0x471fd0, kwds=0x0)
    at /home/builder4/maemo-fremantle-armel-extras-devel/work/python2.7-2.7.3~rc2-2.1/Modules/_ctypes/_ctypes.c:3482
#10 0x000b3828 in ?? ()
#11 0x000b3828 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

This started to happen after the latest mozilla upstream merge I did, was fine before that.

Code:

[sbox-FREMANTLE_ARMEL_GCC472: ~/embedlite/mozilla-central/objdir-armel] > dpkg -l | grep python
ii  python2.7                                          2.7.3~rc2-2.1-maemo4                      Interactive high-level object-oriented langu
ii  python2.7-dbg                                      2.7.3~rc2-2.1-maemo4                      Debug Build of the Python Interpreter (versi
ii  python2.7-minimal                                  2.7.3~rc2-2.1-maemo4                      Minimal subset of the Python language (versi

Anything else you need me to provide?

freemangordon 2013-08-15 10:56

Re: [Announcement] Python2.7 for Maemo5
 
Quote:

Originally Posted by AapoRantalainen (Post 1352867)
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/

Hmm, with this version I see no more aborts, so scratch the above backtrace.

Do you mind to put that in the repos? Increasing the version ofc, as it is the same as the latest in extras-devel :)


All times are GMT. The time now is 09:39.

vBulletin® Version 3.8.8