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

[Bug] importing stable baselines 3 on linux and windows directory issue #2034

Open
5 tasks done
Feelfeel20088 opened this issue Nov 5, 2024 · 2 comments
Open
5 tasks done
Labels
bug Something isn't working more information needed Please fill the issue template completely windows

Comments

@Feelfeel20088
Copy link

🐛 Bug

Hello, I was packaging stable_baselines3 for NixOS because there is currently no package for it. After successfully fetching the source, I encountered the error below when importing it. It seems to be a directory issue, but I’m not entirely sure. I then also tried to install it on my Windows computer with pip and got a similar error. The error below was on my Windows computer. I have verified that the stable_baselines3 library and Python files are present.

Thank you in advance for your help—I hope this is just a simple mistake on my part.

To Reproduce

pip install stable_baselines3[extra]

Relevant log output / Error message

Traceback (most recent call last):
  File "c:\Users\trash\OneDrive\Desktop\stuff\RL\snake.py", line 2, in <module>
    import stable_baselines3
  File "C:\Users\trash\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\stable_baselines3\__init__.py", line 3, in <module>
    from stable_baselines3.a2c import A2C
  File "C:\Users\trash\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\stable_baselines3\a2c\__init__.py", line 1, in <module>
    from stable_baselines3.a2c.a2c import A2C
  File "C:\Users\trash\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\stable_baselines3\a2c\a2c.py", line 7, in <module>
    from stable_baselines3.common.buffers import RolloutBuffer
  File "C:\Users\trash\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\stable_baselines3\common\buffers.py", line 17, in <module>
    from stable_baselines3.common.vec_env import VecNormalize
  File "C:\Users\trash\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\stable_baselines3\common\vec_env\__init__.py", line 14, in <module>
    from stable_baselines3.common.vec_env.vec_video_recorder import VecVideoRecorder
  File "C:\Users\trash\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\stable_baselines3\common\vec_env\vec_video_recorder.py", line 4, in <module>

System Info

No response

Checklist

  • My issue does not relate to a custom gym environment. (Use the custom gym env template instead)
  • I have checked that there is no similar issue in the repo
  • I have read the documentation
  • I have provided a minimal and working example to reproduce the bug
  • I've used the markdown code blocks for both code and stack traces.
@Feelfeel20088 Feelfeel20088 added the bug Something isn't working label Nov 5, 2024
@Feelfeel20088 Feelfeel20088 changed the title [Bug] importing stable baselines 3 on linux directory issue [Bug] importing stable baselines 3 on linux and windows directory issue Nov 5, 2024
@araffin araffin added more information needed Please fill the issue template completely windows labels Nov 5, 2024
@araffin
Copy link
Member

araffin commented Nov 5, 2024

Hello,
Could you please give the full traceback? (There is no error name currently)

@Feelfeel20088
Copy link
Author

sorry about that. When i get home ill get the trace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working more information needed Please fill the issue template completely windows
Projects
None yet
Development

No branches or pull requests

2 participants