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

Most upvoted comments

Thanks! It looks like most Linux distros support either i386 or x86-64 packages (TkinterWeb supplies both). Raspberry pi, though, instead uses the ARM 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 the i386 Tkhtml library, which is unsupported by P (I’m still not entirely sure why the error is No 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 between i386 and armv7l so that we can fix this problem.