473,385 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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: XCheckWindowEvent

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.
Apr 15 '08 #1
4 2011
woooee
43
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.
Apr 15 '08 #2
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: XCheckWindowEvent

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

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.
Apr 16 '08 #3
woooee
43
It appears that XCheckWindowEvent is part of the XLibs library. On Ubuntu I would have to install xlibs-dev. You probably have to do something similar on Mepis.
Apr 16 '08 #4
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.
Apr 17 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Enno Middelberg | last post by:
Hi, I want to install pgplot but I can't really get it to work. Here is what I did; pgplot libraries are installed in ~/pgplot -downloaded ppgplot-1.1.tar.gz from...
2
by: Dennis Hore | last post by:
I'm trying to install Nick Patavalis' ppgplot package on Mac OS X 10.3 with python 2.3. I first sent this message to Nick, but he said he doesn't have any experience with the Mac platform. ...
9
by: Dr. Colombes | last post by:
What is the easiest way to generate some plots and graphs in Python ? Specifically interested in simple histograms and scatter plots with circles and regression lines. Thanks for your...
322
bartonc
by: bartonc | last post by:
For the benefit of those of us who answer questions, PLEASE REPLY in this thread with your operating system, version of python that you are using, editor/IDE, and anything extra like GUI toolkits,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.