tum-ens / urbs

A linear optimisation model for distributed energy systems
GNU General Public License v3.0
184 stars 131 forks source link

urbs-env not working - ImportError: DLL load failed - PyTables #294

Open HoussameH opened 3 years ago

HoussameH commented 3 years ago

After a fresh python install, there seems to be a problem in the conda installation of PyTables when creating the urbs evironment from the .yml file. I do not understand the issue fully, but I think that some DLLs are missing from the conda install of PyTables.

For more information, look at: https://github.com/PyTables/PyTables/issues/807 and https://github.com/conda-forge/pytables-feedstock/issues/31

I solved it by installing snappy which comes with the required DLL: conda install snappy

The confusing part is that pytables still works fine even after I removed snappy from the environement. I guess the DLL files are not deleted.

You might want to update the .yml file to account for this or add a note in the installation process.

YigitG97 commented 3 years ago

I have also tried running it without snappy and it was not working at all. So thank you for the solution. I guess this installation step should also be added to the readme file since I tried it with two different computers and got the same errors without snappy.