NREL / bifacial_radiance

Toolkit for working with RADIANCE for the ray-trace modeling of Bifacial Photovoltaics
https://bifacial-radiance.readthedocs.io
BSD 3-Clause "New" or "Revised" License
84 stars 46 forks source link

not able to run GUI #428

Closed AgravatSM closed 1 year ago

AgravatSM commented 2 years ago

I can create scene but not able to run the the GUI. Following is the message in kernel. Can anyone please support?

Traceback (most recent call last): File "C:\ProgramData\Anaconda3\lib\site-packages\requests\models.py", line 910, in json return complexjson.loads(self.text, **kwargs) File "C:\ProgramData\Anaconda3\lib\json__init__.py", line 346, in loads return _default_decoder.decode(s) File "C:\ProgramData\Anaconda3\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\ProgramData\Anaconda3\lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\ProgramData\Anaconda3\lib\tkinter__init.py", line 1892, in call__ return self.func(*args) File "C:\Users\DrSagar\Documents\bifacial_radiance-main\bifacial_radiance\gui.py", line 391, in runBifacialRadiance self.data, self.analysis = bifacial_radiance.modelchain.runModelChain(simulationParamsDict=simulationParamsDict, File "C:\Users\DrSagar\AppData\Roaming\Python\Python39\site-packages\bifacial_radiance\modelchain.py", line 73, in runModelChain simulationParamsDict['weatherFile'] = demo.getEPW( File "C:\Users\DrSagar\AppData\Roaming\Python\Python39\site-packages\bifacial_radiance\main.py", line 759, in getEPW df = _returnEPWnames() File "C:\Users\DrSagar\AppData\Roaming\Python\Python39\site-packages\bifacial_radiance\main.py", line 723, in _returnEPWnames data = r.json() #metadata for available files File "C:\ProgramData\Anaconda3\lib\site-packages\requests\models.py", line 917, in json raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) requests.exceptions.JSONDecodeError: [Errno Expecting value] <!DOCTYPE html>

The URL you requested has been blocked

FortiGuard Intrusion Prevention - Access Blocked

Web Page Blocked

The page you have requested has been blocked because the URL is banned.

URL https://github.com/
Description
Username
Group Name
URL Source Local URLfilter Block

: 0

shirubana commented 2 years ago

It seems to me that it's failing when it's trying to download the EPW file. This often happens when running inside of a server or VPN that has firewalls or some other restrictions.

To test can you please try pre-downloading a TMY or EPW file and instead pointing the GUI to that location? (read the EPW, not 'get' the EPW).

cdeline commented 1 year ago

This appears to have been solved and I'm closing this. Please comment back and reopen this issue if the problem hasn't been solved. Thanks!