IBM / rl-testbed-for-energyplus

Reinforcement Learning Testbed for Power Consumption Optimization using EnergyPlus
MIT License
186 stars 77 forks source link

have a problem from downloading ep launch 9.5 in wsl(18.02) by docker. cuz cannot download some requirements.txt #81

Closed Paopasatiht closed 2 years ago

Paopasatiht commented 2 years ago

numpy -> 1.21.0 is not work scipy 1.8.0

what i did:

problem

antoine-galataud commented 2 years ago

Hi @Paopasatiht, Thank you for reporting this issue. Can you share the error trace you get when you use docker build?

Paopasatiht commented 2 years ago

image this is the picture @antoine-galataud

antoine-galataud commented 2 years ago

Ok the problem is that dependencies now listed in requirements.txt are not available on ubuntu 18.04, which is used as base docker image. I have to upgrade the build. Note that it also requires an upgrade of default EnergyPlus version used in the image (Ubuntu 20.04 supported only from EnergyPlus 9.4.0 and onwards).

Paopasatiht commented 2 years ago

image I config the Dockerfile like this to make it become version 9.5 link is down below but I still find the error like this: https://github.com/NREL/EnergyPlus/releases/download/v9.5.0/EnergyPlus-9.5.0-de239b2e5f-Linux-Ubuntu20.04-x86_64.sh

this is my error. image

antoine-galataud commented 2 years ago

@Paopasatiht I've worked on a new version of the Dockerfile that uses EnergyPlus 9.5 and Ubuntu 20.04. I've been able to successfully build it and run an experiment in a container.

Please give it a try:

cd rl-testbed-for-energyplus
git pull
docker build . -f docker/Dockerfile -t rl-testbed-for-energyplus
Paopasatiht commented 2 years ago

now i found this error after use your code @antoine-galataud : image

antoine-galataud commented 2 years ago

@Paopasatiht are you sure this was built only from master sources? Or did you use a special EnergyPlus version / download url? The error message isn’t very explicit so hard to tell what failed.

Paopasatiht commented 2 years ago

@antoine-galataud I make a little vdo to show you what I have done you can click the link down below to watch it https://drive.google.com/file/d/1k_ZCnD36bqxIIcRP3pRSI0AfNxKVdFnx/view?usp=sharing

key point:

image

antoine-galataud commented 2 years ago

@Paopasatiht thank you for taking some time to reproduce. I believe the problem is because we try to install mpi4py both as a distribution package and a pip package. I’ll test a fix tomorrow but removing python-mpi4py package from apt install in stage 2 should be enough. I’ll keep you posted.

antoine-galataud commented 2 years ago

@Paopasatiht Hi! I've fixed the Dockerfile, would you mind giving it a new try? (don't forget to pull the master branch first)

Paopasatiht commented 2 years ago

@antoine-galataud it's finally work now. thankyou so much for your help. image

antoine-galataud commented 2 years ago

@Paopasatiht great news!