Honeybee-energy.config folders are missing in docker container

Hello,

I am trying to pull a docker image of honeybee-energy. I have successfully built the container and am trying to execute a couple python scripts inside of it. Mainly the following two:

from honeybee_energy.run import to_openstudio_osw, run_osw

I run into the following error:

–include: Directory does not exist: None
Run with --help for more information.
Failed to translate HBJSON to OSM

Upon further inspection into the config (from honeybee_energy.config import folders as energy_folders) I notice that most of the paths are configured except for the honeybee_adapter_path and honeybee_openstudio_gem_path

config_file: /usr/local/lib/python3.10/site-packages/honeybee_energy/config.json
construction_lib: /usr/local/lib/python3.10/site-packages/honeybee_standards/constructions
constructionset_lib: /usr/local/lib/python3.10/site-packages/honeybee_standards/constructionsets
defaults_file: /usr/local/lib/python3.10/site-packages/honeybee_standards/energy_default.json
efficiency_standard_measure_path: /home/ladybugbot/ladybug_tools/resources/measures/efficiency_standard
energyplus_exe: /home/ladybugbot/ladybug_tools/openstudio/EnergyPlus/energyplus
energyplus_idd_path: /home/ladybugbot/ladybug_tools/openstudio/EnergyPlus/Energy+.idd
energyplus_path: /home/ladybugbot/ladybug_tools/openstudio/EnergyPlus
energyplus_version: (24, 2, 0)
energyplus_version_str: 24.2.0-94a887817b\n’
honeybee_adapter_path: None
honeybee_openstudio_gem_path: None
inject_idf_measure_path: /home/ladybugbot/ladybug_tools/resources/measures/inject_idf
ironbug_exe: /home/ladybugbot/ladybug_tools/grasshopper/ironbug/Ironbug.Console
ironbug_path: /home/ladybugbot/ladybug_tools/grasshopper/ironbug
ironbug_version: None
ironbug_version_str: None
lbt_measures_path: /home/ladybugbot/ladybug_tools/resources/measures
mute: True
openstudio_csharp_path: /home/ladybugbot/ladybug_tools/grasshopper/ironbug
openstudio_exe: /home/ladybugbot/ladybug_tools/openstudio/bin/openstudio
openstudio_lib_path: /home/ladybugbot/ladybug_tools/openstudio/lib
openstudio_path: /home/ladybugbot/ladybug_tools/openstudio/bin
openstudio_results_measure_path: /home/ladybugbot/ladybug_tools/resources/measures/openstudio_results
openstudio_version: (3, 9, 0)
openstudio_version_str: 3.9.0+c77fbb9569\n’
programtype_lib: /usr/local/lib/python3.10/site-packages/honeybee_standards/programtypes
schedule_lib: /usr/local/lib/python3.10/site-packages/honeybee_standards/schedules
standards_data_folder: /usr/local/lib/python3.10/site-packages/honeybee_standards
standards_extension_folders: (‘/usr/local/lib/python3.10/site-packages/honeybee_energy_standards’,)
view_data_measure_path: /home/ladybugbot/ladybug_tools/resources/measures/view_data

Trying to run the same functions locally (outside of the container) shows that the config does have paths for these attributes. So that leads me to believe it may be the issue.

I’ve uploaded my dockerfile, any help would be greatly appreciated. Thank you!

dockerfile.zip (1.1 KB)

Update:

I am manually adding the honeybee_openstudio_gem via:

COPY honeybee_openstudio_gem /home/ladybugbot/ladybug_tools/resources/measures/honeybee_openstudio_gem

I also realized that I was pulling the wrong image, as I required Openstudio 3.7.0. I initially checked the version of the package via pip on my local machine and matched the docker image to that version. I am now using v1.114.2.

FROM ladybugtools/honeybee-energy:1.114.2

Not sure if it’s a result of the local copy or the correct image being pulled, maybe I can test that later and report back but it seems to be working now.

Feel free to provide more info if you have it, I’d love to know that I’m setting this up correctly/incorrectly.

Cheers,