[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: Compiling PyQt6
From:       Stefan Seefeld <stefan () seefeld ! name>
Date:       2023-09-14 23:21:45
Message-ID: CAOEGfx20LqaDMrPWEkohtfUjRKFzX3v_ps0xC7Qu1=aqBJnjGw () mail ! gmail ! com
[Download RAW message or body]

OK, thanks Phil, I was able to sort this out. Everything is working fine
now.

Thanks for a great library / tool !

On Thu, Sep 14, 2023 at 5:06 PM Phil Thompson <phil@riverbankcomputing.com>
wrote:

> On 14/09/2023 18:54, Stefan Seefeld wrote:
> > OK, here is what I have:
> > 
> > ```
> > stefan@quasimodo$ ./bin/pip install PyQt6-Qt
> > Collecting PyQt6-Qt
> > Downloading PyQt6_Qt-6.0.1-py3-none-manylinux_2_28_x86_64.whl (46.5
> > MB)
> > ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ \
> > 46.5/46.5 MB 3.0 MB/s eta 0:00:00
> > Installing collected packages: PyQt6-Qt
> > Successfully installed PyQt6-Qt-6.0.1
> > stefan@quasimodo$ ./bin/bpython
> > bpython version 0.24 on top of Python 3.11.4
> > /home/stefan/tsi/tsi-dev-platform/pyqt6-tmp/bin/python3
> > > > > from PyQt6 import Qt
> > > > > dir(Qt)
> > ['__doc__', '__file__', '__loader__', '__name__', '__package__',
> > '__path__', '__spec__']
> > > > > 
> > ```
> 
> That's an old version of PyQt. With current versions you will get the
> same thing if you import Qt6. You are importing what Python thinks is a
> namespace when it is actually the root of the Qt6 installation.
> 
> > Even so, if `PyQt6.Qt` no longer exists, is there a document explaining
> > the
> > migration path from PyQt5 to PyQt6, and especially about what those
> > `Qt`
> > symbols need to be replaced with ? All the online docs I found either
> > don't
> > talk about this, or state that the `Qt` module works almost as before.
> 
> The first step is the eliminate the use of the Qt module from your PyQt5
> code. Replace it with the modules that are actually being used.
> 
> Phil
> 


-- 

      ...ich hab' noch einen Koffer in Berlin...


[Attachment #3 (text/html)]

<div dir="ltr"><div>OK, thanks Phil, I was able to sort this out. Everything is \
working fine now.</div><div><br></div><div>Thanks for a great library / tool \
!<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On \
Thu, Sep 14, 2023 at 5:06 PM Phil Thompson &lt;<a \
href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 14/09/2023 18:54, \
Stefan Seefeld wrote:<br> &gt; OK, here is what I have:<br>
&gt; <br>
&gt; ```<br>
&gt; stefan@quasimodo$ ./bin/pip install PyQt6-Qt<br>
&gt; Collecting PyQt6-Qt<br>
&gt;   Downloading PyQt6_Qt-6.0.1-py3-none-manylinux_2_28_x86_64.whl (46.5 <br>
&gt; MB)<br>
&gt;        ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ \
46.5/46.5 MB 3.0 MB/s eta<br> &gt; 0:00:00<br>
&gt; Installing collected packages: PyQt6-Qt<br>
&gt; Successfully installed PyQt6-Qt-6.0.1<br>
&gt; stefan@quasimodo$ ./bin/bpython<br>
&gt; bpython version 0.24 on top of Python 3.11.4<br>
&gt; /home/stefan/tsi/tsi-dev-platform/pyqt6-tmp/bin/python3<br>
&gt;&gt;&gt;&gt; from PyQt6 import Qt<br>
&gt;&gt;&gt;&gt; dir(Qt)<br>
&gt; [&#39;__doc__&#39;, &#39;__file__&#39;, &#39;__loader__&#39;, \
&#39;__name__&#39;, &#39;__package__&#39;,<br> &gt; &#39;__path__&#39;, \
&#39;__spec__&#39;]<br> &gt;&gt;&gt;&gt; <br>
&gt; ```<br>
<br>
That&#39;s an old version of PyQt. With current versions you will get the <br>
same thing if you import Qt6. You are importing what Python thinks is a <br>
namespace when it is actually the root of the Qt6 installation.<br>
<br>
&gt; Even so, if `PyQt6.Qt` no longer exists, is there a document explaining <br>
&gt; the<br>
&gt; migration path from PyQt5 to PyQt6, and especially about what those <br>
&gt; `Qt`<br>
&gt; symbols need to be replaced with ? All the online docs I found either <br>
&gt; don&#39;t<br>
&gt; talk about this, or state that the `Qt` module works almost as before.<br>
<br>
The first step is the eliminate the use of the Qt module from your PyQt5 <br>
code. Replace it with the modules that are actually being used.<br>
<br>
Phil<br>
</blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- \
</span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><img \
src="https://ci3.googleusercontent.com/mail-sig/AIorK4yh4RzsqlxV6irScDGRVZ8a7NRCh_INtp \
PsAHx2Y8v4Vu3VKsI54RFNs3YRZk_2xTTtMMdSCzdNrf5XRUlmF4BkezmtZv-j5c3A4G0hEA"></div><div><pre> \
...ich hab&#39; noch einen Koffer in Berlin... </pre></div></div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic