-
-
Notifications
You must be signed in to change notification settings - Fork 420
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
TypeError when updating/adding packages to a project #2027
Comments
Maybe try to clear PDM's cache 😕
|
No, that unfortunately did not resolve the problem. Thanks for the quick response! |
Can you provide a stable steps to reproduce? I guess you can't if you start from a new project. |
Yeah, trying to start a new project just works. Not really sure what problem occurred when I updated :/ I suppose I could actually just create a new repository and install everything from scratch, so maybe that would be the solution in this case. |
The error says the |
Thanks for the hint. What would I roughly be looking for? I'm not sure in what way the name would need to be mangled in order to return something that raises the TypeError |
idk, possibly a |
Hmm, could it be related to a dependency that I specified with an URL? I tried to install all the same packages in a different, fresh project and got the following error:
Could that be somehow related? I installed The METADATA for the jaxlib package is as follows (at least the name looks okay to me):
|
Okay, I took another look today and found out that after (manually) updating from jaxlib-0.4.10 to 0.4.12 the old folder The way I "updated" was by way of updating the URL (since jax with GPU support can only be installed that way). So my hunch is that after I changed the line from
to
something broke in the update process. Not really sure where the fault lies here, but removing the folder manually fixed the error for me. |
I encountered the same issue. Issue is that
Removing folder |
Make sure you run commands with
-v
flag before pasting the output.Steps to reproduce
With version 2.7.4 I get a
TypeError
when updating/adding packages to a project (while fetching hashes).Actual behavior
I'm not sure what the exact underlying issue is, but calling
pdm update --update-eager
orpdm add some-package
triggered the above error. I'm not really sure how to further debug it. The version I updated from was 2.7.0.Expected behavior
The program updates/adds the requested packages.
Environment Information
The text was updated successfully, but these errors were encountered: