|
Namazu for hns による簡易全文検索 詳しくは 詳細指定/ヘルプを参照して下さい |
||||||||||||||||||||||||||||||||||||||||||||||||||
2021年01月02日(土) 旧暦 [n年日記] [更新:"2004/08/09 23:43:33"]#1 [pkgssrc] ImportError: cannot import name 'DistutilsSetupError'
=> Bootstrap dependency digest>=20010302: found digest-20190127
===> Skipping vulnerability checks.
WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'.
===> Building for py36-obspy-1.1.1nb2
(cd /tmp/geography/py-obspy/work/obspy-1.1.1/ && /usr/bin/env
USETOOLS=no PTHREAD_CFLAGS=\ -pthread\ PTHREAD_LDFLAGS=\ -pthread
PTHREAD_LIBS= PTHREADBASE=/usr DL_CFLAGS=\ -pthread\ DL_LDFLAGS=\
-pthread DL_LIBS= PYTHON=/usr/pkg/bin/python3.6 CC=gcc CFLAGS=-O2\
-D_FORTIFY_SOURCE=2\ -I/usr/include\ -I/usr/pkg/include/python3.6\
-I/usr/pkg/include CPPFLAGS=-I/usr/include\
-I/usr/pkg/include/python3.6\ -I/usr/pkg/include CXX=c++ CXXFLAGS=-O2\
-D_FORTIFY_SOURCE=2\ -I/usr/include\ -I/usr/pkg/include/python3.6\
-I/usr/pkg/include COMPILER_RPATH_FLAG=-Wl,-R F77=gfortran FC=gfortran
FFLAGS=-O LANG=C LC_ALL=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C
LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LDFLAGS=-L/usr/lib\
-Wl,-R/usr/lib\ -L/usr/pkg/lib\ -Wl,-R/usr/pkg/lib
LINKER_RPATH_FLAG=-R
PATH=/tmp/geography/py-obspy/work/.cwrapper/bin:/tmp/geography/py-obspy/work/.buildlink/bin:/tmp/geography/py-obspy/work/.gfortran/bin:/tmp/geography/py-obspy/work/.gcc/bin:/tmp/geography/py-obspy/work/.tools/bin:/usr/pkg/bin:/usr/bin:/bin:/usr/pkg/bin:/usr/local/bin:/usr/pkg/bin:/usr/X11R7/bin
PREFIX=/usr/pkg MAKELEVEL=0 CONFIG_SITE= PKG_SYSCONFDIR=/usr/pkg/etc
CXXCPP=cpp HOME=/tmp/geography/py-obspy/work/.home
CWRAPPERS_CONFIG_DIR=/tmp/geography/py-obspy/work/.cwrapper/config
CPP=cpp LOCALBASE=/usr/pkg X11BASE=/usr/X11R7 PKGMANDIR=man
PKGINFODIR=info PKGGNUDIR=gnu/ MAKECONF=/dev/null OBJECT_FMT=ELF
USETOOLS=no BSD_INSTALL_PROGRAM=/usr/bin/install\ -c\ -s\ -o\ pbulk\
-g\ wheel\ -m\ 755 BSD_INSTALL_SCRIPT=/usr/bin/install\ -c\ -o\ pbulk\
-g\ wheel\ -m\ 755 BSD_INSTALL_LIB=/usr/bin/install\ -c\ -o\ pbulk\
-g\ wheel\ -m\ 755 BSD_INSTALL_DATA=/usr/bin/install\ -c\ -o\ pbulk\
-g\ wheel\ -m\ 644 BSD_INSTALL_MAN=/usr/bin/install\ -c\ -o\ pbulk\
-g\ wheel\ -m\ 644 BSD_INSTALL=/usr/bin/install
BSD_INSTALL_PROGRAM_DIR=/usr/bin/install\ -d\ -o\ pbulk\ -g\ wheel\
-m\ 755 BSD_INSTALL_SCRIPT_DIR=/usr/bin/install\ -d\ -o\ pbulk\ -g\
wheel\ -m\ 755 BSD_INSTALL_LIB_DIR=/usr/bin/install\ -d\ -o\ pbulk\
-g\ wheel\ -m\ 755 BSD_INSTALL_DATA_DIR=/usr/bin/install\ -d\ -o\
pbulk\ -g\ wheel\ -m\ 755 BSD_INSTALL_MAN_DIR=/usr/bin/install\ -d\
-o\ pbulk\ -g\ wheel\ -m\ 755 BSD_INSTALL_GAME=/usr/bin/install\ -c\
-s\ -o\ pbulk\ -g\ wheel\ -m\ 2555
BSD_INSTALL_GAME_DATA=/usr/bin/install\ -c\ -o\ pbulk\ -g\ wheel\ -m\
664 BSD_INSTALL_GAME_DIR=/usr/bin/install\ -d\ -o\ pbulk\ -g\ wheel\
-m\ 775 INSTALL_INFO=
MAKEINFO=/tmp/geography/py-obspy/work/.tools/bin/makeinfo FLEX= BISON=
PKG_CONFIG=
PKG_CONFIG_LIBDIR=/tmp/geography/py-obspy/work/.buildlink/lib/pkgconfig:/tmp/geography/py-obspy/work/.buildlink/share/pkgconfig
PKG_CONFIG_LOG=/tmp/geography/py-obspy/work/.pkg-config.log
PKG_CONFIG_PATH=
CWRAPPERS_CONFIG_DIR=/tmp/geography/py-obspy/work/.cwrapper/config
/usr/pkg/bin/python3.6 setup.py build -j4)
Traceback (most recent call last):
File "setup.py", line 47, in <module>
from numpy.distutils.core import DistutilsSetupError, setup
ImportError: cannot import name 'DistutilsSetupError'
*** Error code 1
Numpy released new version, 1.19, which broke the setup. The problem is that we are importing DistutilsSetupError through numpy and it just stopped working. It was working only due to the fact that <1.19 in numpy.core they were doing from distutils.core import *. In 1.19 they changed it to from distutils.core import Distribution in numpy/numpy#15465 So instead of going around, I just import DistutilsSetupError directly from distutils. Fixes #2640 ( つっこみ )
|
最近の日記 2026年02月28日 ・my first script-fu 2026年01月29日 ・Die Fledermaus at New National theatre 2026/01/29 2025年12月25日 ・pbulk 11.99.3 (emacs30) 2025年11月22日 ・crash dump 2025年10月25日 ・recover from disk error | ||