Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails: ERROR: Could not find a version that satisfies the requirement ninja (from versions: none) #65

Open
yurivict opened this issue Jan 22, 2023 · 0 comments

Comments

@yurivict
Copy link

yurivict commented Jan 22, 2023

===>  Building for py39-skia-pathops-0.7.4
cd /usr/ports/devel/py-skia-pathops/work-py39/skia-pathops-0.7.4 && /usr/bin/env XDG_DATA_HOME=/usr/ports/devel/py-skia-pathops/work-py39  XDG_CONFIG_HOME=/usr/ports/devel/py-skia-pathops/work-py39  XDG_CACHE_HOME=/usr/ports/devel/py-skia-pathops/work-py39/.cache  HOME=/usr/ports/devel/py-skia-pathops/work-py39 PATH=/usr/local/libexec/ccache:/usr/ports/devel/py-skia-pathops/work-py39/.bin:/home/yuri/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin PKG_CONFIG_LIBDIR=/usr/ports/devel/py-skia-pathops/work-py39/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing "  CPP="cpp" CPPFLAGS=""  LDFLAGS=" -fstack-protector-strong " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing  "  MANPREFIX="/usr/local" CCACHE_DIR="/tmp/.ccache" BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444" /usr/local/bin/python3.9 -m build -n -w
* Getting build dependencies for wheel...
/usr/local/lib/python3.9/site-packages/setuptools/config/setupcfg.py:463: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
  warnings.warn(msg, warning_class)
* Building wheel...
/usr/local/lib/python3.9/site-packages/setuptools/config/setupcfg.py:463: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
  warnings.warn(msg, warning_class)
running bdist_wheel
running build
running build_py
copying src/python/pathops/_version.py -> build/lib.freebsd-13.1-STABLE-amd64-cpython-39/pathops
running build_ext
INFO: Disabling color, you really want to install colorlog.
Disabling color, you really want to install colorlog.
src/python/pathops/_pathops.cpp:40716:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
                    CYTHON_FALLTHROUGH;
                    ^
src/python/pathops/_pathops.cpp:362:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
      #define CYTHON_FALLTHROUGH [[fallthrough]]
                                 ^
src/python/pathops/_pathops.cpp:40727:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
                    CYTHON_FALLTHROUGH;
                    ^
src/python/pathops/_pathops.cpp:362:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
      #define CYTHON_FALLTHROUGH [[fallthrough]]
                                 ^
src/python/pathops/_pathops.cpp:40840:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
                    CYTHON_FALLTHROUGH;
                    ^
src/python/pathops/_pathops.cpp:362:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
      #define CYTHON_FALLTHROUGH [[fallthrough]]
                                 ^
src/python/pathops/_pathops.cpp:40851:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
                    CYTHON_FALLTHROUGH;
                    ^
src/python/pathops/_pathops.cpp:362:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
      #define CYTHON_FALLTHROUGH [[fallthrough]]
                                 ^
4 warnings generated.
ERROR: Could not find a version that satisfies the requirement ninja (from versions: none)
ERROR: No matching distribution found for ninja
Traceback (most recent call last):
  File "/usr/ports/devel/py-skia-pathops/work-py39/skia-pathops-0.7.4/src/cpp/skia-builder/build_skia.py", line 205, in <module>
    env = make_virtualenv(venv_dir)
  File "/usr/ports/devel/py-skia-pathops/work-py39/skia-pathops-0.7.4/src/cpp/skia-builder/build_skia.py", line 90, in make_virtualenv
    subprocess.check_call(
  File "/usr/local/lib/python3.9/subprocess.py", line 373, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/ports/devel/py-skia-pathops/work-py39/skia-pathops-0.7.4/build/temp.freebsd-13.1-STABLE-amd64-cpython-39/src/cpp/skia-builder/skia/venv/bin/pip', 'install', '--only-binary=ninja', 'ninja']' returned non-zero exit status 1.
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/pep517/in_process/_in_process.py", line 351, in <module>
    main()
  File "/usr/local/lib/python3.9/site-packages/pep517/in_process/_in_process.py", line 333, in main
    json_out['return_val'] = hook(**hook_input['kwargs'])
  File "/usr/local/lib/python3.9/site-packages/pep517/in_process/_in_process.py", line 249, in build_wheel
    return _build_backend().build_wheel(wheel_directory, config_settings,
  File "/usr/local/lib/python3.9/site-packages/setuptools/build_meta.py", line 244, in build_wheel
    return self._build_with_temp_dir(['bdist_wheel'], '.whl',
  File "/usr/local/lib/python3.9/site-packages/setuptools/build_meta.py", line 229, in _build_with_temp_dir
    self.run_setup()
  File "/usr/local/lib/python3.9/site-packages/setuptools/build_meta.py", line 281, in run_setup
    super(_BuildMetaLegacyBackend,
  File "/usr/local/lib/python3.9/site-packages/setuptools/build_meta.py", line 174, in run_setup
    exec(compile(code, __file__, 'exec'), locals())
  File "setup.py", line 409, in <module>
    setup(**setup_params)
  File "/usr/local/lib/python3.9/site-packages/setuptools/__init__.py", line 87, in setup
    return distutils.core.setup(**attrs)
  File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 177, in setup
    return run_commands(dist)
  File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 193, in run_commands
    dist.run_commands()
  File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
    self.run_command(cmd)
  File "/usr/local/lib/python3.9/site-packages/setuptools/dist.py", line 1217, in run_command
    super().run_command(command)
  File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
    cmd_obj.run()
  File "/usr/local/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 325, in run
    self.run_command("build")
  File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 317, in run_command
    self.distribution.run_command(command)
  File "/usr/local/lib/python3.9/site-packages/setuptools/dist.py", line 1217, in run_command
    super().run_command(command)
  File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
    cmd_obj.run()
  File "/usr/local/lib/python3.9/site-packages/setuptools/command/build.py", line 24, in run
    super().run()
  File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/command/build.py", line 131, in run
    self.run_command(cmd_name)
  File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 317, in run_command
    self.distribution.run_command(command)
  File "/usr/local/lib/python3.9/site-packages/setuptools/dist.py", line 1217, in run_command
    super().run_command(command)
  File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
    cmd_obj.run()
  File "setup.py", line 216, in run
    build_ext.run(self)
  File "/usr/local/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 79, in run
    _build_ext.run(self)
  File "/usr/local/lib/python3.9/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
    _build_ext.build_ext.run(self)
  File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 339, in run
    self.build_extensions()
  File "/usr/local/lib/python3.9/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
    _build_ext.build_ext.build_extensions(self)
  File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 459, in build_extensions
    self._build_extensions_serial()
  File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 485, in _build_extensions_serial
    self.build_extension(ext)
  File "setup.py", line 193, in build_extension
    libraries=self.get_libraries(ext),
  File "setup.py", line 210, in get_libraries
    library_dir = self._library_builders[library](self.build_temp)
  File "setup.py", line 279, in build_skia
    subprocess.run(build_cmd, check=True, env=env)
  File "/usr/local/lib/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/usr/local/bin/python3.9', 'src/cpp/skia-builder/build_skia.py', 'build/temp.freebsd-13.1-STABLE-amd64-cpython-39/src/cpp/skia-builder/skia', '--no-sync-deps']' returned non-zero exit status 1.

ERROR Backend subprocess exited when trying to invoke build_wheel
*** Error code 1

ninja is installed:

$ ninja --version
1.11.1

Version: 0.7.4
Python-3.9
FreeBSD 13.1

@yurivict yurivict changed the title Build fails: Build fails: ERROR: Could not find a version that satisfies the requirement ninja (from versions: none) Jan 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant