botcity-dev / botcity-framework-web-python

BotCity Framework Web - Python
https://documentation.botcity.dev/frameworks/web/
Apache License 2.0
40 stars 19 forks source link

Version Conflict Between Selenium Dependencies Causes Errors When Opening Web Pages #111

Open XFelipeX opened 1 week ago

XFelipeX commented 1 week ago

Describe the bug The issue occurs when attempting to use the libraries undetected-chrome and botcity-framework-web-python in the same project. The conflict arises due to differing Selenium versions required by each library:

This conflict makes it impossible to use both dependencies simultaneously without versioning issues.

Expected behavior Both libraries should function seamlessly in the same project, or provide flexibility to work with compatible versions of Selenium.

Steps to Reproduce

  1. Create a Python project and set up a virtual environment.
  2. Add undetected_chrome and botcity-framework-web as dependencies.
  3. Attempt to install the dependencies using pip.
  4. Be aware that the installation will overwrite the existing version of Selenium.
  5. Create instances of both drivers and observe the error when attempting to open a web page.

Possible Solution Update its dependencies to support selenium>=4.9.

My Platform

Additional context The conflict stems from the libraries' strict dependencies on incompatible Selenium versions. This limits flexibility and creates challenges for projects requiring features of both libraries.

hhslepicka commented 1 week ago

@XFelipeX please give it a try with the version in the main branch as it supports selenium 4.x and already implements support for Undetected Chrome.

pip install --upgrade git+https://github.com/botcity-dev/botcity-framework-web-python.git

In your requirements.txt you can do this:

git+https://github.com/botcity-dev/botcity-framework-web-python

Make sure to have Git installed in your host for that to work. We are working on making an official release of the version current in the main branch.

XFelipeX commented 5 days ago

@hhslepicka I did that, and it works! The version on PyPI is not the latest version, right?

Thank you for your help!