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
Broken editable install of the project itself? #649
Comments
Lead: the only dependency that has been updated recently is setuptools: version 58.0.4 released two days ago. |
Nope, installed setuptools < 58 in both shared pipx env and as a dependency of my project, didn't solve it. |
Is |
Also please upgrade the version of |
% ll __pypackages__/*/lib/editables*
-rw-r--r-- 1 pawamoy users 65 Sep 13 18:47 __pypackages__/3.10/lib/editables.pth
-rw-r--r-- 1 pawamoy users 65 Sep 13 18:48 __pypackages__/3.11/lib/editables.pth
-rw-r--r-- 1 pawamoy users 65 Sep 13 18:47 __pypackages__/3.8/lib/editables.pth
-rw-r--r-- 1 pawamoy users 65 Sep 13 18:47 __pypackages__/3.9/lib/editables.pth
__pypackages__/3.10/lib/editables-0.2.dist-info:
total 28K
-rw-r--r-- 1 pawamoy users 15 Sep 13 18:47 INSTALLER
-rw-r--r-- 1 pawamoy users 1.1K Sep 13 18:47 LICENSE.txt
-rw-r--r-- 1 pawamoy users 3.8K Sep 13 18:47 METADATA
-rw-r--r-- 1 pawamoy users 780 Sep 13 18:47 RECORD
-rw-r--r-- 1 pawamoy users 60 Sep 13 18:47 REFER_TO
-rw-r--r-- 1 pawamoy users 10 Sep 13 18:47 top_level.txt
-rw-r--r-- 1 pawamoy users 92 Sep 13 18:47 WHEEL
__pypackages__/3.11/lib/editables-0.2.dist-info:
total 28K
-rw-r--r-- 1 pawamoy users 15 Sep 13 18:48 INSTALLER
-rw-r--r-- 1 pawamoy users 1.1K Sep 13 18:48 LICENSE.txt
-rw-r--r-- 1 pawamoy users 3.8K Sep 13 18:48 METADATA
-rw-r--r-- 1 pawamoy users 780 Sep 13 18:48 RECORD
-rw-r--r-- 1 pawamoy users 60 Sep 13 18:48 REFER_TO
-rw-r--r-- 1 pawamoy users 10 Sep 13 18:48 top_level.txt
-rw-r--r-- 1 pawamoy users 92 Sep 13 18:48 WHEEL
__pypackages__/3.8/lib/editables-0.2.dist-info:
total 28K
-rw-r--r-- 1 pawamoy users 15 Sep 13 18:47 INSTALLER
-rw-r--r-- 1 pawamoy users 1.1K Sep 13 18:47 LICENSE.txt
-rw-r--r-- 1 pawamoy users 3.8K Sep 13 18:47 METADATA
-rw-r--r-- 1 pawamoy users 780 Sep 13 18:47 RECORD
-rw-r--r-- 1 pawamoy users 60 Sep 13 18:47 REFER_TO
-rw-r--r-- 1 pawamoy users 10 Sep 13 18:47 top_level.txt
-rw-r--r-- 1 pawamoy users 92 Sep 13 18:47 WHEEL
__pypackages__/3.9/lib/editables-0.2.dist-info:
total 28K
-rw-r--r-- 1 pawamoy users 15 Sep 13 18:47 INSTALLER
-rw-r--r-- 1 pawamoy users 1.1K Sep 13 18:47 LICENSE.txt
-rw-r--r-- 1 pawamoy users 3.8K Sep 13 18:47 METADATA
-rw-r--r-- 1 pawamoy users 780 Sep 13 18:47 RECORD
-rw-r--r-- 1 pawamoy users 60 Sep 13 18:47 REFER_TO
-rw-r--r-- 1 pawamoy users 10 Sep 13 18:47 top_level.txt
-rw-r--r-- 1 pawamoy users 92 Sep 13 18:47 WHEEL % cat __pypackages__/*/lib/editables.pth
/home/pawamoy/.cache/pdm/packages/editables-0.2-py3-none-any/lib
/home/pawamoy/.cache/pdm/packages/editables-0.2-py3-none-any/lib
/home/pawamoy/.cache/pdm/packages/editables-0.2-py3-none-any/lib
/home/pawamoy/.cache/pdm/packages/editables-0.2-py3-none-any/lib % ll /home/pawamoy/.cache/pdm/packages/editables-0.2-py3-none-any/lib/editables:
total 12K
-rw-r--r-- 1 pawamoy users 2.0K Sep 13 18:47 __init__.py
-rw-r--r-- 1 pawamoy users 761 Sep 13 18:47 redirector.py % pdm show pdm-pep517 --version
0.8.3 |
Try commenting these two, their latest releases are listed in pyproject.toml as well. You don't need my local versions to try |
I'm using this simple Bash script for now to fix my installs: #!/usr/bin/env bash
for package; do
for py in 3.6 3.7 3.8 3.9 3.10 3.11; do
dir=__pypackages__/$py
if [ -d "${dir}" ]; then
echo /media/data/dev/$package/src > $dir/lib/$package.pth
fi
done
done % fix-pdm-editables griffe mkdocstrings pytkdocs
% python -m griffe
usage: griffe [-h] [-s SEARCH] PACKAGE [PACKAGE ...]
griffe: error: the following arguments are required: PACKAGE (griffe modules can now be found) |
@pawamoy I have updated pdm-pep517 backend, please run |
That seems to work, thanks! |
@laike9m If you believe your issue is the same, can you help verify it? Otherwise, I am going to close this. |
It's working fine for me. |
I still have this bug, deleting pdm 1.8.5 |
@q0w Can you provide more information on what package you installed? |
@frostming Just initialized a new project with |
@q0w The information is not enough to figure out the problem. |
@frostming so now i got |
you should provide an example so that i can reproduce, otherwise i can't help
… 在 2021年9月24日,19:50,q0w ***@***.***> 写道:
@frostming so now i got ModuleNotFoundError: No module named 'editables' when i try pdm build. I deleted .pth files, then pdm install works fine, but pdm build failed
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
There's something going on. Yesterday I was working on a project, and everything worked, and moments later, I couldn't run my CLI tool anymore. I'm investigating today again.
This used to work:
So I'm like, OK, lets try with pdm:
What's happening? Lets list the contents of
__pypackages__
.OK, what's in all this?
That explains the
ModuleNotFoundError
s. Nothing in this directory.Does this come from PDM?
At this point I tried everything: reinstalling PDM, switching the
feature.install_cache
on and off, deleting PDM's cache, reinstalling all dependencies, trying with PDM 1.8.2, trying with all Python versions (3.6, 3.7, 3.8, 3.9, 3.10), etc.Nothing fixes it.
So I tried in another project. There I get this:
OK so it seems to have something to do with the
editables
package?Steps to reproduce
git clone https://github.com/pawamoy/griffe cd griffe pdm install python -m griffe pdm run griffe
Actual behavior
Problem with editable installation of the project.
Expected behavior
/
Environment Information
The text was updated successfully, but these errors were encountered: