-
-
Notifications
You must be signed in to change notification settings - Fork 422
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
pth files containing code make PDM show error messages (1.8, install_cache enabled) #623
Comments
Oops importlib.util.module_from_spec(importlib.machinery.PathFinder.find_spec('zope', [os.path.dirname(p)])) The pth is trying to find a module spec under the site-packages ( |
Ah, you're right, sorry for not seeing it myself. I guess I can try to open an issue on their side as well. Feel free to close, thank you for your help 🙂 |
For reference, I was wondering where that .pth file was coming from, here is the answer: zopefoundation/zope.interface#187 (comment) |
It seems the error messages are only shown when dependencies are installed for multiple Python versions.
Anyway, these two zope libraries are dependencies of gevent (which is a dependency of locust), and locust seems to work fine when I remove these |
I got the same error when install tensorflow (the latest version so far, 2.6). Can I use cache for other libraries but not using cache only when install tensorflow? |
@yingbo It is not easy work even if the selective cache is supported, as you don't know which package causes the failure. In fact, the pth files come from A more verbose workaround would be as follows:
|
Gotcha! Thanks @frostming |
After all, the |
I'm seeing this in version 2.2.1 with install.cache = False |
Make sure you run commands with
-v
flag before pasting the output.Steps to reproduce
Not actually causing an error, though displaying error tracebacks.
Enable the
feature.install_cache
option, and install dependencies of a project which depends onzope.event
orzope.interface
.Actual behavior
Expected behavior
Some packages will add .pth files containing Python code to
__pypackages__/<major.minor>/lib
. PDM should ignore those and not print any traceback.Example:
Environment Information
Tracebacks shown with pdm info as well 😅
The text was updated successfully, but these errors were encountered: