-
Notifications
You must be signed in to change notification settings - Fork 148
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
Python 3.12 - AttributeError: module 'pathlib' has no attribute '_Flavour' #430
Comments
Thank you for the feedback! |
Python 3.12 will add support for subclassing pathlib.PurePath and Path See also the cpython github issue: python/cpython#31691 |
I'm hoping to add a CPython issue: python/cpython#110109 |
@barneygale Thank you for your work in core for this. It will be great to simplify the dohq-artifactory codebase. Do you suggest any other solution for py312 in the meantime? Should we try subclassing something from py312's I'm running Python 3.12 on my laptop (Fedora 39), and I've hacked |
I'd recommend that you wait if you can - I'm expecting to publish a PyPI package with the base classes some time this month. |
Git project: https://github.com/barneygale/pathlib_abc Currently it only supports Python 3.11+, but I should have it working for 3.8+ within a couple of weeks, at which point I'll publish a PyPI package. |
First PyPI release: https://pypi.org/project/pathlib-abc/0.1.0/ |
I'm seeing the same issue in py3.11 now |
Hey everyone - any progress here? |
Hey guys, Thanks for reporting this issue. I'd like to work on it. |
IMO the best way to fix this is to add a dependency on pathlib-abc, and make @zhan9san is that what you're pursuing? If not I might have a crack at it. |
I hope this will be remediated soon. |
@zhan9san @beliaev-maksim hi folks, any update on this issue? Given Python 3.12 is fully released and supported, it would be very appreciated that Artifactory library supports it, it's the only item blocking our migration to 3.12 now... |
We are looking for a volunteer! |
+1 this is blocking migrating to python 3.12 |
Any hope of this being resolved before release of python 3.13? |
FWIW I've started a new pathlib-artifactory package building on the semi-official pathlib-abc package. It doesn't rely on hacking into the pathlib internals (unlike dohq-artifactory) so it should be on surer footing. But it's missing tons of features and it's certainly not a drop-in replacement for dohq-artifactory yet. Issues and PRs very welcome. |
@allburov, @barneygale, I took a swing at using the pathlib-abc, but it's erroring on
You can see my progress here: mshafer-NI#1 |
any walkaround? |
Any updates for Fedora39 ? Hit the same issue |
thanks and could you add a little document on the readme, for example, why create the project, are the usage compatible with devopshq artifactory? |
Any updates? Is this project dead? There was no commit to main for 7 months now |
Not dead, but yeah, no active maintainer here :( I don't work with artifactory anymore, so can not even test it :( |
Tested this locally, works like a charm! |
@ktdreyer |
I use a little application that depends on
|
Tried this locally, worked fine for what I tested (read-only from Artifactory, no writes tested) |
how to apply this patch after installing the official module? |
patching is not the way to go, we should add it as built-in fix (if it works for all cases) Let's not discuss patching here, I'll mark the comment as Off Topic in the future |
Apply path proposed in devopshq#430 See: devopshq#430
@RoccoMatano FYI I've created PR based on your patch #458 |
Hi, any progress with this issue? |
Python 3.12 is now released, but it does not work due to pathlib changes:
I figured I'd add 3.12 into the test matrix on my project which relies on this library, and that's how I found this issue:
Not any kind of pressing issue yet.
The text was updated successfully, but these errors were encountered: