FileExistsError, version 1.7.1 (new installer)
See original GitHub issue- I have searched the issue tracker and believe that this is not a duplicate.
Steps to reproduce
pdm install
Actual behavior
Retry failed jobs
✖ Install pytkdocs 0.11.1 failed
ERRORS:
add pytkdocs failed:
Traceback (most recent call last):
File "/home/user/.basher-packages/pyenv/pyenv/versions/3.8.11/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/user/.local/pipx/venvs/pdm/lib/python3.8/site-packages/pdm/installers/synchronizers.py", line 157, in install_candidate
installer.install(can)
File "/home/user/.local/pipx/venvs/pdm/lib/python3.8/site-packages/pdm/installers/installers.py", line 66, in install
self.install_wheel(built)
File "/home/user/.local/pipx/venvs/pdm/lib/python3.8/site-packages/pdm/installers/installers.py", line 79, in install_wheel
install(
File "/home/user/.local/pipx/venvs/pdm/lib/python3.8/site-packages/installer/_core.py", line 91, in install
record = destination.write_script(
File "/home/user/.local/pipx/venvs/pdm/lib/python3.8/site-packages/installer/destinations.py", line 173, in write_script
entry = self.write_to_fs(Scheme("scripts"), script_name, stream)
File "/home/user/.local/pipx/venvs/pdm/lib/python3.8/site-packages/installer/destinations.py", line 124, in write_to_fs
raise FileExistsError(message)
FileExistsError: File already exists: /home/user/data/dev/project/__pypackages__/3.8/bin/pytkdocs
See /tmp/pdm-install-ezohzk_b.log for detailed debug log.
[InstallationError]: Some package operations are not complete yet
Add '-v' to see the detailed traceback
pytkdocs 0.11.1 was built with Poetry with the following contents in pyproject.toml:
include = [
"README.md",
"pyproject.toml"
]
…which was known to cause problem with parallel installations (race conditions trying to remove/copy README.md and pyproject.toml from the root of site-packages). I since then removed this include
from my Poetry projects, but old versions still suffer from it. This might also be the cause of this issue, though the tracebacks show FileExistsError on the scripts, not README/pyproject, so I’m not sure.
Other packages built the same way are triggering the same exceptions (git-changelog 0.4.2, failprint 0.6.2).
If you believe this issue should be opened in @pradyunsg’s installer
instead, I’ll gladly move it there!
Expected behavior
It works with version 1.7.0.
Environment Information
$ pdm info
PDM version: 1.7.1
Python Interpreter: /home/user/.basher-packages/pyenv/pyenv/versions/3.8.11/bin/python (3.8)
Project Root: /home/user/data/dev/project
Project Packages: /home/user/data/dev/project/__pypackages__/3.8
$ pdm info --env
{
"implementation_name": "cpython",
"implementation_version": "3.8.11",
"os_name": "posix",
"platform_machine": "x86_64",
"platform_release": "3.10.0-862.6.3.el7.x86_64",
"platform_system": "Linux",
"platform_version": "#1 SMP Fri Jun 15 17:57:37 EDT 2018",
"python_full_version": "3.8.11",
"platform_python_implementation": "CPython",
"python_version": "3.8",
"sys_platform": "linux"
}
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Ask Question - Stack Overflow
... but can be installed with: sudo apt install bpfcc-tools # version ... apt install nmh # version 1.7.1-4 virtualenvwrapper.sh: There was ...
Read more >new localhost install error - usegalaxy.org support - Galaxy Help
Hello, I am getting this error towards the end of the command. galaxy % sh run.sh --no-create-venv --skip-wheels. galaxy % sh run.sh.
Read more >Release Notes — Airflow Documentation
Airflow support for Kubernetes version is described in Installation ... Please read through the new scheduler options, defaults have changed since 1.7.1.
Read more >Bug listing with status RESOLVED with resolution OBSOLETE ...
... Bug:51233 - "new ebuild for ksociograma" status:RESOLVED ... the kernel with version 2.6.13.x" status:RESOLVED resolution:OBSOLETE severity:critical ...
Read more >What's new in version 1.9.0 | ArcGIS API for Python
Updates symbols used in Identifying suitable sites for new ALS clinics using ... Updates to Table of Contents; Updates links to Deep Learning...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for the information. It helps enlight the whole situation.
The first installation failed due to
README.md
racing, and the retry failed due to the scripts existing.Thank you again for such quick fixes, you’re fantastic ❤️