pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

virtualenv/pip failure, how to debug/fix?



On NetBSD 9 amd64, I run home assistant in a virtualenv because it
insists on exact dependency versions.  This mostly works well except
occasionally there is new non-portability.

Today's issue is a dependency on PyYaml 6, apparently a switch from
ruamel.yaml==0.15.100 and this shoudln't be a big deal.  BUt it fails to
build, despite an earlier version in pkgsrc being ok.

To minimize, I did

virtualenv-3.9 T
cd T
bin/pip install PyYaml==6.0

which led to the following bizarrely losing in setuptools looking for
__sysconfigdata__netbsd9__.

However, I have previously done a lot of pip installs including things
that build C and rust.   I am starting to think that something broke in
python very recently (along Q3 ni the last month?).

Clues appreciated,
Greg

Collecting PyYaml==6.0
  Using cached PyYAML-6.0.tar.gz (124 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /home/n0/gdt/HASS/T/bin/python3.9 /home/n0/gdt/HASS/T/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmp9d8ntc39
       cwd: /tmp/pip-install-2anf943k/pyyaml_8ae390a47cb14cfba178561f8cbbc0d7
  Complete output (31 lines):
  Traceback (most recent call last):
    File "/tmp/pip-build-env-kyyg5ji2/overlay/lib/python3.9/site-packages/setuptools/_distutils/sysconfig.py", line 454, in _init_posix
      _temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
  ModuleNotFoundError: No module named '_sysconfigdata__netbsd9_'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "/home/n0/gdt/HASS/T/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
      main()
    File "/home/n0/gdt/HASS/T/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/home/n0/gdt/HASS/T/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/tmp/pip-build-env-kyyg5ji2/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 162, in get_requires_for_build_wheel
      return self._get_build_requires(
    File "/tmp/pip-build-env-kyyg5ji2/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 143, in _get_build_requires
      self.run_setup()
    File "/tmp/pip-build-env-kyyg5ji2/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 158, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 73, in <module>
      from setuptools.command.build_ext import build_ext as _build_ext
    File "/tmp/pip-build-env-kyyg5ji2/overlay/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 24, in <module>
      get_config_var("LDSHARED")
    File "/tmp/pip-build-env-kyyg5ji2/overlay/lib/python3.9/site-packages/setuptools/_distutils/sysconfig.py", line 567, in get_config_var
      return get_config_vars().get(name)
    File "/tmp/pip-build-env-kyyg5ji2/overlay/lib/python3.9/site-packages/setuptools/_distutils/sysconfig.py", line 498, in get_config_vars
      func()
    File "/tmp/pip-build-env-kyyg5ji2/overlay/lib/python3.9/site-packages/setuptools/_distutils/sysconfig.py", line 457, in _init_posix
      _temp = __import__(
  ModuleNotFoundError: No module named '_sysconfigdata'
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/36/2b/61d51a2c4f25ef062ae3f74576b01638bebad5e045f747ff12643df63844/PyYAML-6.0.tar.gz#sha256=68fb519c14306fec9720a2a5b45bc9f0c8d1b9c72adf45c37baedfcd949c35a2 (from https://pypi.org/simple/pyyaml/) (requires-python:>=3.6). Command errored out with exit status 1: /home/n0/gdt/HASS/T/bin/python3.9 /home/n0/gdt/HASS/T/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmp9d8ntc39 Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement PyYaml==6.0 (from versions: 3.10, 3.11, 3.12, 3.13b1, 3.13rc1, 3.13, 4.2b1, 4.2b2, 4.2b4, 5.1b1, 5.1b3, 5.1b5, 5.1, 5.1.1, 5.1.2, 5.2b1, 5.2, 5.3b1, 5.3, 5.3.1, 5.4b1, 5.4b2, 5.4, 5.4.1, 6.0b1, 6.0)
ERROR: No matching distribution found for PyYaml==6.0

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index