Troubleshooting Running REopt.jl - NatLabRockies/REopt.jl GitHub Wiki
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:\path\to\REopt\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)