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 (maybe) - Error loading and verifying case #36
Comments
It looks like you are using a PVWatts model. PyPVRPM only supports Detailed PV Models. If you switch your model to that it should resolve this issue. |
Oops, I missed that note in the documentation on my first read through! Thanks for setting me straight. |
I'm still getting the same error after updating to use Detailed PV Models and a financial model that supports lifetime costs (as far as I could tell). I've attached a .zip archive with the exported At any rate, I would consider updating the error message to give the user actionable information. Looking at the code where I believe the error message originates from, it seems that the module name is being inferred from the name of the |
I will take a look, this is most likely an error in SAM, there should be more then 1 file. |
I need you to send me your SAM case file to check it, also make sure you are not renaming the JSON files as well. |
Okay, I figured it out. I misread your initial bug report, you are selecting the wrong option when you click the "Generate Code" menu item. You need to do "Generate Code" -> "PySAM JSON" not "JSON for Inputs". I think the latter option puts all of the information for the modules into a single JSON, rather then properly separate them as PySAM requires. |
As an addition to this, I realize the |
I'm now able to get my case past this error thanks to the updated documentation. |
Overview
When attempting to run
pvrpm
, I get the following error:$ pvrpm run --case ./ ./richland.yaml 2022-02-05 11:22:12,974--ERROR: Error loading and verifying case: Couldn't find module for file richland.json!
System/Environment
Reproducing
Unzip richland.zip into a directory. It contains:
From within the directory with the files above, execute
pvrpm run --case ./ ./richland.yaml
Misc Notes
The PVRPM docs seem to indicate that SAM should generate multiple JSON files, but this is not the case for me.
Also, when I use SAM to export to
json
, SAM crashes, but does successfully generate a singlejson
file as well as the.h
and.so
files. Here's the output from SAM in my terminal:The text was updated successfully, but these errors were encountered: