0
votes

I recently upgraded QGIS to 2.0 using Kyngchaos packages only to discover that my kriging scipts which I run in iPython then threw up the following error:

numpy.core.multiarray failed to import

It seems that the pathname variable assigned by SWIG is incompatible with iPython. I hate path management, it seems to be the single greatest cause of errors on UNIX machines.

Anyway, a rather clumsy fix to this is to copy the Python/2.7/site-packages from from version 1.9 of gdal to version 1.10 (renaming the original 1.10 directory to something appropriately rude) This works for iPython at least and QGIS seems to function still. Can somebody suggest a more elegant solution?

1

1 Answers

0
votes

I have QGIS 2.0 and GDAL 1.10 installed from Kyngchaos pre-compiled distributions, and was also having this error.

It seems it was expecting a newer version of numpy (I was running 1.6), and I'm assuming QGIS/GDAL expect the lib to be in a certain path, since it's a pre-compiled version. So, for me, installing the numpy package also available from Kyngchaos, which is version 1.7.1, solved the problem.