DataBrewery / cubes

[NOT MAINTAINED] Light-weight Python OLAP framework for multi-dimensional data analysis
http://cubes.databrewery.org
Other
1.49k stars 314 forks source link

dimension_browser example: cubes.errors.ConfigurationError #456

Closed KhaledTo closed 5 years ago

KhaledTo commented 6 years ago

When I'm trying to run application.py in examples/dimension_browser I get:

Traceback (most recent call last):
  File "application.py", line 105, in <module>
    app.register_blueprint(slicer, url_prefix="/slicer", config="slicer.ini")
  File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 65, in wrapper_func
    return f(self, *args, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 968, in register_blueprint
    blueprint.register(self, options, first_registration)
  File "/usr/local/lib/python3.5/dist-packages/flask/blueprints.py", line 154, in register
    deferred(state)
  File "/usr/local/lib/python3.5/dist-packages/flask/blueprints.py", line 129, in wrapper
    func(state)
  File "/usr/local/lib/python3.5/dist-packages/cubes-1.1-py3.5.egg/cubes/server/blueprint.py", line 102, in initialize_slicer
  File "/usr/local/lib/python3.5/dist-packages/cubes-1.1-py3.5.egg/cubes/workspace.py", line 83, in __init__
 cubes.errors.ConfigurationError: config should be a ConfigParser instance, but is <class 'str'>

Looks like we need to pass an instance of ConfigParser. Anyone else is getting this error when trying this example in master branch?

KhaledTo commented 6 years ago

Thought it was just a configuration issue on my hand, even though I was able to run it using slicer serve slicer.ini doing python3 application.py like in the example still fails. Looks related to issue #435

jjmontesl commented 5 years ago

Closing as per #459 and #390.