DataBrewery / cubes

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

No module named MySQLdb #447

Closed letimome closed 7 years ago

letimome commented 7 years ago

Hi,

I am experimenting an "internal server error" when trying to connect to Cubes (with a mysql database in the backend).

When I load the cubesviewer-2.0.2/html/studio.html and try to load my cube "customization" the following error is displayed:

captura de pantalla 2017-09-06 a las 16 14 08

Here I was surprished by the "No 'Access-Control-Allow-Origin' header" error, as I have specified in the "slicer.ini"like this:

[server]
host: localhost
port: 5000
reload: yes
prettyprint: yes
allow_cors_origin: *

In any case, when checking the server log I get the following: captura de pantalla 2017-09-06 a las 16 16 46

I see an "ImportError: No module named MySQLdb". Any guess of what might be going wrong? Thanks in advance and BTW nice work!

Cheers, Leticia

letimome commented 7 years ago

Ups! I needed to install "pip install mysql-python" :-) Now it works. Sorry!