Farama-Foundation/stable-retro

error: metadata-generation-failed

Misteridk2022 opened this issue · 8 comments

Issue summary

For some reason am trying to install stable-retro through CMD and pycharm, but for some reason it's not working. I've updated setuptools and pip, reinstall them, unistalled everyone thing (Python and Pycharm) restart my computer few times install Cmake, Microsoft C++ build tools, and even have the require version of python to be compatiable for stable-retro I need your help.

C:\Windows\System32>pip install stable-retro
Collecting stable-retro
Using cached stable-retro-0.9.1.tar.gz (111.4 MB)
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 "", line 2, in
File "", line 34, in
File "C:\Users\skyle\AppData\Local\Temp\pip-install-k9ez_2cs\stable-retro_1a174f8f15d44d96800ab359d52b65cb\setup.py", line 88, in
version=open(VERSION_PATH).read().strip(),
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\skyle\AppData\Local\Temp\pip-install-k9ez_2cs\stable-retro_1a174f8f15d44d96800ab359d52b65cb\retro/VERSION.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.

System information

GPU
NVIDIA GeForce RTX 2070

Processor
Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz, 2592 Mhz, 6 Core(s), 12 Logical Processor(s)

Window 11
Python 3.8
stable-retro v0.9.1

'C:\Users\skyle\AppData\Local\Temp\pip-install-k9ez_2cs\stable-retro_1a174f8f15d44d96800ab359d52b65cb\retro/VERSION.txt' due to window using \ rather than /, the path is wrong.
I suspect we should use os.path.join rather than string concatenation

@zbeucler2018 would you be able to investigate?

hmm if that's the issue What can I do to change it or another method to install it?

Without you / us fixing it or you changing a linux based system then I don't think there is anything you can do.

Also having the same issue, is there a quick fix for the slash going the wrong way?

'C:\Users\skyle\AppData\Local\Temp\pip-install-k9ez_2cs\stable-retro_1a174f8f15d44d96800ab359d52b65cb\retro/VERSION.txt' due to window using \ rather than /, the path is wrong.

I suspect we should use os.path.join rather than string concatenation

@zbeucler2018 would you be able to investigate?

I'm happy to investigate this and I think using os.path.join is a much better solution. However, I am not sure if we support windows

However, I am not sure if we support windows

Yes, is the simplest solution and Gymnasium doesn't officially support windows.
Our general rule has been if we can make simple changes to support windows then we will otherwise no

So far, I've tried pip install stable-retro --pre, pip3 install stable-retro, and pip install stable-retro --use-pep517 with no luck. still showing the error.

hmm if that's the issue What can I do to change it or another method to install it?

You can use WSL2 (Windows sur Subsystem for Linux) on Windows with Ubuntu 22.04 virtual machine and install stable-retro in the VM. It's works quite well and will be much less painful than running directly on Windows.

Here is a simple video for that:
https://www.youtube.com/watch?v=28Ei63qtquQ