toxygen-project / toxygen

Toxygen is pythonic Tox client
GNU General Public License v3.0
280 stars 46 forks source link

Installation on eoan aborts complaining about qt.conf #76

Closed monochromec closed 4 years ago

monochromec commented 4 years ago

Trying to build the package based on compiling.md in the docs directory results in

"Security-Alert: try to store file outside of dist-directory. Aborting. '/usr/lib/x86_64-linux-gnu/qt5/qt.conf'"

This is a stock installation of eoan with pyinstall installed locally with pip3.

I tracked this down to an issue in the generated build/main/Analysis-00.toc file which causes /usr/local/lib/python3.7/dist-packages/PyInstaller/building/api.py to issue this warning but this is where my pyinstall knowledge falls short.

More than happy to provide more information - just let me know.

IngvarX commented 4 years ago

Hello!

It seems to be PyInstaller bug. I'm not quite sure how it works but I suppose that during compilation it tries to use qt.conf file from incorrect directory. As a workaround I recommend to temporary rename /usr/lib/x86_64-linux-gnu/qt5/qt.conf file, compile toxygen and rename it back. Note that you should have all deps listed in install.md installed in your system in order to run created executable.

I was able to compile and run Toxygen with this hack:

image