Issue with installing GitPython on Windows 10 / Python 3.7
See original GitHub issue- I am on the latest Poetry version.
- I have searched the issues of this repo and believe that this is not a duplicate.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).
- OS version and name: Windows 10
- Poetry version: 0.12.17
- Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/aaront/9c1156015284a29f7c2bb5cd9435fdc8
Issue
When trying to install the GitPython dependency on Windows 10 (with Python 3.7) in a project, I get the following error:
[PermissionError]
[WinError 5] Access is denied: 'C:\\Users\\aaron\\AppData\\Local\\Temp\\tmplx22xv9u\\unpacked\\gitdb-0.6.4\\gitdb\\test\\fixtures\\objects\\88\\8401851f15db0eed60eb1bc29dec5ddcace911'
(I’ve logged the output of poetry install -vvv
in the gist: https://gist.github.com/aaront/9c1156015284a29f7c2bb5cd9435fdc8 )
Repeated attempts to install the package yield the same result (even attempted on 2 different machines). Also attempted to install the gitdb
dependency itself first, to the same issue.
Installing this inside Ubuntu/WSL works without issues:
Creating virtualenv gitypython-test-py3.7 in /home/aaron/.cache/pypoetry/virtualenvs
Updating dependencies
Resolving dependencies... (1.1s)
Writing lock file
Package operations: 14 installs, 0 updates, 0 removals
- Installing zipp (0.5.2)
- Installing importlib-metadata (0.18)
- Installing smmap2 (2.0.5)
- Installing atomicwrites (1.3.0)
- Installing attrs (19.1.0)
- Installing ddt (1.2.1)
- Installing gitdb (0.6.4)
- Installing gitdb2 (2.0.5)
- Installing more-itertools (7.2.0)
- Installing pluggy (0.12.0)
- Installing py (1.8.0)
- Installing six (1.12.0)
- Installing gitpython (2.1.12)
- Installing pytest (3.10.1)
- Installing gitypython-test (0.1.0)
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Issue with installing GitPython on Windows 10 / Python 3.7
I am on the latest Poetry version. I have searched the issues of this repo and believe that this is not a duplicate....
Read more >Overview / Install — GitPython 3.1.29 documentation
This command will download the latest version of GitPython from the Python Package Index and install it to your system. More information about...
Read more >HOW TO: Install and Use Python in Git Bash for Windows 10?
How to install and use Python in Git Bash for Windows ?UPDATE: If the python command doesn't work, try run this in git...
Read more >PIP Install Git - A quick read - ActiveState
One of the advantages of using pip together with Git is to install the latest commits of unreleased Python packages as branches from...
Read more >GitPython - PyPI
GitPython is a python library used to interact with Git repositories. ... pip install GitPython. Copy PIP instructions ... Released: Oct 10, 2022....
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 FreeTop 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
Top GitHub Comments
I should also note installing this with
pip
inside when runningpoetry shell
does work.The reported issue was fixed with https://github.com/python-poetry/poetry/commit/c12d86b7. Other cases covered in #5510.