TkinterWeb: /32-bit/Tkhtml30.so: cannot open shared object file: No such file or directory
Trying to install on a raspberry pi zero running ‘Lite’ but with openbox and lightdm. This is with the latest Bullseye distribution.
I added some try - except code to find some issues and ran into this one. I see the file in the directory so it doesn’t appear to be that.
/home/pi/.local/lib/python3.9/site-packages/tkinterweb/tkhtml/Linux/32-bit/Tkhtml30.so": /home/pi/.local/lib/python3.9/site-packages/tkinterweb/tkhtml/Linux/32-bit/Tkhtml30.so: cannot open shared object file: No such file or directory
It took a bit of snooping but I also found another earlier issue. I had to install libopenjp2-7
. I was getting a non-descriptive import error.
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 18 (9 by maintainers)
Commits related to this issue
- Fix for #24 — committed to Andereoo/TkinterWeb by Andereoo 8 months ago
Thanks! It looks like most Linux distros support either
i386
orx86-64
packages (TkinterWeb supplies both). Raspberry pi, though, instead uses theARM
architecture (it’s more cost-efficient) and seems to have no support for most other Linux packages. When you run TkinterWeb, it checks the OS and finds that it is running a 32-bit OS, and so tries to load thei386
Tkhtml library, which is unsupported by P (I’m still not entirely sure why the error isNo such file or directory
when the file actually exists but instead is incompatible).I’m going to add the
armv7l
package and look for an efficient way to get TkinterWeb to discern the difference betweeni386
andarmv7l
so that we can fix this problem.