yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #73795
[Bug 1781617] [NEW] In Py3.7 async is a keyword
Public bug reported:
I'm working on packaging glance for rocky on ubuntu cosmic which is now
at py3.7. In py3.7 "async" is a keyword, which results in issues such
as:
Failed to import test module: glance.tests.unit.async.flows.plugins.test_inject_image_metadata
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/unittest2/loader.py", line 456, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/lib/python3/dist-packages/unittest2/loader.py", line 395, in _get_module_from_name
__import__(name)
File "/<<PKGBUILDDIR>>/glance/tests/unit/async/flows/plugins/test_inject_image_metadata.py", line 22
import glance.async.flows.plugins.inject_image_metadata as inject_metadata
^
SyntaxError: invalid syntax
Here are some more examples: https://paste.ubuntu.com/p/VHdZsKRkjC/
** Affects: glance
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1781617
Title:
In Py3.7 async is a keyword
Status in Glance:
New
Bug description:
I'm working on packaging glance for rocky on ubuntu cosmic which is
now at py3.7. In py3.7 "async" is a keyword, which results in issues
such as:
Failed to import test module: glance.tests.unit.async.flows.plugins.test_inject_image_metadata
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/unittest2/loader.py", line 456, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/lib/python3/dist-packages/unittest2/loader.py", line 395, in _get_module_from_name
__import__(name)
File "/<<PKGBUILDDIR>>/glance/tests/unit/async/flows/plugins/test_inject_image_metadata.py", line 22
import glance.async.flows.plugins.inject_image_metadata as inject_metadata
^
SyntaxError: invalid syntax
Here are some more examples: https://paste.ubuntu.com/p/VHdZsKRkjC/
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1781617/+subscriptions
Follow ups