Re: [Pflexible-users] nilu.pflexpart 0.8.1
A python tool for data analysis of FLEXPART transport modeling.
Status: Beta
Brought to you by:
jfburkhart
|
From: John B. <jfb...@gm...> - 2012-07-04 21:43:41
|
Francesco, First of all, the convention for pflexible is to now simply import it directly: import pflexible as pf Your approach works fine, but I think it is easier to import it as above. Regarding your error, it is due to a missing requirement. You need to have the matplotlib basemap routines installed. On ubuntu it would be something like: sudo apt-get install python-mpltoolkits.basemap Otherwise, you'll have to install it via the instructions at the packages site: http://matplotlib.github.com/basemap/users/installing.html --john On 07/04/2012 06:41 PM, Francesco Graziosi wrote: > Hi John, > > thanks for the replay. > I have istalled pflexible on my pc, I run the setup by typing "python > setup.py install", and it work fine. > I setting the variable pythonpath : "export > PYTHONPATH=$HOME:/home/johnny/pflexible" ; and then when I try to > customize all command for the 0.8 version by running following command : > >>> from pflexible import pflexible as pf > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "pflexible/__init__.py", line 1, in <module> > from pflexible import * > File "pflexible/pflexible.py", line 80, in <module> > import mapping as mp > File "pflexible/mapping.py", line 28, in <module> > from matplotlib.toolkits import Basemap > ImportError: cannot import name Basemap. > > I obtain the error above, but I have already installed Basemap.py in : > /usr/lib64/python2.5/site-packages/matplotlib/toolkits/basemap/ > > can you help me to find the mistake ? > > Best regards, > > Francesco Graziosi > > |