oemof / oemof-tabular

Load oemof energy systems from tabular data sources.
https://oemof-tabular.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
7 stars 5 forks source link

Errors and warnings for tests with clean install #11

Closed cswh closed 5 years ago

cswh commented 5 years ago

A clean install with pip install 'git+https://git@github.com/oemof/oemof-tabular.git' for Python 3.6.7 yields for the tests the errors and warnings below.

(venv) clemens@euf-cwi:~/znes_clemens/repositories/oemof-tabular$ tox
GLOB sdist-make: /home/clemens/znes_clemens/repositories/oemof-tabular/setup.py
clean create: /home/clemens/znes_clemens/repositories/oemof-tabular/.tox/clean
clean installdeps: coverage
clean installed: coverage==4.5.3
clean run-test-pre: PYTHONHASHSEED='1653473122'
clean run-test: commands[0] | coverage erase
check create: /home/clemens/znes_clemens/repositories/oemof-tabular/.tox/check
check installdeps: docutils, check-manifest, flake8, readme-renderer, pygments, isort
check installed: bleach==3.1.0,check-manifest==0.38,docutils==0.14,entrypoints==0.3,flake8==3.7.7,isort==4.3.18,mccabe==0.6.1,pycodestyle==2.5.0,pyflakes==2.1.1,Pygments==2.3.1,readme-renderer==24.0,six==1.12.0,toml==0.10.0,webencodings==0.5.1
check run-test-pre: PYTHONHASHSEED='1653473122'
check run-test: commands[0] | python setup.py check --strict --metadata --restructuredtext
/home/clemens/znes_clemens/repositories/oemof-tabular/.tox/check/lib/python3.6/site-packages/setuptools/dist.py:472: UserWarning: Normalizing '0.0.1dev' to '0.0.1.dev0'
  normalized_version,
running check
warning: Check: This command has been deprecated. Use `twine check` instead: https://packaging.python.org/guides/making-a-pypi-friendly-readme#validating-restructuredtext-markup

The project's long description is valid RST.
check run-test: commands[1] | check-manifest /home/clemens/znes_clemens/repositories/oemof-tabular
lists of files in version control and sdist do not match!
missing from sdist:
  data
  data/data.xls
suggested MANIFEST.in rules:
  recursive-include data *.xls
ERROR: InvocationError for command /home/clemens/znes_clemens/repositories/oemof-tabular/.tox/check/bin/check-manifest . (exited with code 1)
docs create: /home/clemens/znes_clemens/repositories/oemof-tabular/.tox/docs
docs installdeps: -r/home/clemens/znes_clemens/repositories/oemof-tabular/docs/requirements.txt
docs inst: /home/clemens/znes_clemens/repositories/oemof-tabular/.tox/.tmp/package/1/oemof.tabular-0.0.1.dev0.zip
docs installed: alabaster==0.7.12,appdirs==1.4.3,asn1crypto==0.24.0,attrs==19.1.0,Babel==2.6.0,backcall==0.1.0,bcrypt==3.1.6,cchardet==2.1.4,certifi==2019.3.9,cffi==1.12.3,chardet==3.0.4,Click==7.0,cryptography==2.6.1,cycler==0.10.0,datapackage==1.6.0,decorator==4.4.0,dill==0.2.9,docutils==0.14,et-xmlfile==1.0.1,geojson==2.4.1,idna==2.8,ijson==2.3,imagesize==1.1.0,ipython==7.5.0,ipython-genutils==0.2.0,isodate==0.6.0,jdcal==1.4.1,jedi==0.13.3,Jinja2==2.10.1,jsonlines==1.2.0,jsonpointer==2.0,jsonschema==3.0.1,jupyter-core==4.4.0,kiwisolver==1.1.0,linear-tsv==1.1.0,MarkupSafe==1.1.1,matplotlib==3.0.3,nbformat==4.4.0,networkx==2.2,nose==1.3.7,numpy==1.16.3,oemof==0.2.4.dev0,oemof.tabular==0.0.1.dev0,openpyxl==2.4.11,packaging==19.0,pandas==0.24.2,paramiko==2.4.2,parso==0.4.0,pexpect==4.7.0,pickleshare==0.7.5,plotly==3.9.0,ply==3.11,prompt-toolkit==2.0.9,ptyprocess==0.6.0,pyasn1==0.4.5,pycparser==2.19,Pygments==2.3.1,PyNaCl==1.3.0,Pyomo==5.6.2,pyparsing==2.4.0,pyproj==2.1.3,pyrsistent==0.15.1,pyshp==2.1.0,python-dateutil==2.8.0,pytz==2019.1,PyUtilib==5.7.0,requests==2.21.0,retrying==1.3.3,rfc3986==1.3.1,scikit-learn==0.20.3,scipy==1.2.1,Shapely==1.6.4.post2,six==1.12.0,sklearn==0.0,snowballstemmer==1.2.1,Sphinx==2.0.1,sphinx-rtd-theme==0.4.3,sphinxcontrib-applehelp==1.0.1,sphinxcontrib-devhelp==1.0.1,sphinxcontrib-htmlhelp==1.0.2,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-qthelp==1.0.2,sphinxcontrib-serializinghtml==1.1.3,SQLAlchemy==1.3.3,tableschema==1.4.1,tabulator==1.20.0,toml==0.10.0,traitlets==4.3.2,tsam==1.0.3,unicodecsv==0.14.1,urllib3==1.24.3,wcwidth==0.1.7,xlrd==1.2.0
docs run-test-pre: PYTHONHASHSEED='1653473122'
docs run-test: commands[0] | sphinx-build -E -b html docs dist/docs
Running Sphinx v2.0.1
making output directory... done
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 11 source files that are out of date
updating environment: 11 added, 0 changed, 0 removed
/home/clemens/znes_clemens/repositories/oemof-tabular/.tox/docs/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: numpy.ufunc size changed, may indicate binary incompatibility. Expected 216, got 192
  return f(*args, **kwds)
/home/clemens/znes_clemens/repositories/oemof-tabular/.tox/docs/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: numpy.ufunc size changed, may indicate binary incompatibility. Expected 192 from C header, got 216 from PyObject
  return f(*args, **kwds)
/home/clemens/znes_clemens/repositories/oemof-tabular/.tox/docs/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: numpy.ufunc size changed, may indicate binary incompatibility. Expected 216, got 192
  return f(*args, **kwds)
reading sources... [100%] usage                                                                       
/home/clemens/znes_clemens/repositories/oemof-tabular/.tox/docs/lib/python3.6/site-packages/oemof/tabular/facades.py:docstring of oemof.tabular.facades:1: WARNING: Inline interpreted text or phrase reference start-string without end-string.
WARNING: autodoc: failed to import module 'geometry' from module 'oemof.tabular.tools'; the following exception was raised:
Traceback (most recent call last):
  File "/home/clemens/znes_clemens/repositories/oemof-tabular/.tox/docs/lib/python3.6/site-packages/sphinx/ext/autodoc/importer.py", line 232, in import_module
    __import__(modname)
  File "/home/clemens/znes_clemens/repositories/oemof-tabular/.tox/docs/lib/python3.6/site-packages/oemof/tabular/tools/geometry.py", line 129, in <module>
    geom, fr=pyproj.Proj(proj="longlat"), to=pyproj.Proj(proj="aea")
  File "/home/clemens/znes_clemens/repositories/oemof-tabular/.tox/docs/lib/python3.6/site-packages/pyproj/proj.py", line 295, in __init__
    self.crs = CRS.from_user_input(projparams if projparams is not None else kwargs)
  File "/home/clemens/znes_clemens/repositories/oemof-tabular/.tox/docs/lib/python3.6/site-packages/pyproj/crs.py", line 224, in from_user_input
    return cls(**value)
  File "/home/clemens/znes_clemens/repositories/oemof-tabular/.tox/docs/lib/python3.6/site-packages/pyproj/crs.py", line 146, in __init__
    super(CRS, self).__init__(projstring)
  File "pyproj/_crs.pyx", line 317, in pyproj._crs._CRS.__init__
pyproj.exceptions.CRSError: Invalid projection: +proj=aea +type=crs: (Internal Proj Error: proj_create: Error -21: conic lat_1 = -lat_2)

/home/clemens/znes_clemens/repositories/oemof-tabular/docs/usage.rst:61: WARNING: Bullet list ends without a blank line; unexpected unindent.
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] usage                                                                        
generating indices... genindex py-modindex
highlighting module code... [100%] oemof.tabular.tools                                                
writing additional pages... search/home/clemens/znes_clemens/repositories/oemof-tabular/.tox/docs/lib/python3.6/site-packages/sphinx_rtd_theme/search.html:20: RemovedInSphinx30Warning: To modify script_files in the theme is deprecated. Please insert a <script> tag directly in your theme instead.
  {{ super() }}

copying static files... done
copying extra files... done
dumping search index in English (code: en) ... done
dumping object inventory... done
build succeeded, 3 warnings.

The HTML pages are in dist/docs.
docs run-test: commands[1] | sphinx-build -b linkcheck docs dist/docs
Running Sphinx v2.0.1
loading pickled environment... done
building [mo]: targets for 0 po files that are out of date
building [linkcheck]: targets for 11 source files that are out of date
updating environment: [] 0 added, 1 changed, 0 removed
reading sources... [100%] reference/oemof.tabular.tools                                               
WARNING: autodoc: failed to import module 'geometry' from module 'oemof.tabular.tools'; the following exception was raised:
Traceback (most recent call last):
  File "/home/clemens/znes_clemens/repositories/oemof-tabular/.tox/docs/lib/python3.6/site-packages/sphinx/ext/autodoc/importer.py", line 232, in import_module
    __import__(modname)
  File "/home/clemens/znes_clemens/repositories/oemof-tabular/.tox/docs/lib/python3.6/site-packages/oemof/tabular/tools/geometry.py", line 129, in <module>
    geom, fr=pyproj.Proj(proj="longlat"), to=pyproj.Proj(proj="aea")
  File "/home/clemens/znes_clemens/repositories/oemof-tabular/.tox/docs/lib/python3.6/site-packages/pyproj/proj.py", line 295, in __init__
    self.crs = CRS.from_user_input(projparams if projparams is not None else kwargs)
  File "/home/clemens/znes_clemens/repositories/oemof-tabular/.tox/docs/lib/python3.6/site-packages/pyproj/crs.py", line 224, in from_user_input
    return cls(**value)
  File "/home/clemens/znes_clemens/repositories/oemof-tabular/.tox/docs/lib/python3.6/site-packages/pyproj/crs.py", line 146, in __init__
    super(CRS, self).__init__(projstring)
  File "pyproj/_crs.pyx", line 317, in pyproj._crs._CRS.__init__
pyproj.exceptions.CRSError: Invalid projection: +proj=aea +type=crs: (Internal Proj Error: proj_create: Error -21: conic lat_1 = -lat_2)

looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [  9%] authors                                                                      
(line    5) ok        https://oemof.org
writing output... [ 18%] changelog                                                                    
writing output... [ 27%] contributing                                                                 
(line   76) ok        https://travis-ci.org/oemof/oemof-tabular/pull_requests
(line   52) ok        https://tox.readthedocs.io/en/latest/install.html
(line   40) ok        https://github.com/oemof/oemof-tabular
(line   27) ok        https://github.com/oemof/oemof-tabular/issues
(line   11) ok        https://github.com/oemof/oemof-tabular/issues
writing output... [ 36%] index                                                                        
writing output... [ 45%] installation                                                                 
writing output... [ 54%] readme                                                                       
(line    9) ok        https://travis-ci.org/oemof/oemof-tabular
(line    7) ok        https://pypi.org/project/oemof.tabular
(line    7) ok        https://pypi.org/project/oemof.tabular
(line    7) ok        https://github.com/oemof/oemof-tabular/blob/master/LICENSE
(line    9) ok        https://ci.appveyor.com/project/gnn/oemof-tabular
(line    9) ok        https://readthedocs.org/projects/oemof-tabular
(line   11) ok        https://scrutinizer-ci.com/g/oemof/oemof-tabular/
(line    9) ok        https://requires.io/github/oemof/oemof-tabular/requirements/?branch=master
(line   11) ok        https://coveralls.io/github/oemof/oemof-tabular
(line   11) ok        https://codecov.io/github/oemof/oemof-tabular
(line   11) ok        https://codeclimate.com/github/oemof/oemof-tabular
(line   79) broken    https://pip.pypa.io/en/stable/news/#id58 - Anchor 'id58' not found
(line   11) ok        https://app.codacy.com/project/gnn/oemof-tabular/dashboard
(line   96) redirect  https://oemof-tabular.readthedocs.io/ - with Found to https://oemof-tabular.readthedocs.io/en/latest/
(line    7) ok        https://img.shields.io/pypi/v/oemof.tabular.svg
(line    7) ok        https://img.shields.io/pypi/pyversions/oemof.tabular.svg
(line    7) ok        https://img.shields.io/pypi/l/oemof-tabular.svg?colorB=blue
(line    9) ok        https://ci.appveyor.com/api/projects/status/github/oemof/oemof-tabular?branch=master&svg=true
(line    9) ok        https://readthedocs.org/projects/oemof-tabular/badge/?style=flat
(line    9) ok        https://requires.io/github/oemof/oemof-tabular/requirements.svg?branch=master
(line    9) redirect  https://travis-ci.org/oemof/oemof-tabular.svg?branch=master - permanently to https://api.travis-ci.org/oemof/oemof-tabular.svg?branch=master
(line    7) ok        https://github.com/oemof/oemof-tabular/compare/v0.0.1...master
(line    7) ok        https://img.shields.io/badge/dynamic/json.svg?label=%2B&url=https%3A%2F%2Fapi.github.com%2Frepos%2Foemof%2Foemof-tabular%2Fcompare%2Fv0.0.1...master&query=%24.total_commits&colorB=blue
(line    9) ok        https://img.shields.io/pypi/wheel/oemof.tabular.svg
(line   11) ok        https://img.shields.io/codacy/grade/14dbd9b9c5e34f8b80e73887b5aa6e6c.svg
(line   11) redirect  https://codecov.io/github/oemof/oemof-tabular/coverage.svg?branch=master - permanently to https://codecov.io/gh/oemof/oemof-tabular/branch/master/graphs/badge.svg?branch=master
(line   11) redirect  https://coveralls.io/repos/oemof/oemof-tabular/badge.svg?branch=master&service=github - with Found to https://s3.amazonaws.com/assets.coveralls.io/badges/coveralls_33.svg
(line   11) redirect  https://img.shields.io/scrutinizer/g/oemof/oemof-tabular/master.svg - permanently to https://img.shields.io/scrutinizer/quality/g/oemof/oemof-tabular/master.svg
(line   11) redirect  https://codeclimate.com/github/oemof/oemof-tabular/badges/gpa.svg - with Found to https://api.codeclimate.com/v1/badges/d93206b72ac217691c45/maintainability.svg
writing output... [ 63%] reference/index                                                              
writing output... [ 72%] reference/oemof.tabular                                                      
writing output... [ 81%] reference/oemof.tabular.datapackage                                          
writing output... [ 90%] reference/oemof.tabular.tools                                                
writing output... [100%] usage                                                                        
(line   94) ok        https://frictionlessdata.io/specs/tabular-data-package/

build finished with problems, 1 warning.
ERROR: InvocationError for command /home/clemens/znes_clemens/repositories/oemof-tabular/.tox/docs/bin/sphinx-build -b linkcheck docs dist/docs (exited with code 1)
py34-cover create: /home/clemens/znes_clemens/repositories/oemof-tabular/.tox/py34-cover
ERROR: InterpreterNotFound: python3.4
py34-nocov create: /home/clemens/znes_clemens/repositories/oemof-tabular/.tox/py34-nocov
ERROR: InterpreterNotFound: python3.4
py35-cover create: /home/clemens/znes_clemens/repositories/oemof-tabular/.tox/py35-cover
ERROR: InterpreterNotFound: python3.5
py35-nocov create: /home/clemens/znes_clemens/repositories/oemof-tabular/.tox/py35-nocov
ERROR: InterpreterNotFound: python3.5
py36-cover create: /home/clemens/znes_clemens/repositories/oemof-tabular/.tox/py36-cover
py36-cover installdeps: pytest, pytest-travis-fold, pytest-cov
py36-cover develop-inst: /home/clemens/znes_clemens/repositories/oemof-tabular
py36-cover installed: appdirs==1.4.3,asn1crypto==0.24.0,atomicwrites==1.3.0,attrs==19.1.0,backcall==0.1.0,bcrypt==3.1.6,cchardet==2.1.4,certifi==2019.3.9,cffi==1.12.3,chardet==3.0.4,Click==7.0,coverage==4.5.3,cryptography==2.6.1,cycler==0.10.0,datapackage==1.6.0,decorator==4.4.0,dill==0.2.9,et-xmlfile==1.0.1,geojson==2.4.1,idna==2.8,ijson==2.3,ipython==7.5.0,ipython-genutils==0.2.0,isodate==0.6.0,jdcal==1.4.1,jedi==0.13.3,jsonlines==1.2.0,jsonpointer==2.0,jsonschema==3.0.1,jupyter-core==4.4.0,kiwisolver==1.1.0,linear-tsv==1.1.0,matplotlib==3.0.3,more-itertools==7.0.0,nbformat==4.4.0,networkx==2.2,nose==1.3.7,numpy==1.16.3,oemof==0.2.4.dev0,-e git+git@github.com:oemof/oemof-tabular.git@a969c2bf8865d9687abe3e828400139cb8f3c40b#egg=oemof.tabular,openpyxl==2.4.11,pandas==0.24.2,paramiko==2.4.2,parso==0.4.0,pexpect==4.7.0,pickleshare==0.7.5,plotly==3.9.0,pluggy==0.11.0,ply==3.11,prompt-toolkit==2.0.9,ptyprocess==0.6.0,py==1.8.0,pyasn1==0.4.5,pycparser==2.19,Pygments==2.3.1,PyNaCl==1.3.0,Pyomo==5.6.2,pyparsing==2.4.0,pyproj==2.1.3,pyrsistent==0.15.1,pyshp==2.1.0,pytest==4.4.1,pytest-cov==2.7.1,pytest-travis-fold==1.3.0,python-dateutil==2.8.0,pytz==2019.1,PyUtilib==5.7.0,requests==2.21.0,retrying==1.3.3,rfc3986==1.3.1,scikit-learn==0.20.3,scipy==1.2.1,Shapely==1.6.4.post2,six==1.12.0,sklearn==0.0,SQLAlchemy==1.3.3,tableschema==1.4.1,tabulator==1.20.0,toml==0.10.0,traitlets==4.3.2,tsam==1.0.3,unicodecsv==0.14.1,urllib3==1.24.3,wcwidth==0.1.7,xlrd==1.2.0
py36-cover run-test-pre: PYTHONHASHSEED='1653473122'
py36-cover run-test: commands[0] | pytest --cov --cov-report=term-missing -vv
======================================== test session starts =========================================
platform linux -- Python 3.6.7, pytest-4.4.1, py-1.8.0, pluggy-0.11.0 -- /home/clemens/znes_clemens/repositories/oemof-tabular/.tox/py36-cover/bin/python
cachedir: .tox/py36-cover/.pytest_cache
rootdir: /home/clemens/znes_clemens/repositories/oemof-tabular, inifile: setup.cfg
plugins: travis-fold-1.3.0, cov-2.7.1
collected 16 items / 3 errors / 13 selected                                                          

=============================================== ERRORS ===============================================
__________________ ERROR collecting src/oemof/tabular/examples/scripting/compute.py __________________
.tox/py36-cover/lib/python3.6/site-packages/pyomo/core/base/misc.py:57: in apply_indexed_rule
    return rule(model, *index)
.tox/py36-cover/lib/python3.6/site-packages/oemof/solph/components.py:316: in _storage_capacity_bound_rule
    bounds = (n.nominal_storage_capacity * n.min_storage_level[t],
E   TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'

During handling of the above exception, another exception occurred:
.tox/py36-cover/lib/python3.6/site-packages/pyomo/core/base/misc.py:72: in apply_indexed_rule
    return rule(model)
E   TypeError: _storage_capacity_bound_rule() missing 2 required positional arguments: 'n' and 't'

During handling of the above exception, another exception occurred:
src/oemof/tabular/examples/scripting/compute.py:30: in <module>
    m = Model(es)
.tox/py36-cover/lib/python3.6/site-packages/oemof/solph/models.py:261: in __init__
    super().__init__(energysystem, **kwargs)
.tox/py36-cover/lib/python3.6/site-packages/oemof/solph/models.py:78: in __init__
    self._construct()
.tox/py36-cover/lib/python3.6/site-packages/oemof/solph/models.py:85: in _construct
    self._add_child_blocks()
.tox/py36-cover/lib/python3.6/site-packages/oemof/solph/models.py:113: in _add_child_blocks
    block._create(group=self.es.groups.get(group))
.tox/py36-cover/lib/python3.6/site-packages/oemof/solph/components.py:320: in _create
    bounds=_storage_capacity_bound_rule)
.tox/py36-cover/lib/python3.6/site-packages/pyomo/core/base/block.py:568: in __setattr__
    self.add_component(name, val)
.tox/py36-cover/lib/python3.6/site-packages/pyomo/core/base/block.py:1008: in add_component
    val.construct(data)
.tox/py36-cover/lib/python3.6/site-packages/pyomo/core/base/var.py:609: in construct
    self._initialize_members(self._index)
.tox/py36-cover/lib/python3.6/site-packages/pyomo/core/base/var.py:736: in _initialize_members
    key)
.tox/py36-cover/lib/python3.6/site-packages/pyomo/core/base/misc.py:80: in apply_indexed_rule
    return rule(model, *index)
.tox/py36-cover/lib/python3.6/site-packages/oemof/solph/components.py:316: in _storage_capacity_bound_rule
    bounds = (n.nominal_storage_capacity * n.min_storage_level[t],
E   TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'
------------------------------------------ Captured stdout -------------------------------------------
ERROR: Constructing component 'GenericStorageBlock.capacity' from data=None
    failed: TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'
______________ ERROR collecting src/oemof/tabular/examples/scripting/postprocessing.py _______________
.tox/py36-cover/lib/python3.6/site-packages/pyomo/core/base/misc.py:57: in apply_indexed_rule
    return rule(model, *index)
.tox/py36-cover/lib/python3.6/site-packages/oemof/solph/components.py:316: in _storage_capacity_bound_rule
    bounds = (n.nominal_storage_capacity * n.min_storage_level[t],
E   TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'

During handling of the above exception, another exception occurred:
.tox/py36-cover/lib/python3.6/site-packages/pyomo/core/base/misc.py:72: in apply_indexed_rule
    return rule(model)
E   TypeError: _storage_capacity_bound_rule() missing 2 required positional arguments: 'n' and 't'

During handling of the above exception, another exception occurred:
src/oemof/tabular/examples/scripting/postprocessing.py:25: in <module>
    m = Model(es)
.tox/py36-cover/lib/python3.6/site-packages/oemof/solph/models.py:261: in __init__
    super().__init__(energysystem, **kwargs)
.tox/py36-cover/lib/python3.6/site-packages/oemof/solph/models.py:78: in __init__
    self._construct()
.tox/py36-cover/lib/python3.6/site-packages/oemof/solph/models.py:85: in _construct
    self._add_child_blocks()
.tox/py36-cover/lib/python3.6/site-packages/oemof/solph/models.py:113: in _add_child_blocks
    block._create(group=self.es.groups.get(group))
.tox/py36-cover/lib/python3.6/site-packages/oemof/solph/components.py:320: in _create
    bounds=_storage_capacity_bound_rule)
.tox/py36-cover/lib/python3.6/site-packages/pyomo/core/base/block.py:568: in __setattr__
    self.add_component(name, val)
.tox/py36-cover/lib/python3.6/site-packages/pyomo/core/base/block.py:1008: in add_component
    val.construct(data)
.tox/py36-cover/lib/python3.6/site-packages/pyomo/core/base/var.py:609: in construct
    self._initialize_members(self._index)
.tox/py36-cover/lib/python3.6/site-packages/pyomo/core/base/var.py:736: in _initialize_members
    key)
.tox/py36-cover/lib/python3.6/site-packages/pyomo/core/base/misc.py:80: in apply_indexed_rule
    return rule(model, *index)
.tox/py36-cover/lib/python3.6/site-packages/oemof/solph/components.py:316: in _storage_capacity_bound_rule
    bounds = (n.nominal_storage_capacity * n.min_storage_level[t],
E   TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'
------------------------------------------ Captured stdout -------------------------------------------
Runnig postprocessing example with datapackage dispatch
Runnig postprocessing example with datapackage investment
ERROR: Constructing component 'GenericStorageBlock.capacity' from data=None
    failed: TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'
------------------------------------------ Captured stderr -------------------------------------------
ERROR:pyomo.core:Constructing component 'GenericStorageBlock.capacity' from data=None failed:
TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'
________________________ ERROR collecting src/oemof/tabular/tools/geometry.py ________________________
src/oemof/tabular/tools/geometry.py:129: in <module>
    geom, fr=pyproj.Proj(proj="longlat"), to=pyproj.Proj(proj="aea")
.tox/py36-cover/lib/python3.6/site-packages/pyproj/proj.py:295: in __init__
    self.crs = CRS.from_user_input(projparams if projparams is not None else kwargs)
.tox/py36-cover/lib/python3.6/site-packages/pyproj/crs.py:224: in from_user_input
    return cls(**value)
.tox/py36-cover/lib/python3.6/site-packages/pyproj/crs.py:146: in __init__
    super(CRS, self).__init__(projstring)
pyproj/_crs.pyx:317: in pyproj._crs._CRS.__init__
    ???
E   pyproj.exceptions.CRSError: Invalid projection: +proj=aea +type=crs: (Internal Proj Error: proj_create: Error -21: conic lat_1 = -lat_2)

----------- coverage: platform linux, python 3.6.7-final-0 -----------
Name                                                     Stmts   Miss Branch BrPart     Cover   Missing
-------------------------------------------------------------------------------------------------------
src/oemof/tabular/__init__.py                                2      0      0      0   100.00%
src/oemof/tabular/__main__.py                                3      1      2      1    60.00%   14, 13->14
src/oemof/tabular/cli.py                                    31     21     12      0    23.26%   13-77, 83, 90, 94
src/oemof/tabular/datapackage/__init__.py                    3      0      0      0   100.00%
src/oemof/tabular/datapackage/aggregation.py                75     65     32      0     9.35%   33-101, 119-225
src/oemof/tabular/datapackage/building.py                  256    223    114      0     8.92%   30-37, 43-58, 97-191, 207-226, 246-256, 276-287, 301-314, 334-397, 413-415, 425-454, 460-477, 488-503, 517-527, 545-553, 573-590, 611-647, 678-700, 732-759
src/oemof/tabular/datapackage/processing.py                 37     27     14      0    19.61%   29-70, 84-88, 94-97
src/oemof/tabular/datapackage/reading.py                   146     42    113     20    67.57%   64, 77, 104, 112-113, 120, 195-202, 247-272, 295-298, 322-329, 346, 364, 37->39, 63->64, 76->77, 99->102, 103->104, 146->exit, 146->exit, 146->exit, 146->exit, 146->exit, 146->exit, 146->exit, 194->195, 229->225, 274->exit, 274->exit, 274->exit, 319->364, 321->322, 335->346
src/oemof/tabular/examples/scripting/compute.py             15      3      2      1    76.47%   36-43, 19->23
src/oemof/tabular/examples/scripting/plotting.py             6      0      0      0   100.00%
src/oemof/tabular/examples/scripting/postprocessing.py      23      1      6      3    86.21%   34, 12->exit, 30->12, 33->34
src/oemof/tabular/facades.py                               225     50     24      4    72.69%   47-48, 59, 65-89, 102, 161-188, 193-218, 911-939, 1085-1095, 1102-1109, 1117-1123, 1131, 1139, 45->47, 58->59, 64->65, 910->911
src/oemof/tabular/tools/__init__.py                         14      4     10      2    66.67%   18, 24-27, 68->exit, 69->72
src/oemof/tabular/tools/geometry.py                         69     52     35      0    16.35%   36-77, 92-95, 113-125, 137-180
src/oemof/tabular/tools/plots.py                            49     13     38      3    70.11%   45, 60, 134-135, 152-167, 44->45, 59->60, 133->134
src/oemof/tabular/tools/postprocessing.py                  126     72     87      7    44.60%   23, 66-74, 79-83, 105, 132, 157-263, 22->23, 65->66, 75->64, 78->79, 104->105, 115->109, 131->132
tests/regression_tests.py                                    8      5      0      0    37.50%   23-27
tests/test_examples.py                                      18     12     10      0    21.43%   17-37, 43-47
tests/test_oemof_tabular.py                                  7      3      0      0    57.14%   9-10, 16
-------------------------------------------------------------------------------------------------------
TOTAL                                                     1113    594    499     41    41.75%

====================================== short test summary info =======================================
FAILED src/oemof/tabular/examples/scripting/compute.py
FAILED src/oemof/tabular/examples/scripting/postprocessing.py
FAILED src/oemof/tabular/tools/geometry.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
====================================== 3 error in 10.87 seconds ======================================
ERROR: InvocationError for command /home/clemens/znes_clemens/repositories/oemof-tabular/.tox/py36-cover/bin/pytest --cov --cov-report=term-missing -vv (exited with code 2)
py36-nocov create: /home/clemens/znes_clemens/repositories/oemof-tabular/.tox/py36-nocov
py36-nocov installdeps: pytest, pytest-travis-fold
py36-nocov inst: /home/clemens/znes_clemens/repositories/oemof-tabular/.tox/.tmp/package/1/oemof.tabular-0.0.1.dev0.zip
py36-nocov installed: appdirs==1.4.3,asn1crypto==0.24.0,atomicwrites==1.3.0,attrs==19.1.0,backcall==0.1.0,bcrypt==3.1.6,cchardet==2.1.4,certifi==2019.3.9,cffi==1.12.3,chardet==3.0.4,Click==7.0,cryptography==2.6.1,cycler==0.10.0,datapackage==1.6.0,decorator==4.4.0,dill==0.2.9,et-xmlfile==1.0.1,geojson==2.4.1,idna==2.8,ijson==2.3,ipython==7.5.0,ipython-genutils==0.2.0,isodate==0.6.0,jdcal==1.4.1,jedi==0.13.3,jsonlines==1.2.0,jsonpointer==2.0,jsonschema==3.0.1,jupyter-core==4.4.0,kiwisolver==1.1.0,linear-tsv==1.1.0,matplotlib==3.0.3,more-itertools==7.0.0,nbformat==4.4.0,networkx==2.2,nose==1.3.7,numpy==1.16.3,oemof==0.2.4.dev0,oemof.tabular==0.0.1.dev0,openpyxl==2.4.11,pandas==0.24.2,paramiko==2.4.2,parso==0.4.0,pexpect==4.7.0,pickleshare==0.7.5,plotly==3.9.0,pluggy==0.11.0,ply==3.11,prompt-toolkit==2.0.9,ptyprocess==0.6.0,py==1.8.0,pyasn1==0.4.5,pycparser==2.19,Pygments==2.3.1,PyNaCl==1.3.0,Pyomo==5.6.2,pyparsing==2.4.0,pyproj==2.1.3,pyrsistent==0.15.1,pyshp==2.1.0,pytest==4.4.1,pytest-travis-fold==1.3.0,python-dateutil==2.8.0,pytz==2019.1,PyUtilib==5.7.0,requests==2.21.0,retrying==1.3.3,rfc3986==1.3.1,scikit-learn==0.20.3,scipy==1.2.1,Shapely==1.6.4.post2,six==1.12.0,sklearn==0.0,SQLAlchemy==1.3.3,tableschema==1.4.1,tabulator==1.20.0,toml==0.10.0,traitlets==4.3.2,tsam==1.0.3,unicodecsv==0.14.1,urllib3==1.24.3,wcwidth==0.1.7,xlrd==1.2.0
py36-nocov run-test-pre: PYTHONHASHSEED='1653473122'
py36-nocov run-test: commands[0] | pytest -vv --ignore=src
======================================== test session starts =========================================
platform linux -- Python 3.6.7, pytest-4.4.1, py-1.8.0, pluggy-0.11.0 -- /home/clemens/znes_clemens/repositories/oemof-tabular/.tox/py36-nocov/bin/python
cachedir: .tox/py36-nocov/.pytest_cache
rootdir: /home/clemens/znes_clemens/repositories/oemof-tabular, inifile: setup.cfg
plugins: travis-fold-1.3.0
collected 5 items                                                                                    

tests/regression_tests.py::test_how_initialize_loads_the_default_configuration PASSED          [ 20%]
tests/test_examples.py::test_example_datapackage_readability PASSED                            [ 40%]
tests/test_examples.py::test_scripting_examples FAILED                                         [ 60%]
tests/test_oemof_tabular.py::test_version_specification PASSED                                 [ 80%]
tests/test_oemof_tabular.py::test_project_name PASSED                                          [100%]

============================================== FAILURES ==============================================
______________________________________ test_scripting_examples _______________________________________
.tox/py36-nocov/lib/python3.6/site-packages/pyomo/core/base/misc.py:57: in apply_indexed_rule
    return rule(model, *index)
.tox/py36-nocov/lib/python3.6/site-packages/oemof/solph/components.py:316: in _storage_capacity_bound_rule
    bounds = (n.nominal_storage_capacity * n.min_storage_level[t],
E   TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'

During handling of the above exception, another exception occurred:
.tox/py36-nocov/lib/python3.6/site-packages/pyomo/core/base/misc.py:72: in apply_indexed_rule
    return rule(model)
E   TypeError: _storage_capacity_bound_rule() missing 2 required positional arguments: 'n' and 't'

During handling of the above exception, another exception occurred:
tests/test_examples.py:51: in test_scripting_examples
    "examples/scripting/{}".format(example),
<string>:30: in <module>
    ???
.tox/py36-nocov/lib/python3.6/site-packages/oemof/solph/models.py:261: in __init__
    super().__init__(energysystem, **kwargs)
.tox/py36-nocov/lib/python3.6/site-packages/oemof/solph/models.py:78: in __init__
    self._construct()
.tox/py36-nocov/lib/python3.6/site-packages/oemof/solph/models.py:85: in _construct
    self._add_child_blocks()
.tox/py36-nocov/lib/python3.6/site-packages/oemof/solph/models.py:113: in _add_child_blocks
    block._create(group=self.es.groups.get(group))
.tox/py36-nocov/lib/python3.6/site-packages/oemof/solph/components.py:320: in _create
    bounds=_storage_capacity_bound_rule)
.tox/py36-nocov/lib/python3.6/site-packages/pyomo/core/base/block.py:568: in __setattr__
    self.add_component(name, val)
.tox/py36-nocov/lib/python3.6/site-packages/pyomo/core/base/block.py:1008: in add_component
    val.construct(data)
.tox/py36-nocov/lib/python3.6/site-packages/pyomo/core/base/var.py:609: in construct
    self._initialize_members(self._index)
.tox/py36-nocov/lib/python3.6/site-packages/pyomo/core/base/var.py:736: in _initialize_members
    key)
.tox/py36-nocov/lib/python3.6/site-packages/pyomo/core/base/misc.py:80: in apply_indexed_rule
    return rule(model, *index)
.tox/py36-nocov/lib/python3.6/site-packages/oemof/solph/components.py:316: in _storage_capacity_bound_rule
    bounds = (n.nominal_storage_capacity * n.min_storage_level[t],
E   TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'
---------------------------------------- Captured stdout call ----------------------------------------
Runnig scripting example compute.py ...
ERROR: Constructing component 'GenericStorageBlock.capacity' from data=None
    failed: TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'
----------------------------------------- Captured log call ------------------------------------------
block.py                  1014 ERROR    Constructing component 'GenericStorageBlock.capacity' from data=None failed:
TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'
====================================== short test summary info =======================================
FAILED tests/test_examples.py::test_scripting_examples
================================= 1 failed, 4 passed in 3.02 seconds =================================
ERROR: InvocationError for command /home/clemens/znes_clemens/repositories/oemof-tabular/.tox/py36-nocov/bin/pytest -vv --ignore=src (exited with code 1)
py37-cover create: /home/clemens/znes_clemens/repositories/oemof-tabular/.tox/py37-cover
ERROR: InterpreterNotFound: python3.7
py37-nocov create: /home/clemens/znes_clemens/repositories/oemof-tabular/.tox/py37-nocov
ERROR: InterpreterNotFound: python3.7
report create: /home/clemens/znes_clemens/repositories/oemof-tabular/.tox/report
report installdeps: coverage
report installed: coverage==4.5.3
report run-test-pre: PYTHONHASHSEED='1653473122'
report run-test: commands[0] | coverage report
Name                                                     Stmts   Miss Branch BrPart     Cover   Missing
-------------------------------------------------------------------------------------------------------
src/oemof/tabular/__init__.py                                2      0      0      0   100.00%
src/oemof/tabular/__main__.py                                3      1      2      1    60.00%   14, 13->14
src/oemof/tabular/cli.py                                    31     21     12      0    23.26%   13-77, 83, 90, 94
src/oemof/tabular/datapackage/__init__.py                    3      0      0      0   100.00%
src/oemof/tabular/datapackage/aggregation.py                75     65     32      0     9.35%   33-101, 119-225
src/oemof/tabular/datapackage/building.py                  256    223    114      0     8.92%   30-37, 43-58, 97-191, 207-226, 246-256, 276-287, 301-314, 334-397, 413-415, 425-454, 460-477, 488-503, 517-527, 545-553, 573-590, 611-647, 678-700, 732-759
src/oemof/tabular/datapackage/processing.py                 37     27     14      0    19.61%   29-70, 84-88, 94-97
src/oemof/tabular/datapackage/reading.py                   146     42    113     20    67.57%   64, 77, 104, 112-113, 120, 195-202, 247-272, 295-298, 322-329, 346, 364, 37->39, 63->64, 76->77, 99->102, 103->104, 146->exit, 146->exit, 146->exit, 146->exit, 146->exit, 146->exit, 146->exit, 194->195, 229->225, 274->exit, 274->exit, 274->exit, 319->364, 321->322, 335->346
src/oemof/tabular/examples/scripting/compute.py             15      3      2      1    76.47%   36-43, 19->23
src/oemof/tabular/examples/scripting/plotting.py             6      0      0      0   100.00%
src/oemof/tabular/examples/scripting/postprocessing.py      23      1      6      3    86.21%   34, 12->exit, 30->12, 33->34
src/oemof/tabular/facades.py                               225     50     24      4    72.69%   47-48, 59, 65-89, 102, 161-188, 193-218, 911-939, 1085-1095, 1102-1109, 1117-1123, 1131, 1139, 45->47, 58->59, 64->65, 910->911
src/oemof/tabular/tools/__init__.py                         14      4     10      2    66.67%   18, 24-27, 68->exit, 69->72
src/oemof/tabular/tools/geometry.py                         69     52     35      0    16.35%   36-77, 92-95, 113-125, 137-180
src/oemof/tabular/tools/plots.py                            49     13     38      3    70.11%   45, 60, 134-135, 152-167, 44->45, 59->60, 133->134
src/oemof/tabular/tools/postprocessing.py                  126     72     87      7    44.60%   23, 66-74, 79-83, 105, 132, 157-263, 22->23, 65->66, 75->64, 78->79, 104->105, 115->109, 131->132
tests/regression_tests.py                                    8      5      0      0    37.50%   23-27
tests/test_examples.py                                      18     12     10      0    21.43%   17-37, 43-47
tests/test_oemof_tabular.py                                  7      3      0      0    57.14%   9-10, 16
-------------------------------------------------------------------------------------------------------
TOTAL                                                     1113    594    499     41    41.75%
report run-test: commands[1] | coverage html
______________________________________________ summary _______________________________________________
  clean: commands succeeded
ERROR:   check: commands failed
ERROR:   docs: commands failed
ERROR:  py34-cover: InterpreterNotFound: python3.4
ERROR:  py34-nocov: InterpreterNotFound: python3.4
ERROR:  py35-cover: InterpreterNotFound: python3.5
ERROR:  py35-nocov: InterpreterNotFound: python3.5
ERROR:   py36-cover: commands failed
ERROR:   py36-nocov: commands failed
ERROR:  py37-cover: InterpreterNotFound: python3.7
ERROR:  py37-nocov: InterpreterNotFound: python3.7
  report: commands succeeded
eosram commented 5 years ago

With b80dd32eb4a4f4c098893ac3199450acf2baff48 on a fresh install all tests via tox should now succeed!!