qemu-devel
[Top][All Lists]
Advanced

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

Configure no longer works after pulling in the latest QEMU commits


From: Hao Xiang
Subject: Configure no longer works after pulling in the latest QEMU commits
Date: Thu, 18 May 2023 20:00:23 -0700

Hi,

After pulling in the QEMU latest commits, I can no longer run the "configure" command. Below is the error message I am seeing. I believe this is related to this change "configure: create a python venv unconditionally".
I am running on Debian GNU/Linux 11 (bullseye) and 5.15 kernel version.
What can I do to fix/work around the issue?

Thanks, Hao

$ ~/source/qemu-community-trees/qemu/bin/debug/test$ ../../../configure --enable-debug --static --disable-gnutls
python determined to be '/usr/bin/python3'
python version: Python 3.9.2
mkvenv: Creating non-isolated virtual environment at 'pyvenv'
Skipping existing file /data00/home/hao.xiang/source/qemu-community-trees/qemu/bin/debug/test/pyvenv/bin/pip
Skipping existing file /data00/home/hao.xiang/source/qemu-community-trees/qemu/bin/debug/test/pyvenv/bin/pip3
mkvenv: checking for meson>=0.63.0
Metadata: missing: ['Author'], warnings: []
Metadata: missing: ['Home-page', 'Author'], warnings: []
Metadata: missing: ['Home-page', 'Author'], warnings: []
Not recognised as a requirement: ''
Unexpected line: quitting requirement scan: '[docs]'
Not recognised as a requirement: ''
Unexpected line: quitting requirement scan: '[jedi]'
Not recognised as a requirement: ''
Unexpected line: quitting requirement scan: "[:python_version < '3']"
Metadata: missing: ['Home-page', 'Author'], warnings: []
Not recognised as a requirement: ''
Unexpected line: quitting requirement scan: '[ARC]'
Not recognised as a requirement: ''
Unexpected line: quitting requirement scan: '[DNSSEC]'
mkvenv did not complete successfully:
Traceback (most recent call last):
  File "/data00/home/hao.xiang/source/qemu-community-trees/qemu/bin/debug/test/pyvenv/share/python-wheels/distlib-0.2.8-py2.py3-none-any.whl/distlib/metadata.py", line 730, in __init__
   self._data = json.loads(data)
  File "/usr/lib/python3.9/json/__init__.py", line 346, in loads
   return _default_decoder.decode(s)
  File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
   obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode
   raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/hao.xiang/source/qemu-community-trees/qemu/python/scripts/mkvenv.py", line 877, in main
   ensure(
  File "/home/hao.xiang/source/qemu-community-trees/qemu/python/scripts/mkvenv.py", line 768, in ensure
   _do_ensure(dep_specs, online, wheels_dir)
  File "/home/hao.xiang/source/qemu-community-trees/qemu/python/scripts/mkvenv.py", line 723, in _do_ensure
   dist = dist_path.get_distribution(matcher.name)
  File "/data00/home/hao.xiang/source/qemu-community-trees/qemu/bin/debug/test/pyvenv/share/python-wheels/distlib-0.2.8-py2.py3-none-any.whl/distlib/database.py", line 240, in get_distribution
   self._generate_cache()
  File "/data00/home/hao.xiang/source/qemu-community-trees/qemu/bin/debug/test/pyvenv/share/python-wheels/distlib-0.2.8-py2.py3-none-any.whl/distlib/database.py", line 167, in _generate_cache
   for dist in self._yield_distributions():
  File "/data00/home/hao.xiang/source/qemu-community-trees/qemu/bin/debug/test/pyvenv/share/python-wheels/distlib-0.2.8-py2.py3-none-any.whl/distlib/database.py", line 157, in _yield_distributions
   yield old_dist_class(r.path, self)
  File "/data00/home/hao.xiang/source/qemu-community-trees/qemu/bin/debug/test/pyvenv/share/python-wheels/distlib-0.2.8-py2.py3-none-any.whl/distlib/database.py", line 878, in __init__
   metadata = self._get_metadata(path)
  File "/data00/home/hao.xiang/source/qemu-community-trees/qemu/bin/debug/test/pyvenv/share/python-wheels/distlib-0.2.8-py2.py3-none-any.whl/distlib/database.py", line 958, in _get_metadata
   metadata = Metadata(path=path, scheme='legacy')
  File "/data00/home/hao.xiang/source/qemu-community-trees/qemu/bin/debug/test/pyvenv/share/python-wheels/distlib-0.2.8-py2.py3-none-any.whl/distlib/metadata.py", line 741, in __init__
   self.validate()
  File "/data00/home/hao.xiang/source/qemu-community-trees/qemu/bin/debug/test/pyvenv/share/python-wheels/distlib-0.2.8-py2.py3-none-any.whl/distlib/metadata.py", line 958, in validate
   missing, warnings = self._legacy.check(True)
  File "/data00/home/hao.xiang/source/qemu-community-trees/qemu/bin/debug/test/pyvenv/share/python-wheels/distlib-0.2.8-py2.py3-none-any.whl/distlib/metadata.py", line 522, in check
   self.set_metadata_version()
  File "/data00/home/hao.xiang/source/qemu-community-trees/qemu/bin/debug/test/pyvenv/share/python-wheels/distlib-0.2.8-py2.py3-none-any.whl/distlib/metadata.py", line 289, in set_metadata_version
   self._fields['Metadata-Version'] = _best_version(self._fields)
  File "/data00/home/hao.xiang/source/qemu-community-trees/qemu/bin/debug/test/pyvenv/share/python-wheels/distlib-0.2.8-py2.py3-none-any.whl/distlib/metadata.py", line 167, in _best_version
   raise MetadataConflictError('Unknown metadata set')
pip._vendor.distlib.metadata.MetadataConflictError: Unknown metadata set

reply via email to

[Prev in Thread] Current Thread [Next in Thread]