dpinney / omf

The Open Modeling Framework for smart grid cost-benefit analysis.
https://omf.coop
GNU General Public License v2.0
112 stars 62 forks source link

running cyberInverter (& pycigar) model #406

Closed mzinfobeyond closed 9 months ago

mzinfobeyond commented 9 months ago

Hello,

I'm currently facing an issue while attempting to run the CyberInverters model on our production site, https://www.omf.coop/. The error message I'm encountering is as follows:

Traceback (most recent call last):
  File "/omf/omf/models/__neoMetaModel__.py", line 51, in heavyProcessing
    outData = work(modelDir, inputDict)
  File "/omf/omf/models/cyberInverters.py", line 441, in work
    runPyCIGAR()
  File "/omf/omf/models/cyberInverters.py", line 323, in runPyCIGAR
    battery_vvc = False
TypeError: main() got an unexpected keyword argument 'device_path'

Additionally, I've attempted to run CyberInverter through Docker, but it appears that pycigar is not installed. Here's the output from Docker:

MODEL ENCOUNTERED AN ERROR AS FOLLOWS:

Traceback (most recent call last):
  File "/home/omf/omf/models/__neoMetaModel__.py", line 51, in heavyProcessing
    outData = work(modelDir, inputDict)
  File "/home/omf/omf/models/cyberInverters.py", line 441, in work
    runPyCIGAR()
  File "/home/omf/omf/models/cyberInverters.py", line 239, in runPyCIGAR
    import pycigar
ModuleNotFoundError: No module named 'pycigar'

I'm currently running all tests with the default values. Could you please provide guidance on how to resolve this issue?

Thank you.

dpinney commented 9 months ago

Thanks for the bug report. Looks like it's an issue with private pycigar package version mismatch. Let me check with the team.

mzinfobeyond commented 9 months ago

Thank you for getting back to me. Additionally, could you please provide instructions on how to install the pycigar module on my local system?

mzinfobeyond commented 9 months ago

Hello @dpinney ,

Have you received any communication from your teammate regarding the installation of the pycigar module? Thank you for your time.

dpinney commented 9 months ago

Hi again, the team let me know the pycigar module is not in fact released publicly. So this model will not be able to run until further notice.