You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Issue with installing GitPython on Windows 10 / Python 3.7 #1243
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:
poetry lock -vvv
...
PyPI: Getting info for gitdb (0.6.4) from PyPI
PyPI: No dependencies found, downloading archives
PyPI: Downloading sdist: gitdb-0.6.4.tar.gz
1: Version solving took 8.980 seconds.
1: Tried 1 solutions.
[PermissionError]
[WinError 5] Access is denied: 'C:\\Users\\kmray\\AppData\\Local\\Temp\\tmp4d1wsfpx\\unpacked\\gitdb-0.6.4\\gitdb\\test\\fixtures\\objects\\88\\8401851f15db0eed60eb1bc29dec5ddcace911'
Traceback (most recent call last):
File "C:\Users\kmray\.poetry\lib\poetry\_vendor\py3.6\clikit\console_application.py", line 132, in run
status_code = command.handle(parsed_args, io)
File "C:\Users\kmray\.poetry\lib\poetry\_vendor\py3.6\clikit\api\command\command.py", line 119, in handle
status_code = self._do_handle(args, io)
File "C:\Users\kmray\.poetry\lib\poetry\_vendor\py3.6\clikit\api\command\command.py", line 167, in _do_handle
return getattr(handler, handler_method)(args, io, self)
File "C:\Users\kmray\.poetry\lib\poetry\_vendor\py3.6\cleo\commands\command.py", line 92, in wrap_handle
return self.handle()
File "C:\Users\kmray\.poetry\lib\poetry\console\commands\lock.py", line 26, in handle
return installer.run()
File "C:\Users\kmray\.poetry\lib\poetry\installation\installer.py", line 75, in run
self._do_install(local_repo)
File "C:\Users\kmray\.poetry\lib\poetry\installation\installer.py", line 167, in _do_install
ops = solver.solve(use_latest=self._whitelist)
File "C:\Users\kmray\.poetry\lib\poetry\puzzle\solver.py", line 38, in solve
packages, depths = self._solve(use_latest=use_latest)
File "C:\Users\kmray\.poetry\lib\poetry\puzzle\solver.py", line 173, in _solve
self._package, self._provider, locked=locked, use_latest=use_latest
File "C:\Users\kmray\.poetry\lib\poetry\mixology\__init__.py", line 7, in resolve_version
return solver.solve()
File "C:\Users\kmray\.poetry\lib\poetry\mixology\version_solver.py", line 79, in solve
next = self._choose_package_version()
File "C:\Users\kmray\.poetry\lib\poetry\mixology\version_solver.py", line 377, in _choose_package_version
version = self._provider.complete_package(version)
File "C:\Users\kmray\.poetry\lib\poetry\puzzle\provider.py", line 506, in complete_package
repository=package.dependency.source_name,
File "C:\Users\kmray\.poetry\lib\poetry\repositories\pool.py", line 115, in package
package = repo.package(name, version, extras=extras)
File "C:\Users\kmray\.poetry\lib\poetry\repositories\pypi_repository.py", line 175, in package
release_info = self.get_release_info(name, version)
File "C:\Users\kmray\.poetry\lib\poetry\repositories\pypi_repository.py", line 278, in get_release_info
'{}:{}'.format(name, version), lambda: self._get_release_info(name, version)
File "C:\Users\kmray\.poetry\lib\poetry\_vendor\py3.6\cachy\repository.py", line 174, in remember_forever
val = value(callback)
File "C:\Users\kmray\.poetry\lib\poetry\_vendor\py3.6\cachy\helpers.py", line 6, in value
return val()
File "C:\Users\kmray\.poetry\lib\poetry\repositories\pypi_repository.py", line 278, in <lambda>
'{}:{}'.format(name, version), lambda: self._get_release_info(name, version)
File "C:\Users\kmray\.poetry\lib\poetry\repositories\pypi_repository.py", line 340, in _get_release_info
info = self._get_info_from_urls(urls)
File "C:\Users\kmray\.poetry\lib\poetry\repositories\pypi_repository.py", line 450, in _get_info_from_urls
return self._get_info_from_sdist(urls['sdist'][0])
File "C:\Users\kmray\.poetry\lib\poetry\repositories\pypi_repository.py", line 588, in _get_info_from_sdist
return info
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\contextlib.py", line 88, in __exit__
next(self.gen)
File "C:\Users\kmray\.poetry\lib\poetry\utils\helpers.py", line 39, in temporary_directory
yield name
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\tempfile.py", line 809, in __exit__
self.cleanup()
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\tempfile.py", line 813, in cleanup
_shutil.rmtree(self.name)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\shutil.py", line 494, in rmtree
return _rmtree_unsafe(path, onerror)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\shutil.py", line 384, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\shutil.py", line 384, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\shutil.py", line 384, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
[Previous line repeated 3 more times]
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\shutil.py", line 389, in _rmtree_unsafe
onerror(os.unlink, fullname, sys.exc_info())
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\shutil.py", line 387, in _rmtree_unsafe
os.unlink(fullname)
Several coworkers and I are also getting this issue on Windows 10 with a variety of poetry commands (though we're on Python 3.6). Usually, making a new virtualenv seems to help, but we've come across some operations that do not work even in a fresh environment
Activity
aaront commentedon Jul 23, 2019
I should also note installing this with
pipinside when runningpoetry shelldoes work.kmray commentedon Jul 25, 2019
I have also run into this issue:
Poetry 1.0.0a5
Python 3.6.6
Windows 10.0.17134
brno32 commentedon Aug 13, 2019
Several coworkers and I are also getting this issue on Windows 10 with a variety of poetry commands (though we're on Python 3.6). Usually, making a new virtualenv seems to help, but we've come across some operations that do not work even in a fresh environment
absassi commentedon Nov 11, 2019
This seems to be duplicate of #1031 and would be fixed by #1032.
abn commentedon Apr 28, 2022
The reported issue was fixed with c12d86b7. Other cases covered in #5510.
github-actions commentedon Mar 2, 2024
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.