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
AttributeError: module 'posixpath' has no attribute 'sep' #10547
Comments
The Python docs say it should be available via However I think a patch to change this would be harmless too, seems |
I just created a pull request to see if this leads to any issues in the CI pipelines: #10550 |
My only objection to this is that we're mashing buttons to work around a problem that should be impossible, and that means I have no reason to expect that we're actually fixing it. If I go look at |
I have a deja-vu: #9791 - judging from the linked issues, it seems to affect (or at least have affected) various different projects. |
Fair enough; let's just merge Daniel's PR (thanks!), which I do expect to fix it here, and hope that's the end of the story! |
Thanks for merging and pointing me to #9791. That is quite helpful. |
Within a Python 3.10 environment and with pytest 7.2.0 installed, it seems like I cannot start the debugger in PyCharm. Instead PyCharm raises the following error:
The environment is running on Ubuntu 20.04 and the error did not appear with Python 3.9.
When replacing
os.path.sep
withos.sep
in .../site-packages/_pytest/pathlib.py, the error goes away.The text was updated successfully, but these errors were encountered: