Nuitka: Nuitka fails to compile package in current directory if mismatching cases are used in --module and/or --include-package

hi 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

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 20 (17 by maintainers)

Most upvoted 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.