ugr-sail / sinergym

Gym environment for building simulation and control using reinforcement learning
https://ugr-sail.github.io/sinergym/
MIT License
131 stars 35 forks source link

[Question][Help] Need help with installation #399

Closed Hnecent closed 7 months ago

Hnecent commented 7 months ago

Dear sinergym,

I followed the installation steps and downloaded the docker container. I cloned the repository and work in Pycharm now on a windows. I am getting the following error when trying the examples that were given:

image

I hope you can help me with this problem!

Best, Xiao

AlejandroCN7 commented 7 months ago

Hello @Hnecent,

I'm sorry to hear about the issue you're experiencing.

While I'm not exactly sure what the problem might be without more information, here are a few suggestions:

  1. Ensure that you are within the Docker container.
  2. Please refer to this issue, specifically this response, to make sure you're not encountering the same problem.
  3. You also need to ensure that your workspace has the environment variable PYTHONPATH set, and that it includes the path /usr/local/EnergyPlus-${ENERGYPLUS_INSTALL_VERSION}. If for some reason your EnergyPlus installation is located elsewhere, please specify that, as otherwise the interpreter won't recognize the pyenergyplus library.
  4. Make sure you're working with the latest version of Sinergym to avoid any bugs that have already been fixed.

I hope this helps! Please let me know if you have any other questions.

Best regards!

Hnecent commented 7 months ago

Thank you for your reply, I think I found the problem, it is because I use this image in pycharm and pycharm will recreate the helper container to run the image, but then the environment variables will be lost. The container I created directly using this image does not have this problem. Thanks again for your help!