Bug#1084306: nlopt: FTBFS: Resource wordnet not found.

Santiago Vila sanvila at debian.org
Mon Oct 7 09:36:59 BST 2024


Package: src:nlopt
Version: 2.7.1-5
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
  debian/rules binary
dh binary  --buildsystem=cmake --with python3
    dh_update_autotools_config -O--buildsystem=cmake
    dh_autoreconf -O--buildsystem=cmake
    debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
py3versions: no X-Python3-Version in control file, using supported versions
dh_auto_configure -a -- -DNLOPT_FORTRAN=ON -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3.12 -DCMAKE_SKIP_INSTALL_RPATH=TRUE
	cd obj-x86_64-linux-gnu && DEB_PYTHON_INSTALL_LAYOUT=deb PKG_CONFIG=/usr/bin/pkg-config cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DFETCHCONTENT_FULLY_DISCONNECTED=ON -DCMAKE_INSTALL_RUNSTATEDIR=/run -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu -DNLOPT_FORTRAN=ON -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3.12 -DCMAKE_SKIP_INSTALL_RPATH=TRUE ..
CMake Deprecation Warning at CMakeLists.txt:15 (cmake_minimum_required):
   Compatibility with CMake < 3.5 will be removed from a future version of
   CMake.

   Update the VERSION argument <min> value or use a ...<max> suffix to tell
   CMake that the project does not need compatibility with older versions.


-- The C compiler identification is GNU 14.2.0
-- The CXX compiler identification is GNU 14.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- NLopt version 2.7.1
-- The Fortran compiler identification is GNU 14.2.0
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /usr/bin/gfortran - skipped
-- Looking for getopt.h
-- Looking for getopt.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for time.h
-- Looking for time.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for getpid
-- Looking for getpid - found
-- Looking for syscall
-- Looking for syscall - found
-- Looking for isinf
-- Looking for isinf - found
-- Looking for isnan
-- Looking for isnan - found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for qsort_r
-- Looking for qsort_r - found
-- Looking for time
-- Looking for time - found
-- Looking for copysign
-- Looking for copysign - found
-- Looking for getopt
-- Looking for getopt - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of uint32_t
-- Check size of uint32_t - done
-- Check size of unsigned int
-- Check size of unsigned int - done
-- Check size of unsigned long
-- Check size of unsigned long - done
-- Looking for sqrt in m
-- Looking for sqrt in m - found
-- Looking for fpclassify
-- Looking for fpclassify - TRUE
-- Performing Test HAVE_THREAD_LOCAL_STORAGE
-- Performing Test HAVE_THREAD_LOCAL_STORAGE - Success
-- Performing Test HAVE_THREAD_LOCAL_STORAGE
-- Performing Test HAVE_THREAD_LOCAL_STORAGE - Failed
-- Looking for __cplusplus
-- Looking for __cplusplus - found
-- Performing Test SUPPORTS_STDCXX11
-- Performing Test SUPPORTS_STDCXX11 - Success
CMake Warning (dev) at CMakeLists.txt:303 (find_package):
   Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
   are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
   the cmake_policy command to set the policy and suppress this warning.

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PythonInterp: /usr/bin/python3.12 (found version "3.12.7")
CMake Warning (dev) at CMakeLists.txt:304 (find_package):
   Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
   are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
   the cmake_policy command to set the policy and suppress this warning.

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.12.so (found suitable exact version "3.12.7")
CMake Warning (dev) at cmake/FindNumPy.cmake:45 (find_package):
   Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
   are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
   the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):
   CMakeLists.txt:305 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found NumPy: /usr/lib/python3/dist-packages/numpy/core/include (found version "1.26.4")
-- Found Guile: /usr/bin/guile (found version "3.0.9")
-- Found SWIG: /usr/bin/swig (found version "4.2.1")
CMake Warning (dev) at /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeTmp/UNDEFINED_SYMBOLS_ALLOWED/CMakeLists.txt:2 (project):
   cmake_minimum_required() should be called prior to this top-level project()
   call.  Please see the cmake-commands(7) manual for usage documentation of
   both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Performing Test UNDEFINED_SYMBOLS_ALLOWED - Success
-- Found Octave: /usr/bin/octave (found version "9.2.0")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Could NOT find Matlab (missing: Matlab_ROOT_DIR Matlab_INCLUDE_DIRS Matlab_MEX_LIBRARY Matlab_MEX_EXTENSION Matlab_MX_LIBRARY MX_LIBRARY MAIN_PROGRAM) (found version "NOTFOUND")
-- Configuring done (2.9s)
-- Generating done (0.0s)
CMake Warning:
   Manually-specified variables were not used by the project:

     CMAKE_EXPORT_NO_PACKAGE_REGISTRY
     CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY
     FETCHCONTENT_FULLY_DISCONNECTED


-- Build files have been written to: /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu
for py3alt in ; do dh_auto_configure -a --builddirectory=obj-x86_64-linux-gnu-python${py3alt} -- -DNLOPT_FORTRAN=ON -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python${py3alt} -DCMAKE_SKIP_INSTALL_RPATH=TRUE; done
dh_auto_configure -a --builddirectory=obj-x86_64-linux-gnu-c-only -- -DNLOPT_CXX=OFF -DNLOPT_PYTHON=OFF -DNLOPT_OCTAVE=OFF -DNLOPT_GUILE=OFF -DNLOPT_SWIG=OFF -DCMAKE_SKIP_INSTALL_RPATH=TRUE
	cd obj-x86_64-linux-gnu-c-only && DEB_PYTHON_INSTALL_LAYOUT=deb PKG_CONFIG=/usr/bin/pkg-config cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DFETCHCONTENT_FULLY_DISCONNECTED=ON -DCMAKE_INSTALL_RUNSTATEDIR=/run -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu -DNLOPT_CXX=OFF -DNLOPT_PYTHON=OFF -DNLOPT_OCTAVE=OFF -DNLOPT_GUILE=OFF -DNLOPT_SWIG=OFF -DCMAKE_SKIP_INSTALL_RPATH=TRUE ..
CMake Deprecation Warning at CMakeLists.txt:15 (cmake_minimum_required):
   Compatibility with CMake < 3.5 will be removed from a future version of
   CMake.

   Update the VERSION argument <min> value or use a ...<max> suffix to tell
   CMake that the project does not need compatibility with older versions.


-- The C compiler identification is GNU 14.2.0
-- The CXX compiler identification is GNU 14.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- NLopt version 2.7.1
-- Looking for getopt.h
-- Looking for getopt.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for time.h
-- Looking for time.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for getpid
-- Looking for getpid - found
-- Looking for syscall
-- Looking for syscall - found
-- Looking for isinf
-- Looking for isinf - found
-- Looking for isnan
-- Looking for isnan - found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for qsort_r
-- Looking for qsort_r - found
-- Looking for time
-- Looking for time - found
-- Looking for copysign
-- Looking for copysign - found
-- Looking for getopt
-- Looking for getopt - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of uint32_t
-- Check size of uint32_t - done
-- Check size of unsigned int
-- Check size of unsigned int - done
-- Check size of unsigned long
-- Check size of unsigned long - done
-- Looking for sqrt in m
-- Looking for sqrt in m - found
-- Looking for fpclassify
-- Looking for fpclassify - TRUE
-- Performing Test HAVE_THREAD_LOCAL_STORAGE
-- Performing Test HAVE_THREAD_LOCAL_STORAGE - Success
-- Performing Test HAVE_THREAD_LOCAL_STORAGE
-- Performing Test HAVE_THREAD_LOCAL_STORAGE - Failed
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Could NOT find Matlab (missing: Matlab_ROOT_DIR Matlab_INCLUDE_DIRS Matlab_MEX_LIBRARY Matlab_MEX_EXTENSION Matlab_MX_LIBRARY MX_LIBRARY MAIN_PROGRAM) (found version "NOTFOUND")
-- Configuring done (2.2s)
-- Generating done (0.0s)
CMake Warning:
   Manually-specified variables were not used by the project:

     CMAKE_EXPORT_NO_PACKAGE_REGISTRY
     CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY
     FETCHCONTENT_FULLY_DISCONNECTED


-- Build files have been written to: /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu-c-only
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    debian/rules override_dh_auto_build-indep
make[1]: Entering directory '/<<PKGBUILDDIR>>'
mkdocs build
Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/nltk/corpus/util.py", line 84, in __load
     root = nltk.data.find(f"{self.subdir}/{zip_name}")
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/nltk/data.py", line 579, in find
     raise LookupError(resource_not_found)
LookupError:
**********************************************************************
   Resource wordnet not found.
   Please use the NLTK Downloader to obtain the resource:

   >>> import nltk
   >>> nltk.download('wordnet')
   
   For more information see: https://www.nltk.org/data.html

   Attempted to load corpora/wordnet.zip/wordnet/

   Searched in:
     - '/sbuild-nonexistent/nltk_data'
     - '/usr/nltk_data'
     - '/usr/share/nltk_data'
     - '/usr/lib/nltk_data'
     - '/usr/share/nltk_data'
     - '/usr/local/share/nltk_data'
     - '/usr/lib/nltk_data'
     - '/usr/local/lib/nltk_data'
**********************************************************************


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/usr/bin/mkdocs", line 6, in <module>
     cli()
   File "/usr/lib/python3/dist-packages/click/core.py", line 1157, in __call__
     return self.main(*args, **kwargs)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/click/core.py", line 1078, in main
     rv = self.invoke(ctx)
          ^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/click/core.py", line 1688, in invoke
     return _process_result(sub_ctx.command.invoke(sub_ctx))
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/click/core.py", line 1434, in invoke
     return ctx.invoke(self.callback, **ctx.params)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/click/core.py", line 783, in invoke
     return __callback(*args, **kwargs)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/mkdocs/__main__.py", line 283, in build_command
     cfg = config.load_config(**kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/mkdocs/config/base.py", line 378, in load_config
     errors, warnings = cfg.validate()
                        ^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/mkdocs/config/base.py", line 230, in validate
     run_failed, run_warnings = self._validate()
                                ^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/mkdocs/config/base.py", line 188, in _validate
     self[key] = config_option.validate(value)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/mkdocs/config/config_options.py", line 182, in validate
     return self.run_validation(value)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/mkdocs/config/config_options.py", line 1064, in run_validation
     self.load_plugin_with_namespace(name, cfg)
   File "/usr/lib/python3/dist-packages/mkdocs/config/config_options.py", line 1102, in load_plugin_with_namespace
     return (name, self.load_plugin(name, config))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/mkdocs/config/config_options.py", line 1120, in load_plugin
     plugin_cls = self.installed_plugins[name].load()
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 205, in load
     module = import_module(match.group('module'))
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
     return _bootstrap._gcd_import(name[level:], package, level)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
   File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
   File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
   File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
   File "<frozen importlib._bootstrap_external>", line 995, in exec_module
   File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
   File "/usr/lib/python3/dist-packages/mkdocs/contrib/search/__init__.py", line 10, in <module>
     from mkdocs.contrib.search.search_index import SearchIndex
   File "/usr/lib/python3/dist-packages/mkdocs/contrib/search/search_index.py", line 16, in <module>
     from lunr import lunr
   File "/usr/lib/python3/dist-packages/lunr/__init__.py", line 1, in <module>
     from lunr.lunr import lunr, get_default_builder
   File "/usr/lib/python3/dist-packages/lunr/lunr.py", line 1, in <module>
     from lunr import languages as lang
   File "/usr/lib/python3/dist-packages/lunr/languages/__init__.py", line 34, in <module>
     import nltk  # type: ignore
     ^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/nltk/__init__.py", line 153, in <module>
     from nltk.translate import *
   File "/usr/lib/python3/dist-packages/nltk/translate/__init__.py", line 24, in <module>
     from nltk.translate.meteor_score import meteor_score as meteor
   File "/usr/lib/python3/dist-packages/nltk/translate/meteor_score.py", line 14, in <module>
     from nltk.stem.api import StemmerI
   File "/usr/lib/python3/dist-packages/nltk/stem/__init__.py", line 34, in <module>
     from nltk.stem.wordnet import WordNetLemmatizer
   File "/usr/lib/python3/dist-packages/nltk/stem/wordnet.py", line 13, in <module>
     class WordNetLemmatizer:
   File "/usr/lib/python3/dist-packages/nltk/stem/wordnet.py", line 48, in WordNetLemmatizer
     morphy = wn.morphy
              ^^^^^^^^^
   File "/usr/lib/python3/dist-packages/nltk/corpus/util.py", line 120, in __getattr__
     self.__load()
   File "/usr/lib/python3/dist-packages/nltk/corpus/util.py", line 86, in __load
     raise e
   File "/usr/lib/python3/dist-packages/nltk/corpus/util.py", line 81, in __load
     root = nltk.data.find(f"{self.subdir}/{self.__name}")
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/nltk/data.py", line 579, in find
     raise LookupError(resource_not_found)
LookupError:
**********************************************************************
   Resource wordnet not found.
   Please use the NLTK Downloader to obtain the resource:

   >>> import nltk
   >>> nltk.download('wordnet')
   
   For more information see: https://www.nltk.org/data.html

   Attempted to load corpora/wordnet

   Searched in:
     - '/sbuild-nonexistent/nltk_data'
     - '/usr/nltk_data'
     - '/usr/share/nltk_data'
     - '/usr/lib/nltk_data'
     - '/usr/share/nltk_data'
     - '/usr/local/share/nltk_data'
     - '/usr/lib/nltk_data'
     - '/usr/local/lib/nltk_data'
**********************************************************************

make[1]: *** [debian/rules:24: override_dh_auto_build-indep] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:12: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202410/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks.



More information about the debian-science-maintainers mailing list