-
Notifications
You must be signed in to change notification settings - Fork 54
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
ArtifactoryPath is broken. #69
Comments
Same issue here EDIT: This is due to an update in pathlib |
Running into this as well. My problem comes from Line 333 in 09ddcc4
which assumes that the base url has the literal string artifactory in the name, but this is only the case when the server config's "server name" property is set to artifactory . In all other cases, it will produce the output described by @sngreen
My workaround is to create a ~/.artifactory_python.cfg file with the contents:
|
I wasn't able to get the workaround above to work in Python 3.10. It looks like the |
If we use Pathlib2, it is working fine for me. |
@sfoley-gpqa did you ever get around that error? I'm experiencing a similar issue when trying to upload a file to Artifactory I'm getting:
Do we know of any way to get around this? |
I won't lie; I'm having trouble remembering the exact details of the problem I was experiencing at the time of my last post. I think I may have reverted to using python 3.9.x to solve the problem. That said, I am currently using 3.10.13 for my project and am able to successfully upload files to Artifactory using I still see that Python 3.10's pathlib lacks the What version of python are you using? I know how this kind of thing can be very frustrating--especially when no one responds--so I'd be happy to help in any way I can. |
@sfoley-gpqa sorry for the delay, I ended up just installing Python 3.9 on this machine. I'm using this on Ubuntu 22.04 and the default version is Python 3.10, which was what was giving me the problems. I used the deadsnakes PPA to install Python 3.9 and everything is working. |
I'm glad to hear that it's working for you now! |
artifact = ArtifactoryPath( url, auth=auth)
changes https://whatever... to https:/whatever... (removing one forward slash) after which the library renders unusable.
The text was updated successfully, but these errors were encountered: