Package: src:basemap
Version: 1.0.7+dfsg-4
Severity: normal
Because of the way that the transition tracker orders packages for rebuild,
basemap was rebuilt to add python3.6 (non-default python3) at the same time as
python-numpy. Since python-numpy for python3.6 was not available, that part
of the build failed:
for python in python3.6 python3.5; do \
$python setup.py install --prefix
/<<BUILDDIR>>/basemap-1.0.7+dfsg/debian/python3-mpltoolkits.basemap/usr
--install-layout=deb; \
$python-dbg setup.py install --prefix
/<<BUILDDIR>>/basemap-1.0.7+dfsg/debian/python3-mpltoolkits.basemap-dbg/usr
--install-layout=deb; \
done
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/numpy/core/__init__.py", line 16, in
<module>
from . import multiarray
ImportError: cannot import name 'multiarray'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "setup.py", line 1, in <module>
import sys, glob, os, numpy, subprocess
File "/usr/lib/python3/dist-packages/numpy/__init__.py", line 142, in <module>
from . import add_newdocs
File "/usr/lib/python3/dist-packages/numpy/add_newdocs.py", line 13, in
<module>
from numpy.lib import add_newdoc
File "/usr/lib/python3/dist-packages/numpy/lib/__init__.py", line 8, in
<module>
from .type_check import *
File "/usr/lib/python3/dist-packages/numpy/lib/type_check.py", line 11, in
<module>
import numpy.core.numeric as _nx
File "/usr/lib/python3/dist-packages/numpy/core/__init__.py", line 24, in
<module>
raise ImportError(msg)
ImportError:
Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control). Otherwise reinstall numpy.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/numpy/core/__init__.py", line 16, in
<module>
from . import multiarray
ImportError: cannot import name 'multiarray'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "setup.py", line 1, in <module>
import sys, glob, os, numpy, subprocess
File "/usr/lib/python3/dist-packages/numpy/__init__.py", line 142, in <module>
from . import add_newdocs
File "/usr/lib/python3/dist-packages/numpy/add_newdocs.py", line 13, in
<module>
from numpy.lib import add_newdoc
File "/usr/lib/python3/dist-packages/numpy/lib/__init__.py", line 8, in
<module>
from .type_check import *
File "/usr/lib/python3/dist-packages/numpy/lib/type_check.py", line 11, in
<module>
import numpy.core.numeric as _nx
File "/usr/lib/python3/dist-packages/numpy/core/__init__.py", line 24, in
<module>
raise ImportError(msg)
ImportError:
Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control). Otherwise reinstall numpy.
Then the build proceeded. This is because set -e ; \ is missing from the
python3 portion of the dh_auto_install override. I think it would be better
for the build to fail than to mis-build like this. Please add set -e for the
python3 portion as well.
Not providing a patch since it's trivial. If you'd rather I fix it in a team
upload, just say so and I'll be glad to do it.
Scott K