[Qgis-developer] Python errors

Paolo Cavallini cavallini at faunalia.it
Mon May 2 11:28:10 EDT 2011


Hi all.
Just got an error after updating:
===
ImportError: numpy.core.multiarray failed to import

Versione Python:
2.7.1+ (default, Apr 20 2011, 11:05:50) 
[GCC 4.5.2]


Versione di QGIS:
1.7.0-Wroclaw Wroclaw, 15861M

Percorso Python: ['/usr/share/qgis/python', '/home/paolo/.qgis/python',
'/home/paolo/.qgis/python/plugins', '/usr/share/qgis/python/plugins',
'/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages/PIL', '/usr/lib/pymodules/python2.7']
===
I have:
===
$ aptitude show python-numpy
Pacchetto: python-numpy                             
Nuovo: sì
Stato: installato
Installato automaticamente: no
Versione: 1:1.5.1-2
Priorità: opzionale
Sezione: python
Responsabile: Debian Python Modules Team
<python-modules-team at lists.alioth.debian.org>
Dimensione pacchetto installato: 9146 k
Dipende: python (< 2.7), python (>= 2.5), python-support (>= 0.90.0),
libblas3gf | libblas.so.3gf | libatlas3gf-base, libc6 (>= 2.3),
         libgcc1 (>= 1:4.1.1), libgfortran3 (>= 4.3), liblapack3gf |
liblapack.so.3gf | libatlas3gf-base
Consiglia: python-numpy-doc, python-numpy-dbg, python-nose (>= 0.10.1),
python-dev, gfortran
Fornisce: python-f2py, python-numpy-dev, python2.5-numpy,
python2.6-numpy
===
And:
===
Impossibile caricare il plugin bcccoltbl1 a causa di errore chiamando il
metodo classFactory()

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 138, in
startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "/home/paolo/.qgis/python/plugins/bcccoltbl1/__init__.py", line
44, in classFactory
    from bcctbl import bcccoltbl
  File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 283, in
_import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/home/paolo/.qgis/python/plugins/bcccoltbl1/bcctbl.py", line 38,
in 
    import numpy as np
  File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 283, in
_import
    mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: No module named numpy
===
Couldn't import Python module 'matplotlib' for plotting. Without it you
won't be able to run Statist.
===
Any hint?
python -V says 2.6.6, but QGIS is using 2.7
All the best, and thanks.
-- 
Paolo Cavallini: http://www.faunalia.it/pc




More information about the Qgis-developer mailing list