Код: Выделить всё
from sys import path
path.append('\\Program Files\\Microsoft.NET\\ADOMD.NET\\150')
from pyadomd import Pyadomd
conn_str = 'Provider=MSOLAP;Data Source=localhost;Catalog=AdventureWorks;'
query = """EVALUATE Product"""
with Pyadomd(conn_str) as conn:
with conn.cursor().execute(query) as cur:
print(cur.fetchall())
Код: Выделить всё
RuntimeError: Failed to create a default .NET runtime, which would
have been "mono" on this system. Either install a
compatible runtime or configure it explicitly via
`set_runtime` or the `PYTHONNET_*` environment variables
(see set_runtime_from_env).
Код: Выделить всё
brew install mono
Альтернативно, есть ли более чистый способ запроса моделей данных SSAS с Mac с помощью Python?
Подробнее здесь: https://stackoverflow.com/questions/787 ... query-ssas