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

Model_browser example fails with "SQLBrowser has no attribute 'mapper'" #305

Open ltaylor-digmap opened 9 years ago

ltaylor-digmap commented 9 years ago

Windows 8.1, 'cubes' up to date with current download, library packages up to date sfaik.

No files changed in model_browser package. Only file changed in hello_world is slicer.ini, where debug is used.

Application started as given in instructions, browser (chrome) pointed to http://localhost:5000 as in directions.

The output of the application in the terminal window follows, including debug information:

C:\Development\cubes\examples\hello_world>python ../model_browser/application.py slicer.ini 2015-06-16 10:46:54,459 DEBUG Models root set to current directory

2015-06-16 10:46:54,460 DEBUG Workspace calendar timezone: None first week day:0 2015-06-16 10:46:54,555 DEBUG Registered store 'default' 2015-06-16 10:46:54,555 DEBUG Loading model main 2015-06-16 10:46:54,555 DEBUG Importing model from model.json. Provider: None Store: None NS: None

127.0.0.1 - - [16/Jun/2015 10:47:13] "GET / HTTP/1.1" 500 - Traceback (most recent call last): File "C:\Python27\lib\site-packages\flask\app.py", line 1836, in call return self.wsgi_app(environ, start_response) File "C:\Python27\lib\site-packages\flask\app.py", line 1820, in wsgi_app response = self.make_response(self.handle_exception(e)) File "C:\Python27\lib\site-packages\flask\app.py", line 1403, in handle_exception reraise(exc_type, exc_value, tb) File "C:\Python27\lib\site-packages\flask\app.py", line 1817, in wsgi_app response = self.full_dispatch_request() File "C:\Python27\lib\site-packages\flask\app.py", line 1477, in full_dispatch_request rv = self.handle_user_exception(e) File "C:\Python27\lib\site-packages\flask\app.py", line 1381, in handle_user_exception reraise(exc_type, exc_value, tb) File "C:\Python27\lib\site-packages\flask\app.py", line 1475, in full_dispatch_request rv = self.dispatch_request() File "C:\Python27\lib\site-packages\flask\app.py", line 1461, in dispatch_request return self.view_functionsrule.endpoint File "C:\Development\cubes\examples\model_browser\application.py", line 32, in report mapper = browser.mapper

AttributeError: 'SQLBrowser' object has no attribute 'mapper'

127.0.0.1 - - [16/Jun/2015 10:47:14] "GET /?debugger=yes&cmd=resource&f=style.css HTTP/1.1" 200 - 127.0.0.1 - - [16/Jun/2015 10:47:14] "GET /?debugger=yes&cmd=resource&f=jquery.js HTTP/1.1" 200 - 127.0.0.1 - - [16/Jun/2015 10:47:14] "GET /?debugger=yes&cmd=resource&f=debugger.js HTTP/1.1" 200 - 127.0.0.1 - - [16/Jun/2015 10:47:14] "GET /?debugger=yes&cmd=resource&f=ubuntu.ttf HTTP/1.1" 200 - 127.0.0.1 - - [16/Jun/2015 10:47:14] "GET /?debugger=yes&cmd=resource&f=console.png HTTP/1.1" 200 - 127.0.0.1 - - [16/Jun/2015 10:47:14] "GET /?debugger=yes&cmd=resource&f=source.png HTTP/1.1" 200 -

TenYearsGone commented 6 years ago

Hi Two years later I'm getting this issue (AttributeError: 'SQLBrowser' object has no attribute 'mapper') happens at: mapper = browser.mapper I downloaded Cubes recently and am trying to test with some of my own data following the tutorials. Any hints about solving it? THANKS

JuanSeBestia commented 6 years ago

x2