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.

[EngSys] CI Windows Python3.6 failure: Could not install packages due to an EnvironmentError: [WinError 145] The directory is not empty

See original GitHub issue

CI would sometimes fail because “Could not install packages due to an EnvironmentError: [WinError 145] The directory is not empty” on Windows Python 3.6. Retry could help, but it happens quite frequently.

link to sample error from azure-servicebus CI

...
Successfully built idna-ssl
ERROR: astroid 2.5 has requirement wrapt<1.13,>=1.11, but you'll have wrapt 1.13.3 which is incompatible.
Installing collected packages: urllib3, idna, certifi, charset-normalizer, requests, six, azure-core, pycparser, cffi, cryptography, pywin32, portalocker, PyJWT, msal, msal-extensions, azure-identity, ConfigArgParse, pyyaml, wrapt, multidict, typing-extensions, yarl, vcrpy, azure-devtools, azure-common, azure-mgmt-core, oauthlib, requests-oauthlib, isodate, msrest, azure-mgmt-resource, azure-mgmt-keyvault, webencodings, pyparsing, packaging, bleach, docutils, Pygments, cmarkgfm, readme-renderer, wcwidth, py, attrs, atomicwrites, colorama, zipp, importlib-metadata, more-itertools, pluggy, pytest, pytest-asyncio, json-delta, python-dateutil, azure-storage-common, wheel, coverage, pytest-cov, python-dotenv, azure-mgmt-storage, pyOpenSSL, MarkupSafe, Jinja2, pytoml, azure-sdk-tools, adal, msrestazure, azure-mgmt-servicebus, async-timeout, asynctest, frozenlist, aiosignal, idna-ssl, aiohttp, pip, pytest-custom-exit-code, pytest-forked, execnet, pytest-xdist, smmap, gitdb, GitPython, pbr, stevedore, bandit, chardet, toml, isort, mccabe, typed-ast, lazy-object-proxy, astroid, pylint
  Attempting uninstall: wheel
    Found existing installation: wheel 0.34.2
    Uninstalling wheel-0.34.2:
ERROR: Could not install packages due to an EnvironmentError: [WinError 145] The directory is not empty: 'd:\\a\\_work\\1\\s\\sdk\\servicebus\\azure-servicebus\\.tox\\whl\\lib\\site-packages\\wheel\\'

WARNING: You are using pip version 20.1.1; however, version 21.3.1 is available.
You should consider upgrading via the 'D:\a\_work\1\s\sdk\servicebus\azure-servicebus\.tox\whl\Scripts\python.EXE -m pip install --upgrade pip' command.

=================================== log end ===================================
ERROR: could not install deps [-rdev_requirements.txt, -r../../../eng/test_tools.txt]; v = InvocationError("'D:\\a\\_work\\1\\s\\sdk\\servicebus\\azure-servicebus\\.tox\\whl\\Scripts\\python.EXE'
...

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
scbeddcommented, Mar 15, 2022

In the past 20 days.

image

Need to continue to reduce disk pressure. We’ve made progress on this issue though.

0reactions
kristapraticocommented, Dec 13, 2022

This seems to be showing up in CI again. I’ve seen it several times, here’s a recent example: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=2052197&view=logs&j=ea5faa7c-5c30-585e-397e-fb65189f31b0&t=4c9d10f4-ab22-5df2-2620-2ded93d53917&l=255

edit: last 20 days

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not install packages due to an OSError: [WinError 2] ...
Try running the command as administrator: or pip install numpy --user to install numpy without any special previlages.
Read more >
[SOLVED] Error The Directory is Not Empty Problem Issue
If you want to know How to Fix The Directory is Not Empty Error Issue then you don't have to worry now as...
Read more >
could not install packages due to an oserror: [errno 2] no ...
After running the build with pip in verbose mode ( pip install -v ibm-db ), you can see the following error: No Gcc...
Read more >
PyInstaller Documentation
Note: If you cannot use the pyinstaller command due to the scripts directory not being in PATH, you can in- stead invoke the...
Read more >
[Error 145] The directory is not empty when doing mach ...
Given that we haven't heard any new failures for this in the past couple of months, I would say we close this bug...
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