question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:20 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
kayhayencommented, Sep 7, 2018

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.

0reactions
baizi2kcommented, Sep 12, 2018

@kayhayen Thank you very much. Nuitka is amazing.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found