Skip to content

ImportError with tox 4 #45

Description

@Cielquan

Description

The plugin does not work with tox 4 and raises this error: ImportError: cannot import name 'reporter' from 'tox'.
Related: #32

Steps to Reproduce

Create a tox config with this plugin. Because tox will create a .tox env so it can use this plugin it will also install tox 4 there.

Actual result:

  File "/home/krys/Projects/verbum/.tox/.tox/lib/python3.11/site-packages/tox_envlist/__init__.py", line 43, in <module>
    from tox import config, reporter  # type: ignore
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: cannot import name 'reporter' from 'tox'

Expected result:

no error

Reproduces how often:

Easily reproduced

Version

  • Operating System: linux
  • Python: 3.11
  • tox-envlist: 0.3.0

Installation source

PyPI

Other Additional Information:

The feature this plugin provides is now available in tox 4 out of the box known as labels. They can be run via the -m flag.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingstale

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions