MaxL Python Module

The MaxL Python Module, Essbase.py, provides access to Hyperion Essbase multi-dimensional databases from Python programs through MaxL. It is similar in function and usage to the Perl module Essbase.pm. The Essbase Python module interfaces with Hyperion Essbase using a Python ctypes module wrapper for the primary MaxL dll (essmaxl.dll or essmaxlu.dll). The ctypes module is standard in Python 2.5 and may be downloaded for earlier versions from http://sourceforge.net/projects/ctypes. Versions of the wrapper are included for Essbase 6.5 and for Essbase 7.
Updates:
Support for Essbase 7.1 MDX has been added.
http://essbasepy.googlecode.com/

A small update to the Essbase Python module has been posted to [http://essbasepy.googlecode.com/] . As before, no compiler is required if you already have Python and the ctypes module (included in the standard library as of version 2.5). Installation is as easy as unzipping the download and executing from the command line:
python setup.py install
Changes
ver. 7.1.2009.0519
1. Added support for Unicode (thanks to Edward Delgado for many cycles of unit and integration testing).
ver. 7.1.2008.0818
1. Changed method of locating MaxL library to (hopefully) make script Unix friendly.
2. Added support for MaxL doubles.
ver. 7.1.2008.0304
1. New generator function rows() which allows for simpler, more pythonic data access.
2. New optional parameter timefmt for the execute() function. Defaults to original time.asctime() format.
ver. 7.1.2007.1106
Original posting to http://essbasepy.googlecode.com/.

Similar Messages

  • [Resolved] Distributing a Python module that uses C shared libs?

    I did some research on distutils, and I managed to find fairly detailed instructions for how one could distribute a Python module with C extensions. However, I have a Python module which uses ctypes to run code from C shared libraries (more specifically: SDL, and related libraries).
    Basically, this is what I have:
    pslab.py # requires ctypes wrapper modules below
    sdl.py # ctypes wrapper modules require respective shared libs below
    sdlmixer.py
    sdlimage.py
    sdlttf.py
    # This is for Linux -- .dll for Windows, .dylib for OSX.
    libSDL.so
    libSDL_mixer.so
    libSDL_image.so
    libSDL_ttf.so
    Is there a "standard" way to distribute modules of this type (maybe some undocumented distutils method, or something I failed to find)?
    The Python files are not the problem (distutils can handle them), but I need a way to install the appropriate shared libs for the platform in question (if necessary), so that ctypes wrapper modules can find and load them.
    Last edited by Goran (2012-08-14 08:51:19)

    You could distribute those files ... but I wouldn't recommend it.
    I believe the closest thing to a "standard" is simply to list sdl as a dependency.  A package distributor should not try to manage dependencies for users (only inform them of the dependencies).  That is either up to the user, or (more often) the distro's package management system.
    If I download a program that uses gtk, I don't expect it to include all of the gtk too.  Rather, the documentation would simply specify that gtk is a dependency.  Are you going to also distribute copies of the python interpreter?  Perhaps I'm missing something, but why would sdl be any different than python itself?  It's assumed (or speficied) that the user needs to have these installed for your package to work.
    Last edited by Trilby (2012-08-13 23:44:44)

  • [SOLVED]No osgeo python module after GDAL build -- enabled filegdb

    I compiled GDAL 1.10 from [community] using "yaourt -Sb gdal" and modified the PKGBUILD so that ./configure would include --with-fgdb=<path to filegdb libs>
    The program compiled and installed fine with FileGDB support but now QGIS, or python doesn't have the much needed osgeo module anymore.
    The plugin error when starting qgis says:
    Unable to load GdalTools plugin.
    The required "osgeo [python-gdal]" module is missing.
    Install it and try again.
    I can't import it from python using "import osgeo" - no surprise since QGIS complains it can't either.
    There isn't an osgeo folder in /usr/lib/python2.7/site-packages anymore either or any of the gdal*.py files.
    If I re-install gdal from the community repo, it's all back to normal in both QGIS and python but without ESRI FileGDB support.
    Anyone know or can help me figure out what's wrong and why my custom build (with only an added configure option) doesn't include the osgeo python module like the gdal from the community repo does?
    If there's any more info I can share that'd be helpful, just let me know.
    Last edited by saultdon (2013-07-07 07:02:14)

    In a paste of the compile output I can see the osgeo module being installed for python3 instead.
    The PKGBUILD has a portion that looks like it should be installing for python2 instead:
    package () {
      cd "${srcdir}/$pkgname-$pkgver"
      install -d "${pkgdir}/usr/lib/python2.7/site-packages/"
      make DESTDIR="${pkgdir}" install
    At least it's installing because I can import the osgeo module in python3, but QGIS uses python2.
    I'm not sure why it's installing for python3.
    Python3 is the default python on this system by default, that might have something to do with it.
    uname -a
    Linux alienix 3.9.9-1-ARCH #1 SMP PREEMPT Wed Jul 3 22:45:16 CEST 2013 x86_64 GNU/Linux

  • Can't import python modules anymore: Problems with PyQt4.Qt

    Hallo,
    at the beginning: Sorry for my horrible english!
    I made a big mistake and a possible stupid thing:
    I yesterday try to install SIP and Ppyqt4 under a virutal enviroment because I want to use SIP for creating
    generator codes between pyhton and C++.
    I got SIP from the AUR's:
    archlinux.org/packages/extra/x86_64/python-sip/
    and installed it this way:
    lucacerone.net/2013/08/installing-pyqt4 … yx-dGd_phF   
    I did it this way because on the official SIP-documentation site I didn't understand, WHERE to install this:
    pyqt.sourceforge.net/Docs/sip4/installa … onfiguring
    I know now, that was a very stupid idea because when I try to run a pyhton script with:
    python programm_file.py
    , I got the follwing errors importing a module in a python script:
    [vain@chinchi2 python_programme]$ python test.py
    Traceback (most recent call last):
    File "test.py", line 25, in <module>
    import matplotlib.pyplot as plt
    File "/usr/lib/python3.3/site-packages/matplotlib/pyplot.py", line 98, in <module>
    _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
    File "/usr/lib/python3.3/site-packages/matplotlib/backends/__init__.py", line 28, in pylab_setup
    globals(),locals(),[backend_name],0)
    File "/usr/lib/python3.3/site-packages/matplotlib/backends/backend_qt4agg.py", line 13, in <module>
    from .backend_qt4 import QtCore, QtGui, FigureManagerQT, FigureCanvasQT,\
    File "/usr/lib/python3.3/site-packages/matplotlib/backends/backend_qt4.py", line 21, in <module>
    import matplotlib.backends.qt4_editor.figureoptions as figureoptions
    File "/usr/lib/python3.3/site-packages/matplotlib/backends/qt4_editor/figureoptions.py", line 13, in <module>
    import matplotlib.backends.qt4_editor.formlayout as formlayout
    File "/usr/lib/python3.3/site-packages/matplotlib/backends/qt4_editor/formlayout.py", line 51, in <module>
    from matplotlib.backends.qt4_compat import QtGui,QtCore
    File "/usr/lib/python3.3/site-packages/matplotlib/backends/qt4_compat.py", line 56, in <module>
    from PyQt4 import QtCore, QtGui
    RuntimeError: the sip module implements API v11.0 but the PyQt4.QtCore module requires API v10.1
    [vain@chinchi2 python_programme]$
    I then upgraded PyQt4 to PyQt 5 with pacman and
    pyqt5-common 5.2-1 [installed]
    python-qscintilla-common 2.8-1 [installed]
    qscintilla 2.8-1 [installed]
    But there is still the same RuntimeErroe with PyQt4. Maybe there exists false dependencies for the shared libraries? How can I get
    rid of these errors, I need pyhton for programming a project. What can I do to solve it?
    Every answer which could help is welcome!
    Last edited by chinchi (2014-03-21 20:59:25)

    Lone_Wolf wrote:
    Note : i know very little about the packages involved here.
    Both of those guides you mention deal with MANUALLY installing sip & pyqt, and that is almost always a BAD idea on archlinux.
    Since you also seem to have installed both with pacman, you likely now have a mix of 2 different sip & pyqt installs in one system.
    to make things work again, you'll have to clean up your system.
    basically that would mean removing the sip & pyqt with pacman, then figuring out what those manual installs added and remove that also.
    it will be tricky and time consuming, reinstaling seems like a much easier and faster method.
    Once you have succesfully re-installed or cleaned up, just install sip & pyqt through pacman and you should be good to go.
    Hi,
    I uninstall sip with:
    sudo pacman -Rsc sip
    also Pyqt and reinstalled them again with Pyqt5 and the new version of sip 4.15.4, so have not more errors like:
    from PyQt4 import QtCore, QtGui
    RuntimeError: the sip module implements API v11.0 but the PyQt4.QtCore module requires API v10.1
    It improved. But I can't still load several Python modules like matplotlib:
    File "erstenprog.py", line 26, in <module>
    import matplotlib.pyplot as plt
    ImportError: No module named 'matplotlib'
    Any idea?
    chinchi

  • Python module under db 4.3.29

    According to the documentation for the python module, version 4.3 of db is sufficient for building the module. However, when I try python setup.py build I get the following error:
    dbxml_python_wrap.cpp: In function ‘void init_dbxml()’:
    dbxml_python_wrap.cpp:36842: error: ‘DB_READ_UNCOMMITTED’ was not declared in this scope
    dbxml_python_wrap.cpp:36848: error: ‘DB_READ_COMMITTED’ was not declared in this scope
    I see that the two missing declarations are in the db.h from 4.5.20 included with dbxml, but they aren't in the db.h I have installed here.
    What am I to do? I'm working on packaging this for a Linux distribution, and unfortunately they're pretty insistent of using installed libraries instead of packaged ones.

    Now everything is compiling successfully (with some warnings about -R being an unknown option) but I get the following error when trying to import the module. Any idea where I should start tracking this down?
    Python 2.4.3 (#1, Feb 20 2007, 15:36:44)
    [GCC 4.1.1 (Gentoo 4.1.1-r3)] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    import bsddb3
    import dbxmlTraceback (most recent call last):
    File "<stdin>", line 1, in ?
    File "/usr/lib/python2.4/site-packages/dbxml.py", line 5, in ?
    import _dbxml
    ImportError: /usr/lib/libdbxml-2.3.so: undefined symbol: _ZTI11DbException                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Python module for Adaptive Server compatibility with ASE 12

    I discovered that the Python module in the SDK can't pass datetime as a parameter to an ASE 12 server, most likely because it is trying to use bigdatetime. Is this intentional? It was generally expected for OpenClient to be backwards compatible after all.

    Hi,
    ASE 12 is very old and since no Eng support maybe decision made to not use datetime. However, you can certainly request feature - if you are able to create incident we can create Feature and then incident can be used for tracking purposes, etc.
    If unable to create incident please provide details:
    ASE version (exact with select @@version)
    SDK version being used
    code sample to demonstrate problem and the output from such a test
    If you used TDS please provide that trace as well if possible
    Cheers,
    -Paul

  • Allow Seaborn in python module

    Hey,
    Is there anyway to include the Seaborn library in the python module?  It extends matplotlib very easily to allow much nicer looking visualizations with better options and more functionality but doesn't seem to work through the import python library
    node.  Thanks,

    Hello grahamaaa,
    Anaconda does not seem to come with Seaborn yet, please see the list here:
    http://docs.continuum.io/anaconda/pkg-docs.html
    The backend change must be the first thing in your script (sorry for this, we will fix it really soon). Below this post is a script I tried and it produced the same image as on this page:
    http://stanford.edu/~mwaskom/software/seaborn/examples/network_correlations.html
    To reproduce, please create a zip file of seaborn along with brain_networks.txt from here:
    https://github.com/mwaskom/seaborn-data/blob/master/brain_networks.csv?raw=true
    You can download the zip file I used here: http://bit.ly/1C5IwYb
    Please let me know if you have any more questions.
    Sudarshan (AzureML)
    def azureml_main():
    import matplotlib
    matplotlib.use("agg")
    import pandas as pd
    import seaborn as sns
    import matplotlib.pyplot as plt
    sns.set(context="paper", font="monospace")
    df = pd.read_csv(".\\Script bundle\\brain_networks.txt", header=[0, 1, 2], index_col=0)
    corrmat = df.corr()
    f, ax = plt.subplots(figsize=(12, 9))
    sns.heatmap(corrmat, vmax=.8, linewidths=0, square=True)
    networks = corrmat.columns.get_level_values("network")
    for i, network in enumerate(networks):
    if i and network != networks[i - 1]:
    ax.axhline(len(networks) - i, c="w")
    ax.axvline(i, c="w")
    f.tight_layout()
    f.savefig("heatmap.png")
    return df,

  • [solved ]Gedit plugins not working (python module missing)

    What's the problem with python gedit plugins? None of them works, all I get is this:
    Could not find platform independent libraries <prefix>
    Could not find platform dependent libraries <exec_prefix>
    Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
    ** (gedit:8017): WARNING **: Could not import pygtk
    Traceback (most recent call last):
    File "/opt/gnome/lib/gedit-2/plugins/terminal.py", line 23, in ?
    import gedit
    ImportError: No module named gedit
    ** (gedit:8017): WARNING **: Could not load python module terminal
    ** (gedit:8017): WARNING **: Error, impossible to activate plugin 'Embedded Terminal'
    I've added all imaginable paths to PYTHONHOME and PYTHONPATH and I have pygtk installed. I could not find that gedit module anywhere either. What should I do?
    edit: solved by installing newest gedit from testing (2.18.0)
    Last edited by mikoro (2007-03-27 17:24:34)

    Mar2zz wrote:
    I am using Gnome indeed. I have the following items under Edit:
    - Undo
    - Redo
    - Cut
    - Copy
    - Paste
    - Remove (or delete, translating from Dutch)
    - Select all
    - Insert date and time
    That's it...
    Ok, try my suggestion: click on the Gedit icon in the top bar. It  might be in there. That's where GNOME is starting to put all of the application-wide (as opposed to instance-specific) menu entries.
    Last edited by jakobcreutzfeldt (2013-07-05 15:45:59)

  • [SOLVED]Problem with Ubuntu One related python module gi.repository

    So, I have Ubuntu One working on another Arch install, but I just put it on my new laptop today, and it's not working.  Installed with no apparent problems. However, when I try to run
    $ ubuntuone-control-panel-qt
    I get these messages (the last line is the only one that contains an actual error message):
    Traceback (most recent call last):
    File "/usr/bin/ubuntuone-control-panel-qt", line 29, in <module>
    from ubuntuone.controlpanel.gui.qt import main
    File "/usr/lib/python2.7/site-packages/ubuntuone-control-panel/ubuntuone/controlpanel/gui/__init__.py", line 26, in <module>
    from ubuntuone.controlpanel.backend import UBUNTUONE_LINK
    File "/usr/lib/python2.7/site-packages/ubuntuone-control-panel/ubuntuone/controlpanel/backend.py", line 29, in <module>
    from ubuntuone.platform.credentials import CredentialsManagementTool
    File "/usr/lib/python2.7/site-packages/ubuntuone-client/ubuntuone/platform/__init__.py", line 47, in <module>
    from ubuntuone.platform import os_helper
    File "/usr/lib/python2.7/site-packages/ubuntuone-client/ubuntuone/platform/os_helper/__init__.py", line 41, in <module>
    from ubuntuone.platform.os_helper import linux
    File "/usr/lib/python2.7/site-packages/ubuntuone-client/ubuntuone/platform/os_helper/linux.py", line 48, in <module>
    from gi.repository import Gio, GLib
    ImportError: No module named gi.repository
    I read on some Ubuntu site that it might help to reinstall python-gobjects, though the package is different on Arch (which I guess is a given), and it pulled in python3, so, as you might imagine, it didn't work.
    When I run `ubuntuone-launch` or `u1sdtool` I don't get an error, but nothing happens either (no prompt for login).  I searched google and the forums and the wiki, so sorry if I missed something obvious. Don't know anything about python either, beyond "hello-world.py" (and that I had to put parenthesis around the print statement in order to "port my software" to python3)
    Last edited by ninjaaron (2012-10-24 05:12:04)

    I only had python2-gobject2 (well, and python-gobject, and python-gobject2).  Installed python2-gobject and it works now.
    Thanks!
    SOLVED
    Last edited by ninjaaron (2012-10-24 05:27:21)

  • [Solved] Python: Creating AUR package, binary can't find python module

    I'm building a PKGBUILD for PyLotRO for the AUR and I'm using a Debian package.  I tried just copying the content of the data.tar.gz to the filesystem assuming the directory structure is the same for the packages but apparently it is not.  At least I'm figuring this is a filesystem problem but I don't know enough about python to be sure.  When I start the program, this is what I'm getting:
    pylotro
    Traceback (most recent call last):
    File "/usr/bin/pylotro", line 31, in <module>
    import PyLotROLauncher.Runner
    ImportError: No module named PyLotROLauncher.Runner
    I can see the file in the package that (I would think) would be the responsible module:
    /usr/share/pyshared/PyLotROLauncher/Runner.py
    So I'm thinking the python package must store modules in a different location?????
    The package requires: 4suite, python, and pyqt.  Any thoughts about what do I need to do here??
    Last edited by Gen2ly (2010-01-01 09:25:03)

    Nezmer wrote:Did you try putting stuff in /usr/lib/python2.6/site-packages/ ?
    Yes, 'site-packages' is the correct place.  Thank you Nezmer.
    wonder wrote:
    why you are using debian package rather that the source?
    http://www.lotrolinux.com/PyLotRO-0.1.11.tar.bz2
    cd $srcdir/PyLotRO-$pkgver
    python setup.py install --root=$pkgdir || return 1
    should be enough
    Ah, beautiful.  Wasn't aware before that python install script could define a destdir.  Much better way of doing it.  Thanks wonder.
    Last edited by Gen2ly (2009-12-29 20:44:12)

  • Cant install python modules.

    Hi, i have just started using berkeley db xml, and i'd like to use the python bindings ('im more cumfortable with python rather than java or c++).
    But, when i follow the procedure (as in README in dbxml-2.5.13/dbxml/src/python/bsddb3-4.8.0/README)
    i get the error:
    python setup.dbxml.py build
    running build
    running build_py
    running build_ext
    building 'bsddb3._pybsddb' extension
    gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -DPYBSDDB_STANDALONE=1 -I../../../../install/include -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c Modules/_bsddb.c -o build/temp.macosx-10.3-fat-2.6/Modules/_bsddb.o
    In file included from /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/unicodeobject.h:4,
    from /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Python.h:85,
    from Modules/_bsddb.c:92:
    /Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
    In file included from /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/unicodeobject.h:4,
    from /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Python.h:85,
    from Modules/_bsddb.c:92:
    /Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
    lipo: can't figure out the architecture type of: /var/folders/ny/nydPeoc+Ghy00a8WqC3IU++++TI/-Tmp-//ccJWWHQZ.out
    error: command 'gcc' failed with exit status 1
    thanks.

    I see you are on a mac - building these packages with the default install can be a major PIA. I recommend starting with a fresh python install instead of the system one just to make sure std packages don't get messed up. Also, make sure you have mac dev tools/env installed so you get the right gcc version.
    hth,
    eleddy

  • MaxL Perl Module Result String Limit

    I have a Perl script that uses the MaxL module to extract security filter rows to a text file. This script worked correctly under Essbase 6.2, but under 6.5, the strings returned my the MaxL module are limited to about 128 characters. I've tried increasing the 'MAX_COL' value in Essbase.xs and rebuilding the module, but the result is the same. Has anyone had this problem? Is there any way around this? Thanks.

    Good catch - you found a memory leak. Luckily the fix is very straightforward. Edit the file
    dbxml/src/perl/common.h
    and find this line
    #define newSVfromString(str) newSVpvn(str.c_str(), str.length())
    Change it to this
    #define newSVfromString(str) sv_2mortal(newSVpvn(str.c_str(), str.length()))
    and recompile the module.
    Paul

  • MaxL Perl Module - 64 Bit

    I'm trying to compile the Perl Module on a 64 bit Windows 7 machine. However, I can only find Makefiles for 32 bit.
    The 11.1.2.1 readme says this issue was fixed in that release:
    Oracle Essbase Release 11.1.2.1 Readme
    I'm working in 11.1.2.3. It appears that all the files I'm trying to user are Win32 files. Does anyone know where to find the 64 bit files or did Oracle screw this up?

        This is lost child.
            Since 9 version never update. 
    I am using maxl + other scripting tool . It's works fine because u can use OS variable like native maxl variable .
    ER

  • Python module loading

    hello guys,
    i have a very annoying problem with libpypac,
    python uses dynamically binary loading and that means that if i should install python with libpypac i'll be in trouble,
    scenario:
    i run "lazy-pac-cli -S python" and the steps taken by libpypac are,
    1. Download the new python version
    2. Uninstall the old version
    3. Install the new version
    you see, when step three comes there is missing stuff that has'nt been used before, i've thought of making o dummypackage or something,

    @cactus
    it should be "stuff missing" i guess,
    i want to do it as your first suggestion but i can't figure out how to do it,
    a temporary dir sounds like an ugly workaround even if it might work,
    how does the real pacman do it with glibc, that should be like the same problem,
    @iphitus
    i've thought so too but look here what happens:
    [root@UFU abs]# ./lazy-pac-cli -S python
    The package is already installed in the system.
    The following packages will be installed with python:
    python-2.4.1-1
    Total compressed size: 9.9 MB
    Proceed with the installation? [y/n] y
    Downloading python ...
    ... checking md5sum ... done.
    Installing python ...
    Traceback (most recent call last):
    File "./lazy-pac-cli", line 22, in ?
    main.install_control(sys.argv)
    File "/home/xerxes2/programs/abs/main.py", line 195, in install_control
    install_binary(dep_list, None)
    File "/home/xerxes2/programs/abs/main.py", line 137, in install_binary
    retcode = libpypac.install(package, i, depends_list, noupgrade_list, reason, oldver, None)
    File "/home/xerxes2/programs/abs/libpypac.py", line 584, in install
    tar = tarfile.open(cache_dir + package + ".pkg.tar.gz", "r:gz")
    File "/usr/lib/python2.4/tarfile.py", line 896, in open
    File "/usr/lib/python2.4/tarfile.py", line 948, in gzopen
    tarfile.CompressionError: gzip module is not available
    hmm, it looks like it is some shared binary missing, "gzip module"

  • Help! installing python module - Snack Sound Toolkit

    Hi all,
    I cannot get this sound module for python installed.  It's the Snack Sound toolkit ( http://www.speech.kth.se/snack/ )and it's supposed to make musical note making with python easy.
    I tried their linux binary from the download page (  http://www.speech.kth.se/snack/download.html ) but have no idea where to put it.
    I also tried to build from source but the build process ended halfway through with no error.
    The main problem is I have no idea to add modules to python.  When I added the snack dir to /usr/lib/python2.5 nothing happened, or when I added it to /lib64 or /lib.
    I thought I might need the tcl development libraries but can't find those via pacman?
    Anybody have an idea?  Or another python-based musical note-making module that is easier to install!?
    cheers,
    kilolima

    they go in `/usr/lib/python2.5/site-packages/' or you use $PYTHONPATH

Maybe you are looking for