-
Notifications
You must be signed in to change notification settings - Fork 193
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
python3.dll not found #4
Comments
Can we just print the error instead of halting?
|
Could it be that there's no |
Hm, sounds odd but possible. I'll try to check this and report back. |
Ok, I believe I found the root cause. This conda install works just fine with fbs: conda create -y -n fbs_py35 python=3.5 pyinstaller
activate fbs_py35
pip install PyQt5
pip install --no-cache-dir --force-reinstall -U fbs-0.0.6_SNAPSHOT-py3-none-any.whl
python -m fbs run
python -m fbs freeze
deactivate This, however, produces the error where conda create -y -n fbs_pyqt5_py35 python=3.5 pyinstaller pyqt
activate fbs_pyqt5_py35
pip install --no-cache-dir --force-reinstall -U fbs-0.0.6_SNAPSHOT-py3-none-any.whl
python -m fbs run
python -m fbs freeze
Traceback (most recent call last):
File "C:\Users\iruser\AppData\Local\conda\conda\envs\fbs_test\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Users\iruser\AppData\Local\conda\conda\envs\fbs_test\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\iruser\AppData\Local\conda\conda\envs\fbs_test\lib\site-packages\fbs\__main__.py", line 4, in <module>
main()
File "C:\Users\iruser\AppData\Local\conda\conda\envs\fbs_test\lib\site-packages\fbs\cmdline.py", line 17, in main
args.cmd()
File "C:\Users\iruser\AppData\Local\conda\conda\envs\fbs_test\lib\site-packages\fbs\builtin_commands.py", line 35, in freeze
freeze_windows()
File "C:\Users\iruser\AppData\Local\conda\conda\envs\fbs_test\lib\site-packages\fbs\freeze\windows.py", line 26, in freeze_windows
remove(path('${freeze_dir}/' + dll_name))
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\\Users\\iruser\\code\\repos\\fbs-tutorial\\target\\Tutorial\\python3.dll' The difference between the two scenarios is that I'm pip-installing PyQt5 (Qt5.9) in first scenario and in the second scenario I'm installing the conda-distribution of PyQt5 (Qt5.6). The conda-distribution is what's causing the issue. I'm closing this issue as there is clearly fbs incompatibility issues with the conda-forge distribution of PyQt5. I've found these so far:
|
Interesting findings. Then the difference between Anaconda and vanilla Python is that the former has |
No, that's not what I compared. I compared two Anaconda installations. One with PyQt5.9 from pypi (no errors), and one with PyQt5.6 from conda-forge (could not find Perhaps PyQt5 dictates which DLL files to be fetched by PyInstaller and these two different PyQt5 distributions does it in different ways. EDIT: Also, if you download the zip archive of vanilla Python, you'll see both the
Possible. Either way, pip-installing PyQt5.9 is the right way to do it! |
I try Anaconda with fbs after upgrading PyQt5.11 from PyQt5.6, and freeze is working but with huge size (over 500MB). So decide go back to vanilla Python3.6, cleaned the environment variables of Anaconda. And i got the same issue "python3.dll not found":
Maybe I should uninstall Anaconda and try again. |
update- I figure it out. fbs/fbs/freeze/windows.py
I type |
Happy to hear it. I want to improve support for Anaconda in an upcoming release. Many people are using it. |
Running
python -m fbs run
works fine, butpython -m fbs freeze
generates the following error:When I look inside of
fbs-tutorial\target\Tutorial
, there's nopython3.dll in there
. Only apython35.dll
.The text was updated successfully, but these errors were encountered: