FBS FREEZE SUBPROCESS ERROR
Welcome to fbs's issue tracker!
Have you already purchased a license for fbs, or are you planning to do so in the near future? If yes, feel free to ask anything you want here. Just delete this text and type away. I will be happy to help.
Otherwise, please understand that I am essentially helping you in my very limited spare time. While I'm happy to help, I have little patience for people who do not take the time to make it easy for me to help them.
Do you want to request an improvement to fbs? If yes, please delete this text and explain your suggestion clearly and why it would be useful for other fbs users.
Are you getting an error? Maybe fbs run works, but the app created with fbs freeze won't start? If yes, please follow the steps at https://build-system.fman.io/troubleshooting. Do not just skim over them. Read and follow them line by line. Hopefully this will fix your problem. If not, read on.
Is it a problem with one of your dependencies? If the dependency is PyQt or PySide and you are using a version supported by fbs (see the troubleshooting link above), then please jump to the next paragraph and let me know. Otherwise, if it's another library, try googling "PyInstaller [your dependency problem]". If that doesn't help, please go to PyInstaller's issue tracker and request a fix there. fbs uses PyInstaller for dependency management and so any dependency-related problems should be fixed there.
Okay. At this point, all easy solutions to your problem have been ruled out. Are you here to get help with your app? Then please go to StackOverflow.com and ask there. This issue tracker is only for changes / improvements to fbs. Please only continue to the next paragraph if your goal of writing here is to improve fbs, not just to get help with your app. I frequently close issues here that violate this point.
If you have read all of the above, and only then, please delete this text and let me know the following:
- Your operating system(s) KALI LINUX
- Your Python version Python 3.6
- Your fbs version 1.1.2
- Your PyInstaller version
- 4.2
- Your PyQt / PySide version PyQT5 5.12.2
- A copy of any error messages you are getting. Use three backticks
...before and after to format them.
Traceback (most recent call last):
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/bin/pyinstaller", line 8, in <module>
sys.exit(run())
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/lib/python3.6/site-packages/PyInstaller/__main__.py", line 124, in run
run_build(pyi_config, spec_file, **vars(args))
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/lib/python3.6/site-packages/PyInstaller/__main__.py", line 58, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/lib/python3.6/site-packages/PyInstaller/building/build_main.py", line 803, in main
build(specfile, distpath, workpath, clean_build)
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/lib/python3.6/site-packages/PyInstaller/building/build_main.py", line 725, in build
exec(code, spec_namespace)
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/target/PyInstaller/MyApp.spec", line 19, in <module>
noarchive=True)
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/lib/python3.6/site-packages/PyInstaller/building/build_main.py", line 277, in __init__
self.__postinit__()
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/lib/python3.6/site-packages/PyInstaller/building/datastruct.py", line 155, in __postinit__
self.assemble()
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/lib/python3.6/site-packages/PyInstaller/building/build_main.py", line 512, in assemble
self._check_python_library(self.binaries)
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/lib/python3.6/site-packages/PyInstaller/building/build_main.py", line 616, in _check_python_library
python_lib = bindepend.get_python_library_path()
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/lib/python3.6/site-packages/PyInstaller/depend/bindepend.py", line 928, in get_python_library_path
raise IOError(msg)
OSError: Python library not found: libpython3.6.so.1.0, libpython3.6m.so.1.0, libpython3.6m.so, libpython3.6mu.so.1.0, libpython3.6.so
This means your Python installation does not come with proper shared library files.
This usually happens due to missing development package, or unsuitable build parameters of the Python installation.
* On Debian/Ubuntu, you need to install Python development packages:
* apt-get install python3-dev
* apt-get install python-dev
* If you are building Python by yourself, rebuild with `--enable-shared` (or, `--enable-framework` on macOS).
Traceback (most recent call last):
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/bin/fbs", line 8, in <module>
sys.exit(_main())
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/lib/python3.6/site-packages/fbs/__main__.py", line 17, in _main
fbs.cmdline.main()
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/lib/python3.6/site-packages/fbs/cmdline.py", line 32, in main
fn(*args)
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/lib/python3.6/site-packages/fbs/builtin_commands/__init__.py", line 142, in freeze
freeze_linux(debug=debug)
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/lib/python3.6/site-packages/fbs/freeze/linux.py", line 8, in freeze_linux
run_pyinstaller(debug=debug)
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/lib/python3.6/site-packages/fbs/freeze/__init__.py", line 48, in run_pyinstaller
run(args, check=True)
File "/usr/local/lib/python3.6/subprocess.py", line 418, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['pyinstaller', '--name', 'MyApp', '--noupx', '--log-level', 'DEBUG', '--noconfirm', '--distpath', '/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/target', '--specpath', '/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/target/PyInstaller', '--workpath', '/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/target/PyInstaller', '--additional-hooks-dir', '/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/lib/python3.6/site-packages/fbs/freeze/hooks', '--debug', 'all', '--runtime-hook', '/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/target/PyInstaller/fbs_pyinstaller_hook.py', '/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/src/main/python/main.py']' returned non-zero exit status 1.
┌──(env)─(princeg㉿Princeg)-[~/Bureau/ProjetPythonQT/ProjetPyside]
└─$ 1 ⨯
┌──(env)─(princeg㉿Princeg)-[~/Bureau/ProjetPythonQT/ProjetPyside]
└─$ fbs freeze 130 ⨯
Traceback (most recent call last):
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/bin/pyinstaller", line 8, in <module>
sys.exit(run())
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/lib/python3.6/site-packages/PyInstaller/__main__.py", line 124, in run
run_build(pyi_config, spec_file, **vars(args))
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/lib/python3.6/site-packages/PyInstaller/__main__.py", line 58, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/lib/python3.6/site-packages/PyInstaller/building/build_main.py", line 803, in main
build(specfile, distpath, workpath, clean_build)
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/lib/python3.6/site-packages/PyInstaller/building/build_main.py", line 725, in build
exec(code, spec_namespace)
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/target/PyInstaller/MyApp.spec", line 19, in <module>
noarchive=False)
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/lib/python3.6/site-packages/PyInstaller/building/build_main.py", line 277, in __init__
self.__postinit__()
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/lib/python3.6/site-packages/PyInstaller/building/datastruct.py", line 155, in __postinit__
self.assemble()
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/lib/python3.6/site-packages/PyInstaller/building/build_main.py", line 512, in assemble
self._check_python_library(self.binaries)
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/lib/python3.6/site-packages/PyInstaller/building/build_main.py", line 616, in _check_python_library
python_lib = bindepend.get_python_library_path()
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/lib/python3.6/site-packages/PyInstaller/depend/bindepend.py", line 928, in get_python_library_path
raise IOError(msg)
OSError: Python library not found: libpython3.6m.so, libpython3.6.so.1.0, libpython3.6mu.so.1.0, libpython3.6m.so.1.0, libpython3.6.so
This means your Python installation does not come with proper shared library files.
This usually happens due to missing development package, or unsuitable build parameters of the Python installation.
* On Debian/Ubuntu, you need to install Python development packages:
* apt-get install python3-dev
* apt-get install python-dev
* If you are building Python by yourself, rebuild with `--enable-shared` (or, `--enable-framework` on macOS).
Traceback (most recent call last):
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/bin/fbs", line 8, in <module>
sys.exit(_main())
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/lib/python3.6/site-packages/fbs/__main__.py", line 17, in _main
fbs.cmdline.main()
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/lib/python3.6/site-packages/fbs/cmdline.py", line 32, in main
fn(*args)
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/lib/python3.6/site-packages/fbs/builtin_commands/__init__.py", line 142, in freeze
freeze_linux(debug=debug)
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/lib/python3.6/site-packages/fbs/freeze/linux.py", line 8, in freeze_linux
run_pyinstaller(debug=debug)
File "/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/lib/python3.6/site-packages/fbs/freeze/__init__.py", line 48, in run_pyinstaller
run(args, check=True)
File "/usr/local/lib/python3.6/subprocess.py", line 418, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['pyinstaller', '--name', 'MyApp', '--noupx', '--log-level', 'ERROR', '--noconfirm', '--distpath', '/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/target', '--specpath', '/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/target/PyInstaller', '--workpath', '/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/target/PyInstaller', '--additional-hooks-dir', '/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/lib/python3.6/site-packages/fbs/freeze/hooks', '--runtime-hook', '/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/target/PyInstaller/fbs_pyinstaller_hook.py', '/home/princeg/Bureau/ProjetPythonQT/ProjetPyside/src/main/python/main.py']' returned non-zero exit status 1.
- A (minimal!) script that reproduces the problem you are experiencing.
source /home/princeg/Bureau/ProjetPythonQT/ProjetPyside/env/bin/activate
cd /home/princeg/Bureau/ProjetPythonQT/ProjetPyside
fbs clean
fbs freeze
Please don't just paste the output of
pip freezehere. Also, I repeat, do not post your entire application's code. Create a minimal, self-contained script that reproduces the problem. It should not have any dependencies other than fbs, PyInstaller and PyQt or PySide. If you post too much code, then nobody will read it.
altgraph==0.17.2 fbs==1.1.2 future==0.18.2 importlib-metadata==4.8.3 macholib==1.16 pefile==2021.9.3 pyinstaller==4.10 pyinstaller-hooks-contrib==2022.0 PyQt5==5.12.2 PyQt5-sip==12.9.1 PyQt5-stubs==5.15.2.0 PySide2==5.15.2.1 shiboken2==5.15.2.1 typing-extensions==4.1.1 zipp==3.6.0