Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fbs freeze fails with Python 3.5 #38

Closed
isaurabhprakash opened this issue Feb 14, 2020 · 2 comments
Closed

fbs freeze fails with Python 3.5 #38

isaurabhprakash opened this issue Feb 14, 2020 · 2 comments

Comments

@isaurabhprakash
Copy link

I get the following message on fbs freeze :

Traceback (most recent call last):
File "c:\users\saurabh.prakash\appdata\local\programs\python\python35\lib\runpy.py", line 170, in run_module_as_main
"main", mod_spec)
File "c:\users\saurabh.prakash\appdata\local\programs\python\python35\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\saurabh.prakash\AppData\Local\Programs\Python\Python35\Scripts\pyinstaller.exe_main
.py", line 7, in
File "c:\users\saurabh.prakash\appdata\local\programs\python\python35\lib\site-packages\PyInstaller_main
.py", line 114, in run
run_build(pyi_config, spec_file, **vars(args))
File "c:\users\saurabh.prakash\appdata\local\programs\python\python35\lib\site-packages\PyInstaller_main_.py", line 65, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "c:\users\saurabh.prakash\appdata\local\programs\python\python35\lib\site-packages\PyInstaller\building\build_main.py", line 734, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "c:\users\saurabh.prakash\appdata\local\programs\python\python35\lib\site-packages\PyInstaller\building\build_main.py", line 681, in build
exec(code, spec_namespace)
File "D:\OneDrive - Tally Solutions Pvt. Ltd\desktop\Tracker\target\PyInstaller\Tracker.spec", line 17, in
noarchive=False)
File "c:\users\saurabh.prakash\appdata\local\programs\python\python35\lib\site-packages\PyInstaller\building\build_main.py", line 244, in init
self.postinit()
File "c:\users\saurabh.prakash\appdata\local\programs\python\python35\lib\site-packages\PyInstaller\building\datastruct.py", line 160, in postinit
self.assemble()
File "c:\users\saurabh.prakash\appdata\local\programs\python\python35\lib\site-packages\PyInstaller\building\build_main.py", line 343, in assemble
excludes=self.excludes, user_hook_dirs=self.hookspath)
File "c:\users\saurabh.prakash\appdata\local\programs\python\python35\lib\site-packages\PyInstaller\depend\analysis.py", line 734, in initialize_modgraph
user_hook_dirs=user_hook_dirs,
File "c:\users\saurabh.prakash\appdata\local\programs\python\python35\lib\site-packages\PyInstaller\depend\analysis.py", line 116, in init
self._reset(user_hook_dirs)
File "c:\users\saurabh.prakash\appdata\local\programs\python\python35\lib\site-packages\PyInstaller\depend\analysis.py", line 134, in _reset
self._hooks = self._cache_hooks("")
File "c:\users\saurabh.prakash\appdata\local\programs\python\python35\lib\site-packages\PyInstaller\depend\analysis.py", line 215, in _cache_hooks
return ModuleHookCache(self, hook_dirs)
File "c:\users\saurabh.prakash\appdata\local\programs\python\python35\lib\site-packages\PyInstaller\depend\imphook.py", line 100, in init
self._cache_hook_dirs(hook_dirs)
File "c:\users\saurabh.prakash\appdata\local\programs\python\python35\lib\site-packages\PyInstaller\depend\imphook.py", line 133, in cache_hook_dirs
hook_module_name_prefix=self.hook_module_name_prefix,
File "c:\users\saurabh.prakash\appdata\local\programs\python\python35\lib\site-packages\PyInstaller\depend\imphook.py", line 289, in init
assert self.hook_module_name not in HOOKS_MODULE_NAMES
AssertionError
Traceback (most recent call last):
File "C:\Users\saurabh.prakash\AppData\Local\Programs\Python\Python35\Scripts\fbs-script.py", line 9, in
load_entry_point('fbs==0.8.4', 'console_scripts', 'fbs')()
File "c:\users\saurabh.prakash\appdata\local\programs\python\python35\lib\site-packages\fbs_main
.py", line 17, in main
fbs.cmdline.main()
File "c:\users\saurabh.prakash\appdata\local\programs\python\python35\lib\site-packages\fbs\cmdline.py", line 32, in main
fn(*args)
File "c:\users\saurabh.prakash\appdata\local\programs\python\python35\lib\site-packages\fbs\builtin_commands_init
.py", line 120, in freeze
freeze_windows(debug=debug)
File "c:\users\saurabh.prakash\appdata\local\programs\python\python35\lib\site-packages\fbs\freeze\windows.py", line 18, in freeze_windows
run_pyinstaller(args, debug)
File "c:\users\saurabh.prakash\appdata\local\programs\python\python35\lib\site-packages\fbs\freeze_init
.py", line 47, in run_pyinstaller
run(args, check=True)
File "c:\users\saurabh.prakash\appdata\local\programs\python\python35\lib\subprocess.py", line 711, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['pyinstaller', '--name', 'Tracker', '--noupx', '--log-level', 'ERROR', '--noconfirm', '--windowed', '--icon', 'D:\OneDrive - Tally Solutions Pvt. Ltd\desktop\Tracker\src\main\icons\Icon.ico', '--distpath', 'D:\OneDrive - Tally Solutions Pvt. Ltd\desktop\Tracker\target', '--specpath', 'D:\OneDrive - Tally Solutions Pvt. Ltd\desktop\Tracker\target\PyInstaller', '--workpath', 'D:\OneDrive - Tally Solutions Pvt. Ltd\desktop\Tracker\target\PyInstaller', '--additional-hooks-dir', 'c:\users\saurabh.prakash\appdata\local\programs\python\python35\lib\site-packages\fbs\freeze\hooks', '--runtime-hook', 'D:\OneDrive - Tally Solutions Pvt. Ltd\desktop\Tracker\target\PyInstaller\fbs_pyinstaller_hook.py', 'D:\OneDrive - Tally Solutions Pvt. Ltd\desktop\Tracker\src\main\python\main.py']' returned non-zero exit status 1

@saprrow
Copy link

saprrow commented Feb 15, 2020

If the version of your PyInstaller in your venv is 3.5 or 3.6, downgrading PyInstaller to 3.4 may help.

@mherrmann
Copy link
Owner

Thank you for commenting @saprrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants