ppgplot

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • warren hankey
    New Member
    • Apr 2008
    • 5

    ppgplot

    Having trouble installing ppgplot. Needed for PhD astrophysical work.
    Mepis 6.5, bash shell.

    It seems to build and install fine but I get this error when I try to import to python,

    >>> import ppgplot
    Traceback (most recent call last):
    File "<stdin>", line 1, in ?
    File "/usr/lib/python2.4/site-packages/ppgplot/__init__.py", line 1, in ?
    from _ppgplot import *
    ImportError: /usr/lib/libpgplot.so.5: undefined symbol: XCheckWindowEve nt

    Does this mean the install script didn't find the pgplot libraries?

    In my /usr/lib directory, which environment variable PGPLOT_DIR points to, I have,
    libpgplot.a libpgplot.so libpgplot.so.5 libpgplot.so.5. 2.2


    When I did the build/install, I got the following,

    root@2[ppgplot-1.3]# python setup.py install
    using Numeric...
    running install
    running build
    running build_py
    running build_ext
    running install_lib
    creating /usr/lib/python2.4/site-packages/ppgplot
    copying build/lib.linux-i686-2.4/ppgplot/_ppgplot.so -> /usr/lib/python2.4/site-packages/ppgplot
    copying build/lib.linux-i686-2.4/ppgplot/__init__.py -> /usr/lib/python2.4/site-packages/ppgplot
    byte-compiling /usr/lib/python2.4/site-packages/ppgplot/__init__.py to __init__.pyc

    Thanks in advance for any contributions.
  • woooee
    New Member
    • Mar 2008
    • 43

    #2
    It is probably a missing dependency. The ppgplot website says that it depends on Numeric Python (now NumPy), so that has to be installed. Also, pgplot5 is available in the repositories for my Ubuntu install, so it should be available for any Debian derivative and would be the best way to install. Synaptic wants to install libg2c0 as a dependency as well, which I think is a fortran linker.

    Comment

    • warren hankey
      New Member
      • Apr 2008
      • 5

      #3
      Thanks,
      I believe I have all the dependencies satisfied.
      I have Numeric package, libg2c0, and everything required in the INSTALL notes that came with the source.
      As you can see, it doesn't complain when it gets built.
      And you can see I have pgplot5 installed.

      I've come here because I've checked the documentation and can't work out what I'm missing.

      Upon import into python it complains about an undefined symbol in a library that exists on my file system, whatever that means.
      Quote:
      ImportError: /usr/lib/libpgplot.so.5: undefined symbol: XCheckWindowEve nt

      I'm thinking it could be a problem with python path variables not pointing to the pgplot libraries or something?

      Originally posted by woooee
      It is probably a missing dependency. The ppgplot website says that it depends on Numeric Python (now NumPy), so that has to be installed. Also, pgplot5 is available in the repositories for my Ubuntu install, so it should be available for any Debian derivative and would be the best way to install. Synaptic wants to install libg2c0 as a dependency as well, which I think is a fortran linker.

      Comment

      • woooee
        New Member
        • Mar 2008
        • 43

        #4
        It appears that XCheckWindowEve nt is part of the XLibs library. On Ubuntu I would have to install xlibs-dev. You probably have to do something similar on Mepis.

        Comment

        • warren hankey
          New Member
          • Apr 2008
          • 5

          #5
          Thanks again!
          You were right.

          It turns out I thought I had the needed libraries, but I didn't!

          I only just realised that I need the developer packages installed, with the header and development files, to be able to build and compile, not just the plain libraries.

          This should resolve my problem.

          Hey, I'm learning ........ the hard way.

          Comment

          Working...