[Python-modules-team] Bug#776579: ImportError: cannot import name basemap

giacomo boffi boffi at stru.polimi.it
Thu Jan 29 14:21:03 UTC 2015


Package: python-mpltoolkits.basemap
Version: 1.0.7+dfsg-1
Severity: important

Dear Maintainer,

I installed all the python-mpltoolkits.basemap* packages, then I tried to
import the basemap module from the IPython prompt, as described in different
tutorials

 |  In [1]: from mpl_toolkits import basemap
 |  ---------------------------------------------------------------------------
 |  ImportError                               Traceback (most recent call last)
 |  <ipython-input-1-e11b082cc26f> in <module>()
 |  ----> 1 from mpl_toolkits import basemap
 |
 |  ImportError: cannot import name basemap
 |
 |  In [2]:

as you can imagine, this is not what I expected... btw the same behaviour is
found using the standard python shell.

Apparently the basemap package wasn't properly installed, as I inferred from

 | In [2]: import mpl_toolkits
 |
 | In [3]: help(mpl_toolkits)
 |
 | Help on package mpl_toolkits:
 |
 | NAME
 |     mpl_toolkits
 |
 | FILE
 |     (built-in)
 |
 | PACKAGE CONTENTS
 |     axes_grid (package)
 |     axes_grid1 (package)
 |     axisartist (package)
 |     exceltools
 |     gtktools
 |     mplot3d (package)
 |
 | In [4]:

while the "basemap" directory is placed in in the "mpl_toolkits" directory,
with all the relevant stuff inside.




-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (700, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages python-mpltoolkits.basemap depends on:
ii  libc6                             2.19-13
ii  libgeos-c1                        3.4.2-6
ii  python                            2.7.8-2
ii  python-matplotlib                 1.3.1-2
ii  python-mpltoolkits.basemap-data   1.0.7+dfsg-1
ii  python-numpy [python-numpy-abi9]  1:1.8.2-2
ii  python-support                    1.0.15

Versions of packages python-mpltoolkits.basemap recommends:
ii  python-dap      2.2.6.7-2
ii  python-imaging  2.6.1-1

python-mpltoolkits.basemap suggests no packages.

-- no debconf information



More information about the Python-modules-team mailing list