Nuitka failed to detect DLLs that come from PATH elements with non-unicode characters
See original GitHub issue- building
nuitka --standalone --show-memory --show-progress --mingw64 --include-qt-plugins=sensible,styles --enable-plugin=pyside6 --output-dir=dist main.py
-
environment os: win 10 x64 pip list: (sdpmsc) PS D:\code\sdpmsc> pip list Package Version certifi 2022.5.18.1 charset-normalizer 2.0.12 idna 3.3 Nuitka 0.8.3 ordered-set 4.1.0 pip 22.0.4 PyMySQL 1.0.2 PySide6 6.2.4 requests 2.27.1 setuptools 62.1.0 shiboken6 6.2.4 urllib3 1.26.9 wheel 0.37.1 WARNING: You are using pip version 22.0.4; however, version 22.1.2 is available. You should consider upgrading via the ‘D:\virtual\sdpmsc\Scripts\python.exe -m pip install --upgrade pip’ command. (sdpmsc) PS D:\code\sdpmsc>
-
error
Nuitka:INFO: Running data composer tool for optimal constant value handling.
Nuitka:INFO: Running C compilation via Scons.
Nuitka-Scons:INFO: Backend C compiler: gcc (gcc).
Nuitka-Scons:INFO: Backend linking program (no progress information available).
Nuitka-Scons:INFO: Running 'C:\\Users\\wx\\AppData\\Local\\Nuitka\\Nuitka\\gcc\\x86_64\\11.2.0-14.0.0-9.0.0-msvcrt-r7\\mingw64\\bin\\gcc.exe -o "D:\\code\\sdpmsc\\dist\\main.dist\\main.exe" -fuse-linker-plugin -flto=16 -fpartial-inlining -freorder-functions -Wl,--exclude-all-symbols -Wl,--out-implib,.\\import.lib -municode -O3 -s -Wl,--enable-auto-import -Wl,--stack,9863168 -static-libgcc @".\\@link_input.txt" -LC:\\developer\\Python310\\libs -lm -lpython310' took 162.04 seconds
Nuitka-Scons:INFO: Compiled 285 C files using ccache.
Nuitka-Scons:INFO: Cached C files (using ccache) with result 'cache hit': 142
Nuitka-Plugins:INFO: data-files: Included data file 'certifi\cacert.pem' due to package data for 'certifi'.
Nuitka-Plugins:INFO: pyside6: Including Qt plugins 'iconengines,imageformats,platforms,styles' below 'PySide6\qt-plugins'.
Nuitka:INFO: Analysing dependencies of 'dist\main.dist\main.exe'.
Detecting used DLLs: 0%| | 0/38Traceback (most recent call last):
File "D:\virtual\sdpmsc\lib\site-packages\nuitka\__main__.py", line 137, in <module>
main()
File "D:\virtual\sdpmsc\lib\site-packages\nuitka\__main__.py", line 123, in main
MainControl.main()
File "D:\virtual\sdpmsc\lib\site-packages\nuitka\MainControl.py", line 978, in main
copyDllsUsed(
File "D:\virtual\sdpmsc\lib\site-packages\nuitka\freezer\Standalone.py", line 1367, in copyDllsUsed
used_dlls = _detectUsedDLLs(
File "D:\virtual\sdpmsc\lib\site-packages\nuitka\freezer\Standalone.py", line 1137, in _detectUsedDLLs
worker_pool.submit(
File "D:\virtual\sdpmsc\lib\site-packages\nuitka\utils\ThreadedExecutor.py", line 45, in submit
self.results.append(function(*args))
File "D:\virtual\sdpmsc\lib\site-packages\nuitka\freezer\Standalone.py", line 1091, in addDLLInfo
used_dlls = _detectBinaryDLLs(
File "D:\virtual\sdpmsc\lib\site-packages\nuitka\freezer\Standalone.py", line 1057, in _detectBinaryDLLs
return detectBinaryPathDLLsWindowsDependencyWalker(
File "D:\virtual\sdpmsc\lib\site-packages\nuitka\freezer\Standalone.py", line 1020, in detectBinaryPathDLLsWindowsDependencyWalker
result = detectDLLsWithDependencyWalker(binary_filename, scan_dirs)
File "D:\virtual\sdpmsc\lib\site-packages\nuitka\freezer\DependsExe.py", line 185, in detectDLLsWithDependencyWalker
result = parseDependsExeOutput(output_filename)
File "D:\virtual\sdpmsc\lib\site-packages\nuitka\freezer\DependsExe.py", line 129, in parseDependsExeOutput
return _parseDependsExeOutput2(getFileContentByLine(filename, encoding="latin1"))
File "D:\virtual\sdpmsc\lib\site-packages\nuitka\freezer\DependsExe.py", line 121, in _parseDependsExeOutput2
assert os.path.isfile(dll_filename), (dll_filename, line)
AssertionError: ('c:\\progra~2\\tencent\\\x04\x04\x04\x04we~1\\dll\\ws2_32.dll', ' [ 6] c:\\progra~2\\tencent\\\x04\x04\x04\x04we~1\\dll\\WS2_32.DLL')
Issue Analytics
- State:
- Created a year ago
- Comments:9 (5 by maintainers)
Top GitHub Comments
This is part of the stable release 1.1 that I just made.