-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[FR] Be able to install python bindings from Github using pip #6470
Comments
.../src/selenium/py/selenium/webdriver/remote/getAttribute.js
.../src/selenium/py/selenium/webdriver/remote/getAttribute.js
)
Unfortunately due to the way we build this project you can't install from Github. You will either need to use the version on pypi or clone the repo and follow the build steps. |
This is a very good summary of the issue, thanks for the TLDR description. Edited the original post to include it for clarity. @AutomatedTester Not sure why the issue was closed though? Should I file another issue specifically for setup.py to support the relevant commands necessary to install a package from source? Or are you saying that it is impossible or very difficult to make that happen? Thanks again for clarifying. |
.../src/selenium/py/selenium/webdriver/remote/getAttribute.js
)
This is not something that I feel the python library should support. The repo is a monorepo so has code for different languages and has build targets that rely on each other. If this was a purely a python project we could totally do this. If you're wanting to have this work, and are happy to do the leg work of getting it working and then handling the maintenance then we can see about adding it. It would require custom commands support to call our build tool, which it would also need to handle it being downloaded before being run |
Thanks for the explanation. I fully understand. We will add some instructions on the need for building from source manually and using the built package while we wait for the PR to become part of a future release. |
TL;DR
Due to the way we build this project you can't install from Github. You will either need to use the version on pypi or clone the repo and follow the build steps.
Long version
We are currently dependent on this pending PR: #6463, thus we have added the following to requirements.txt:
This however results in a broken package, yielding errors like:
Meta -
OS: OSX
Selenium Version: PR
Expected Behavior -
No difference in behavior or functionality than when not installed directly from github.
Actual Behavior -
Selenium runs into issue with missing files in the package.
Steps to reproduce -
Notes
The same error has previously been observed here and here.
It is possible to workaround this by followed the build instructions here
https://github.com/SeleniumHQ/selenium/wiki/Python-Bindings#development
and then manually copying the built package contents to the
site-packages/selenium/
folder.The text was updated successfully, but these errors were encountered: