protoactor-python
protoactor-python copied to clipboard
Virtualenv installation failure due to existing build file
OS = Windows 10 Shell = PowerShell Python = 3.8 Version = current master HEAD: 94bb4220bbef7a7cee50f6829fcf4d4362e487c6
While installing the library into a virtualenv I encountered the following error:
PS C:\Users\alnes\dev\protoactor-python> python -m venv .venv
PS C:\Users\alnes\dev\protoactor-python> .\.venv\Scripts\Activate.ps1
(.venv) PS C:\Users\alnes\dev\protoactor-python> pip install .
Processing c:\users\alnes\dev\protoactor-python
Installing collected packages: ProtoActor-Python
Running setup.py install for ProtoActor-Python ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\alnes\dev\protoactor-python\.venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\alnes\\AppData\\Local\\Temp\\pip-req-build-_pv65mo5\\setup.py'"'"'; __file__='"'"'C:\\Users\\alnes\\AppData\\Local\\Temp\\pip-req-build-_pv65mo5\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__,
'"'"'exec'"'"'))' install --record 'C:\Users\alnes\AppData\Local\Temp\pip-record-k8zzc2w7\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\alnes\dev\protoactor-python\.venv\include\site\python3.8\ProtoActor-Python'
cwd: C:\Users\alnes\AppData\Local\Temp\pip-req-build-_pv65mo5\
Complete output (5 lines):
running install
running build
running build_py
creating build
error: could not create 'build': Cannot create a file when that file already exists
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\alnes\dev\protoactor-python\.venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\alnes\\AppData\\Local\\Temp\\pip-req-build-_pv65mo5\\setup.py'"'"'; __file__='"'"'C:\\Users\\alnes\\AppData\\Local\\Temp\\pip-req-build-_pv65mo5\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\alnes\AppData\Local\Temp\pip-record-k8zzc2w7\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\alnes\dev\protoactor-python\.venv\include\site\python3.8\ProtoActor-Python' Check the logs for full command output.
This appears to have been caused by the build file in the root of the repository.
I'm not sure how important this file is but after removing it the installation continues but fails due to a different error noted in another issue: #58.