* Configure no longer works after pulling in the latest QEMU commits
@ 2023-05-19 3:00 Hao Xiang
2023-05-19 8:30 ` Paolo Bonzini
0 siblings, 1 reply; 3+ messages in thread
From: Hao Xiang @ 2023-05-19 3:00 UTC (permalink / raw)
To: qemu-devel@nongnu.org, jsnow@redhat.com
[-- Attachment #1: Type: text/plain, Size: 5181 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 16185 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Configure no longer works after pulling in the latest QEMU commits
2023-05-19 3:00 Configure no longer works after pulling in the latest QEMU commits Hao Xiang
@ 2023-05-19 8:30 ` Paolo Bonzini
2023-05-19 18:52 ` [External] " Hao Xiang
0 siblings, 1 reply; 3+ messages in thread
From: Paolo Bonzini @ 2023-05-19 8:30 UTC (permalink / raw)
To: Hao Xiang, qemu-devel@nongnu.org, jsnow@redhat.com
On 5/19/23 05:00, Hao Xiang wrote:
> 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?
Hi,
please try the patch I have Cc'd you on,
"[PATCH] mkvenv: replace distlib.database with importlib.metadata/pkg_resources"
Paolo
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [External] Re: Configure no longer works after pulling in the latest QEMU commits
2023-05-19 8:30 ` Paolo Bonzini
@ 2023-05-19 18:52 ` Hao Xiang
0 siblings, 0 replies; 3+ messages in thread
From: Hao Xiang @ 2023-05-19 18:52 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: qemu-devel@nongnu.org, jsnow@redhat.com
[-- Attachment #1: Type: text/plain, Size: 899 bytes --]
Hi Paolo, I have applied this patch locally and I am able to run
"configure" now.
From: "Paolo Bonzini"<pbonzini@redhat.com>
Date: Fri, May 19, 2023, 1:31 AM
Subject: [External] Re: Configure no longer works after pulling in the
latest QEMU commits
To: "Hao Xiang"<hao.xiang@bytedance.com>, "qemu-devel@nongnu.org"<
qemu-devel@nongnu.org>, "jsnow@redhat.com"<jsnow@redhat.com>
On 5/19/23 05:00, Hao Xiang wrote: > 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? Hi, please try the patch I have Cc'd you on,
"[PATCH] mkvenv: replace distlib.database with
importlib.metadata/pkg_resources" Paolo
[-- Attachment #2: Type: text/html, Size: 3021 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-05-19 18:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-19 3:00 Configure no longer works after pulling in the latest QEMU commits Hao Xiang
2023-05-19 8:30 ` Paolo Bonzini
2023-05-19 18:52 ` [External] " Hao Xiang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).