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

Dependency conflict with pytest and selenium #294

Open
PhilippSelenium opened this issue Mar 29, 2022 · 9 comments
Open

Dependency conflict with pytest and selenium #294

PhilippSelenium opened this issue Mar 29, 2022 · 9 comments

Comments

@PhilippSelenium
Copy link
Contributor

PhilippSelenium commented Mar 29, 2022

pytest-selenium 3.0.0 requires pytest<7.0.0,>=6.0.0, but you have pytest 7.1.1 which is incompatible.
pytest-selenium 3.0.0 requires selenium<4.0.0,>=3.0.0, but you have selenium 4.1.2 which is incompatible

since release 3.0.0 works with 2.0.1

@PhilippSelenium
Copy link
Contributor Author

PhilippSelenium commented Mar 29, 2022

Just saw this MR #293 ... this will probably fix the selenium part.

@BeyondEvil
Copy link
Contributor

Yes, the idea is that v3.* will be for Selenium 3 support (which we'll keep around another year or so), while v4.* will be for Selenium 4 support.

@icemac
Copy link

icemac commented Apr 4, 2022

@BeyondEvil Is there a roadmap for releasing version 4.x? Currently I am using 2.x against selenium 4.x which still works fine (besides some deprecation warnings). Not being able to use the next major version of pytest-selenium because it no longer supports the current selenium version seems a bit strange.

@BeyondEvil
Copy link
Contributor

BeyondEvil commented Apr 4, 2022

@BeyondEvil Is there a roadmap for releasing version 4.x? Currently I am using 2.x against selenium 4.x which still works fine (besides some deprecation warnings). Not being able to use the next major version of pytest-selenium because it no longer supports the current selenium version seems a bit strange.

As soon as #272 is merged, I plan on releasing v4.0.0.

Not sure what you mean, but there will be two parallel tracks - v3* that will continue to support Selenium 3 and v4* that will support Selenium 4.

Would that cause an issue for you @icemac ?

@icemac
Copy link

icemac commented Apr 4, 2022

@BeyondEvil I see no problem in having the two parallel tracks. I just wondered that 2.x works fine with selenium 4.x while 3.x dropped the support and I have to wait for 4.0 to get it back again.

I am not in a hurry: not using pytest-selenium 3.x is fine for me.

@icemac
Copy link

icemac commented Jul 8, 2022

Hi, are there any news on the planned 4.0 release of this package?

@BeyondEvil
Copy link
Contributor

Hi, are there any news on the planned 4.0 release of this package?

Hi,

Sorry, not at this moment.

We're working hard on a new release (rebuild from scratch) of pytest-html currently.

As soon as that has been released, then we'll make sure pytest-selenium gets a refresh as well (with full sel 4.0 support).

Thank you for your patience! 🙏

@BeyondEvil
Copy link
Contributor

v4.0.0 is released!

Thank you for your patience! @icemac

@icemac
Copy link

icemac commented Sep 25, 2022

You are awesome, thank you!

pshiu added a commit to openedx-unsupported/ecommerce that referenced this issue Jun 15, 2023
There is a dependency conflict for pytest in pytest-selenium v3, which:

Requires pytest v6:

https://github.com/pytest-dev/pytest-selenium/blob/8e0a5d549049a1db353ead98bf0b46f8ef04e014/pyproject.toml#L46

Requires pytest-metadata (via pytest-html), whose latest 3.0.0 requires pytest v7:

https://github.com/pytest-dev/pytest-metadata/blob/4f70f2ae74dc880772d445b1ee2cbe8d50bedcbd/pyproject.toml#L43

Pin pytest-selenium to v2 for now.

This resolves `make upgrade` error:

    There are incompatible versions in the resolved dependencies:
      pytest (from -r requirements/e2e.in (line 6))
      pytest<7.0.0,>=6.0.0 (from pytest-selenium==3.0.0->-r requirements/e2e.in (line 8))
      pytest>=2.4.2 (from pytest-variables==1.9.0->pytest-selenium==3.0.0->-r requirements/e2e.in (line 8))
      pytest>=7.0.0 (from pytest-metadata==3.0.0->pytest-html==3.2.0->pytest-selenium==3.0.0->-r requirements/e2e.in (line 8))
      pytest>=5.0.0 (from pytest-timeout==2.1.0->-r requirements/e2e.in (line 9))
      pytest>=2.7.3 (from pytest-base-url==1.4.2->pytest-selenium==3.0.0->-r requirements/e2e.in (line 8))
      pytest (from pytest-randomly==3.12.0->-r requirements/e2e.in (line 7))
      pytest!=6.0.0,>=5.0 (from pytest-html==3.2.0->pytest-selenium==3.0.0->-r requirements/e2e.in (line 8))

See pytest-dev/pytest-selenium#294 for potential upstream issue.
pshiu added a commit to openedx-unsupported/ecommerce that referenced this issue Jun 20, 2023
There is a dependency conflict for pytest in pytest-selenium v3, which conflictingly requires both:

- pytest v6:

https://github.com/pytest-dev/pytest-selenium/blob/8e0a5d549049a1db353ead98bf0b46f8ef04e014/pyproject.toml#L46

- pytest-metadata latest (via pytest-html), whose latest 3.0.0 requires pytest v7:

https://github.com/pytest-dev/pytest-metadata/blob/4f70f2ae74dc880772d445b1ee2cbe8d50bedcbd/pyproject.toml#L43

Pin pytest-selenium to v2 for now.

This resolves `make upgrade` error:

    There are incompatible versions in the resolved dependencies:
      pytest (from -r requirements/e2e.in (line 6))
      pytest<7.0.0,>=6.0.0 (from pytest-selenium==3.0.0->-r requirements/e2e.in (line 8))
      pytest>=2.4.2 (from pytest-variables==1.9.0->pytest-selenium==3.0.0->-r requirements/e2e.in (line 8))
      pytest>=7.0.0 (from pytest-metadata==3.0.0->pytest-html==3.2.0->pytest-selenium==3.0.0->-r requirements/e2e.in (line 8))
      pytest>=5.0.0 (from pytest-timeout==2.1.0->-r requirements/e2e.in (line 9))
      pytest>=2.7.3 (from pytest-base-url==1.4.2->pytest-selenium==3.0.0->-r requirements/e2e.in (line 8))
      pytest (from pytest-randomly==3.12.0->-r requirements/e2e.in (line 7))
      pytest!=6.0.0,>=5.0 (from pytest-html==3.2.0->pytest-selenium==3.0.0->-r requirements/e2e.in (line 8))

See pytest-dev/pytest-selenium#294 for potential upstream issue.

Also, pytest-variables v3 deprecated _variables, which is used by other pytest v2 libraries::

https://github.com/pytest-dev/pytest-variables/blob/13f4b2e4620c682ae0856e03b11106ad3b6e6894/CHANGES.rst

Pin pytest-variables to v2 for now.

This resolves `make acceptance` error:

    AttributeError: 'Config' object has no attribute '_variables'
pshiu added a commit to openedx-unsupported/ecommerce that referenced this issue Jun 20, 2023
There is a dependency conflict for pytest in pytest-selenium v3, which conflictingly requires both:

- pytest v6:

https://github.com/pytest-dev/pytest-selenium/blob/8e0a5d549049a1db353ead98bf0b46f8ef04e014/pyproject.toml#L46

- pytest-metadata latest (via pytest-html), whose latest 3.0.0 requires pytest v7:

https://github.com/pytest-dev/pytest-metadata/blob/4f70f2ae74dc880772d445b1ee2cbe8d50bedcbd/pyproject.toml#L43

Pin pytest-selenium to v2 for now.

This resolves `make upgrade` error:

    There are incompatible versions in the resolved dependencies:
      pytest (from -r requirements/e2e.in (line 6))
      pytest<7.0.0,>=6.0.0 (from pytest-selenium==3.0.0->-r requirements/e2e.in (line 8))
      pytest>=2.4.2 (from pytest-variables==1.9.0->pytest-selenium==3.0.0->-r requirements/e2e.in (line 8))
      pytest>=7.0.0 (from pytest-metadata==3.0.0->pytest-html==3.2.0->pytest-selenium==3.0.0->-r requirements/e2e.in (line 8))
      pytest>=5.0.0 (from pytest-timeout==2.1.0->-r requirements/e2e.in (line 9))
      pytest>=2.7.3 (from pytest-base-url==1.4.2->pytest-selenium==3.0.0->-r requirements/e2e.in (line 8))
      pytest (from pytest-randomly==3.12.0->-r requirements/e2e.in (line 7))
      pytest!=6.0.0,>=5.0 (from pytest-html==3.2.0->pytest-selenium==3.0.0->-r requirements/e2e.in (line 8))

See pytest-dev/pytest-selenium#294 for potential upstream issue.

Also, pytest-variables v3 deprecated _variables, which is used by other pytest v2 libraries::

https://github.com/pytest-dev/pytest-variables/blob/13f4b2e4620c682ae0856e03b11106ad3b6e6894/CHANGES.rst

Pin pytest-variables to v2 for now.

This resolves `make acceptance` error:

    AttributeError: 'Config' object has no attribute '_variables'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants