ModuleNotFoundError: No module named 'onionGpio' Python3
-
Hello. I installed module onion Gpio for Python 3 in Omega-2.
root@Omega-D90D:~# opkg install python3 pyOnionGpio Package python3 (3.6.0-2) installed in root is up to date. Installing pyOnionGpio (0.2-1) to root... Downloading http://repo.onion.io/omega2/packages/onion/pyOnionGpio_0.2-1_mipsel_24kc.ipk Installing python-base (2.7.14-5) to root... Downloading http://downloads.lede-project.org/releases/17.01-SNAPSHOT/packages/mipsel_24kc/packages/python-base_2.7.14-5_mipsel_24kc.ipk Configuring python-base. Configuring pyOnionGpio.
I Imported the module 'onionGpio'
import onionGpio
But when you run the program, an error occurs.
ModuleNotFoundError: No module named 'onionGpio'
-
Same problem, for me the onion python modules support only python2...
-
Seems that in the meantime they created new libraries for python3 but the documentation is not updated...
https://onion.io/2bt-python3-modules/
-
@Daniele-Scasciafratte Have you found any way to use python gpio module with python3? Or we must use the virtual filesystem files?
-
If i'm right here is the answer.
Check what I wrote here:
https://community.onion.io/topic/3591/python3-modules-for-gpio-and-serial-port/2
-
Anyone ever get an answer to this?
-
-
Correction, the above does not work for me
-