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

Running setup.py install for gym did not run successfully. #8078

Closed
skeep83 opened this issue Jan 30, 2023 · 8 comments · Fixed by #8083
Closed

Running setup.py install for gym did not run successfully. #8078

skeep83 opened this issue Jan 30, 2023 · 8 comments · Fixed by #8083
Labels
freqAI Issues and PR's related to freqAI Install Problems with installation

Comments

@skeep83
Copy link

skeep83 commented Jan 30, 2023

Running setup.py install for gym ... error
error: subprocess-exited-with-error

environment

  • Operating system: ubuntu-22.04.1-live-server
  • Python Version: python3

Describe the problem:

Hello !
I try to setup freqtrade on ProxmoxVM-ubuntu-22.04.1-live-server

get this error :

× Running setup.py install for gym did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
error in gym setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> gym

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Failed installing dependencies

@skeep83 skeep83 added the Triage Needed Issues yet to verify label Jan 30, 2023
@xmatthias xmatthias added the freqAI Issues and PR's related to freqAI label Jan 30, 2023
@xmatthias
Copy link
Member

xmatthias commented Jan 30, 2023

To be honest - i think note: This is an issue with the package mentioned above, not pip. says it all.

We'll need some more info though - for example the output of python3 --version and python -m pip --version - as well as the system architecture (arm/amd64, ...).

There's a bug report for this in the gym repo already: openai/gym#3176

@xmatthias xmatthias added Install Problems with installation and removed Triage Needed Issues yet to verify labels Jan 30, 2023
@codewithmuh
Copy link

codewithmuh commented Jan 30, 2023

The error message indicates that the value of the extras_require argument in the setup.py file for the gym package is not formatted correctly.

To resolve the issue, you need to make sure the extras_require argument is a dictionary where the keys are the feature names and the values are strings or lists of strings representing the required packages. The strings should contain valid project and version requirement specifiers (e.g. "package_name>=version").

Here's an example of a correctly formatted extras_require argument:

extras_require = {
"feature_A": ["package_A>=1.0"],
"feature_B": ["package_B>=2.0", "package_C>=3.0"],
}
Once you have corrected the extras_require argument, try running the setup.py install command again to see if the error is resolved.

@xmatthias
Copy link
Member

@rashiddaha yes - but that change needs to happen in gym (not freqtrade) - which is an old version (because sb3-baseline didn't update to a newer gym release yet).

I suspect this issue will now ripple through the different chains - ultimately ending with either pinning setuptools to a lower version - or a new minor release of gym==0.21.x - fixing this issue.

@codewithmuh
Copy link

codewithmuh commented Jan 30, 2023

@xmatthias Yes, You can Try By Changing the Version as well.
I have shared this solution on Upwork (Muhammad Rashid).

@dragon7210

This comment was marked as spam.

@freqtrade freqtrade deleted a comment from dragon7210 Jan 30, 2023
@awesomePC
Copy link

Hi, I can do it

@Masmar25
Copy link

The following is a notice in the homepage of Gym repo.
Isn't it recommended to update the dependency to Gymnasium?
Sorry if I am missing something.
image

@xmatthias
Copy link
Member

freqtrade doesn't depend directly on gym.

We'd love to update - but DLR-RM/stable-baselines3#780 stands in our way.

@xmatthias xmatthias linked a pull request Jan 31, 2023 that will close this issue
blumu pushed a commit to microsoft/CyberBattleSim that referenced this issue Feb 18, 2023
See freqtrade/freqtrade#8078
```
error in gym setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specif
```
blumu pushed a commit to microsoft/CyberBattleSim that referenced this issue Feb 18, 2023
See freqtrade/freqtrade#8078
```
error in gym setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specif
```
blumu pushed a commit to microsoft/CyberBattleSim that referenced this issue Feb 18, 2023
See freqtrade/freqtrade#8078
```
error in gym setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specif
```
blumu added a commit to microsoft/CyberBattleSim that referenced this issue Feb 20, 2023
See freqtrade/freqtrade#8078
```
error in gym setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specif
```

Co-authored-by: William Blum <william.blum@microsoft.com>
kvas7andy pushed a commit to kvas7andy/CyberBattleSim_Web that referenced this issue May 30, 2023
See freqtrade/freqtrade#8078
```
error in gym setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specif
```

Co-authored-by: William Blum <william.blum@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
freqAI Issues and PR's related to freqAI Install Problems with installation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants