Latest python I2c module issue
-
Not sure if this is the place to raise this but the latest pythonI2c module appears to have an issue.
I get
python
Python 2.7.13 (default, Sep 18 2017, 20:32:03)
[GCC 5.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
from OmegaExpansion import onionI2C
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: Error relocating /usr/lib/python2.7/OmegaExpansion/onionI2C.so: i2c_writeBufferRaw: symbol not foundThe latest i2C packages appear to be broken
pyOmegaExpansion_0.5-1_mipsel_24kc.ipk
pyOnionI2C_0.5-1_mipsel_24kc.ipkHave the problem I described. I dropped back to
pyOmegaExpansion_0.4-1_mipsel_24kc.ipk
pyOnionI2C_0.4-1_mipsel_24kc.ipkAnd the problem went away.
Regards
Paul
-
Same problem here.
I tried downgrading with several methods but unsuccessful.
Package pyOmegaExpansion version 0.4-1 has no valid architecture, ignoring.
@Paul-Austen how did you downgrade if I may ask?http://repo.onion.io/omega/packages/pyOmegaExpansion_0.4-1_ar71xx.ipk
http://repo.onion.io/omega/packages/pyOnionI2C_0.4-1_ar71xx.ipkPS: The low version of opkg itself allows for no opkg install package=version notation and if I use --force-downgrade opkg installs 0.5-1 regardless.
These tickets might be related/duplicates:
https://community.onion.io/topic/2438/python-import-error-on-pyonioni2c
https://community.onion.io/topic/2436/onioni2c-import-error
-
Initially I reset the Omega2 to factory settings using the following from a serial console
firstboot -y sync reboot
After setting up the wifi I then copied the following files to flash via scp
pyOmegaExpansion_0.4-1_mipsel_24kc.ipk
pyOnionI2C_0.4-1_mipsel_24kc.ipkand then ran
opkg install pyOmegaExpansion_0.4-1_mipsel_24kc.ipk
opkg install pyOnionI2C_0.4-1_mipsel_24kc.ipkThis did the trick.
However
opkg remove pyOmegaExpansion
opkg remove pyOnionI2CFollowed by
opkg install pyOmegaExpansion_0.4-1_mipsel_24kc.ipk
opkg install pyOnionI2C_0.4-1_mipsel_24kc.ipkshould do it.
I downloaded the two package files from
http://repo.onion.io/omega2/packages/packagesPaul
-
@Paul-Austen my mistake the download URL should be http://repo.onion.io/omega2/packages/onion/
-
@Paul-Austen said in Latest python I2c module issue:
from OmegaExpansion import onionI2C
Just tried the following minimal workaround
opkg remove pyOnionI2C
opkg install pyOnionI2C_0.4-1_mipsel_24kc.ipkand this gets rid of the import error
Paul
-
I see my mistake, I was getting the packages from the wrong repo (onion instead of onion2). Rookie mistake.
Now everything works - except fo course for both packages 0.5-1 version remains broken.Thank you very much!
I have put all steps together for future visitors
For onion omega2:
$ wget repo.onion.io/omega2/packages/onion/pyOnionI2C_0.4-1_mipsel_24kc.ipk $ wget repo.onion.io/omega2/packages/onion/pyOmegaExpansion_0.4-1_mipsel_24kc.ipk $ opkg list-installed | grep pyO pyOmegaExpansion - 0.5-1 pyOnionI2C - 0.5-1 $ opkg remove pyOnionI2C pyOmegaExpansion $ opkg install pyOmegaExpansion_0.4-1_mipsel_24kc.ipk Installing pyOmegaExpansion (0.4-1) to root... Configuring pyOmegaExpansion. $ opkg install pyOnionI2C_0.4-1_mipsel_24kc.ipk Installing pyOnionI2C (0.4-1) to root... Configuring pyOnionI2C. $ opkg list-installed | grep pyO pyOmegaExpansion - 0.4-1 pyOnionI2C - 0.4-1
-
Is it for Omega1 or Omega2
or it's for both?
-
@ccs-hello the problem can be reproduced on Omega2+ but I don't have an Omega1 so I am unable to make a statement for Omega1.