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

ERROR: Command errored out with exit status 1: develop --no-deps Check the logs for full command output. #7349

Closed
Next0rr opened this issue Nov 13, 2019 · 3 comments
Labels
auto-locked Outdated issues that have been locked by automation project: virtualenv Related to virtualenv type: support User Support

Comments

@Next0rr
Copy link

Next0rr commented Nov 13, 2019

  • pip version:1.9.x
  • Python version:3.7.5
  • OS:Windows 10

SO I am trying to install ml-agents on a virtualENV through CMD and its giving me this

Once I give it the command "pip3 install -e ."

This happens

ERROR: Command errored out with exit status 1:
     command: 'c:\users\samid\mypy\scripts\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\samid\\machine\\ml-agents-master\\ml-agents\\setup.py'"'"'; __file__='"'"'C:\\Users\\samid\\machine\\ml-agents-master\\ml-agents\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps
         cwd: C:\Users\samid\machine\ml-agents-master\ml-agents\
    Complete output (16 lines):
    Fatal Python error: initsite: Failed to import the site module
    Traceback (most recent call last):
      File "c:\users\samid\mypy\lib\site.py", line 769, in <module>
        main()
      File "c:\users\samid\mypy\lib\site.py", line 746, in main
        paths_in_sys = addsitepackages(paths_in_sys)
      File "c:\users\samid\mypy\lib\site.py", line 279, in addsitepackages
        addsitedir(sitedir, known_paths)
      File "c:\users\samid\mypy\lib\site.py", line 202, in addsitedir
        addpackage(sitedir, name, known_paths)
      File "c:\users\samid\mypy\lib\site.py", line 170, in addpackage
        exec(line)
      File "<string>", line 1, in <module>
      File "c:\users\samid\mypy\lib\site-packages\win32\lib\pywin32_bootstrap.py", line 14, in <module>
        for maybe in site.getsitepackages():
    AttributeError: module 'site' has no attribute 'getsitepackages'
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\samid\mypy\scripts\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\samid\\machine\\ml-agents-master\\ml-agents\\setup.py'"'"'; __file__='"'"'C:\\Users\\samid\\machine\\ml-agents-master\\ml-agents\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.

I've did everything correctly I believe if any one could help I would appreciate it

Thank you...

@triage-new-issues triage-new-issues bot added the S: needs triage Issues/PRs that need to be triaged label Nov 13, 2019
@pfmoore
Copy link
Member

pfmoore commented Nov 13, 2019

This looks like it may be related to pypa/virtualenv#737

@Next0rr
Copy link
Author

Next0rr commented Nov 13, 2019

This looks like it may be related to pypa/virtualenv#737

Sadly this did not Work :(

Edit:

King!!! worked it was my fault I was editing the site.py not in my virtualENV lol

Thank you so much <3

@chrahunt chrahunt added project: virtualenv Related to virtualenv type: support User Support labels Nov 13, 2019
@triage-new-issues triage-new-issues bot removed the S: needs triage Issues/PRs that need to be triaged label Nov 13, 2019
@chrahunt
Copy link
Member

Hi @Next0rr, glad you were able to get it working. I will close this now, but please let us know if you have any other problems.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Dec 14, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Dec 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation project: virtualenv Related to virtualenv type: support User Support
Projects
None yet
Development

No branches or pull requests

3 participants