Issue with Trio and Nuitka
See original GitHub issueNuitka appears to be incompatible with the latest version of Trio. As far as I can tell, this is unrelated to #410. This happens with all Trio programs I’ve tested, the simplest being:
import trio
async def main():
print("Hello")
trio.run(main)
With Nuitka, this produces the traceback
File "C:\Users\sethw\PycharmProjects\PyCom\venv\lib\site-packages\trio\_core\_run.py", line 1769, in run
run_impl(runner, async_fn, args)
File "C:\Users\sethw\PycharmProjects\PyCom\venv\lib\site-packages\trio\_core\_run.py", line 1803, in run_impl
runner.init_task = runner.spawn_impl(
File "C:\Users\sethw\PycharmProjects\PyCom\venv\lib\site-packages\trio\_core\_run.py", line 1351, in spawn_impl
coro.cr_frame.f_locals.setdefault(
AttributeError: 'NoneType' object has no attribute 'f_locals'
I’ve tested this on Python 3.7 & 3.8 and the latest Nuitka from PyPi & an install from the factory
branch, all of which produce the same traceback
Issue Analytics
- State:
- Created 4 years ago
- Comments:16 (10 by maintainers)
Top Results From Across the Web
Nuitka-chat/community - Gitter
Option 1 is to make these all a executable, but the issue is that they will have similar ... Hi All. I'm trying...
Read more >Nuitka: Compiling Python for redistribution - InfoWorld
The Nuitka project compiles a Python program to a single, ... How to avoid the dreaded circular import problem in Python (4:53).
Read more >【Nuitka】python打包单文件- 代码诠释的世界 - 博客园
PS C:\Users\Administrator> nuitka --help Usage: __main__.py [--module] [--run] [options] ... Use this in case of out of memory problems.
Read more >Qt for Python Release: 6.4 is finally here!
Please keep in mind this tool is experimental, and many issues will be found ... We include a simple wrapper for Nuitka, so...
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
I don’t have the time to focus on this right now unless somebody commercial needs it, this is not happening in the near future.
@kayhayen - I am not looking into this more closely.
The reason why this does not yet work is here:
Running this interpreted yields
Whereas in standalone we get:
This makes trio fail.