plone / guillotina

Python AsyncIO data API to manage billions of resources
https://guillotina.readthedocs.io/en/latest/
Other
187 stars 51 forks source link

python3.9 g command fails to shutdown #1084

Open jordic opened 3 years ago

jordic commented 3 years ago
Traceback (most recent call last):
  File "/home/jordi/projects/tracker/env/bin/g", line 8, in <module>
    sys.exit(command_runner())
  File "/home/jordi/projects/tracker/env/lib/python3.9/site-packages/guillotina/commands/__init__.py", line 337, in command_runner
    command.run_command()
  File "/home/jordi/projects/tracker/env/lib/python3.9/site-packages/guillotina/commands/__init__.py", line 175, in run_command
    run_func(app, settings)
  File "/home/jordi/projects/tracker/env/lib/python3.9/site-packages/guillotina/commands/__init__.py", line 190, in __run
    loop.run_until_complete(self.cleanup(app))
  File "/opt/python39/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/home/jordi/projects/tracker/env/lib/python3.9/site-packages/guillotina/commands/__init__.py", line 211, in cleanup
    for task in asyncio.Task.all_tasks():
AttributeError: type object '_asyncio.Task' has no attribute 'all_tasks'
masipcat commented 3 years ago

I think we want to add compatibility with Py 3.9 on G7, because we'll need to update a lot of libs (probably)

jordic commented 3 years ago

I created a new project with it, let's see how it goes.