Nuitka fails to compile package in current directory if mismatching cases are used in --module and/or --include-package
See original GitHub issuehi guys, I tried to complie PyOpengl into .pyd. Errors came up as :
MainControl.main()
File "nuitka\MainControl.py", line 800, in main
filename = filename
File "nuitka\MainControl.py", line 123, in createNodeTree
warn = False
File "nuitka\importing\Importing.py", line 281, in findModule
module_name = module_name,
File "nuitka\importing\Importing.py", line 514, in _findModule
module_search_cache[key] = _findModule2(module_name)
File "nuitka\importing\Importing.py", line 544, in _findModule2
package_name = package_part
File "nuitka\importing\Importing.py", line 470, in _findModuleInPat
search_path = search_path
File "nuitka\importing\Importing.py", line 387, in _findModuleInPat
for fullname, _filename in listDir(candidate[0]):
File "nuitka\utils\FileOperations.py", line 78, in listDir
os.listdir(path)
WindowsError: [Error 3] The system cannot find the path specified: ''
So I tried to get more detail to find out which import failed the complier, so I run nuitka with --verbose under path “C:\python27-x64\Lib\site-packages\OpenGL” :
python -m nuitka --module OpenGL --include-package=openGL --verbose
still, prompt get the same output. Google can’t find any help informations.
Any idea will be most appreciate.
My test Environment: WIN7x64, python27x64, PyOpengl312cp27, nuitka 0.5.32.7
Issue Analytics
- State:
- Created 5 years ago
- Comments:20 (17 by maintainers)
Top Results From Across the Web
nuitka3(1) — nuitka — Debian unstable
When --follow-imports is used, attempt to descend into all imported modules. Defaults to off. --follow-import-to=MODULE/PACKAGE: Follow to that ...
Read more >【Nuitka】python打包单文件 - 代码诠释的世界 - 博客园
--include-plugin-directory=MODULE/PACKAGE Include the content of that directory, no matter if it's used by the given main program in a visible ...
Read more >Ubuntu Manpage: nuitka - the Python compiler
--recurse-plugins=MODULE/PACKAGE, --recurse-directory=MODULE/PACKAGE Recurse into that directory, no matter if it's used by the given main program in a ...
Read more >Font missing for PyQt5 compiled with Nuitka standalone
I use Lemon font in my script which is located at ... I tried --include-package-data pyqt5 however it seems the PyQt5's package data...
Read more >Nuitka-chat/community - Gitter
python -m nuitka --module nuitka --include-package=nuitka --show-progress --show-scons. that's what I used to compile. (from the site-packages folder).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The use of openGL vs OpenGL strikes me as odd. Can you try with matching case exactly as in filesystem?
The current directory ought to not matter. Nuitka is removing it from import path. You going to site packages dir could cause issues too. Try in homedir too. In fact I expect that to be the issue.
@kayhayen Thank you very much. Nuitka is amazing.