-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[🐛 Bug]: INSTALL_SCHEMES and setuptools 60+ #10268
Comments
@stanislavlevin, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
I'm not familiar with this part of the Python setup. Is there a fix that you can propose? Thanks. |
closing due to lack of clarification. Can reopen if additional info is provided. |
@titusfortner, sorry for delay. 3.14.1 lacks either Since the issue has been fixed in the recent version of selenium this ticket can be closed, but most likely the code below (
|
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What happened?
I'm packaging python-selenium in ALTLinux.
https://docs.python.org/3/whatsnew/3.10.html#distutils-deprecated:
setuptools is the new home for distutils and from 60+ setuptools enables its own copy of distutils by default. With this change, the hack in setup.py of selenium no longer works since INSTALL_SCHEMES are no longer
considered as scheme source (a scheme is taken from sysconfig). See pypa/distutils#79 for details.
This led to the wrong installation path for data (depend on selected installation scheme), e.g.
while the expected path is
/usr/lib64/python3/site-packages/selenium/webdriver/remote/
.Note: even I have too old selenium I see exactly the same code in master.
For my distro I dropped the hack and added cli option
--install-data
forpython setup.py install
.How can we reproduce the issue?
1) install setuptools 60+ 2) `/usr/bin/python3 setup.py install --skip-build --root=/usr/src/tmp/python3-module-selenium-buildroot --force`
Relevant log output
Operating System
ALTLinux
Selenium version
3.0.2
What are the browser(s) and version(s) where you see this issue?
0
What are the browser driver(s) and version(s) where you see this issue?
0
Are you using Selenium Grid?
No response
The text was updated successfully, but these errors were encountered: