Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#16040 closed defect (invalid)

matplotlib depends on unavailable pydap package

Reported by: luomo1138@… Owned by: skymoo (Adam Mercer)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port:

Description

Hello,

I receive the following error when I try to run matplotlib plotmap.py example.

It appears that matplotlib depends on pydap, but it is not an available port.

Jim

Traceback (most recent call last):
  File "plotmap.py", line 7, in <module>
    from mpl_toolkits.basemap import Basemap, shiftgrid
  File "/opt/local/lib/python2.5/site-packages/mpl_toolkits/basemap/__init__.py", line 1, in <module>
    from basemap import __doc__, __version__
  File "/opt/local/lib/python2.5/site-packages/mpl_toolkits/basemap/basemap.py", line 39, in <module>
    import _geoslib, pupynere, netcdftime
  File "/opt/local/lib/python2.5/site-packages/mpl_toolkits/basemap/pupynere.py", line 37, in <module>
    from dap.client import open as open_remote
ImportError: No module named dap.client

Change History (11)

comment:1 Changed 13 years ago by jmroot (Joshua Root)

Milestone: Port Bugs
Owner: changed from macports-tickets@… to ram@…

Assigning to maintainer.

comment:2 Changed 13 years ago by skymoo (Adam Mercer)

Status: newassigned

Where is this plotmap.py example?

comment:3 Changed 13 years ago by skymoo (Adam Mercer)

dap.client is a module supplied by the basemap toolkit - py25-matplotlib-basemap do you have that installed?

comment:4 Changed 13 years ago by luomo1138@…

Hello,

Yes I have basemap installed.

$ port installed name:basemap The following ports are currently installed:

py25-matplotlib-basemap @0.99_0 (active)

The plotmap.py example can be found here:

http://downloads.sourceforge.net/matplotlib/basemap-0.99.tar.gz

Thanks, Jim

comment:5 Changed 13 years ago by skymoo (Adam Mercer)

works for me:

$ port installed name:matplotlib
The following ports are currently installed:
  py25-matplotlib @0.98.2_0+cairo+tkinter (active)
  py25-matplotlib-basemap @0.99_0 (active)
$ python plotmap.py
$

and the example plot is displayed.

Whats the output of:

$ python -c "from dap import client"

comment:6 Changed 13 years ago by luomo1138@…

Hello,

Here it is:

$ port installed name:matplotlib
The following ports are currently installed:
  py25-matplotlib @0.98.2_0+gtk2 (active)
  py25-matplotlib-basemap @0.99_0 (active)
$ python -c "from dap import client"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named dap

Thanks, Jim

comment:7 Changed 13 years ago by skymoo (Adam Mercer)

whats the output of:

$ port contents py25-matplotlib-basemap | grep dap

It should be:

  /opt/local/lib/python2.5/site-packages/dap/__init__.py
  /opt/local/lib/python2.5/site-packages/dap/__init__.pyc
  /opt/local/lib/python2.5/site-packages/dap/client.py
  /opt/local/lib/python2.5/site-packages/dap/client.pyc
  /opt/local/lib/python2.5/site-packages/dap/dtypes.py
  /opt/local/lib/python2.5/site-packages/dap/dtypes.pyc
  /opt/local/lib/python2.5/site-packages/dap/exceptions.py
  /opt/local/lib/python2.5/site-packages/dap/exceptions.pyc
  /opt/local/lib/python2.5/site-packages/dap/helper.py
  /opt/local/lib/python2.5/site-packages/dap/helper.pyc
  /opt/local/lib/python2.5/site-packages/dap/lib.py
  /opt/local/lib/python2.5/site-packages/dap/lib.pyc
  /opt/local/lib/python2.5/site-packages/dap/parsers/__init__.py
  /opt/local/lib/python2.5/site-packages/dap/parsers/__init__.pyc
  /opt/local/lib/python2.5/site-packages/dap/parsers/das.py
  /opt/local/lib/python2.5/site-packages/dap/parsers/das.pyc
  /opt/local/lib/python2.5/site-packages/dap/parsers/dds.py
  /opt/local/lib/python2.5/site-packages/dap/parsers/dds.pyc
  /opt/local/lib/python2.5/site-packages/dap/proxy.py
  /opt/local/lib/python2.5/site-packages/dap/proxy.pyc
  /opt/local/lib/python2.5/site-packages/dap/util/__init__.py
  /opt/local/lib/python2.5/site-packages/dap/util/__init__.pyc
  /opt/local/lib/python2.5/site-packages/dap/util/filter.py
  /opt/local/lib/python2.5/site-packages/dap/util/filter.pyc
  /opt/local/lib/python2.5/site-packages/dap/util/http.py
  /opt/local/lib/python2.5/site-packages/dap/util/http.pyc
  /opt/local/lib/python2.5/site-packages/dap/util/ordereddict.py
  /opt/local/lib/python2.5/site-packages/dap/util/ordereddict.pyc
  /opt/local/lib/python2.5/site-packages/dap/util/safeeval.py
  /opt/local/lib/python2.5/site-packages/dap/util/safeeval.pyc
  /opt/local/lib/python2.5/site-packages/dap/util/wsgi_intercept.py
  /opt/local/lib/python2.5/site-packages/dap/util/wsgi_intercept.pyc
  /opt/local/lib/python2.5/site-packages/dap/xdr.py
  /opt/local/lib/python2.5/site-packages/dap/xdr.pyc

comment:8 Changed 13 years ago by skymoo (Adam Mercer)

Another question what does the following give you:

$ which python
$ python -V

comment:9 Changed 13 years ago by luomo1138@…

Hello,

Thanks! You solved it!

$ which python
/opt/local/bin/python
$ python -V
Python 2.5.2
$ port contents py25-matplotlib-basemap |grep dap

There was no output from the grep command.

So I reinstalled py25-matplotlib-basemap. So far every example that I have tried worked.

Let's close this ticket.

Thanks, Jim

comment:10 Changed 13 years ago by skymoo (Adam Mercer)

Resolution: invalid
Status: assignedclosed

Strange, glad its working now.

comment:11 Changed 12 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.