MicroStrategy / mstrio-py

Python integration for MicroStrategy
Apache License 2.0
90 stars 60 forks source link

mstrio-py 11.2 cube not defined #25

Closed usechemario closed 4 years ago

usechemario commented 4 years ago

Hi, I'm upgrading some application from mstrio-py 10.11 to 11.2 and I'm getting this error with 11.2:

cube is not defined

Do you guys see any reason for that?

Thanks, Mario

usechemario commented 4 years ago

with capital C (as documented in your README.md), the issue is the same:

my_cube = Cube(connection=conn, cube_id=cube_id)

NameError Traceback (most recent call last)

in ----> 1 my_cube = Cube(connection=conn, cube_id=cube_id) NameError: name 'Cube' is not defined
usechemario commented 4 years ago

Hi there, I have just seen in the Workshop Book the complete sentence to be able to run the Cube method.

from mstrio.cube import Cube
my_cube = Cube(connection=conn, cube_id=cube_id)

This is working great. I would suggest to update the README.md.

Cheers, Mario

drzamich commented 4 years ago

@usechemario thanks for your suggestion. The Readme will be updated soon.