<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Thx, eventually I succeeded and thingds run well now.</p>
<p>One major headache was, that my font-formatting was severly
broken. It turned out, the font-weight had been changed from
0...99 in PYQt5 to 0...1000 in PyQt6. I discovered this only
because of a typo of doing '999' when I wanted to do '999'. Quite
annoying.</p>
<p>However, a user of my software now reports a major issue when
installing PyQt6. Specifically with this command:</p>
<pre><code>$ <span class="nx">__venv1</span><span class="m m-Double">.6.0</span><span
class="nx">pre23</span><span class="o">/</span><span class="nx">bin</span><span
class="o">/</span><span class="nx">python</span><span class="w"> </span><span
class="o">-</span><span class="nx">m</span><span class="w"> </span><span
class="nx">pip</span><span class="w"> </span><span class="nx">install</span><span
class="w"> </span><span class="nx">PyQt6</span><span class="o">==</span><span
class="m m-Double">6.8.0</span></code></pre>
<p></p>
<p>He gets:</p>
<pre><code><span class="nx">Looking</span><span class="w"> </span><span
class="k">in</span><span class="w"> </span><span class="nx">indexes</span><span
class="p">:</span><span class="w"> </span><span class="nx">https</span><span
class="p">:</span><span class="c1">//pypi.org/simple, <a class="moz-txt-link-freetext" href="https://www.piwheels.org/simple">https://www.piwheels.org/simple</a></span>
<span class="nx">Collecting</span><span class="w"> </span><span
class="nx">PyQt6</span><span class="o">==</span><span
class="m m-Double">6.8.0</span>
<span class="w"> </span><span class="nx">Using</span><span class="w"> </span><span
class="nx">cached</span><span class="w"> </span><span class="nx">PyQt6</span><span
class="o">-</span><span class="m m-Double">6.8.0</span><span
class="p">.</span><span class="nx">tar</span><span class="p">.</span><span
class="nx">gz</span><span class="w"> </span><span class="p">(</span><span
class="m m-Double">1.1</span><span class="w"> </span><span
class="nx">MB</span><span class="p">)</span>
<span class="w"> </span><span class="nx">Installing</span><span
class="w"> </span><span class="nx">build</span><span class="w"> </span><span
class="nx">dependencies</span><span class="w"> </span><span
class="o">...</span><span class="w"> </span><span class="nx">done</span>
<span class="w"> </span><span class="nx">Getting</span><span class="w"> </span><span
class="nx">requirements</span><span class="w"> </span><span
class="nx">to</span><span class="w"> </span><span class="nx">build</span><span
class="w"> </span><span class="nx">wheel</span><span class="w"> </span><span
class="o">...</span><span class="w"> </span><span class="nx">done</span>
<span class="w"> </span><span class="nx">Preparing</span><span
class="w"> </span><span class="nx">metadata</span><span class="w"> </span><span
class="p">(</span><span class="nx">pyproject</span><span class="p">.</span><span
class="nx">toml</span><span class="p">)</span><span class="w"> </span><span
class="o">...</span><span class="w"> </span><span class="nx">error</span>
<span class="w"> </span><span class="nx">error</span><span class="p">:</span><span
class="w"> </span><span class="nx">subprocess</span><span class="o">-</span><span
class="nx">exited</span><span class="o">-</span><span class="nx">with</span><span
class="o">-</span><span class="nx">error</span>
<span class="w"> </span><span class="err">×</span><span class="w"> </span><span
class="nx">Preparing</span><span class="w"> </span><span class="nx">metadata</span><span
class="w"> </span><span class="p">(</span><span class="nx">pyproject</span><span
class="p">.</span><span class="nx">toml</span><span class="p">)</span><span
class="w"> </span><span class="nx">did</span><span class="w"> </span><span
class="k">not</span><span class="w"> </span><span class="nx">run</span><span
class="w"> </span><span class="nx">successfully</span><span
class="p">.</span>
<span class="w"> </span><span class="err">│</span><span class="w"> </span><span
class="nx">exit</span><span class="w"> </span><span class="nx">code</span><span
class="p">:</span><span class="w"> </span><span class="mi">1</span>
<span class="w"> </span><span class="err">╰─</span><span class="p">></span><span
class="w"> </span><span class="p">[</span><span class="mi">25</span><span
class="w"> </span><span class="nx">lines</span><span class="w"> </span><span
class="nx">of</span><span class="w"> </span><span class="nx">output</span><span
class="p">]</span>
<span class="w"> </span><span class="nx">Traceback</span><span
class="w"> </span><span class="p">(</span><span class="nx">most</span><span
class="w"> </span><span class="nx">recent</span><span class="w"> </span><span
class="nx">call</span><span class="w"> </span><span class="nx">last</span><span
class="p">):</span>
<span class="w"> </span><span class="nx">File</span><span
class="w"> </span><span class="s">"/home/simon/geigerlog-v1.6.0pre23/__venv1.6.0pre23/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py"</span><span
class="p">,</span><span class="w"> </span><span class="nx">line</span><span
class="w"> </span><span class="mi">353</span><span class="p">,</span><span
class="w"> </span><span class="k">in</span><span class="w"> </span><span
class="p"><</span><span class="nx">module</span><span class="p">></span>
<span class="w"> </span><span class="nx">main</span><span
class="p">()</span>
<span class="w"> </span><span class="nx">File</span><span
class="w"> </span><span class="s">"/home/simon/geigerlog-v1.6.0pre23/__venv1.6.0pre23/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py"</span><span
class="p">,</span><span class="w"> </span><span class="nx">line</span><span
class="w"> </span><span class="mi">335</span><span class="p">,</span><span
class="w"> </span><span class="k">in</span><span class="w"> </span><span
class="nx">main</span>
<span class="w"> </span><span class="nx">json_out</span><span
class="p">[</span><span class="err">'</span><span class="nx">return_val</span><span
class="err">'</span><span class="p">]</span><span class="w"> </span><span
class="p">=</span><span class="w"> </span><span class="nx">hook</span><span
class="p">(</span><span class="o">**</span><span class="nx">hook_input</span><span
class="p">[</span><span class="err">'</span><span class="nx">kwargs</span><span
class="err">'</span><span class="p">])</span>
<span class="w"> </span><span
class="o">^^^^^^^^^^^^^^^^^^^^^^^^^^^^</span>
<span class="w"> </span><span class="nx">File</span><span
class="w"> </span><span class="s">"/home/simon/geigerlog-v1.6.0pre23/__venv1.6.0pre23/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py"</span><span
class="p">,</span><span class="w"> </span><span class="nx">line</span><span
class="w"> </span><span class="mi">152</span><span class="p">,</span><span
class="w"> </span><span class="k">in</span><span class="w"> </span><span
class="nx">prepare_metadata_for_build_wheel</span>
<span class="w"> </span><span class="nx">whl_basename</span><span
class="w"> </span><span class="p">=</span><span class="w"> </span><span
class="nx">backend</span><span class="p">.</span><span class="nx">build_wheel</span><span
class="p">(</span><span class="nx">metadata_directory</span><span
class="p">,</span><span class="w"> </span><span class="nx">config_settings</span><span
class="p">)</span>
<span class="w"> </span><span class="o">^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</span>
<span class="w"> </span><span class="nx">File</span><span
class="w"> </span><span class="s">"/tmp/pip-build-env-83yh2byd/overlay/lib/python3.11/site-packages/sipbuild/api.py"</span><span
class="p">,</span><span class="w"> </span><span class="nx">line</span><span
class="w"> </span><span class="mi">28</span><span class="p">,</span><span
class="w"> </span><span class="k">in</span><span class="w"> </span><span
class="nx">build_wheel</span>
<span class="w"> </span><span class="nx">project</span><span
class="w"> </span><span class="p">=</span><span class="w"> </span><span
class="nx">AbstractProject</span><span class="p">.</span><span
class="nx">bootstrap</span><span class="p">(</span><span class="err">'</span><span
class="nx">wheel</span><span class="err">'</span><span class="p">,</span>
<span class="w"> </span><span class="o">^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</span>
<span class="w"> </span><span class="nx">File</span><span
class="w"> </span><span class="s">"/tmp/pip-build-env-83yh2byd/overlay/lib/python3.11/site-packages/sipbuild/abstract_project.py"</span><span
class="p">,</span><span class="w"> </span><span class="nx">line</span><span
class="w"> </span><span class="mi">74</span><span class="p">,</span><span
class="w"> </span><span class="k">in</span><span class="w"> </span><span
class="nx">bootstrap</span>
<span class="w"> </span><span class="nx">project</span><span
class="p">.</span><span class="nx">setup</span><span class="p">(</span><span
class="nx">pyproject</span><span class="p">,</span><span class="w"> </span><span
class="nx">tool</span><span class="p">,</span><span class="w"> </span><span
class="nx">tool_description</span><span class="p">)</span>
<span class="w"> </span><span class="nx">File</span><span
class="w"> </span><span class="s">"/tmp/pip-build-env-83yh2byd/overlay/lib/python3.11/site-packages/sipbuild/project.py"</span><span
class="p">,</span><span class="w"> </span><span class="nx">line</span><span
class="w"> </span><span class="mi">608</span><span class="p">,</span><span
class="w"> </span><span class="k">in</span><span class="w"> </span><span
class="nx">setup</span>
<span class="w"> </span><span class="kp">self</span><span
class="p">.</span><span class="nx">apply_user_defaults</span><span
class="p">(</span><span class="nx">tool</span><span class="p">)</span>
<span class="w"> </span><span class="nx">File</span><span
class="w"> </span><span class="s">"/tmp/pip-install-4khavmaz/pyqt6_b63926ea03ba47aebf4a2cdbe97fc7e1/project.py"</span><span
class="p">,</span><span class="w"> </span><span class="nx">line</span><span
class="w"> </span><span class="mi">66</span><span class="p">,</span><span
class="w"> </span><span class="k">in</span><span class="w"> </span><span
class="nx">apply_user_defaults</span>
<span class="w"> </span><span class="nx">super</span><span
class="p">().</span><span class="nx">apply_user_defaults</span><span
class="p">(</span><span class="nx">tool</span><span class="p">)</span>
<span class="w"> </span><span class="nx">File</span><span
class="w"> </span><span class="s">"/tmp/pip-build-env-83yh2byd/overlay/lib/python3.11/site-packages/pyqtbuild/project.py"</span><span
class="p">,</span><span class="w"> </span><span class="nx">line</span><span
class="w"> </span><span class="mi">51</span><span class="p">,</span><span
class="w"> </span><span class="k">in</span><span class="w"> </span><span
class="nx">apply_user_defaults</span>
<span class="w"> </span><span class="nx">super</span><span
class="p">().</span><span class="nx">apply_user_defaults</span><span
class="p">(</span><span class="nx">tool</span><span class="p">)</span>
<span class="w"> </span><span class="nx">File</span><span
class="w"> </span><span class="s">"/tmp/pip-build-env-83yh2byd/overlay/lib/python3.11/site-packages/sipbuild/project.py"</span><span
class="p">,</span><span class="w"> </span><span class="nx">line</span><span
class="w"> </span><span class="mi">237</span><span class="p">,</span><span
class="w"> </span><span class="k">in</span><span class="w"> </span><span
class="nx">apply_user_defaults</span>
<span class="w"> </span><span class="kp">self</span><span
class="p">.</span><span class="nx">builder</span><span class="p">.</span><span
class="nx">apply_user_defaults</span><span class="p">(</span><span
class="nx">tool</span><span class="p">)</span>
<span class="w"> </span><span class="nx">File</span><span
class="w"> </span><span class="s">"/tmp/pip-build-env-83yh2byd/overlay/lib/python3.11/site-packages/pyqtbuild/builder.py"</span><span
class="p">,</span><span class="w"> </span><span class="nx">line</span><span
class="w"> </span><span class="mi">49</span><span class="p">,</span><span
class="w"> </span><span class="k">in</span><span class="w"> </span><span
class="nx">apply_user_defaults</span>
<span class="w"> </span><span class="nx">raise</span><span
class="w"> </span><span class="nx">PyProjectOptionException</span><span
class="p">(</span><span class="err">'</span><span class="nx">qmake</span><span
class="err">'</span><span class="p">,</span>
<span class="w"> </span><span class="nx">sipbuild</span><span
class="p">.</span><span class="nx">pyproject</span><span class="p">.</span><span
class="nx">PyProjectOptionException</span>
<span class="w"> </span><span class="p">[</span><span class="nx">end</span><span
class="w"> </span><span class="nx">of</span><span class="w"> </span><span
class="nx">output</span><span class="p">]</span>
<span class="w"> </span><span class="nx">note</span><span class="p">:</span><span
class="w"> </span><span class="nx">This</span><span class="w"> </span><span
class="nx">error</span><span class="w"> </span><span class="nx">originates</span><span
class="w"> </span><span class="nx">from</span><span class="w"> </span><span
class="nx">a</span><span class="w"> </span><span class="nx">subprocess</span><span
class="p">,</span><span class="w"> </span><span class="k">and</span><span
class="w"> </span><span class="k">is</span><span class="w"> </span><span
class="nx">likely</span><span class="w"> </span><span class="k">not</span><span
class="w"> </span><span class="nx">a</span><span class="w"> </span><span
class="nx">problem</span><span class="w"> </span><span class="nx">with</span><span
class="w"> </span><span class="nx">pip</span><span class="p">.</span>
<span class="nx">error</span><span class="p">:</span><span class="w"> </span><span
class="nx">metadata</span><span class="o">-</span><span class="nx">generation</span><span
class="o">-</span><span class="nx">failed</span>
<span class="err">×</span><span class="w"> </span><span class="nx">Encountered</span><span
class="w"> </span><span class="nx">error</span><span class="w"> </span><span
class="k">while</span><span class="w"> </span><span class="nx">generating</span><span
class="w"> </span><span class="kn">package</span><span class="w"> </span><span
class="nx">metadata</span><span class="p">.</span>
<span class="err">╰─</span><span class="p">></span><span class="w"> </span><span
class="nx">See</span><span class="w"> </span><span class="nx">above</span><span
class="w"> </span><span class="k">for</span><span class="w"> </span><span
class="nx">output</span><span class="p">.</span>
<span class="nx">note</span><span class="p">:</span><span class="w"> </span><span
class="nx">This</span><span class="w"> </span><span class="k">is</span><span
class="w"> </span><span class="nx">an</span><span class="w"> </span><span
class="nx">issue</span><span class="w"> </span><span class="nx">with</span><span
class="w"> </span><span class="nx">the</span><span class="w"> </span><span
class="kn">package</span><span class="w"> </span><span class="nx">mentioned</span><span
class="w"> </span><span class="nx">above</span><span class="p">,</span><span
class="w"> </span><span class="k">not</span><span class="w"> </span><span
class="nx">pip</span><span class="p">.</span>
<span class="nx">hint</span><span class="p">:</span><span class="w"> </span><span
class="nx">See</span><span class="w"> </span><span class="nx">above</span><span
class="w"> </span><span class="k">for</span><span class="w"> </span><span
class="nx">details</span><span class="p">.</span></code></pre>
<p>Any ideas about the cause?</p>
<p>On my system this installaton runs fine (Linux Mint LMDE 6 (based
on debian12, "bookworm") with Linux amd7 6.11.10+bpo-amd64 #1) on
all Python3.11, 3.12, 3.13.</p>
<p>The user's system is <code><span class="ss">"Debian GNU/Linux 12
(bookworm)" with </span></code><code><span class="n">Linux</span><span
class="w"> </span><span class="n">rp4b</span><span class="w">
</span><span class="mf">6.6.62</span><span class="o">+</span><span
class="n">rpt</span><span class="o">-</span><span class="n">rpi</span><span
class="o">-</span><span class="n">v8</span><span class="w"> </span><span
class="n">#1</span><span class="w"> </span><span class="n">SMP</span><span
class="w"> </span><span class="n">PREEMPT</span><span
class="w"> </span><span class="n">Debian</span><span
class="w"> </span><span class="mi">1</span><span class="err">:</span><span
class="mf">6.6.62</span><span class="o">-</span><span
class="mi">1</span><span class="o">+</span><span class="n">rpt1</span><span
class="w"> </span><span class="p">(</span><span class="mi">2024</span><span
class="o">-</span><span class="mi">11</span><span class="o">-</span><span
class="mi">25</span><span class="p">)</span><span class="w"> </span><span
class="n">aarch64</span><span class="w"> </span><span
class="n">GNU</span><span class="o">/</span><span class="n">Linux,
using Python3.11</span></code></p>
<p><code><span class="n"><br>
</span></code></p>
<p><code><span class="n"><br>
</span><span class="w"></span></code></p>
<div class="moz-cite-prefix">Am 30.12.24 um 11:59 schrieb Dmitry
Shachnev:<br>
</div>
<blockquote type="cite" cite="mid:Z3J9CcR-gcyknXpA@mitya57.me">
<pre wrap="" class="moz-quote-pre">Hi,
On Mon, Dec 30, 2024 at 09:43:25AM +0100, ullix wrote:
</pre>
<blockquote type="cite">
<pre wrap="" class="moz-quote-pre">A have a larger Python program, based on PyQt5, and running well on Linux,
Win, Mac. I tried to convert to PyQt6 and failed.
I changed all "PyQt5" to "PyQt6", and used the tool from K.Mulier
(<a class="moz-txt-link-freetext" href="https://stackoverflow.com/a/72658216/6178507">https://stackoverflow.com/a/72658216/6178507</a>) to convert the enums, which -
so far- seemed to have worked ok.
However, upon starting, the program crashes at the execution of:
gapp = QApplication([])
with the message:
qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load
the Qt xcb platform plugin.
</pre>
</blockquote>
<pre wrap="" class="moz-quote-pre">
Did you try installing the package which is mentioned in the error message?
In Debian/Ubuntu, that would be the latter one, libxcb-cursor0.
--
Dmitry Shachnev
</pre>
</blockquote>
</body>
</html>