Go Back   maemo.org - Talk > OS / Platform > Maemo 5 / Fremantle
 
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
  #1  
Old 2010-08-24, 09:46
mikki-kun mikki-kun is offline
 
Join Date: Mar 2010
Location: Switzerland
Posts: 18
Thanks!: 55
Thanked 3 Times in 3 Posts
Send a message via ICQ to mikki-kun Send a message via MSN to mikki-kun
Default [SOLVED] Python problems

Hi there,

I have gotten after a reinstall of my system some weird behaviour with apps written in Python. When I try starting them I get the following error message:
Code:
user:/opt/stopwatch# ./stopwatch.py 
Traceback (most recent call last):
  File "./stopwatch.py", line 32, in <module>
    from pygame import mixer
  File "/usr/lib/python2.5/site-packages/pygame/__init__.py", line 254, in <module>
    try: import pygame.sndarray
  File "/usr/lib/python2.5/site-packages/pygame/sndarray.py", line 66, in <module>
    import pygame._numpysndarray as numpysnd
  File "/usr/lib/python2.5/site-packages/pygame/_numpysndarray.py", line 38, in <module>
    import numpy
  File "/usr/lib/python2.5/site-packages/numpy/__init__.py", line 132, in <module>
    import add_newdocs
  File "/usr/lib/python2.5/site-packages/numpy/add_newdocs.py", line 9, in <module>
    from lib import add_newdoc
  File "/usr/lib/python2.5/site-packages/numpy/lib/__init__.py", line 13, in <module>
    from polynomial import *
  File "/usr/lib/python2.5/site-packages/numpy/lib/polynomial.py", line 11, in <module>
    import numpy.core.numeric as NX
AttributeError: 'module' object has no attribute 'core'
To be honest, I haven't the faintest idea, what that could mean, I guess though some of the libraries are not anymore really working.
I tried an "apt-get --reinstall install python2.5" but after doing so same error message just pops up. I also just installed for the sake of maybe faulty code in stopwatch the vuvuzela app and there it looks like the same error message.

So I am a bit clueless...

Btw, here is the output of "dpkg - l | grep python" in case it is needed
Code:
root:~# dpkg -l | grep python
ii  hildon-desktop-python-loader                        0.1.0-1maemo3                     Hildon Desktop Python Plugin Loader
ii  python                                              2.5.2-3maemo4                     An interactive high-level object-oriented language (default version)
ii  python-beautifulsoup                                3.0.7-0maemo2                     error-tolerant HTML parser for Python
ii  python-cairo                                        1.4.12-1.2maemo2                  Python bindings for the Cairo vector graphics library
ii  python-central                                      0.6.11.1maemo2                    register and build utility for Python packages
ii  python-dbus                                         0.83.0-1maemo3                    simple interprocess messaging system (Python interface)
ii  python-gconf                                        2.26.1-1maemo1                    Python bindings for the GConf configuration database system
ii  python-gobject                                      2.16.1-1maemo2                    Python bindings for the GObject library
ii  python-gst0.10                                      0.10.14-2maemo5                   generic media-playing framework (Python bindings)
ii  python-gtk2                                         2.12.1-6maemo10                   Python bindings for the GTK+ widget set
ii  python-hildon                                       0.9.0-1maemo17                    Python bindings for Hildon Framework.
ii  python-hildondesktop                                0.1.0-1maemo3                     Python bindings for libhildondesktop
ii  python-minimal                                      2.5.2-3maemo4                     A minimal subset of the Python language (default version)
ii  python-notify                                       0.1.1-2maemo1                     Python bindings for libnotify
ii  python-numeric                                      24.2-9maemo4                      Numerical (matrix-oriented) Mathematics for Python
ii  python-numpy                                        1:1.4.0-1maemo2                   Numerical Python adds a fast array facility to the Python language
ii  python-osso                                         0.4-0maemo5                       Python bindings for libosso library
ii  python-pygame                                       1.9.1release-0maemo1              SDL bindings for games development in Python
ii  python-support                                      1.0.6maemo1                       automated rebuilding support for Python modules
ii  python2.5                                           2.5.4-1maemo6                     An interactive high-level object-oriented language (version 2.5)
ii  python2.5-minimal                                   2.5.4-1maemo6                     A minimal subset of the Python language (version 2.5)
ii  python2.5-qt4-common                                4.7.4-maemo0                      Shared files for PyQt4
ii  python2.5-qt4-core                                  4.7.4-maemo0                      Python bindings for Qt4 Core components.
ii  python2.5-qt4-dbus                                  4.7.4-maemo0                      Python bindings for Qt dbus mainloop.
ii  python2.5-qt4-gui                                   4.7.4-maemo0                      Python bindings for Qt4 Core components.
ii  python2.5-qt4-maemo5                                4.7.4-maemo0                      Python bindings for Qt4 Core components.
ii  python2.5-sip4                                      4.10.5-maemo0                     Python/C++ bindings generator runtime library.
I hope somebody can help me with that problem.

Cheers,

mikki-kun
__________________
Nothing is true, everything is permitted - Ezio Auditore da Firenze, Assassin's Creed 2

In the end, there will be only chaos! - Kratos, God of War 3

Last edited by mikki-kun; 2010-09-17 at 10:11. Reason: Solved problems
Reply With Quote
  #2  
Old 2010-09-11, 22:24
sake sake is offline
 
Join Date: Jun 2010
Location: Netherlands
Posts: 42
Thanks!: 104
Thanked 13 Times in 10 Posts
Default Re: Python problems

http://talk.maemo.org/showthread.php?p=809579
Reply With Quote
The Following User Says Thank You to sake For This Useful Post:
  #3  
Old 2010-09-17, 06:43
mikki-kun mikki-kun is offline
 
Join Date: Mar 2010
Location: Switzerland
Posts: 18
Thanks!: 55
Thanked 3 Times in 3 Posts
Send a message via ICQ to mikki-kun Send a message via MSN to mikki-kun
Default Re: Python problems

Thanks, that resolved the problem! I was already thinking I only had this problem, but luckily there was a solution

mikki-kun
__________________
Nothing is true, everything is permitted - Ezio Auditore da Firenze, Assassin's Creed 2

In the end, there will be only chaos! - Kratos, God of War 3
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 20:24.