Hello, I am using python 3.12.2 and pyinstaller 6.5.0 on linux kernel 6.6.23.
Before switching to python 3.12, was using version 3.9 and was bundling a tkinter app with pyinstaller (do not remember the version of that pyinstaller though). The app was building coorectly and when run, it ran without any problems. But I was not using virtual environments. Currently I am transitioning the app to use virtual environments to compile. Have created a venv in the project directory (.venv folder). I also set the include-system-site-packages pproperty in the pyenv.cfg file to true (I did forget to use the --system-site-packages when creating the virtual environment). That should not be a problem I believe. And I am activating this environment (with source /path/to/venv/bin/activate) before doing any builds. I build the app as usual, when I run the app, I get the "ModuleNotFoundError: No module named 'Xlib'" error. I have installed python3-tkinter and python3-xlib packages using the systems package manager. These went to the global site-packages. To test the tkinter and xlib packages are installed correctly, I ran tkinter and xlib based applications, and they ran without errors (though they are single file apps for testing purposes and do not use virtual environments and are not processed with pyinstaller). In the virtual environment I have installed the pyinstaller and using that pyinstaller am creating the executable. The reason for this was the pyinstaller version in the OS system packages had version 4.1. I wanted to use the latest pyinstaller, in case that was causing the trouble. I have added the Xlib as the hidden module (--hidden-module), and also have added the site-packages path of the virtual env and the global site-packages to the paths (with the --paths parameter). Any ideas on how to resolve the Xlib error. Regards -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/ebd7e40e-29b1-4656-a2f6-7e1b27ee69d7n%40googlegroups.com.
