Jump to content

Brickd auf GNUBLIN embedded GNU/Linux installieren


user90

Recommended Posts

root@gnublin:/# /etc/init.d/brickd start
Starting Brick Daemon: Traceback (most recent call last):
  File "/usr/share/brickd/brickd_linux.py", line 30, in <module>
    from usb_notifier import USBNotifier
  File "/usr/share/brickd/usb_notifier.py", line 25, in <module>
    from libusb import usb1
  File "/usr/share/brickd/libusb/usb1.py", line 52, in <module>
    import libusb1
  File "/usr/share/brickd/libusb/libusb1.py", line 32, in <module>
    from ctypes import Structure, \
ImportError: No module named ctypes

 

Das ist die Meldung. Eigentlich die gleiche.

 

Danke schon mal :)

 

LG user90

Link zu diesem Kommentar
Share on other sites

Hey, danke schon mal für die Antwort...

Bei der Eingabe kommt eine Fehlermeldung auf. Es ist wohl nicht vorhanden...

 

login as: root
root@192.168.1.155's password:
root@gnublin:~# python
Python 2.6.6 (r266:84292, May 20 2011, 22:44:14)
[GCC 4.5.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ctypes
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named ctypes
>>>

 

Des Weiteren habe ich gesehen, das Python 2 Mal vorkommt...

 

Einmal Python und Python 2.6.. Ist das richtig so?

Und wie kann man das Paket ctypes unter Debian installieren. Geladen und installiert habe ich es schon, wie ich muss ich das in Python aktivieren?

 

LG

Link zu diesem Kommentar
Share on other sites

Das einzige Debian Packet mit ctypes im Namen, das ich finden kann ist das hier

 

http://packages.debian.org/squeeze/python-ctypeslib

 

und das ist nicht ctypes selbst sondern ein Codegenerator basierend auf ctypes.

 

ctypes ist seit Python 2.5 in der Standard Library von Python enthalten. Hast du vielleicht kein Python 2.5, sondern etwas älteres? Testbar per

 

python --version

Link zu diesem Kommentar
Share on other sites

Vielen Dank für deine Antwort.

 

Bei mir ist Python 2.6.6 installiert:

 

root@gnublin:~# python --version
Python 2.6.6
root@gnublin:~# python
Python 2.6.6 (r266:84292, May 20 2011, 22:44:14) 
[GCC 4.5.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ctypes
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named ctypes
>>> 

 

Aber ctypes wird nicht gefunden...

 

Kann man das nach installieren?

 

LG

Link zu diesem Kommentar
Share on other sites

Ich habe Python noch mal neu installiert.

 

Nach der Installation hat sich die Fehlermeldung verändert:

 

root@gnublin:~# /etc/init.d/brickd start
Starting Brick Daemon: Traceback (most recent call last):
  File "/usr/share/brickd/brickd_linux.py", line 30, in <module>
    from usb_notifier import USBNotifier
  File "/usr/share/brickd/usb_notifier.py", line 25, in <module>
    from libusb import usb1
  File "/usr/share/brickd/libusb/usb1.py", line 52, in <module>
    import libusb1
  File "/usr/share/brickd/libusb/libusb1.py", line 32, in <module>
    from ctypes import Structure, \
  File "/usr/lib/python2.6/ctypes/__init__.py", line 10, in <module>
    from _ctypes import Union, Structure, Array
ImportError: /usr/lib/python2.6/lib-dynload/_ctypes.so: undefined symbol: PyUnicodeUCS4_FromEncodedObject

Link zu diesem Kommentar
Share on other sites

Jetzt hat dein Python was von ctypes gefunden, wo auch immer das jetzt weg kommt :)

 

Allerdings wurde diese _ctypes.so gegen ein anders konfiguriertes CPython gelinkt. Daher jetzt die Meldung über das fehlende PyUnicodeUCS4_FromEncodedObject Symbol in CPython selber: http://www.rosettacommons.org/node/1901

 

Mein eindruck ist, dass GNUBLIN ein minimalistisch konfiguriertes Python ausliefert, dem z.B. ctypes und UCS4 fehlen. Ich hab da jetzt auch keinen einfachen Lösungsvorschlag für außer Python neu aus Source zu kompilieren. Keine gute Lösung, wird aber wahrscheinlich funktionieren.

Link zu diesem Kommentar
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gast
Reply to this topic...

×   Du hast formatierten Text eingefügt.   Formatierung jetzt entfernen

  Only 75 emoji are allowed.

×   Dein Link wurde automatisch eingebettet.   Einbetten rückgängig machen und als Link darstellen

×   Dein vorheriger Inhalt wurde wiederhergestellt.   Clear editor

×   Du kannst Bilder nicht direkt einfügen. Lade Bilder hoch oder lade sie von einer URL.

×
×
  • Neu erstellen...