Active Topics

 


Reply
Thread Tools
Posts: 14 | Thanked: 13 times | Joined on Apr 2012
#21
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

Last edited by Doctor Colossus; 2012-10-29 at 02:15.
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#22
Originally Posted by Doctor Colossus View Post
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?
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here

Last edited by marmistrz; 2013-02-18 at 14:24.
 
Posts: 1 | Thanked: 1 time | Joined on Mar 2011
#23
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?
 

The Following User Says Thank You to aprilmay For This Useful Post:
Posts: 107 | Thanked: 173 times | Joined on Feb 2011
#24
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

Last edited by pierrem; 2013-06-04 at 14:04.
 
Posts: 107 | Thanked: 173 times | Joined on Feb 2011
#25
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
 

The Following 2 Users Say Thank You to pierrem For This Useful Post:
Posts: 863 | Thanked: 213 times | Joined on Feb 2012 @ Goa
#26
noob question, plz answer

what is advantage of version 2.7?
 
Posts: 107 | Thanked: 173 times | Joined on Feb 2011
#27
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
 

The Following 2 Users Say Thank You to pierrem For This Useful Post:
Posts: 839 | Thanked: 3,386 times | Joined on Mar 2009
#28
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/
 

The Following 6 Users Say Thank You to AapoRantalainen For This Useful Post:
Posts: 3,074 | Thanked: 12,960 times | Joined on Mar 2010 @ Sofia,Bulgaria
#29
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?
__________________
Never fear. I is here.

720p video support on N900,SmartReflex on N900,Keyboard and mouse support on N900
Nothing is impossible - Stable thumb2 on n900

Community SSU developer
kernel-power developer and maintainer

 

The Following 3 Users Say Thank You to freemangordon For This Useful Post:
Posts: 3,074 | Thanked: 12,960 times | Joined on Mar 2010 @ Sofia,Bulgaria
#30
Originally Posted by AapoRantalainen View Post
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
__________________
Never fear. I is here.

720p video support on N900,SmartReflex on N900,Keyboard and mouse support on N900
Nothing is impossible - Stable thumb2 on n900

Community SSU developer
kernel-power developer and maintainer

 

The Following User Says Thank You to freemangordon For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 17:52.