Hallo, ich habe Probleme, Module ausserhalb einre ENV anzusprechen.Sie werden einfach nicht gefunden. bzw Submodule.
Konkret geht es um den Google Assistant der in einer ENV läuft.
Nun will ich WiringPi module hinzufügen. Das klappt aber in der ENV nicht.
Gibt es hierbei etwas zu beachten?
Module außerhalb einer ENV
Was ist denn eine ENV? Meinst du virtualenv? Und da wir mal wieder ueber dein Lieblingsmodul wiringpi reden - endlich auf die aktuelle version geupdatet? Und wenn ja, wie genau hast du das installiert? Und was probierst du, das dann nicht geht?
Gena das meine ich. Es ist nicht die offizielle WiringPi version sondern von Hardkernel für den Odroid xu4 https://github.com/hardkernel/wiringPi
Somit ist kein Update notwendig zumal ein einfaches Programm ja läuft. Nur wenn ich es in das Google Assistant Skript importieren will, bekomme ich eine Fehler.
Der Assistant soll laut Google in einer ENV laufen. Ich vermute dass da das Problem liegt.
Das Modul von WiringPI ist ein Wrapper für C++ Datei.
Diese Zeilen sind vom WiringPi für Odroid
https://wiki.odroid.com/odroid-xu4/appl ... o/wiringpi
Diese vom Google Assistant
https://developers.google.com/assistant ... all-sample
wie gesagt, jedes läuft für sich wie es soll. Nur bekomm ich die nicht zusammen lauffähig
Somit ist kein Update notwendig zumal ein einfaches Programm ja läuft. Nur wenn ich es in das Google Assistant Skript importieren will, bekomme ich eine Fehler.
Der Assistant soll laut Google in einer ENV laufen. Ich vermute dass da das Problem liegt.
Das Modul von WiringPI ist ein Wrapper für C++ Datei.
Diese Zeilen sind vom WiringPi für Odroid
https://wiki.odroid.com/odroid-xu4/appl ... o/wiringpi
Diese vom Google Assistant
https://developers.google.com/assistant ... all-sample
wie gesagt, jedes läuft für sich wie es soll. Nur bekomm ich die nicht zusammen lauffähig
Hatte ich, leider ohne Ergebnis bzw wird das _wiringpi.py nicht gefunden.
/home/odroid/git/assitant-sdk-python
/home/odroid/git/wiringPi
/home/odroid/git/WiringPi2-Python
Pfade sind folgende:Traceback (most recent call last):
File "/home/odroid/git/WiringPi2-Python/wiringpi.py", line 18, in swig_import_helper
fp, pathname, description = imp.find_module('_wiringpi', [dirname(__file__)])
File "/usr/lib/python3.5/imp.py", line 296, in find_module
raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named '_wiringpi'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "hotword.py", line 20, in <module>
import wiringpi as wpi
File "/home/odroid/git/WiringPi2-Python/wiringpi.py", line 28, in <module>
_wiringpi = swig_import_helper()
File "/home/odroid/git/WiringPi2-Python/wiringpi.py", line 20, in swig_import_helper
import _wiringpi
ImportError: No module named '_wiringpi'
/home/odroid/git/assitant-sdk-python
/home/odroid/git/wiringPi
/home/odroid/git/WiringPi2-Python