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

Python package fails to install from pypi #5739

Closed
walchko opened this issue May 3, 2022 · 4 comments
Closed

Python package fails to install from pypi #5739

walchko opened this issue May 3, 2022 · 4 comments
Assignees
Labels
help-wanted Issue contains request for help or information.

Comments

@walchko
Copy link

walchko commented May 3, 2022

Describe the bug

Fails to install from pypi on python3.9.10, macOSX 12.2.1, intel. I am trying to use this package form pypi: https://pypi.org/project/unityagents

pip install unityagents
Requirement already satisfied: unityagents in ./dp/lib/python3.9/site-packages/unityagents-0.4.0-py3.9.egg (0.4.0)
Collecting unityagents
  Using cached unityagents-0.3.0.tar.gz (29 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/pip-install-b51ucz3c/unityagents_a60d8efc814740a09ba48496d52676d2/setup.py", line 6, in <module>
          with open('requirements.txt') as f:
      FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

To Reproduce
Steps to reproduce the behavior:

pip install unityagents

@walchko walchko added the bug Issue describes a potential bug in ml-agents. label May 3, 2022
@AKemendo
Copy link

AKemendo commented May 4, 2022

Thank you @walchko I was also able to reproduce this on a different platform so we will look into this asap.

I logged this internally as https://jira.unity3d.com/browse/MLA-2539.

Please have a look at our contribution guidelines if you choose to hunt the bug down further: https://github.com/Unity-Technologies/ml-agents/blob/main/com.unity.ml-agents/CONTRIBUTING.md

@RedTachyon
Copy link

Isn't unityagents a very old version that hasn't been updated since 2018? You probably want to install pip install mlagents unless I'm missing something

@AKemendo
Copy link

AKemendo commented May 4, 2022

@RedTachyon Yes it is and that is the correct solution here. I confirmed internally that unityagents is fully deprecated

@walchko try:

pip install mlagents

and let us know if you have any issues.

@AKemendo AKemendo added help-wanted Issue contains request for help or information. and removed bug Issue describes a potential bug in ml-agents. labels May 4, 2022
@AKemendo AKemendo closed this as completed May 4, 2022
@github-actions
Copy link

github-actions bot commented Jun 4, 2022

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help-wanted Issue contains request for help or information.
Projects
None yet
Development

No branches or pull requests

3 participants