tum-ens / urbs

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

General problems with installation following the instructions #314

Closed lu-boe closed 1 year ago

lu-boe commented 2 years ago

Hey there! First I would like to ask which Python version is suitable for urbs? Because on the website https://github.com/tum-ens/urbs/blob/master/README.md#installation Version 3.6 or 2.7 is stated. In the ##README.md File in the zip-Folder it says Version 3.5 or 2.7. Thanks in advanve for any help. Highly appreciated! I tried several times to install. When following the procedure (executing runme.py and comp.py) this happens:

(base) C:\Users\lukas>conda activate urbs

(urbs) C:\Users\lukas>py --version Python 3.6.13 :: Anaconda, Inc.

(urbs) C:\Users\lukas>cd C:\Users\lukas\OneDrive\Desktop\Programme_Installation\urbs\urbs-1.0.1\urbs-1.0.1

(urbs) C:\Users\lukas\OneDrive\Desktop\Programme_Installation\urbs\urbs-1.0.1\urbs-1.0.1>python runme.py GLPSOL--GLPK LP/MIP Solver 5.0 Parameter(s) specified in the command line: --log result\Mimo-ex-20220217T1424\scenario_base.log --write C:\Users\lukas\AppData\Local\Temp\tmpwgdr34og.glpk.raw --wglp C:\Users\lukas\AppData\Local\Temp\tmpixcq5bka.glpk.glp --cpxlp C:\Users\lukas\AppData\Local\Temp\tmpunszp_om.pyomo.lp Reading problem data from 'C:\Users\lukas\AppData\Local\Temp\tmpunszp_om.pyomo.lp'... 123371 rows, 129172 columns, 520448 non-zeros 1019811 lines were read Writing problem data to 'C:\Users\lukas\AppData\Local\Temp\tmpixcq5bka.glpk.glp'... 824412 lines were written GLPK Simplex Optimizer 5.0 123371 rows, 129172 columns, 520448 non-zeros Preprocessing... 73820 rows, 83528 columns, 380839 non-zeros Scaling... A: min|aij| = 2.463e-04 max|aij| = 1.400e+04 ratio = 5.684e+07 GM: min|aij| = 2.477e-01 max|aij| = 4.038e+00 ratio = 1.630e+01 EQ: min|aij| = 6.134e-02 max|aij| = 1.000e+00 ratio = 1.630e+01 Constructing initial basis... Size of triangular part is 73808 0: obj = 2.622769069e+11 inf = 7.911e+07 (2883) 1126: obj = 3.578967540e+11 inf = 6.827e+07 (1969) 6 2168: obj = 4.087411140e+11 inf = 6.542e+07 (1781) 5 3086: obj = 4.541193916e+11 inf = 6.289e+07 (1544) 6 3936: obj = 5.028769597e+11 inf = 6.084e+07 (1229) 5 4820: obj = 6.178339312e+11 inf = 5.879e+07 (996) 6 5639: obj = 9.652215159e+11 inf = 5.708e+07 (919) 7 6432: obj = 1.557208449e+12 inf = 5.222e+07 (896) 6 Warning: basis matrix is ill-conditioned (cond = 3.87e+13) 7231: obj = 1.997825908e+12 inf = 4.403e+07 (869) 6 7976: obj = 2.217542034e+12 inf = 3.166e+07 (770) 5 8703: obj = 2.390247335e+12 inf = 2.753e+07 (708) 5 9414: obj = 2.536218815e+12 inf = 2.393e+07 (647) 5 10117: obj = 2.756054236e+12 inf = 2.163e+07 (593) 5 10802: obj = 2.935353932e+12 inf = 1.908e+07 (532) 4 11477: obj = 3.086179517e+12 inf = 1.754e+07 (480) 4 12150: obj = 3.197893621e+12 inf = 1.628e+07 (450) 5 12788: obj = 3.298689697e+12 inf = 1.498e+07 (426) 5 13440: obj = 3.333287446e+12 inf = 1.251e+07 (382) 4 14083: obj = 3.300325046e+12 inf = 1.077e+07 (340) 5 14740: obj = 3.310991662e+12 inf = 8.777e+06 (313) 4 15392: obj = 3.306829795e+12 inf = 8.130e+06 (298) 5 16062: obj = 3.167939175e+12 inf = 7.197e+06 (289) 4 16693: obj = 2.836111646e+12 inf = 5.763e+06 (273) 5 17333: obj = 2.697862855e+12 inf = 4.519e+06 (120) 4 17986: obj = 2.620014273e+12 inf = 3.939e+06 (102) 4 18632: obj = 2.450996742e+12 inf = 3.343e+06 (84) 4 19275: obj = 2.361044575e+12 inf = 2.870e+06 (67) 5 19909: obj = 2.364960423e+12 inf = 2.286e+06 (42) 4 20496: obj = 2.398133956e+12 inf = 1.956e+06 (17) 5 21090: obj = 2.435527949e+12 inf = 1.681e+06 (9) 4 21699: obj = 2.413369321e+12 inf = 1.192e+06 (6) 4 22320: obj = 2.393698876e+12 inf = 9.176e+05 (3) 4 22924: obj = 2.418149249e+12 inf = 7.777e+05 (3) 4 23536: obj = 2.456471196e+12 inf = 4.530e+05 (1) 4 24163: obj = 2.463938084e+12 inf = 3.236e+05 (1) 5 24758: obj = 2.537501175e+12 inf = 2.219e+05 (1) 4 25372: obj = 2.761056031e+12 inf = 8.529e+03 (1) 4 25379: obj = 2.768162266e+12 inf = 5.804e-10 (0)

(urbs) C:\Users\lukas\OneDrive\Desktop\Programme_Installation\urbs\urbs-1.0.1\urbs-1.0.1>python comp.py Traceback (most recent call last): File "comp.py", line 259, in compare_scenarios(list(reversed(result_files)), comp_filename) File "comp.py", line 154, in compare_scenarios costs = pd.concat(costs, axis=1, keys=scenario_names) File "C:\Users\lukas\miniconda3\envs\urbs\lib\site-packages\pandas\core\reshape\concat.py", line 228, in concat copy=copy, sort=sort) File "C:\Users\lukas\miniconda3\envs\urbs\lib\site-packages\pandas\core\reshape\concat.py", line 262, in init raise ValueError('No objects to concatenate') ValueError: No objects to concatenate

ojdo commented 1 year ago

You seem to have some dependency problem somewhere around the import tables line; some DLL that is mentioned in its __init__.py seems not to be present. As the urbs environment installs pytables=3.6.1 for that, I would dig for a bug in that direction. Or maybe you just do not have pytables (or one of its binary depdencies, its docs list the hdf5, zlib, blosc, or bz2 as possible candidates) installed?

ojdo commented 1 year ago

See #294 for a workaround