Open
Description
Overview
This details the troubleshooting process for setting up Pronterface (part of Printrun) on Ubuntu 24.04 (Noble). The primary issue was missing dependencies and wxPython import errors, particularly related to libtiff.so.5
. Hopefully this can help someone else facing similar issues.
Problem Summary
- System: Ubuntu 24.04 (Noble)
- Python Version: 3.9
- Virtual Environment: Python 3.9 virtual environment (venv39)
- Issue: Pronterface failed to run due to missing wxPython and system dependencies.
Error Messages
- wxPython Import Error:
wxPython >= 4 is not installed. This program requires wxPython >=4 to run.
- Missing libtiff.so.5:
ImportError: libtiff.so.5: cannot open shared object file: No such file or directory
Troubleshooting Process
Step 1: Install wxPython
pip install wxpython
Result:
Requirement already satisfied: wxPython==4.2.1
Despite the successful installation, Pronterface continued to report that wxPython was not installed.
Step 2: Check wxPython Import Directly
python -c "import wx; print(wx.__version__)"
Error:
ImportError: libtiff.so.5: cannot open shared object file: No such file or directory
Step 3: Identify Missing Dependencies
ldconfig -p | grep libtiff
Output:
libtiff.so.6 (libc6,x86-64) => /lib/x86_64-linux-gnu/libtiff.so.6
Problem: libtiff.so.5
was required, but libtiff.so.6
was installed.
Step 4: Create Compatibility Symlink
sudo ln -s /lib/x86_64-linux-gnu/libtiff.so.6 /lib/x86_64-linux-gnu/libtiff.so.5
sudo ldconfig
Step 5: Verify Symlink
ls -l /lib/x86_64-linux-gnu/libtiff.so.5
Output:
libtiff.so.5 -> /lib/x86_64-linux-gnu/libtiff.so.6
Step 6: Test wxPython Import
python -c "import wx; print(wx.__version__)"
Result:
4.2.1
Step 7: Run Pronterface
python pronterface.py
Success: Pronterface launched successfully.
Conclusion
The root cause was a missing libtiff.so.5
dependency. Creating a symlink to the available libtiff.so.6
resolved the issue. This workaround should function until official libtiff5
packages are made available for Ubuntu 24.04.
Notes
- Ensure all necessary dependencies are installed:
sudo apt install libtiff-dev libsdl2-2.0-0 libjpeg-turbo8 libpng16-16
- If new errors arise, rerun:
ldconfig -p | grep <missing-library>
- Create symlinks carefully to avoid compatibility issues.