Git Product home page Git Product logo

marketlib's Issues

Error: Cant Import GenericStorage

Traceback (most recent call last):
File "C:/Users/swehkamp/Documents/GitHub/FlexValue/09_Sammelpaper 2/EnergyMarketsSimulation/main.py", line 19, in
from src.district_model_4_markets import main as district_model
File "C:\Users\swehkamp\Documents\GitHub\FlexValue\09_Sammelpaper 2\EnergyMarketsSimulation\src\district_model_4_markets.py", line 20, in
from oemof.solph import views, processing
ImportError: cannot import name 'views' from 'oemof.solph' (C:\Users\swehkamp\AppData\Local\Programs\Python\Python38-32\lib\site-packages\oemof\solph_init_.py)

Create test for CI on a VM

A test needs to be created to check automatically if dependencies are created.
Needs to run automatically so no local VM is required.

Error: cant import views & processing

Traceback (most recent call last):
File "C:/Users/swehkamp/Documents/GitHub/FlexValue/09_Sammelpaper 2/EnergyMarketsSimulation/main.py", line 19, in
from src.district_model_4_markets import main as district_model
File "C:\Users\swehkamp\Documents\GitHub\FlexValue\09_Sammelpaper 2\EnergyMarketsSimulation\src\district_model_4_markets.py", line 20, in
from oemof.solph import views, processing
ImportError: cannot import name 'views' from 'oemof.solph' (C:\Users\swehkamp\AppData\Local\Programs\Python\Python38-32\lib\site-packages\oemof\solph_init_.py)

Error: market_data.csv wont be created by initial use

WARNING:root:No district data found for year 2020. Using year 2017
Traceback (most recent call last):
  File "C:/Users/swehkamp/Documents/GitHub/FlexValue/09_Sammelpaper 2/EnergyMarketsSimulation/main.py", line 25, in <module>
    district_model(year=2020, days = 365)
  File "C:\Users\swehkamp\Documents\GitHub\FlexValue\09_Sammelpaper 2\EnergyMarketsSimulation\src\district_model_4_markets.py", line 515, in main
    create_and_solve_scenario(days=days, year=year, scenario=scenario)
  File "C:\Users\swehkamp\Documents\GitHub\FlexValue\09_Sammelpaper 2\EnergyMarketsSimulation\src\district_model_4_markets.py", line 505, in create_and_solve_scenario
    market_data = get_market_dataframe(days=days, year=year, scenario=scenario)
  File "C:\Users\swehkamp\Documents\GitHub\FlexValue\09_Sammelpaper 2\EnergyMarketsSimulation\src\district_model_4_markets.py", line 132, in get_market_dataframe
    market_data = get_market_data(year=year).head(days * 24 * 4)
  File "C:\Users\swehkamp\Documents\GitHub\FlexValue\09_Sammelpaper 2\EnergyMarketsSimulation\src\process_market_data.py", line 148, in get_market_data
    df = read_market_data(start, periods, freq)
  File "C:\Users\swehkamp\Documents\GitHub\FlexValue\09_Sammelpaper 2\EnergyMarketsSimulation\src\process_market_data.py", line 93, in read_market_data
    df=pd.read_csv(market_filename)
  File "C:\Users\swehkamp\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\io\parsers.py", line 610, in read_csv
    return _read(filepath_or_buffer, kwds)
  File "C:\Users\swehkamp\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\io\parsers.py", line 462, in _read
    parser = TextFileReader(filepath_or_buffer, **kwds)
  File "C:\Users\swehkamp\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\io\parsers.py", line 819, in __init__
    self._engine = self._make_engine(self.engine)
  File "C:\Users\swehkamp\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\io\parsers.py", line 1050, in _make_engine
    return mapping[engine](self.f, **self.options)  # type: ignore[call-arg]
  File "C:\Users\swehkamp\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\io\parsers.py", line 1867, in __init__
    self._open_handles(src, kwds)
  File "C:\Users\swehkamp\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\io\parsers.py", line 1362, in _open_handles
    self.handles = get_handle(
  File "C:\Users\swehkamp\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\io\common.py", line 642, in get_handle
    handle = open(
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\swehkamp\\Documents\\GitHub\\FlexValue\\09_Sammelpaper 2\\EnergyMarketsSimulation\\data\\processed\\market_data.csv'

Process finished with exit code 1

It is necessary to run process_market_data.py first.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.