AttributeError: module 'asyncio' has no attribute 'coroutine'. Did you mean: 'coroutines'?

Bug #2020221 reported by Felipe Reyes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
charm-ovn-central
In Progress
Undecided
Felipe Reyes
23.03
In Progress
Undecided
Unassigned
charm-ovn-chassis
In Progress
Undecided
Felipe Reyes
23.03
New
Undecided
Unassigned
charm-ovn-dedicated-chassis
New
Undecided
Felipe Reyes
23.03
New
Undecided
Unassigned

Bug Description

[Impact]

tenacity 5.0.3 pinned by src/build.lock is incompatible with pyth 3.11 (Lunar).

https://opendev.org/x/charm-ovn-central/src/commit/54adc0253c794547c17fb1e2b2fbb4e1c624edf5/src/build.lock#L237

```
unit-ovn-central-0: 19:08:06 WARNING unit.ovn-central/0.install Traceback (most recent call last):
unit-ovn-central-0: 19:08:06 WARNING unit.ovn-central/0.install File "/var/lib/juju/agents/unit-ovn-central-0/charm/hooks/install", line 8, in <module>
unit-ovn-central-0: 19:08:06 WARNING unit.ovn-central/0.install basic.bootstrap_charm_deps()
unit-ovn-central-0: 19:08:06 WARNING unit.ovn-central/0.install File "/var/lib/juju/agents/unit-ovn-central-0/charm/lib/charms/layer/basic.py", line 123, in bootstrap_charm_deps
unit-ovn-central-0: 19:08:06 WARNING unit.ovn-central/0.install activate_venv()
unit-ovn-central-0: 19:08:06 WARNING unit.ovn-central/0.install File "/var/lib/juju/agents/unit-ovn-central-0/charm/lib/charms/layer/basic.py", line 421, in activate_venv
unit-ovn-central-0: 19:08:06 WARNING unit.ovn-central/0.install layer.import_layer_libs()
unit-ovn-central-0: 19:08:06 WARNING unit.ovn-central/0.install File "/var/lib/juju/agents/unit-ovn-central-0/charm/lib/charms/layer/__init__.py", line 24, in import_layer_libs
unit-ovn-central-0: 19:08:06 WARNING unit.ovn-central/0.install import_module('charms.layer.{}'.format(module_name))
unit-ovn-central-0: 19:08:06 WARNING unit.ovn-central/0.install File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
unit-ovn-central-0: 19:08:06 WARNING unit.ovn-central/0.install return _bootstrap._gcd_import(name[level:], package, level)
unit-ovn-central-0: 19:08:06 WARNING unit.ovn-central/0.install ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unit-ovn-central-0: 19:08:06 WARNING unit.ovn-central/0.install File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
unit-ovn-central-0: 19:08:06 WARNING unit.ovn-central/0.install File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
unit-ovn-central-0: 19:08:06 WARNING unit.ovn-central/0.install File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
unit-ovn-central-0: 19:08:06 WARNING unit.ovn-central/0.install File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
unit-ovn-central-0: 19:08:06 WARNING unit.ovn-central/0.install File "<frozen importlib._bootstrap_external>", line 940, in exec_module
unit-ovn-central-0: 19:08:06 WARNING unit.ovn-central/0.install File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
unit-ovn-central-0: 19:08:06 WARNING unit.ovn-central/0.install File "/var/lib/juju/agents/unit-ovn-central-0/charm/lib/charms/layer/snap.py", line 20, in <module>
unit-ovn-central-0: 19:08:06 WARNING unit.ovn-central/0.install import tenacity
unit-ovn-central-0: 19:08:06 WARNING unit.ovn-central/0.install File "/var/lib/juju/agents/unit-ovn-central-0/.venv/lib/python3.11/site-packages/tenacity/__init__.py", line 450, in <module>
unit-ovn-central-0: 19:08:06 WARNING unit.ovn-central/0.install from tenacity._asyncio import AsyncRetrying
unit-ovn-central-0: 19:08:06 WARNING unit.ovn-central/0.install File "/var/lib/juju/agents/unit-ovn-central-0/.venv/lib/python3.11/site-packages/tenacity/_asyncio.py", line 28, in <module>
unit-ovn-central-0: 19:08:06 WARNING unit.ovn-central/0.install class AsyncRetrying(BaseRetrying):
unit-ovn-central-0: 19:08:06 WARNING unit.ovn-central/0.install File "/var/lib/juju/agents/unit-ovn-central-0/.venv/lib/python3.11/site-packages/tenacity/_asyncio.py", line 36, in AsyncRetrying
unit-ovn-central-0: 19:08:06 WARNING unit.ovn-central/0.install @asyncio.coroutine
unit-ovn-central-0: 19:08:06 WARNING unit.ovn-central/0.install ^^^^^^^^^^^^^^^^^
unit-ovn-central-0: 19:08:06 WARNING unit.ovn-central/0.install AttributeError: module 'asyncio' has no attribute 'coroutine'. Did you mean: 'coroutines'?
unit-ovn-central-0: 19:08:06 ERROR juju.worker.uniter.operation hook "install" (via explicit, bespoke hook script) failed: exit status 1
unit-ovn-central-0: 19:08:06 INFO juju.worker.uniter awaiting error resolution for "install" hook

```

Felipe Reyes (freyes)
Changed in charm-ovn-central:
assignee: nobody → Felipe Reyes (freyes)
Revision history for this message
Felipe Reyes (freyes) wrote :

Part of the build log introducing 'tenacity>=8.2.0' in src/wheelhouse.txt

```
:: charmtools.build.tactics: # tenacity>=8.2.0 # http://pad.lv/2020221 # overridden by lockfile-wheelhouse
:: charmtools.build.tactics:
:: charmtools.build.tactics: # pin zipp to a version that does not require setuptools>=42
:: charmtools.build.tactics: # zipp<=1.2.0 # overridden by lockfile-wheelhouse
:: charmtools.build.tactics:
:: charmtools.build.tactics: # git+https://github.com/openstack/charms.openstack.git@stable/antelope#egg=charms.openstack # overridden by lockfile-wheelhouse
:: charmtools.build.tactics:
:: charmtools.build.tactics: # git+https://github.com/juju/charm-helpers.git@stable/antelope#egg=charmhelpers # overridden by lockfile-wheelhouse
:: charmtools.build.tactics:
:: charmtools.build.tactics: tomli==2.0.1
:: charmtools.build.tactics: netifaces==0.11.0
:: charmtools.build.tactics: dnspython==2.3.0
:: charmtools.build.tactics: MarkupSafe==2.1.2
:: charmtools.build.tactics: pip==22.0.4
:: charmtools.build.tactics: git+https://github.com/openstack/charms.openstack.git@7a589883545284e0a6303c7977402afb38e99d46#egg=charms.openstack
:: charmtools.build.tactics: PyYAML==6.0
:: charmtools.build.tactics: packaging==23.1
:: charmtools.build.tactics: pbr==5.11.1
:: charmtools.build.tactics: poetry_core==1.5.2
:: charmtools.build.tactics: wheel==0.40.0
:: charmtools.build.tactics: psutil==5.9.5
:: charmtools.build.tactics: netaddr==0.7.19
:: charmtools.build.tactics: setuptools==62.1.0
:: charmtools.build.tactics: git+https://github.com/juju/charm-helpers.git@b9444c20fdf3dc938790ed208cd1053b60055590#egg=charmhelpers
:: charmtools.build.tactics: setuptools_scm==6.4.2
:: charmtools.build.tactics: charms.reactive==1.5.2
:: charmtools.build.tactics: Cython==0.29.34
:: charmtools.build.tactics: Jinja2==3.1.2
:: charmtools.build.tactics: zipp==1.2.0
:: charmtools.build.tactics: pyaml==21.10.1
:: charmtools.build.tactics: tenacity==8.2.2
:: charmtools.build.tactics: flit_core==3.8.0
:: charmtools.build.tactics: six==1.16.0
```

Changed in charm-ovn-central:
status: New → In Progress
Felipe Reyes (freyes)
Changed in charm-ovn-chassis:
assignee: nobody → Felipe Reyes (freyes)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-ovn-chassis (stable/23.03)

Fix proposed to branch: stable/23.03
Review: https://review.opendev.org/c/x/charm-ovn-chassis/+/883705

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-ovn-chassis (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/x/charm-ovn-chassis/+/883747

Changed in charm-ovn-chassis:
status: New → In Progress
Felipe Reyes (freyes)
Changed in charm-ovn-dedicated-chassis:
assignee: nobody → Felipe Reyes (freyes)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on charm-ovn-central (master)

Change abandoned by "Felipe Reyes <email address hidden>" on branch: master
Review: https://review.opendev.org/c/x/charm-ovn-central/+/883702
Reason: https://code.launchpad.net/~corey.bryant/layer-snap/+git/layer-snap/+merge/449280

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.