jasonwjones / essbasepy

essbasepy is a MaxL Python module that provides Pythonic access to Oracle Essbase via MaxL. It is similar to the Perl module Essbase.pm.
27 stars 15 forks source link

Issue while running tests on RHEL 7.3 ppc64le VM #7

Open ArchaB opened 7 years ago

ArchaB commented 7 years ago

Hi All,

I am trying run the Essbasepy build and automated tests on RHEL 7.3 VM ppc64le. I followed the steps mentioned in the 'General Installation' section of the readme and was able to build Essbasepy using the command 'python setup.py install' Output seen:

bash-4.2# python setup.py install
running install
running build
running build_py
running install_lib
running install_egg_info
Removing /usr/lib/python2.7/site-packages/Essbase-11.1.2012.0514-py2.7.egg-info
Writing /usr/lib/python2.7/site-packages/Essbase-11.1.2012.0514-py2.7.egg-info```

But I was unable to run the tests for the package.
As mentioned in the readme, Example Scripts provided are MaxlExec.py, DisplayPrivilegeAll.py and mdxtest.py.
All the scripts have executable rights, but fail to execute

Errors seen in MaxlExec.py
```bash-4.2# python MaxlExec.py <user> <pwd> localhost ls
maxl DLL not found
Exception AttributeError: "class Essbase has no attribute 'isInitialized'" in <bound method Essbase.__del__ of <Essbase.Essbase instance at 0x3fff92bfaab8>> ignored

Errors seen in DisplayPrivilegeAll.py


maxl DLL not found```

Errors in mdxtest.py
```bash-4.2# python mdxtest.py
maxl DLL not found
Exception AttributeError: "class Essbase has no attribute 'isInitialized'" in <bound method Essbase.__del__ of <Essbase.Essbase instance at 0x3fff95dbaab8>> ignored```

'Installation Sequence for 11.1.2.3' section mentioned to add the Essbase DLL folder in your PATH. 
Can anyone help with how can I get the DLL installed in my container so that I can add it to the PATH. 

Thanks,
Archa
nurzen commented 7 years ago

Hello,

the essbasepy module is only a wrapper which uses ctypes for interacting with the essmaxlu.dll. So i suppose it will work only on Windows machines.

Greets Kevin

ghost commented 7 years ago

I am seeing the same error. Running python 2.7.5 on a windows machine.

Code import Essbase Essbase.Essbase()

Error: maxl DLL not found Exception AttributeError: "class Essbase has no attribute 'isInitialized'" in <bound method Essbase.__del__ of <Essbase.Essbase instance at 0x00000000036FFB88>> ignored

rpikkili commented 4 years ago

Can some one share the lunux version of essbasepy module ?

itsvasavya commented 4 years ago

Actually existing Essbase.py is working ,only point is maxl output is limited