rally db create fails with ModuleNotFoundError: No module named 'fixtures'

Bug #2042910 reported by yatin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Rally
New
Undecided
Unassigned

Bug Description

Fails as below:-

$ rally db create
Traceback (most recent call last):
  File "/tmp/venv/bin/rally", line 5, in <module>
    from rally.cli.main import main
  File "/tmp/venv/lib64/python3.10/site-packages/rally/cli/main.py", line 20, in <module>
    from rally.cli import cliutils
  File "/tmp/venv/lib64/python3.10/site-packages/rally/cli/cliutils.py", line 28, in <module>
    from rally import api
  File "/tmp/venv/lib64/python3.10/site-packages/rally/api.py", line 28, in <module>
    from rally.common import cfg
  File "/tmp/venv/lib64/python3.10/site-packages/rally/common/cfg.py", line 19, in <module>
    from oslo_config import fixture # noqa
  File "/tmp/venv/lib64/python3.10/site-packages/oslo_config/fixture.py", line 18, in <module>
    import fixtures
ModuleNotFoundError: No module named 'fixtures'

Reproduce with:-
$ python3 -m venv venv
$ source venv/bin/activate
$ pip install rally # or pip install git+https://github.com/openstack/rally
$ rally db create

Failing since testtools>2.6.0
$ pip show testtools
Name: testtools
Version: 2.7.1
Summary: Extensions to the Python standard library unit testing framework
Home-page:
Author:
Author-email: "Jonathan M. Lange" <email address hidden>
License:
Location: /tmp/venv/lib/python3.10/site-packages
Requires:
Required-by: python-subunit, testscenarios

$ pip install testtools==2.6.0
Collecting testtools==2.6.0
  Using cached testtools-2.6.0-py3-none-any.whl (182 kB)
Collecting fixtures>=2.0
  Using cached fixtures-4.1.0-py3-none-any.whl (64 kB)
Requirement already satisfied: pbr>=0.11 in ./venv/lib/python3.10/site-packages (from testtools==2.6.0) (5.11.1)
Installing collected packages: fixtures, testtools
  Attempting uninstall: testtools
    Found existing installation: testtools 2.7.1
    Uninstalling testtools-2.7.1:
      Successfully uninstalled testtools-2.7.1
Successfully installed fixtures-4.1.0 testtools-2.6.0

$ rally db create
Creating database: sqlite:////tmp/rally.sqlite
Database created successfully

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.