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

List:       pykde
Subject:    Re: PyQt5 and Big Sur
From:       Thomas Caswell <tcaswell () gmail ! com>
Date:       2020-11-21 3:29:16
Message-ID: CAA48SF-XqWo_vQVJO2g_TotBkWqArcUq=P8-105KCwiXFgv62A () mail ! gmail ! com
[Download RAW message or body]

Great, thank you for your work Phil!

Tom

On Tue, Nov 17, 2020, 11:33 Phil Thompson <phil@riverbankcomputing.com>
wrote:

> Note that PyQt v5.15.2 will set this automatically.
> 
> Phil
> 
> On 17/11/2020 14:16, Eric Larson wrote:
> > Beautiful, QT_MAC_WANTS_LAYER=1 works for me!
> > 
> > Eric
> > 
> > 
> > On Tue, Nov 17, 2020 at 8:33 AM Marius Shekow <
> > marius.shekow@fit.fraunhofer.de> wrote:
> > 
> > > Hi, I also found that setting the environment variable
> > > QT_MAC_WANTS_LAYER to "1" fixes the problem, as per
> > > 
> > > 
> https://stackoverflow.com/questions/64818879/is-there-any-solution-regarding-to-pyqt-library-doesnt-work-in-mac-os-big-sur/64856281
> 
> > > 
> > > No idea, why it works, but it's a good workaround for your early
> > > adoper
> > > users who accuse you, the app developer, to have "broken everything".
> > > Shame on me... (sarcasm).
> > > 
> > > Am 15.11.2020 um 23:35 schrieb Jeremy Katz:
> > > > 
> > > > On 15/Nov/20 04:50, Eric Larson wrote:
> > > > > I recently updated to Big Sur (11.0.1). I have Qt5Agg set as my
> > > > > matplotlib backend. Opening a matploltlib figure in interactive mode
> now
> > > > > causes the interpreter to hang on 5.12 and 5.15.1. Even running a
> hello
> > > > > world <https://pythonprogramminglanguage.com/pyqt5-hello-world/>
> > > example
> > > > > causes the interpreter to hang.
> > > > > 
> > > > > I tried the same matplotlib code with pyside2, and there at least the
> > > > > interpreter would not hang. For both PyQt5 and pyside2, however, no
> > > > > window actually showed up, even though an icon did appear. So it
> seems
> > > > > at least some of this is probably a problem at the level of Qt rather
> > > > > than PyQt5.
> > > > I had an apparent application hang with PyQt and Qt 5.15.0, and an
> > > > application bundle created with PyInstaller. Dtruss revealed that the
> > > > application was executing, but very slowly. IIRC, the main window went
> > > > from displaying in ~5 seconds with macOS Catalina to 4 minutes with
> Big
> > > Sur.
> > > > 
> > > > Running the application once with "open -F" seemed to resolve the
> issue
> > > > permanently.
> > > > 
> > > --
> > > Dr. Marius Shekow
> > > Mixed and Augmented Reality Solutions, Fraunhofer FIT
> > > http://www.fit.fraunhofer.de/mars
> > > Tel.: +49(0)2241 - 14-3555
> > > 
> > > 
> 


[Attachment #3 (text/html)]

<div dir="auto">Great, thank you for your work Phil!<div dir="auto"><br></div><div \
dir="auto">Tom</div></div><br><div class="gmail_quote"><div dir="ltr" \
class="gmail_attr">On Tue, Nov 17, 2020, 11:33 Phil Thompson &lt;<a \
href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex">Note that PyQt v5.15.2 will set \
this automatically.<br> <br>
Phil<br>
<br>
On 17/11/2020 14:16, Eric Larson wrote:<br>
&gt; Beautiful, QT_MAC_WANTS_LAYER=1 works for me!<br>
&gt; <br>
&gt; Eric<br>
&gt; <br>
&gt; <br>
&gt; On Tue, Nov 17, 2020 at 8:33 AM Marius Shekow &lt;<br>
&gt; <a href="mailto:marius.shekow@fit.fraunhofer.de" target="_blank" \
rel="noreferrer">marius.shekow@fit.fraunhofer.de</a>&gt; wrote:<br> &gt; <br>
&gt;&gt; Hi, I also found that setting the environment variable<br>
&gt;&gt; QT_MAC_WANTS_LAYER to &quot;1&quot; fixes the problem, as per<br>
&gt;&gt; <br>
&gt;&gt; <a href="https://stackoverflow.com/questions/64818879/is-there-any-solution-regarding-to-pyqt-library-doesnt-work-in-mac-os-big-sur/64856281" \
rel="noreferrer noreferrer" \
target="_blank">https://stackoverflow.com/questions/64818879/is-there-any-solution-regarding-to-pyqt-library-doesnt-work-in-mac-os-big-sur/64856281</a><br>
 &gt;&gt; <br>
&gt;&gt; No idea, why it works, but it&#39;s a good workaround for your early <br>
&gt;&gt; adoper<br>
&gt;&gt; users who accuse you, the app developer, to have &quot;broken \
everything&quot;.<br> &gt;&gt; Shame on me... (sarcasm).<br>
&gt;&gt; <br>
&gt;&gt; Am 15.11.2020 um 23:35 schrieb Jeremy Katz:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On 15/Nov/20 04:50, Eric Larson wrote:<br>
&gt;&gt; &gt;&gt; I recently updated to Big Sur (11.0.1). I have Qt5Agg set as my<br>
&gt;&gt; &gt;&gt; matplotlib backend. Opening a matploltlib figure in interactive \
mode now<br> &gt;&gt; &gt;&gt; causes the interpreter to hang on 5.12 and 5.15.1. \
Even running a hello<br> &gt;&gt; &gt;&gt; world &lt;<a \
href="https://pythonprogramminglanguage.com/pyqt5-hello-world/" rel="noreferrer \
noreferrer" target="_blank">https://pythonprogramminglanguage.com/pyqt5-hello-world/</a>&gt;<br>
 &gt;&gt; example<br>
&gt;&gt; &gt;&gt; causes the interpreter to hang.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; I tried the same matplotlib code with pyside2, and there at least \
the<br> &gt;&gt; &gt;&gt; interpreter would not hang. For both PyQt5 and pyside2, \
however, no<br> &gt;&gt; &gt;&gt; window actually showed up, even though an icon did \
appear. So it seems<br> &gt;&gt; &gt;&gt; at least some of this is probably a problem \
at the level of Qt rather<br> &gt;&gt; &gt;&gt; than PyQt5.<br>
&gt;&gt; &gt; I had an apparent application hang with PyQt and Qt 5.15.0, and an<br>
&gt;&gt; &gt; application bundle created with PyInstaller. Dtruss revealed that \
the<br> &gt;&gt; &gt; application was executing, but very slowly. IIRC, the main \
window went<br> &gt;&gt; &gt; from displaying in ~5 seconds with macOS Catalina to 4 \
minutes with Big<br> &gt;&gt; Sur.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Running the application once with &quot;open -F&quot; seemed to resolve \
the issue<br> &gt;&gt; &gt; permanently.<br>
&gt;&gt; &gt;<br>
&gt;&gt; --<br>
&gt;&gt; Dr. Marius Shekow<br>
&gt;&gt; Mixed and Augmented Reality Solutions, Fraunhofer FIT<br>
&gt;&gt; <a href="http://www.fit.fraunhofer.de/mars" rel="noreferrer noreferrer" \
target="_blank">http://www.fit.fraunhofer.de/mars</a><br> &gt;&gt; Tel.: +49(0)2241 - \
14-3555<br> &gt;&gt; <br>
&gt;&gt; <br>
</blockquote></div>



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

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