Jump to content
View in the app

A better way to browse. Learn more.

Tinkerunity

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Geschrieben

Hey, ich wollte die Software Brickd auf meinem Gnublin Board installieren.

 

Ich konnte die Anwendung soweit installieren, bis auf ein paar Fehler: (siehe bitte Anhang).

 

Wie könnte ich diese Fehler beheben?

 

Danke schon mal im voraus.

Bildschirmfoto_2012-06-17_um_14_53_54.png.78c441228b46ef3bcd359df946eb6a2f.png

Geschrieben
  • Autor

Vielen Dank für die Antwort.

 

ctypes habe ich jetzt installiert von der Debian Site. Aber es geht immer noch nicht.

 

LG

Geschrieben
  • Autor

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

Geschrieben
  • Autor

Hey, muss man noch irgendwelche Zusatzmodule installieren?

 

Oder irgendwelche Bibliotheken installieren?

 

LG

Geschrieben

Wenn du einfach in der Console Python aufmachst und dort "import ctypes" eintippst, was passiert dann? Geht das? Wenns nicht geht ist ctypes auch noch nicht richtig installiert, denke ich.

Geschrieben
  • Autor

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

Geschrieben

Blinder Tipp:

sudo apt-get install python-ctypes

Geschrieben
  • Autor

Danke für den Tipp.. Normalerweise mache ich das unter Debian so, aber unter GNUBLIN gibt es kein APT.

 

Ich habe das Paket ctypes von der Debian Seite geladen. Dann habe ich das Paket mit dem Tool alien verarbeitet und auf das Board kopiert.

 

Dann habe ich es tar entpackt und installiert.

 

Danke und LG

Geschrieben

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

Geschrieben
  • Autor

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

Geschrieben
  • Autor

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

Geschrieben

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.

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...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.