Hallo Ihr,
da ich endlich nun alles was Remote und Zugriff auf dem Raspberry erfolgreich installiert habe, wollte ich mich nun an die über USB steuerbare Steckdosenleiste machen. Ich verwende die EnerGenie EG-PMS2 und habe mir das Package SIS-PM Control for Linux runtergeladen. Hier ist auch eine .py Datei dabei um gewisse Funktionen zu verwenden. Ich bin momentan am Versuch einfach den Status eines der 4 steuerbaren Steckdosen auszulesen und scheiter daran kläglich.
Anfangs hatte ich das Problem das er den Befehl import USB nicht kannte was mich dazu brachte die pyusb-lib zu installieren.
Nun bekomme ich ohne Probleme die Anzahl der USB-Devices ausgelesen. Allerdings wenn ich nun folgende Befehle ausführen will:
bekomme ich folgende Fehler und ich bin mit meinem Latein einfach am Ende:
Traceback (most recent call last):
File "/home/pi/Terra_control/Controll_of_heating/Controll_of_heating/Controll_of_heating.py", line 13, in <module>
print dev.get_outlet_enabled(2)
File "/home/pi/Terra_control/Controll_of_heating/Controll_of_heating/sispm.py", line 113, in get_outlet_enabled
return self._usb_command(3*(outlet+1), 0x03, True)
File "/home/pi/Terra_control/Controll_of_heating/Controll_of_heating/sispm.py", line 96, in _usb_command
buf=self.deviceHandle.controlMsg(reqtype,req,buf,(0x03<<8)|b1,0,500)
File "/usr/local/lib/python2.7/dist-packages/usb/legacy.py", line 205, in controlMsg
timeout = timeout)
File "/usr/local/lib/python2.7/dist-packages/usb/core.py", line 955, in ctrl_transfer
self._ctx.managed_open()
File "/usr/local/lib/python2.7/dist-packages/usb/core.py", line 105, in managed_open
self.handle = self.backend.open_device(self.dev)
File "/usr/local/lib/python2.7/dist-packages/usb/backend/libusb1.py", line 722, in open_device
return _DeviceHandle(dev)
File "/usr/local/lib/python2.7/dist-packages/usb/backend/libusb1.py", line 600, in __init__
_check(_lib.libusb_open(self.devid, byref(self.handle)))
File "/usr/local/lib/python2.7/dist-packages/usb/backend/libusb1.py", line 552, in _check
raise USBError(_strerror(ret), ret, _libusb_errno[ret])
File "/usr/local/lib/python2.7/dist-packages/usb/backend/libusb1.py", line 541, in _strerror
return _lib.libusb_strerror(errcode).decode('utf8')
File "/usr/lib/python2.7/ctypes/__init__.py", line 378, in __getattr__
func = self.__getitem__(name)
File "/usr/lib/python2.7/ctypes/__init__.py", line 383, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /lib/arm-linux-gnueabihf/libusb-1.0.so.0: undefined symbol: libusb_strerror
Alles anzeigen
Hat jemand von euch eine Ahnung was da momentan falsch läuft?