-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[BUG] KeyError: 'unix_user' with setuptools 63.2.0 #3582
Comments
I skimmed over the last reply in the closed issue before opening this one but the proposed solution
But, with this, I assume that it is more of a rollout issue of the fix. And the question persists: why isn't the setuptools used that I have installed via pip? > dpkg -l '*python3-setuptools*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-======================-============-============-=============================================
un python3-setuptools <none> <none> (no description available)
ii python3-setuptools-whl 59.6.0-1.2 all Python Distutils Enhancements (wheel package)
> python3 -m pip install --user setuptools
Requirement already satisfied: setuptools in /home/user/.local/lib/python3.10/site-packages (63.2.0) |
Hi @mxmlnkn, thank you very much for reporting this issue. Is there any chance you could test this against the latest setuptools release, Setuptools release cycle does not cover releasing patches for previous versions. If the bug is still present, any possible fixes will be added to the latest version. Please also note that in v64+,
This might be related to |
Simply updating setuptools to 65.3.0 on my system does not help. However, setting up a venv and doing it inside there does help. So, I guess this issue is fixed in 65.3.0 and I will subscribe to pip Pip issue
And then I was hoping that that would suffice to use the newer setuptools but it seems the system-installed version unexpectedly takes precedence. I also tried increasing the requirement in Creating a normal venv and installing a newer setuptools inside there and installing the desired project there seems to work but it is cumbersome to use a venv to develop my project. It can have its advantages, though. python3 -m venv testvenv
. ./testvenv/bin/activate
python3 -m pip install --upgrade setuptools
python3 -m pip install --editable 'git+https://github.com/mxmlnkn/ratarmount.git@develop#egg=ratarmountcore[full]&egginfo=ratarmountcore&subdirectory=core' Working output: Obtaining ratarmountcore[full] from git+https://github.com/mxmlnkn/ratarmount.git@develop#egg=ratarmountcore[full]&egginfo=ratarmountcore&subdirectory=core
Cloning https://github.com/mxmlnkn/ratarmount.git (to revision develop) to ./testvenv/src/ratarmountcore
Running command git clone --filter=blob:none --quiet https://github.com/mxmlnkn/ratarmount.git /media/d/Myself/projects/ratarmount/testvenv/src/ratarmountcore
Running command git checkout -b develop --track origin/develop
Switched to a new branch 'develop'
Branch 'develop' set up to track remote branch 'develop' from 'origin' by rebasing.
Resolved https://github.com/mxmlnkn/ratarmount.git to commit 78cea219605e351d4f286d2a9c4bd9bcdd5acd8d
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build editable ... done
Preparing editable metadata (pyproject.toml) ... done
Collecting indexed-gzip<2.0,>=1.6.3
Downloading indexed_gzip-1.6.13-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.8/3.8 MB 6.4 MB/s eta 0:00:00
Collecting rarfile~=4.0
Downloading rarfile-4.0-py3-none-any.whl (28 kB)
Collecting python-xz~=0.4.0
Downloading python_xz-0.4.0-py3-none-any.whl (20 kB)
Collecting indexed-bzip2<2.0,>=1.3.1
Using cached indexed_bzip2-1.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB)
Collecting indexed-zstd<2.0,>=1.2.2
Downloading indexed_zstd-1.5.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (591 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 591.1/591.1 KB 6.5 MB/s eta 0:00:00
Building wheels for collected packages: ratarmountcore
Building editable for ratarmountcore (pyproject.toml) ... done
Created wheel for ratarmountcore: filename=ratarmountcore-0.4.0-0.editable-py3-none-any.whl size=5433 sha256=fc41f502c8d642e93025a40572fdb868b1ae8ab9131562e54ff5367a7f1e59de
Stored in directory: /tmp/pip-ephem-wheel-cache-qc3wirc5/wheels/7b/d4/7a/0c9e2a4aab863a5ecd7572b27dbeec506fee50ac57c1b70c12
Successfully built ratarmountcore
Installing collected packages: ratarmountcore, rarfile, indexed-zstd, indexed-gzip, indexed-bzip2, python-xz
Successfully installed indexed-bzip2-1.3.1 indexed-gzip-1.6.13 indexed-zstd-1.5.1 python-xz-0.4.0 rarfile-4.0 ratarmountcore-0.4.0 |
I found this comment and the proposed workaround of python3 -m pip install --user --no-build-isolation --editable \
'git+https://github.com/mxmlnkn/ratarmount.git@develop#egg=ratarmountcore[full]&egginfo=ratarmountcore&subdirectory=core' quite a tongue breaker but still easier to manage (with an alias) than a venv. |
The issue is a bit long, but if you follow the discussion, you can see that there are other circumstances identified to trigger the same behaviour, not only in virtualenvs. One of these circumstances is Debian based systems, which I believe is the case you are describing. I am afraid there is no action point from the For this reason I think the best course of action is closing this issue and recommending anyone interested to follow |
Pip issue 6264 has been closed and upgrading to pip 22.3.1 seems to have fixed this problem :) |
setuptools version
63.2.0
Python version
3.10
OS
Ubuntu 22.04
Additional environment information
No response
Description
I still run into this issue. I'm opening a new issue because I'm not sure whether the closed issue still receives any attention from the maintainers and because I'm not the only one able to still reproduce the problem.
I still have this problem on Ubuntu 22.04 with Python 3.10 and setuptools 63.2.0 installed.
I tried a lot of different versions of setuptools: 59,60,61,63 and none works. It works when using
python3 setup.py develop --user
instead ofpython3 -m pip install --user --editable
.Note that I also have to use the
site.ENABLE_USER_SITE = "--user" in sys.argv[1:]
workaround described in this pip issue. It seems to me like installing a development version becomes increasingly impossible.Expected behavior
The error should not happen
How to Reproduce
python3 -m pip install --user --editable 'git+https://github.com/mxmlnkn/ratarmount.git@develop#egg=ratarmountcore[full]&egginfo=ratarmountcore&subdirectory=core'
Output
The text was updated successfully, but these errors were encountered: