-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed
Description
when freezing the script
import winloop
import asyncio
async def hello():
print("Hello")
async def main():
tasks = []
for i in range(10):
tasks.append(hello())
await asyncio.gather(*tasks)
if __name__ == '__main__':
winloop.install()
asyncio.run(main())
with pyinstaller with the following option pyinstaller --onefile main.py and nuitka with nuitka --onefile --remove-output main.py
both the frozen pyinstaller exe and the compiled nuitka exe return errors along the lines of
Traceback (most recent call last):
File "main.py", line 1, in <module>
import winloop
File "PyInstaller\loader\pyimod02_importers.py", line 391, in exec_module
File "winloop\__init__.py", line 7, in <module>
File "winloop\\loop.pyx", line 30, in init winloop.loop
ImportError: cannot import name _noop
[9352] Failed to execute script 'main' due to unhandled exception!
``` for pyinstaller and ```
Traceback (most recent call last):
File "C:\Users\Divine\AppData\Local\Temp\ONEFIL~1\main.py", line 1, in <module>
import winloop
File "C:\Users\Divine\AppData\Local\Temp\ONEFIL~1\winloop\__init__.py", line 7, in <module winloop>
File "winloop\\loop.pyx", line 30, in init winloop.loop
ImportError: cannot import name _noop``` for nuitka, the same commands work to freeze uvloop into executable files in linux.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed