Skip to content

Troubleshooting Running REopt.jl

Alex Zolan edited this page Dec 7, 2022 · 4 revisions

Access denied to ssc.dll error

When using REopt.jl from the Julia Package manager (i.e., via using Pkg; Pkg.add("REopt") rather than a clone of the source code) Windows systems may deny access to ssc.dll depending on the user's administrative privileges. If this occurs, the following error will appear: ┌ REopt | Error ] : Problem calling SAM C library! └ @ REopt C:\Users\AZOLAN\.julia\packages\REopt\fbmQ3\src\core\production_factor.jl:307 could not load library "path\to\ssc.dll" Access is denied.

To address this, determine the path to ssc.dll and then include the following two lines in your script after using REopt and before creating a Scenario:

lib = "/path/to/ssc.dll" chmod(lib, filemode(lib) | 0o755)

Clone this wiki locally