question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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).

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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
aarontcommented, Jul 23, 2019

I should also note installing this with pip inside when running poetry shell does work.

0reactions
abncommented, Apr 28, 2022

The reported issue was fixed with https://github.com/python-poetry/poetry/commit/c12d86b7. Other cases covered in #5510.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found