olap icon indicating copy to clipboard operation
olap copied to clipboard

Can't import XMLAConnection

Open bilalahmed1324 opened this issue 6 years ago • 5 comments

I am trying to import olap but i am getting this error:

Cannot improt name 'XMLAConnection'. Does anybody have a clue?

Thanks for your help.

bilalahmed1324 avatar Feb 26 '19 15:02 bilalahmed1324

Got this problem as well. =(

Whisperes avatar Apr 27 '19 08:04 Whisperes

Me, too. Has this been resolved?


ImportError Traceback (most recent call last) in ----> 1 import olap.xmla.xmla as xmla

~\Anaconda3\lib\site-packages\olap\xmla\xmla.py in 1 import zope.interface ----> 2 from connection import XMLAConnection 3 import olap.xmla.interfaces as oxi 4 import olap.interfaces as ooi 5

ImportError: cannot import name 'XMLAConnection' from 'connection' (C:\Anaconda3\lib\site-packages\connection_init_.py)

agaleana avatar Sep 14 '20 19:09 agaleana

hello all,

Even i received the error -- importError: cannot import name 'XMLAConnection' from 'connection' when trying to import xmla from python.

Any resolution for this. Greatly appreciate your help

sunilmadi avatar Sep 17 '20 09:09 sunilmadi

sad it seems it's no longer supported

aoulaa avatar Jan 17 '23 11:01 aoulaa

@bilalahmed1324 Hello all After installing xmla with pip, I was facing the same error as yours But after cloning this library from Git, my problem was solved

# create virtualenv 
python3 -m venv xyz
cd xyz
source bin/activate
git clone https://github.com/may-day/olap
cd olap/xmla
# optional if you have it already
pip install pipenv
pipenv install -dev
python setup.py develop
# now you should be good to go

mohammad-dehghani1 avatar Feb 24 '24 16:02 mohammad-dehghani1