rl-institut / offgridders

Models and optimizes capacity & dispatch of electricity supply systems, off-grid or connected to a (weak) central grid
GNU General Public License v3.0
22 stars 9 forks source link

[Bug] Problem installing Offgridders #141

Closed equerikiol closed 4 years ago

equerikiol commented 4 years ago
Last login: Wed Nov  4 08:00:57 on console
(base) Lorafes-MacBook-Air:~ lorafelozano$ conda activate calliope
(calliope) Lorafes-MacBook-Air:~ lorafelozano$ python Offgridders.py ./inputs/test_input_template.xlsx
python: can't open file 'Offgridders.py': [Errno 2] No such file or directory
(calliope) Lorafes-MacBook-Air:~ lorafelozano$ cd downloads
(calliope) Lorafes-MacBook-Air:downloads lorafelozano$ cd offgridders-4.6
(calliope) Lorafes-MacBook-Air:offgridders-4.6 lorafelozano$ python Offgridders.py ./inputs/test_input_template.xlsx
08:14:33-INFO-Path for logging: ./micro_grid_design_logfile.log
08:14:33-INFO-
 Coded by: Martha M. Hoffmann 
 Reiner Lemoine Institute (Berlin) 

08:14:33-INFO-Performing simulations defined by file "./inputs/test_input_template.xlsx"

08:14:33-INFO-Following project locations are evaluated: test_site
--- Logging error ---
Traceback (most recent call last):
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/__init__.py", line 1081, in emit
    msg = self.format(record)
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/__init__.py", line 925, in format
    return fmt.format(record)
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/__init__.py", line 664, in format
    record.message = record.getMessage()
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/__init__.py", line 369, in getMessage
    msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
  File "Offgridders.py", line 293, in <module>
    main()
  File "Offgridders.py", line 89, in main
    ) = excel_template.process_excel_file(input_excel_file)
  File "/Users/lorafelozano/Downloads/offgridders-4.6/src/B_read_from_files.py", line 119, in process_excel_file
    case_definitions = get_case_definitions(input_excel_file, sheet_case_definitions)
  File "/Users/lorafelozano/Downloads/offgridders-4.6/src/B_read_from_files.py", line 256, in get_case_definitions
    logging.error(
Message: "Parameter evaluation_perspective has to be either 'AC_system' or 'DC_system', but is "
Arguments: ('AC_system',)
--- Logging error ---
Traceback (most recent call last):
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/__init__.py", line 1081, in emit
    msg = self.format(record)
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/__init__.py", line 925, in format
    return fmt.format(record)
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/__init__.py", line 664, in format
    record.message = record.getMessage()
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/__init__.py", line 369, in getMessage
    msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
  File "Offgridders.py", line 293, in <module>
    main()
  File "Offgridders.py", line 89, in main
    ) = excel_template.process_excel_file(input_excel_file)
  File "/Users/lorafelozano/Downloads/offgridders-4.6/src/B_read_from_files.py", line 119, in process_excel_file
    case_definitions = get_case_definitions(input_excel_file, sheet_case_definitions)
  File "/Users/lorafelozano/Downloads/offgridders-4.6/src/B_read_from_files.py", line 256, in get_case_definitions
    logging.error(
Message: "Parameter evaluation_perspective has to be either 'AC_system' or 'DC_system', but is "
Arguments: ('AC_system',)
--- Logging error ---
Traceback (most recent call last):
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/__init__.py", line 1081, in emit
    msg = self.format(record)
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/__init__.py", line 925, in format
    return fmt.format(record)
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/__init__.py", line 664, in format
    record.message = record.getMessage()
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/__init__.py", line 369, in getMessage
    msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
  File "Offgridders.py", line 293, in <module>
    main()
  File "Offgridders.py", line 89, in main
    ) = excel_template.process_excel_file(input_excel_file)
  File "/Users/lorafelozano/Downloads/offgridders-4.6/src/B_read_from_files.py", line 119, in process_excel_file
    case_definitions = get_case_definitions(input_excel_file, sheet_case_definitions)
  File "/Users/lorafelozano/Downloads/offgridders-4.6/src/B_read_from_files.py", line 256, in get_case_definitions
    logging.error(
Message: "Parameter evaluation_perspective has to be either 'AC_system' or 'DC_system', but is "
Arguments: ('AC_system',)
--- Logging error ---
Traceback (most recent call last):
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/__init__.py", line 1081, in emit
    msg = self.format(record)
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/__init__.py", line 925, in format
    return fmt.format(record)
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/__init__.py", line 664, in format
    record.message = record.getMessage()
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/__init__.py", line 369, in getMessage
    msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
  File "Offgridders.py", line 293, in <module>
    main()
  File "Offgridders.py", line 89, in main
    ) = excel_template.process_excel_file(input_excel_file)
  File "/Users/lorafelozano/Downloads/offgridders-4.6/src/B_read_from_files.py", line 119, in process_excel_file
    case_definitions = get_case_definitions(input_excel_file, sheet_case_definitions)
  File "/Users/lorafelozano/Downloads/offgridders-4.6/src/B_read_from_files.py", line 256, in get_case_definitions
    logging.error(
Message: "Parameter evaluation_perspective has to be either 'AC_system' or 'DC_system', but is "
Arguments: ('AC_system',)
--- Logging error ---
Traceback (most recent call last):
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/__init__.py", line 1081, in emit
    msg = self.format(record)
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/__init__.py", line 925, in format
    return fmt.format(record)
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/__init__.py", line 664, in format
    record.message = record.getMessage()
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/__init__.py", line 369, in getMessage
    msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
  File "Offgridders.py", line 293, in <module>
    main()
  File "Offgridders.py", line 89, in main
    ) = excel_template.process_excel_file(input_excel_file)
  File "/Users/lorafelozano/Downloads/offgridders-4.6/src/B_read_from_files.py", line 119, in process_excel_file
    case_definitions = get_case_definitions(input_excel_file, sheet_case_definitions)
  File "/Users/lorafelozano/Downloads/offgridders-4.6/src/B_read_from_files.py", line 256, in get_case_definitions
    logging.error(
Message: "Parameter evaluation_perspective has to be either 'AC_system' or 'DC_system', but is "
Arguments: ('AC_system',)
--- Logging error ---
Traceback (most recent call last):
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/__init__.py", line 1081, in emit
    msg = self.format(record)
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/__init__.py", line 925, in format
    return fmt.format(record)
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/__init__.py", line 664, in format
    record.message = record.getMessage()
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/__init__.py", line 369, in getMessage
    msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
  File "Offgridders.py", line 293, in <module>
    main()
  File "Offgridders.py", line 89, in main
    ) = excel_template.process_excel_file(input_excel_file)
  File "/Users/lorafelozano/Downloads/offgridders-4.6/src/B_read_from_files.py", line 119, in process_excel_file
    case_definitions = get_case_definitions(input_excel_file, sheet_case_definitions)
  File "/Users/lorafelozano/Downloads/offgridders-4.6/src/B_read_from_files.py", line 256, in get_case_definitions
    logging.error(
Message: "Parameter evaluation_perspective has to be either 'AC_system' or 'DC_system', but is "
Arguments: ('AC_system',)
--- Logging error ---
Traceback (most recent call last):
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/__init__.py", line 1081, in emit
    msg = self.format(record)
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/__init__.py", line 925, in format
    return fmt.format(record)
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/__init__.py", line 664, in format
    record.message = record.getMessage()
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/__init__.py", line 369, in getMessage
    msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
  File "Offgridders.py", line 293, in <module>
    main()
  File "Offgridders.py", line 89, in main
    ) = excel_template.process_excel_file(input_excel_file)
  File "/Users/lorafelozano/Downloads/offgridders-4.6/src/B_read_from_files.py", line 119, in process_excel_file
    case_definitions = get_case_definitions(input_excel_file, sheet_case_definitions)
  File "/Users/lorafelozano/Downloads/offgridders-4.6/src/B_read_from_files.py", line 256, in get_case_definitions
    logging.error(
Message: "Parameter evaluation_perspective has to be either 'AC_system' or 'DC_system', but is "
Arguments: ('AC_system',)
--- Logging error ---
Traceback (most recent call last):
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/__init__.py", line 1081, in emit
    msg = self.format(record)
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/__init__.py", line 925, in format
    return fmt.format(record)
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/__init__.py", line 664, in format
    record.message = record.getMessage()
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/__init__.py", line 369, in getMessage
    msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
  File "Offgridders.py", line 293, in <module>
    main()
  File "Offgridders.py", line 89, in main
    ) = excel_template.process_excel_file(input_excel_file)
  File "/Users/lorafelozano/Downloads/offgridders-4.6/src/B_read_from_files.py", line 119, in process_excel_file
    case_definitions = get_case_definitions(input_excel_file, sheet_case_definitions)
  File "/Users/lorafelozano/Downloads/offgridders-4.6/src/B_read_from_files.py", line 256, in get_case_definitions
    logging.error(
Message: "Parameter evaluation_perspective has to be either 'AC_system' or 'DC_system', but is "
Arguments: ('AC_system',)
08:14:33-WARNING-Attributes "pv_cost_investment, pv_lifetime" defined in constant and sensitivity parameters. Only sensitivity parameter value will be used for sensitivity_experiment_s.
08:14:33-INFO-Parameters of sensitivity analysis: pv_cost_investment, pv_lifetime
08:14:33-ERROR-You chose parameter 'fuel_price_change_annual' unequal zero. This calculation is still faulty and you should check the resulting fuel price. It would be better if you set your fuel price by hand.
08:14:33-INFO- The resulting fuel price is: 0.7305005445162127
08:14:33-INFO-Randomized blackout timeseries for all combinations of blackout duration and frequency (1 experiments) will be generated.
08:14:34-INFO-For 1 project sites with 1 scenarios each, 1 sensitivity_experiment_s will be performed for each case.
08:14:34-INFO-Base capacities provided by: pv-diesel-mg
08:14:34-INFO-All simulated cases: pv-diesel-mg, pv-diesel-storage-mg, pv-wind-storage-diesel-mg
08:14:34-INFO-With these cases, a total of 3 simulations will be performed. 

08:14:34-INFO-Blackout experiment 1: Blackout duration 0 hrs, blackout frequency 0 per month
08:14:34-INFO-Number of blackouts in simulated timeframe: 0
08:14:34-INFO-Grid is not operational for 0 hours, with a reliability of 100.0 percent. 

08:14:34-INFO-Missing blackout timeseries added through auto-generation.
08:14:34-INFO-Starting simulation of case pv-diesel-mg, project site test_site, experiment no. 1/3...
08:14:34-INFO-Added constraint: Stability though actual generation of diesel generators and backup through batteries.
08:14:34-INFO-Simulating...
08:14:34-INFO-Optimization successful...
08:14:35-INFO-Restoring attributes will overwrite existing attributes.
Traceback (most recent call last):
  File "Offgridders.py", line 293, in <module>
    main()
  File "Offgridders.py", line 202, in main
    oemof_results = oemof_simulate.run(
  File "/Users/lorafelozano/Downloads/offgridders-4.6/src/G0_oemof_simulate.py", line 104, in run
    micro_grid_system = oemof_model.load_oemof_results(
  File "/Users/lorafelozano/Downloads/offgridders-4.6/src/G1_oemof_create_model.py", line 531, in load_oemof_results
    micro_grid_system.restore(
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/site-packages/oemof/network/energy_system.py", line 215, in restore
    self.__dict__ = pickle.load(open(os.path.join(dpath, filename), "rb"))
  File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/site-packages/dill/_dill.py", line 304, in load
    obj = pik.load()
TypeError: an integer is required (got type bytes)
(calliope) Lorafes-MacBook-Air:offgridders-4.6 lorafelozano$
smartie2076 commented 4 years ago

Hello @equerikiol! Thank you for moving our discussion to Github - it will be easier to share the error messages here then via email. Can you also share the packages you installed? A list is printed out with pip list (please activate your environment first).

This message here:

--- Logging error --- Traceback (most recent call last): File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/init.py", line 1081, in emit msg = self.format(record) File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/init.py", line 925, in format return fmt.format(record) File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/init.py", line 664, in format record.message = record.getMessage() File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/logging/init.py", line 369, in getMessage msg = msg % self.args TypeError: not all arguments converted during string formatting Call stack: File "Offgridders.py", line 293, in main() File "Offgridders.py", line 89, in main ) = excel_template.process_excel_file(input_excel_file) File "/Users/lorafelozano/Downloads/offgridders-4.6/src/B_read_from_files.py", line 119, in process_excel_file case_definitions = get_case_definitions(input_excel_file, sheet_case_definitions) File "/Users/lorafelozano/Downloads/offgridders-4.6/src/B_read_from_files.py", line 256, in get_case_definitions logging.error( Message: "Parameter evaluation_perspective has to be either 'AC_system' or 'DC_system', but is " Arguments: ('AC_system',)

Indicates a parsing error. Just to be sure: You did not change anything in the input file, did you? If you did, please upload it here. It could also be that Mac stores information differently in excel files then Windows/Linux computers. I would need to check the dependencies then. After this, the logging error is repeated seven more times.

Still, the simulation seems to be running after this:

08:14:33-WARNING-Attributes "pv_cost_investment, pv_lifetime" defined in constant and sensitivity parameters. Only sensitivity parameter value will be used for sensitivity_experiment_s. ... 08:14:34-INFO-With these cases, a total of 3 simulations will be performed.

Another error occurs with the oemof package:

08:14:35-INFO-Restoring attributes will overwrite existing attributes. Traceback (most recent call last): File "Offgridders.py", line 293, in main() File "Offgridders.py", line 202, in main oemof_results = oemof_simulate.run( File "/Users/lorafelozano/Downloads/offgridders-4.6/src/G0_oemof_simulate.py", line 104, in run micro_grid_system = oemof_model.load_oemof_results( File "/Users/lorafelozano/Downloads/offgridders-4.6/src/G1_oemof_create_model.py", line 531, in load_oemof_results micro_grid_system.restore( File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/site-packages/oemof/network/energy_system.py", line 215, in restore self.dict = pickle.load(open(os.path.join(dpath, filename), "rb")) File "/Users/lorafelozano/miniconda3/envs/calliope/lib/python3.8/site-packages/dill/_dill.py", line 304, in load obj = pik.load() TypeError: an integer is required (got type bytes)

When you send be the list of installed packages, I can check if you installed the correct depencencies. If you did, this error is something I will not be able to do anything about, as then the issue is not with Offgridders but with oemof. It might also be an issue that only occurs on Mac computers.

smartie2076 commented 4 years ago

One more comment: Can you tell me exactly which version you downloaded? Did you use the 4.6 release? Which version of MacOX are you using?

equerikiol commented 4 years ago

I have downloaded both Offgriders-dev and 4.6 and both showed the same result. I use 10.12.6 MacOS Sierra

thanks, Edward

On Wed, Nov 4, 2020 at 4:32 PM smartie2076 notifications@github.com wrote:

One more comment: Can you tell me exactly which version you downloaded? Did you use the 4.6 release? Which version of MacOX are you using?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rl-institut/offgridders/issues/141#issuecomment-721588620, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARP2FUXNYOWEY7TQFOQX3ULSOEGQ7ANCNFSM4TJMMRYQ .

equerikiol commented 4 years ago
  1. I did not change the input file.
  2. pip list Last login: Wed Nov 4 08:13:46 on ttys000

(base) Lorafes-MacBook-Air:~ lorafelozano$ conda activate calliope

(calliope) Lorafes-MacBook-Air:~ lorafelozano$ cd downloads

(calliope) Lorafes-MacBook-Air:downloads lorafelozano$ cd offgridders-4.6

(calliope) Lorafes-MacBook-Air:offgridders-4.6 lorafelozano$ pip list

Package Version


appdirs 1.4.3

black 19.10b0

blinker 1.4

certifi 2020.6.20

cycler 0.10.0

decorator 4.3.0

descartes 1.1.0

dill 0.2.8.2

idna 2.7

kiwisolver 1.0.1

libgraph 0.0.3

matplotlib 3.3.2

networkx 2.5

nose 1.3.7

numexpr 2.6.8

numpy 1.19.2

oemof.network 0.4.0rc0

oemof.solph 0.4.1

oemof.tools 0.4.0

pandas 0.23.4

pathspec 0.8.0

Pillow 8.0.1

pip 20.2.4

ply 3.11

Pyomo 5.7.1

pyparsing 2.2.2

python-dateutil 2.8.1

pytz 2020.1

PyUtilib 6.0.0

regex 2020.10.23

scipy 1.4.1

setuptools 50.3.0.post20201006

Shapely 1.7.1

six 1.15.0

tables 3.4.4

toml 0.10.1

typed-ast 1.4.1

urllib3 1.25.2

wheel 0.35.1

xlrd 1.2.0

XlsxWriter 1.2.7

(calliope) Lorafes-MacBook-Air:offgridders-4.6 lorafelozano$

  1. I downloaded the 4.6 version and I use 10.12.6 MacOS Sierra
equerikiol commented 4 years ago

So what is the suggested version for Offgridders? I will try to install using Windows PC.

smartie2076 commented 4 years ago

On windows, the release version 4.6 works for me. Use python 3.6 or 3.7 though. If you have issues with numpexpr delete it from the requirements.txt file - pip will then install the version that your computer can use. I was not able to replicate your oemof error.

smartie2076 commented 4 years ago

Here are the packages that I installed, but keep in mind that I am using Offgidders as a developer and need many more than you do:

Package                       Version
----------------------------- ---------
alabaster                     0.7.12
appdirs                       1.4.3
attrs                         19.3.0
Babel                         2.8.0
black                         19.10b0
blinker                       1.4
certifi                       2019.9.11
chardet                       3.0.4
click                         7.1.1
colorama                      0.4.3
cycler                        0.10.0
decorator                     4.3.0
dill                          0.2.8.2
docutils                      0.16
idna                          2.7
imagesize                     1.2.0
Jinja2                        2.11.2
kiwisolver                    1.0.1
libgraph                      0.0.3
MarkupSafe                    1.1.1
matplotlib                    3.0.0
networkx                      2.5
nose                          1.3.7
numexpr                       2.7.1
numpy                         1.14.5
oemof.network                 0.4.0rc0
oemof.solph                   0.4.1
oemof.tools                   0.4.0
packaging                     20.4
pandas                        0.23.4
pathspec                      0.7.0
pip                           20.2.4
ply                           3.11
Pygments                      2.6.1
Pyomo                         5.7
pyparsing                     2.2.2
pyreadline                    2.1
python-dateutil               2.7.3
pytz                          2018.5
PyUtilib                      6.0.0
regex                         2020.2.20
requests                      2.23.0
scipy                         1.4.1
setuptools                    40.4.3
six                           1.11.0
snowballstemmer               2.0.0
Sphinx                        3.0.3
sphinx-rtd-theme              0.4.3
sphinxcontrib-applehelp       1.0.2
sphinxcontrib-devhelp         1.0.2
sphinxcontrib-htmlhelp        1.0.3
sphinxcontrib-jsmath          1.0.1
sphinxcontrib-qthelp          1.0.3
sphinxcontrib-serializinghtml 1.1.4
tables                        3.4.4
toml                          0.10.0
typed-ast                     1.4.1
urllib3                       1.25.2
wheel                         0.32.1
wincertstore                  0.2
xlrd                          1.2.0
XlsxWriter                    1.2.7
smartie2076 commented 4 years ago

Here I compare the differences between our installations. Sometimes, different package versions are not compatible, so maybe try to reinstall the respective packages with the identical version:

Win10 Win10 Mac Mac
appdirs 1.4.3 appdirs 1.4.3
black 19.10b0 black 19.10b0
blinker 1.4 blinker 1.4
certifi 2019.9.11 certifi 2020.6.20
cycler 0.10.0 cycler 0.10.0
decorator 4.3.0 decorator 4.3.0
    descartes 1.1.0
dill 0.2.8.2 dill 0.2.8.2
idna 2.7 idna 2.7
kiwisolver 1.0.1 kiwisolver 1.0.1
libgraph 0.0.3 libgraph 0.0.3
matplotlib 3.0.0 matplotlib 3.3.2
networkx 2.5 networkx 2.5
nose 1.3.7 nose 1.3.7
numexpr 2.7.1 numexpr 2.6.8
numpy 1.14.5 numpy 1.19.2
oemof.network 0.4.0rc0 oemof.network 0.4.0rc0
oemof.solph 0.4.1 oemof.solph 0.4.1
oemof.tools 0.4.0 oemof.tools 0.4.0
pandas 0.23.4 pandas 0.23.4
pathspec 0.7.0 pathspec 0.8.0
    Pillow 8.0.1
pip 20.2.4 pip 20.2.4
ply 3.11 ply 3.11
Pyomo 5.7 Pyomo 5.7.1
pyparsing 2.2.2 pyparsing 2.2.2
python-dateutil 2.7.3 python-dateutil 2.8.1
pytz 2018.5 pytz 2020.1
PyUtilib 6.0.0 PyUtilib 6.0.0
regex 2020.2.20 regex 2020.10.23
scipy 1.4.1 scipy 1.4.1
setuptools 40.4.3 setuptools 50.3.0.post20201006
six 1.11.0 six 1.15.0
    Shapely 1.7.1
tables 3.4.4 tables 3.4.4
toml 0.10.0 toml 0.10.1
typed-ast 1.4.1 typed-ast 1.4.1
urllib3 1.25.2 urllib3 1.25.2
wheel 0.32.1 wheel 0.35.1
xlrd 1.2.0 xlrd 1.2.0
XlsxWriter 1.2.7 XlsxWriter 1.2.7
smartie2076 commented 4 years ago

The most important ones are propably matplotlib, numexpr, numpy, Pyomo, pytz and six.

smartie2076 commented 4 years ago

I released a patch for Offgridders and the installation issues: https://github.com/rl-institut/offgridders/releases/tag/v4.6.1 Please let me know if this fixes your (or some of your) issues. Please also note that I updated the installation instructions.

equerikiol commented 4 years ago

Hope this is good news!

(querikiol) PS C:\Users\Lorafe Lozano\downloads\offgridders-4.6.1> python Offgridders.py 11:44:27-INFO-Path for logging: ./micro_grid_design_logfile.log 11:44:27-INFO- Coded by: Martha M. Hoffmann Reiner Lemoine Institute (Berlin)

11:44:27-INFO-Performing simulations defined by file "./inputs/test_input_template.xlsx"

11:44:27-INFO-Following project locations are evaluated: test_site 11:44:27-WARNING-Attributes "pv_cost_investment, pv_lifetime" defined in constant and sensitivity parameters. Only sensitivity parameter value will be used for sensitivity_experiment_s. 11:44:27-INFO-Parameters of sensitivity analysis: pv_cost_investment, pv_lifetime 11:44:27-ERROR-You chose parameter 'fuel_price_change_annual' unequal zero. This calculation is still faulty and you should check the resulting fuel price. It would be better if you set your fuel price by hand. 11:44:27-INFO- The resulting fuel price is: 0.7305005445162127 11:44:27-INFO-Randomized blackout timeseries for all combinations of blackout duration and frequency (1 experiments) will be generated. 11:44:27-INFO-For 1 project sites with 1 scenarios each, 1 sensitivity_experiment_s will be performed for each case. 11:44:27-INFO-Base capacities provided by: pv-diesel-mg 11:44:27-INFO-All simulated cases: pv-diesel-mg, pv-diesel-storage-mg, pv-wind-storage-diesel-mg 11:44:27-INFO-With these cases, a total of 3 simulations will be performed.

11:44:27-INFO-Blackout experiment 1: Blackout duration 0 hrs, blackout frequency 0 per month 11:44:27-INFO-Number of blackouts in simulated timeframe: 0 11:44:27-INFO-Grid is not operational for 0 hours, with a reliability of 100.0 percent.

11:44:27-INFO-Missing blackout timeseries added through auto-generation. 11:44:27-INFO-Starting simulation of case pv-diesel-mg, project site test_site, experiment no. 1/3... 11:44:28-INFO-Added constraint: Stability though actual generation of diesel generators and backup through batteries. 11:44:28-INFO-Simulating... WARNING: Could not locate the 'cbc' executable, which is required for solver cbc 11:44:28-WARNING-Could not locate the 'cbc' executable, which is required for solver cbc Traceback (most recent call last): File "Offgridders.py", line 295, in main() File "Offgridders.py", line 205, in main sensitivity_experiment_s[experiment], experiment_case_dict File "C:\Users\Lorafe Lozano\downloads\offgridders-4.6.1\src\G0_oemof_simulate.py", line 109, in run experiment, micro_grid_system, model, file_name File "C:\Users\Lorafe Lozano\downloads\offgridders-4.6.1\src\G1_oemof_create_model.py", line 544, in simulate experiment[CMDLINE_OPTION]: str(experiment[CMDLINE_OPTION_VALUE]) File "C:\Users\Lorafe Lozano\miniconda3\envs\querikiol\lib\site-packages\oemof\solph\models.py", line 206, in solve solver_results = opt.solve(self, **solve_kwargs) File "C:\Users\Lorafe Lozano\miniconda3\envs\querikiol\lib\site-packages\pyomo\opt\base\solvers.py", line 516, in solve self.available(exception_flag=True) File "C:\Users\Lorafe Lozano\miniconda3\envs\querikiol\lib\site-packages\pyomo\opt\solver\shellcmd.py", line 118, in available raise ApplicationError(msg % self.name) pyutilib.common._exceptions.ApplicationError: No executable found for solver 'cbc' (querikiol) PS C:\Users\Lorafe Lozano\downloads\offgridders-4.6.1> python Offgridders.py 11:45:24-INFO-Path for logging: ./micro_grid_design_logfile.log 11:45:24-INFO- Coded by: Martha M. Hoffmann Reiner Lemoine Institute (Berlin)

11:45:24-INFO-Performing simulations defined by file "./inputs/test_input_template.xlsx"

11:45:24-INFO-Following project locations are evaluated: test_site 11:45:24-WARNING-Attributes "pv_cost_investment, pv_lifetime" defined in constant and sensitivity parameters. Only sensitivity parameter value will be used for sensitivity_experiment_s. 11:45:24-INFO-Parameters of sensitivity analysis: pv_cost_investment, pv_lifetime 11:45:24-ERROR-You chose parameter 'fuel_price_change_annual' unequal zero. This calculation is still faulty and you should check the resulting fuel price. It would be better if you set your fuel price by hand. 11:45:24-INFO- The resulting fuel price is: 0.7305005445162127 11:45:24-INFO-Randomized blackout timeseries for all combinations of blackout duration and frequency (1 experiments) will be generated. 11:45:24-INFO-For 1 project sites with 1 scenarios each, 1 sensitivity_experiment_s will be performed for each case. 11:45:24-INFO-Base capacities provided by: pv-diesel-mg 11:45:24-INFO-All simulated cases: pv-diesel-mg, pv-diesel-storage-mg, pv-wind-storage-diesel-mg 11:45:24-INFO-With these cases, a total of 3 simulations will be performed.

11:45:24-INFO-Blackout experiment 1: Blackout duration 0 hrs, blackout frequency 0 per month 11:45:24-INFO-Number of blackouts in simulated timeframe: 0 11:45:24-INFO-Grid is not operational for 0 hours, with a reliability of 100.0 percent.

11:45:24-INFO-Missing blackout timeseries added through auto-generation. 11:45:24-INFO-Starting simulation of case pv-diesel-mg, project site test_site, experiment no. 1/3... 11:45:24-INFO-Added constraint: Stability though actual generation of diesel generators and backup through batteries. 11:45:24-INFO-Simulating... 11:45:25-INFO-Optimization successful... 11:45:25-INFO-Restoring attributes will overwrite existing attributes. 11:45:25-WARNING-Stability criterion is strictly not fullfilled, but deviation is less then e6. 11:45:26-INFO-Simulation of case "pv-diesel-mg" resulted in : 0.281 currency/kWh, at a renewable share of 26.63 percent with a reliability of 100.0 percent 11:45:26-INFO- Initial simulation time (s): 0.08 / Actual evaluation time (s): 2.33 11:45:26-INFO- Estimated simulation time left: 0.1 minutes.

11:45:26-INFO-Starting simulation of case pv-diesel-storage-mg, project site test_site, experiment no. 2/3... 11:45:27-INFO-Added constraint: Stability though actual generation of diesel generators and backup through batteries. 11:45:27-INFO-Simulating... 11:45:27-INFO-Optimization successful... 11:45:27-INFO-Restoring attributes will overwrite existing attributes. 11:45:27-WARNING-Stability criterion is strictly not fullfilled, but deviation is less then e6. 11:45:28-INFO-Simulation of case "pv-diesel-storage-mg" resulted in : 0.268 currency/kWh, at a renewable share of 41.45 percent with a reliability of 100.0 percent 11:45:28-INFO- Initial simulation time (s): 0.11 / Actual evaluation time (s): 2.08 11:45:29-INFO- Estimated simulation time left: 0.0 minutes.

11:45:29-INFO-Starting simulation of case pv-wind-storage-diesel-mg, project site test_site, experiment no. 3/3... 11:45:29-INFO-Added constraint: Stability though actual generation of diesel generators and backup through batteries. 11:45:29-INFO-Simulating... 11:45:29-INFO-Optimization successful... 11:45:29-INFO-Restoring attributes will overwrite existing attributes. 11:45:29-WARNING-Stability criterion is strictly not fullfilled, but deviation is less then e6. 11:45:31-INFO-Simulation of case "pv-wind-storage-diesel-mg" resulted in : 0.249 currency/kWh, at a renewable share of 58.51 percent with a reliability of 100.0 percent 11:45:31-INFO- Initial simulation time (s): 0.09 / Actual evaluation time (s): 2.15 11:45:31-INFO- Estimated simulation time left: 0.0 minutes.

11:45:31-INFO- Simulation complete. Resulting parameters saved in "results.csv". Overview over results: project_site_name case pv_cost_investment pv_lifetime lcoe res_share 0 test_site pv-diesel-mg 1000 20 0.28144 0.26629 1 test_site pv-diesel-storage-mg 1000 20 0.26789 0.41451 2 test_site pv-wind-storage-diesel-mg 1000 20 0.24887 0.58512 11:45:31-INFO-Performing multicriteria analysis 11:45:32-INFO-Multicriteria analysis was successfully performed

Warnings or errors might have occurred. Please check terminal output or saved log-file to make sure they do not influence your simulation results. (querikiol) PS C:\Users\Lorafe Lozano\downloads\offgridders-4.6.1>

equerikiol commented 4 years ago

(querikiol) PS C:\Users\Lorafe Lozano\downloads\offgridders-4.6.1> python Offgridders.py ./inputs/test_input_template.xlsx 11:48:57-INFO-Path for logging: ./micro_grid_design_logfile.log 11:48:57-INFO- Coded by: Martha M. Hoffmann Reiner Lemoine Institute (Berlin)

11:48:57-INFO-Performing simulations defined by file "./inputs/test_input_template.xlsx"

11:48:57-INFO-Following project locations are evaluated: test_site 11:48:58-WARNING-Attributes "pv_cost_investment, pv_lifetime" defined in constant and sensitivity parameters. Only sensitivity parameter value will be used for sensitivity_experiment_s. 11:48:58-INFO-Parameters of sensitivity analysis: pv_cost_investment, pv_lifetime 11:48:58-ERROR-You chose parameter 'fuel_price_change_annual' unequal zero. This calculation is still faulty and you should check the resulting fuel price. It would be better if you set your fuel price by hand. 11:48:58-INFO- The resulting fuel price is: 0.7305005445162127 11:48:58-INFO-Randomized blackout timeseries for all combinations of blackout duration and frequency (1 experiments) will be generated. 11:48:58-INFO-For 1 project sites with 1 scenarios each, 1 sensitivity_experiment_s will be performed for each case. 11:48:58-INFO-Base capacities provided by: pv-diesel-mg 11:48:58-INFO-All simulated cases: pv-diesel-mg, pv-diesel-storage-mg, pv-wind-storage-diesel-mg 11:48:58-INFO-With these cases, a total of 3 simulations will be performed.

11:48:58-INFO-Blackout experiment 1: Blackout duration 0 hrs, blackout frequency 0 per month 11:48:58-INFO-Number of blackouts in simulated timeframe: 0 11:48:58-INFO-Grid is not operational for 0 hours, with a reliability of 100.0 percent.

11:48:58-INFO-Missing blackout timeseries added through auto-generation. 11:48:58-INFO-Starting simulation of case pv-diesel-mg, project site test_site, experiment no. 1/3... 11:48:58-INFO-Added constraint: Stability though actual generation of diesel generators and backup through batteries. 11:48:58-INFO-Simulating... 11:48:59-INFO-Optimization successful... 11:48:59-INFO-Restoring attributes will overwrite existing attributes. 11:48:59-WARNING-Stability criterion is strictly not fullfilled, but deviation is less then e6. 11:49:00-INFO-Simulation of case "pv-diesel-mg" resulted in : 0.281 currency/kWh, at a renewable share of 26.63 percent with a reliability of 100.0 percent 11:49:00-INFO- Initial simulation time (s): 0.09 / Actual evaluation time (s): 2.16 11:49:00-INFO- Estimated simulation time left: 0.1 minutes.

11:49:00-INFO-Starting simulation of case pv-diesel-storage-mg, project site test_site, experiment no. 2/3... 11:49:00-INFO-Added constraint: Stability though actual generation of diesel generators and backup through batteries. 11:49:00-INFO-Simulating... 11:49:01-INFO-Optimization successful... 11:49:01-INFO-Restoring attributes will overwrite existing attributes. 11:49:01-WARNING-Stability criterion is strictly not fullfilled, but deviation is less then e6. 11:49:02-INFO-Simulation of case "pv-diesel-storage-mg" resulted in : 0.268 currency/kWh, at a renewable share of 41.45 percent with a reliability of 100.0 percent 11:49:02-INFO- Initial simulation time (s): 0.09 / Actual evaluation time (s): 2.14 11:49:02-INFO- Estimated simulation time left: 0.0 minutes.

11:49:02-INFO-Starting simulation of case pv-wind-storage-diesel-mg, project site test_site, experiment no. 3/3... 11:49:02-INFO-Added constraint: Stability though actual generation of diesel generators and backup through batteries. 11:49:03-INFO-Simulating... 11:49:03-INFO-Optimization successful... 11:49:03-INFO-Restoring attributes will overwrite existing attributes. 11:49:03-WARNING-Stability criterion is strictly not fullfilled, but deviation is less then e6. 11:49:04-INFO-Simulation of case "pv-wind-storage-diesel-mg" resulted in : 0.249 currency/kWh, at a renewable share of 58.51 percent with a reliability of 100.0 percent 11:49:04-INFO- Initial simulation time (s): 0.09 / Actual evaluation time (s): 2.14 11:49:05-INFO- Estimated simulation time left: 0.0 minutes.

11:49:05-INFO- Simulation complete. Resulting parameters saved in "results.csv". Overview over results: project_site_name case pv_cost_investment pv_lifetime lcoe res_share 0 test_site pv-diesel-mg 1000 20 0.28144 0.26629 1 test_site pv-diesel-storage-mg 1000 20 0.26789 0.41451 2 test_site pv-wind-storage-diesel-mg 1000 20 0.24887 0.58512 11:49:05-INFO-Performing multicriteria analysis 11:49:06-INFO-Multicriteria analysis was successfully performed

Warnings or errors might have occurred. Please check terminal output or saved log-file to make sure they do not influence your simulation results. (querikiol) PS C:\Users\Lorafe Lozano\downloads\offgridders-4.6.1>

equerikiol commented 4 years ago

Thank you Martha, what a relief!!!

smartie2076 commented 3 years ago

Great to hear!