Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virtualenv installation failure due to existing build file #59

Open
acolley opened this issue Sep 26, 2020 · 0 comments
Open

Virtualenv installation failure due to existing build file #59

acolley opened this issue Sep 26, 2020 · 0 comments

Comments

@acolley
Copy link

acolley commented Sep 26, 2020

OS = Windows 10
Shell = PowerShell
Python = 3.8
Version = current master HEAD: 94bb422

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant