Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3.9 g command fails to shutdown #1084

Open
jordic opened this issue Jan 12, 2021 · 2 comments
Open

python3.9 g command fails to shutdown #1084

jordic opened this issue Jan 12, 2021 · 2 comments
Milestone

Comments

@jordic
Copy link
Contributor

jordic commented Jan 12, 2021

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'
@jordic jordic changed the title python3.7 g command fails to shutdown python3.9 g command fails to shutdown Jan 13, 2021
@masipcat
Copy link
Contributor

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

@masipcat masipcat added this to the G7 milestone Jan 13, 2021
@masipcat masipcat added the bug label Jan 13, 2021
@jordic
Copy link
Contributor Author

jordic commented Jan 13, 2021

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

@jordic jordic added the py39 label Jan 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants