Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] unable to import smbus #8848

Closed
dga4130-renato opened this issue May 2, 2024 · 13 comments · Fixed by #8849
Closed

[BUG] unable to import smbus #8848

dga4130-renato opened this issue May 2, 2024 · 13 comments · Fixed by #8849

Comments

@dga4130-renato
Copy link

Rpi 4
libreelec 12

Argon Fan script not working after upgrading from LE11 to LE12.
debugging the argon script says:

unable to import smbus and fails the startup service.

Traceback (most recent call last):
File "argononed.py", line 4, in
import smbus

Fan starts and never stops.

Reverting to LE11 all working fine.

@dga4130-renato dga4130-renato changed the title [BUG] [BUG] unable to import smbus May 2, 2024
@antonlacon
Copy link
Contributor

Confirm the system-tools addon is installed and enabled on LE12.

@chewitt
Copy link
Member

chewitt commented May 3, 2024

I'm closing this ticket becuase LE does not provide/ship any Argon case-fan scripts in our images, so if there's a bug, it's the responsibiliy of the script author to investigate and resolve it, not ours. NB: ISTR there's a thread in the forum where someone is working on a proper Argon case add-on to support their features.

@chewitt chewitt closed this as completed May 3, 2024
@dga4130-renato
Copy link
Author

dga4130-renato commented May 3, 2024

It's the system-tools addon bug.
If you login ssh and call python up
Then import smbus you will see python loaded but smbus missing even if the smbus.so lib is there.
https://forum.libreelec.tv/thread/24000-python3-smbus-not-included-at-libreelec/
Maybe same bug

@dga4130-renato
Copy link
Author

I'm closing this ticket becuase LE does not provide/ship any Argon case-fan scripts in our images, so if there's a bug, it's the responsibiliy of the script author to investigate and resolve it, not ours. NB: ISTR there's a thread in the forum where someone is working on a proper Argon case add-on to support their features.

Hi, maybe I didn't explain well.
Can u read the further comment ?

@dga4130-renato
Copy link
Author

Confirm the system-tools addon is installed and enabled on LE12.

System-tools installed but smbus module not working

@chewitt chewitt reopened this May 3, 2024
@antonlacon
Copy link
Contributor

@heitbaum this looks related to work on #7602 If I add PYTHONPATH=/storage/.kodi/addons/virtual.system-tools/lib.private when calling python, it's able to import smbus.

@HiassofT
Copy link
Member

HiassofT commented May 3, 2024

ah, good catch, the python stuff shouldn't have gone to lib.private but remained in lib (libi2c can stay in lib.private, rpath of smbus.so needs to be adjusted to $ORIGIN/../lib.private)

@dga4130-renato
Copy link
Author

ah, good catch, the python stuff shouldn't have gone to lib.private but remained in lib (libi2c can stay in lib.private, rpath of smbus.so needs to be adjusted to $ORIGIN/../lib.private)

Should be a quick fix done in system-tools ?
If could help I can test it fast...

@heitbaum
Copy link
Contributor

heitbaum commented May 3, 2024

Just testing the fix

@dga4130-renato
Copy link
Author

Just testing the fix

Safe to install ? i mean if upgrade to le12 this fix will be present now ?

@antonlacon
Copy link
Contributor

Wait for tomorrow. Builders and mirrors need to get the changes.

@dga4130-renato
Copy link
Author

Installed le13 nightly where smbus should be fixed but seems the same problem as le12 release

Libreelec:~ # python
Python 3.11.9 (main, May 4 2024, 12:08:04) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import smbus
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'smbus'

@heitbaum
Copy link
Contributor

heitbaum commented May 5, 2024

Installed le13 nightly where smbus should be fixed but seems the same problem as le12 release

Libreelec:~ # python Python 3.11.9 (main, May 4 2024, 12:08:04) [GCC 13.2.0] on linux Type "help", "copyright", "credits" or "license" for more information.

import smbus
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'smbus'

Updated addons for LE13 have not been built yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants