Win10 vtkmodules "assert self.dll_directory is not None" from ZmqPlugin.py
See original GitHub issue-
Nuitka version, full Python version, flavor, OS, etc. as output by this command.
python -m nuitka --version (Note that I also tested against nuitka==1.1.7 and got the same exact error)
$ python -m nuitka --version
1.2rc7
Commercial: None
Python: 3.9.13 (main, Oct 13 2022, 21:23:06) [MSC v.1916 64 bit (AMD64)]
Flavor: Anaconda Python
Executable: C:\Users\user\.conda\envs\nutikaCQE\python.exe
OS: Windows
Arch: x86_64
WindowsRelease: 10
-
How did you install Nuitka and Python
pip install nuitka
into a conda env originally then using the factory package -
The specific PyPI names and versions
$ python -m pip freeze
Nuitka @ https://github.com/Nuitka/Nuitka/archive/factory.zip
pyzmq==24.0.1
- Also supply a Short, Self Contained, Correct, Example
#runZMQ.py
import zmq
Full traceback and command using the above:
$ python -m nuitka --show-progress --standalone --follow-imports --include-plugin-directory=C:\Users\user\.conda\envs\nutikaCQE\Lib\site-packages runZMQ.py
Nuitka-Options:INFO: Used command line options: --show-progress --standalone --follow-imports --include-plugin-directory=C:\Users\user\.conda\envs\nutikaCQE\Lib\site-packages runZMQ.py
Nuitka-Options:INFO: Following all imports is the default for standalone mode and need not be specified.
Nuitka:WARNING: Using very slow fallback for ordered sets, please install 'orderedset' PyPI package for best Python compile time
Nuitka:WARNING: performance.
Nuitka:INFO: Starting Python compilation with Nuitka '1.2rc7' on Python '3.9' commercial grade 'not installed'.
Nuitka-Inclusion:WARNING: Cannot follow import to module 'site-packages.casadi.tools.structure' because of 'SyntaxError'.
Nuitka-Plugins:INFO: pyzmq: Detected usage of 'delvewheel' version '1.0.1' in module 'site-packages.vtkmodules'.
Traceback (most recent call last):
File "C:\Users\user\.conda\envs\nutikaCQE\Lib\site-packages\nuitka\__main__.py", line 138, in <module>
main()
File "C:\Users\user\.conda\envs\nutikaCQE\Lib\site-packages\nuitka\__main__.py", line 124, in main
MainControl.main()
File "C:\Users\user\.conda\envs\nutikaCQE\Lib\site-packages\nuitka\MainControl.py", line 929, in main
main_module = _createNodeTree(filename=filename)
File "C:\Users\user\.conda\envs\nutikaCQE\Lib\site-packages\nuitka\MainControl.py", line 168, in _createNodeTree
Recursion.checkPluginPath(plugin_filename=plugin_filename, module_package=None)
File "C:\Users\user\.conda\envs\nutikaCQE\Lib\site-packages\nuitka\importing\Recursion.py", line 326, in checkPluginPath
checkPluginSinglePath(plugin_filename, module_package=module_package)
File "C:\Users\user\.conda\envs\nutikaCQE\Lib\site-packages\nuitka\importing\Recursion.py", line 303, in checkPluginSinglePath
_addIncludedModule(module)
File "C:\Users\user\.conda\envs\nutikaCQE\Lib\site-packages\nuitka\importing\Recursion.py", line 250, in _addIncludedModule
checkPluginSinglePath(sub_path, module_package=module.getFullName())
File "C:\Users\user\.conda\envs\nutikaCQE\Lib\site-packages\nuitka\importing\Recursion.py", line 294, in checkPluginSinglePath
module = recurseTo(
File "C:\Users\user\.conda\envs\nutikaCQE\Lib\site-packages\nuitka\importing\Recursion.py", line 73, in recurseTo
module, added_flag = _recurseTo(
File "C:\Users\user\.conda\envs\nutikaCQE\Lib\site-packages\nuitka\importing\Recursion.py", line 42, in _recurseTo
module, is_added = Building.buildModule(
File "C:\Users\user\.conda\envs\nutikaCQE\Lib\site-packages\nuitka\tree\Building.py", line 1283, in buildModule
) = readSourceCodeFromFilenameWithInformation(
File "C:\Users\user\.conda\envs\nutikaCQE\Lib\site-packages\nuitka\tree\SourceHandling.py", line 182, in readSourceCodeFromFilenameWithInformation
source_code_modified, contributing_plugins = Plugins.onModuleSourceCode(
File "C:\Users\user\.conda\envs\nutikaCQE\Lib\site-packages\nuitka\plugins\Plugins.py", line 783, in onModuleSourceCode
new_source_code = plugin.onModuleSourceCode(module_name, source_code)
File "C:\Users\user\.conda\envs\nutikaCQE\Lib\site-packages\nuitka\plugins\standard\ZmqPlugin.py", line 104, in onModuleSourceCode
assert self.dll_directory is not None
AssertionError
Issue Analytics
- State:
- Created a year ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
No results found
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
After including only 5500 of them, it works… so that is probably good. I guess the code is in flux there, but if it is a upcoming vtkmodules, it appears to be good that is now supported automatically already. Old vtkmodules apparently had no DLL code at all, or it was not really needed, not sure now, but there is no config to conflict with (plugin and yaml config for DLLs), so I assume it never worked on Windows, but I think it does, but this will need to be kept in mind, should this ever come up.
Thanks, this was helpful. Generally I want Nuitka to run where Python runs, disregarding how bad an installation it is, because those bugs sometimes highlight weaknesses in our code, that will also show in other more legal situations later or reveal more general problems.
Yes, now I got that file, but it wasn’t giving the error. But it seems it wants to include 6000+ DLLs now, something is awfully wrong there, but maybe on another day, this is pre-release software. The good news is I guess that the delvewheel code was working just fine, lets see if it runs. But whatever this is, seems absurd.