Cannot start process, the working directory '\setuptools-39.1.0' does not exist
Hi all,
When attempting to create a project using virtualenv I get the error:
Cannot start process, the working directory '\setuptools-39.1.0' does not exist
This is on PyCharm 2018.3.2 on Windows 10. I've included the relevant log file lines below. For some reason the packaging tool tries to run the setuptools setup.py from a quasi relative path rather than the temp folder where setuptools was untarred (I know this as I've debugged running the packaging tools untar function manually and it works fine).
2019-01-03 15:14:50,618 [ 82434] INFO - packaging.PyPackageManagerImpl - Running packaging tool: C:\Support\Projects\xxx\venv\Scripts\python.exe C:\Support\Programs\PyCharm 2018.3.2\helpers\packaging_tool.py untar C:\Support\Programs\PyCharm 2018.3.2\helpers\setuptools-39.1.0.tar.gz
2019-01-03 15:14:55,258 [ 87074] INFO - packaging.PyPackageManagerImpl - Running packaging tool: C:\Support\Projects\xxx\venv\Scripts\python.exe \setuptools-39.1.0\setup.py install
Any guidance would be appreciated.
Thanks,
Naed
Please sign in to leave a comment.
Hi Naed,
You're right, PyCharm extracts setuptools-39.1.0.tar.gz into temp folder and run it from there. Do you recall making any changes to your OS prior to the issue? Although this is a long shot, please also check your %TEMP% and %TMP% environment variables, do they point to correct temp folder?
Have you tried re-installing PyCharm?
Hello, I have run into the same problem on a Windows 10, Pycharm Community Edition 2019 3.2. I have the same problem when trying install packaging tools into a virtual environment i created myself, it also wont display any modules i have installed and gives an invaild format error
Ibukun Oladunjoye
Does the issue reproduce in the system command prompt when you are installing the same package to the same virtual environment?
See our troubleshooting guide https://intellij-support.jetbrains.com/hc/en-us/articles/360010202240
The same issue does occur in the system command prompt, I even went as far as running the packaging_tool.py to see if i can untar setuptools, i also ran into the invalid output format error.
Hello, with doing more research, I have found out that this problem happens because I cant untar files via python script on my PC, I dont know why that happens, but that is the reason there is no "\setuptools-40.8.0". I will do more research on why that is happening, but i do believe the tempfiles are being created.