-
Notifications
You must be signed in to change notification settings - Fork 2.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
Poetry 1.8.0 unable to lock files (worked in 1.7.1) #9033
Comments
Same here. Tested on MacOS and Ubuntu installed using curl. |
404 is the server telling you that the wheel does not exist. is it true? If not, you should talk to Nexus about why they are returning 404. cf #9026 |
The issue is not on Nexus side, here is my error:
When trying to reach |
Can you try the workaround mentioned at #9026 (comment) please? The 404 is interesting because this implies that either a file that we expect the index to have does not exist or is not accessible for some reason. Alternatively, poetry might be expecting incorrectly a file to exist. I'd definitely verify if the issue is an actual 404 or Nexus returning 404 because we are not allowed to do a ranged read as it might treat this as a "not authorized" scenario. Some servers send a 404 when a 400/401/403 occurs. Disabling the lazy wheel feature should tell us more. |
You can also try: |
The status of |
How about |
Same thing with |
It's working, but my current workaround is to keep working with the old version before change my whole CI. |
@david-nano makes sense. I suspect we will make a patch release for this as it might be an issue for a lot of folks. |
@david-nano can you also please try the curl commands @radoering posted, in the environment where you got the failure? |
|
@radoering something else might be off with the client request. But would need a problematic index server to test against. :( |
@david-nano @skrese Can you please try if #9030 fixes your issue? I'm not 100 % sure because we don't understand Nexus' behavior completely. |
You can try using pipx install --suffix=@9030 'poetry @ git+https://github.com/python-poetry/poetry.git@refs/pull/9030/head'
poetry@9030 lock |
For me |
|
There is something wrong with Range: bytes=-10000 ... that nexus does not accept and this changed in latest poetry Curl with -I works. However:
|
According to mozilla -10000 is not correct ... it should be 0-10000. |
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. |
Description
Running poetry lock with latest poetry 1.8.0 seems broken with: Sonatype Nexus Repository OSS 3.52.0-01 Updating dependencies Resolving dependencies... (12.6s) 404 Client Error: Not Found for url: https://myuser:mypass@nexus.company.net/repository/pypi-blessed/packages/django-stubs-ext/4.2.7/django_stubs_ext-4.2.7-py3-none-any.whl#sha256=a8ba463124b3de17fe11c4a9cf2080511ec9d5da8bf890b20f5e5a614dfa266c
Workarounds
Poetry Installation Method
pipx
Operating System
MacOSX
Poetry Version
Poetry (version 1.8.0)
Poetry Configuration
Python Sysconfig
No response
Example pyproject.toml
Poetry Runtime Logs
The text was updated successfully, but these errors were encountered: