-
Notifications
You must be signed in to change notification settings - Fork 8.6k
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
[Bug Report] Building wheel for gym (setup.py) ... error #3202
Comments
|
I'm getting the same error, it's not a setuptools version problem, it's a configuration error. |
Where can I find this file and modify it? |
I couldn't find the location of the configuration file, so i used a very inelegant way to modify the code and solved this problem. [doge] `
` |
Anyway, this method helped me solve the problem. Thank you very much! |
Alternatively,
installs gym==0.21 with the typo |
This appears to be because of a change with |
Problem description: openai/gym#3202 It would be much better to upgrade to a recent version of gym, or even better, switch to gymnasium. But stable-baselines3 has not done this upgrade/switch yet, so I'll have to wait. When doing the switch/upgrade, don't forget to fix all three files: - setup.py - Makefile (_venv rule) - .github/workflows/main.yml
* Disable mobile manipulation test * PyTorch version bump * PyTorch version bump * PyTorch version bump * PyTorch version bump * PyTorch version bump * Gym version bump * Gym version bump * Wheel version downgrade to openai/gym#3202 * Wheel version downgrade due to openai/gym#3202 * Wheel version downgrade due to openai/gym#3202 * Removed unsupported argument `enable_onnx_checker` * Added opset version * Added opset versions * Fixed `load_state_dict_from_url` calls * Fixed interpolation argument due to pytorchvision bump * Fixed `load_state_dict_from_url` import * Removed inplace operation * Remove inplace operation * Added missing dependency * Style fix * Removed unused import * DCN update * DCN update * DCN update * DCN version fix * Fix DCN loading to be backward compatible * Update tests_suite.yml * Update tests_suite_develop.yml * Update test_packages.yml * Update test_packages.yml * Update tests_suite.yml * Update tests_suite_develop.yml * Update test_packages.yml * Update tests_suite.yml * Update tests_suite_develop.yml * Update test_packages.yml * Update tests_suite.yml * Update tests_suite_develop.yml * Update deprecated macos image * Disable source tests on ubuntu for testing * Revert previous commit * Try to fix apt errors * Update macos image --------- Co-authored-by: Nikolaos Passalis <passalis@csd.auth.gr> Co-authored-by: Nikolaos Passalis <passalis@users.noreply.github.com>
Be aware that there are major api changes with the latest version compared to v0.21 |
* Disable mobile manipulation test * PyTorch version bump * PyTorch version bump * PyTorch version bump * PyTorch version bump * PyTorch version bump * Gym version bump * Gym version bump * Wheel version downgrade to openai/gym#3202 * Wheel version downgrade due to openai/gym#3202 * Wheel version downgrade due to openai/gym#3202 * Removed unsupported argument `enable_onnx_checker` * Added opset version * Added opset versions * Fixed `load_state_dict_from_url` calls * Fixed interpolation argument due to pytorchvision bump * Fixed `load_state_dict_from_url` import * Removed inplace operation * Remove inplace operation * Added missing dependency * Style fix * Removed unused import * DCN update * DCN update * DCN update * DCN version fix * Fix DCN loading to be backward compatible * Update tests_suite.yml * Update tests_suite_develop.yml * Update test_packages.yml * Update test_packages.yml * Update tests_suite.yml * Update tests_suite_develop.yml * Update test_packages.yml * Update tests_suite.yml * Update tests_suite_develop.yml * Update test_packages.yml * Update tests_suite.yml * Update tests_suite_develop.yml * Update deprecated macos image * Disable source tests on ubuntu for testing * Revert previous commit * Try to fix apt errors * Update macos image --------- Co-authored-by: Nikolaos Passalis <passalis@csd.auth.gr> Co-authored-by: Nikolaos Passalis <passalis@users.noreply.github.com>
FYI, on Windows, the file to modify manually is: |
|
Describe the bug
Building wheel for gym (setup.py) ... error
System Info
My python version is 3.7.3,My linux version is Ubuntu18.04
The bug info is:
Building wheels for collected packages: gym
Building wheel for gym (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [481 lines of output]
Traceback (most recent call last):
File "", line 36, in
File "", line 34, in
File "/tmp/pip-install-ghwoed05/gym_e92a96bf7ac54dd59edd31213e4aa557/setup.py", line 74, in
"Programming Language :: Python :: 3.9",
File "/usr/local/python3.7/lib/python3.7/site-packages/setuptools/init.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/usr/local/python3.7/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/usr/local/python3.7/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/usr/local/python3.7/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
self.run_command(cmd)
File "/usr/local/python3.7/lib/python3.7/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/usr/local/python3.7/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/usr/local/python3.7/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 395, in run
self.egg2dist(self.egginfo_dir, distinfo_dir)
File "/usr/local/python3.7/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 534, in egg2dist
pkg_info = pkginfo_to_metadata(egginfo_path, pkginfo_path)
File "/usr/local/python3.7/lib/python3.7/site-packages/wheel/metadata.py", line 160, in pkginfo_to_metadata
for key, value in generate_requirements({extra: reqs}):
File "/usr/local/python3.7/lib/python3.7/site-packages/wheel/metadata.py", line 138, in generate_requirements
for new_req in convert_requirements(depends):
File "/usr/local/python3.7/lib/python3.7/site-packages/wheel/metadata.py", line 103, in convert_requirements
parsed_requirement = Requirement(req)
File "/usr/local/python3.7/lib/python3.7/site-packages/wheel/vendored/packaging/requirements.py", line 37, in init
raise InvalidRequirement(str(e)) from e
wheel.vendored.packaging.requirements.InvalidRequirement: Expected end or semicolon (after version specifier)
opencv-python>=3.
~~~^
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for gym
Running setup.py clean for gym
Failed to build gym
The text was updated successfully, but these errors were encountered: