Closed OmarAdnan closed 5 years ago
Hi @OmarAdnan how did you resolve this? Is it working for you now?
I can't find the installer for CEA 2.20.3. Installer from site is 2.14. Does PyCharm update automatically update the dashboard too?
@kerembeygo check here: https://github.com/architecture-building-systems/CityEnergyAnalyst/releases/tag/v2.20
Not PyCharm per se - but updating from GitHub to the newest revision of the master branch is the most recent version of the software.
No it didnt work, so i downloaded 2.19 but in this version every time i try to open my project which was opening correctly in 2.16 doesnt open on 2.19, it gives : 500 internal server error
here is the error message:
Traceback (most recent call last): File "C:\Users\Adnan\Documents\CityEnergyAnalyst\Dependencies\Python\lib\site-packages\flask\app.py", line 2292, in wsgi_app response = self.full_dispatch_request() File "C:\Users\Adnan\Documents\CityEnergyAnalyst\Dependencies\Python\lib\site-packages\flask\app.py", line 1815, in full_dispatch_request rv = self.handle_user_exception(e) File "C:\Users\Adnan\Documents\CityEnergyAnalyst\Dependencies\Python\lib\site-packages\flask\app.py", line 1718, in handle_user_exception reraise(exc_type, exc_value, tb) File "C:\Users\Adnan\Documents\CityEnergyAnalyst\Dependencies\Python\lib\site-packages\flask\app.py", line 1813, in full_dispatch_request rv = self.dispatch_request() File "C:\Users\Adnan\Documents\CityEnergyAnalyst\Dependencies\Python\lib\site-packages\flask\app.py", line 1799, in dispatch_request return self.view_functionsrule.endpoint File "C:\Users\Adnan\Documents\CityEnergyAnalyst\Dependencies\Python\lib\site-packages\cea\interfaces\dashboard\inputs\routes.py", line 108, in route_get_building_properties store['tables'][db] = json.loads(table_df.set_index('Name').to_json(orient='index')) File "C:\Users\Adnan\Documents\CityEnergyAnalyst\Dependencies\Python\lib\site-packages\pandas\core\generic.py", line 1891, in to_json index=index) File "C:\Users\Adnan\Documents\CityEnergyAnalyst\Dependencies\Python\lib\site-packages\pandas\io\json\json.py", line 58, in to_json index=index).write() File "C:\Users\Adnan\Documents\CityEnergyAnalyst\Dependencies\Python\lib\site-packages\pandas\io\json\json.py", line 93, in init self._format_axes() File "C:\Users\Adnan\Documents\CityEnergyAnalyst\Dependencies\Python\lib\site-packages\pandas\io\json\json.py", line 142, in _format_axes "'{orient}'.".format(orient=self.orient)) ValueError: DataFrame index must be unique for orient='index'.
@OmarAdnan hm... this error message doesn't help me a lot - I'm wondering. Could you explain the steps you do to "try to open my project". I'm guessing:
At what point does it stop working for you? When does the error come?
The error message you provided: Is that the one from the browser window? There is also an icon with the CEA logo that opens up when you start the dashboard - it's a minimized terminal with output that also might be of assistance. Could you check that for clues?
If you want, you can send us a copy of your project and we can try to replicate the error. That would help fixing the bug.
I'm re-opening this issue, as it hasn't been resolved yet.
@daren-thomas The error occurs after step 4 (of the 5 steps you mentioned above) after I select the scenario from the list of scenario and 'click' open, the error message appears.
From the minimized terminal this is it shows:
C:\Users\Adnan\Documents\CityEnergyAnalyst>SET PATH=C:\Users\Adnan\Documents\CityEnergyAnalyst\Dependencies\Python;C:\Users\Adnan\Documents\CityEnergyAnalyst\Dependencies\Python\Scripts;C:\Users\Adnan\Documents\CityEnergyAnalyst\Dependencies\Daysim;C:\Program Files\Microsoft MPI\Bin\;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\MATLAB\MATLAB Production Server\R2015a\runtime\win64;C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin;C:\Program Files\MATLAB\MATLAB Production Server\R2015a\polyspace\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Users\Adnan\AppData\Local\Microsoft\WindowsApps;
C:\Users\Adnan\Documents\CityEnergyAnalyst>SET PYTHONHOME=C:\Users\Adnan\Documents\CityEnergyAnalyst\Dependencies\Python
C:\Users\Adnan\Documents\CityEnergyAnalyst>SET PYTHONHOME=C:\Users\Adnan\Documents\CityEnergyAnalyst\Dependencies\Python
C:\Users\Adnan\Documents\CityEnergyAnalyst>SET GDAL_DATA=C:\Users\Adnan\Documents\CityEnergyAnalyst\Dependencies\Python\Library\share\gdal
C:\Users\Adnan\Documents\CityEnergyAnalyst>SET PROJ_LIB=C:\Users\Adnan\Documents\CityEnergyAnalyst\Dependencies\Python\Library\share
C:\Users\Adnan\Documents\CityEnergyAnalyst>SET RAYPATH=C:\Users\Adnan\Documents\CityEnergyAnalyst\Dependencies\Daysim
C:\Users\Adnan\Documents\CityEnergyAnalyst>"C:\Users\Adnan\Documents\CityEnergyAnalyst\Dependencies\Python\python.exe" -m cea.interfaces.cli.cli dashboard
City Energy Analyst version 2.20.3
Running cea dashboard
with the following parameters:
Falling back to the python version of hypervolume module. Expect this to be very slow.
cea.api: loading cea_script:
@kerembeygo your errors, while very helpful, seem unrelated to the current issue. Would you mind in the future creating separate issues for these? Each of the screenshots you posted is it's own issue / potential bug in the code.
I'll move them to separate issues and remove them from this issue as they're distracting from the issue at hand. (see #2268, #2269, #2270, #2271)
@OmarAdnan with the scenario you supplied, I'm able to reproduce the error in the master branch. May I ask: How did you create this scenario?
I have checked and traced the problem down to the index in restrictions.dbf
not being unique: You specify the same buildings multiple times. A rough check suggests they're doubled...
The zone file has 370 buildings, but the unique set of Name
values is 185. The other .dbf
files show much more than 370 buildings, (1480, 8*185) - I'm wondering if this happened by manually editing these files (in Excel?) or if our software did this. Do you have any clues?
@daren-thomas These shapefiles which are of Lisbon was provided to me by my professor, which I have edited using QGIS and reduced to a small area in the city to do my first analysis of the solar radiation potential using daysim in CEA. The zone .dbf file I have edited to create the 5 columns that CEA needs to read my shapefile correctly, which are the Name, height_ag, height_bg, floor_ag and floor_bg as the initial version of the data had columns that weren't needed by CEA.
I don't know if this number of building change is caused by QGIS or CEA, is there any way to fix this? maybe by editing the dbf file again in QGIS, will that fix the issue? or does it seem like I have to recreate the scenario again from the original shapefiles?
Furthermore, this scenario could easily be opened on CEA 2.16, but on that version when i try to run daysim, it would either keep running forever(as in i have left it running over night and in the morning it was still running) or at times gave me an error. After a little digging on github i learned that i was mainly due to the addition of University and Industrial column in the occupancy dbf file. Hence, I downloaded the latest version of CEA hoping it will work here correctly. I believe the in order to run the daysim the important inputs are the building height and shape, along with the terrain and weather data, all of which I have provided, the rest of the files inside the scenario i have generated using the data helper.
Mainly, the problem seems to be that some rows are duplicates - the Name
column should be unique. If you can edit your data to be that way, that would be the easiest.
Alright, I shall try it out and see if it helps but just a small question, will be ok to just change the name of buildings in Name column that are repeated? or there are some other things that need to be done
@OmarAdnan I'm not sure: It seems the various files don't agree on the total number of buildings in your project. I'm guessing, at some point, the datasets got duplicated. If I were you, I'd compare to the originals you got from your professor.
If you're handy with python, using a jupyter notebook
could be a handy place for cleaning up the data. You can use the cea.utilities.dbf.dbf_to_dataframe(path_to_dbf)
function to get a pandas Dataframe of a dbf file... (https://city-energy-analyst.readthedocs.io/en/latest/modules/cea.utilities.html#cea.utilities.dbf.dbf_to_dataframe)
I'm closing this issue as the problem seems to have been found and is related to the input data, not the dashboard itself.
Hi,
I have recently installed CEA 2.20.3 (was running version 2.16 before) and after completing the installation process I tried to launch the CEA dashboard from my desktop but it just doesnt start. Is there any way to overcome this problem?