conda-forge / qt-feedstock

A conda-smithy repository for qt.
BSD 3-Clause "New" or "Revised" License
12 stars 57 forks source link

Designer.app bundle hangs when opening #199

Open andyfaff opened 3 years ago

andyfaff commented 3 years ago

Issue:

I want to use Designer.app to modify the UI for a package using pyqt. However, when I try to open the app the menu displays but then it hangs and just chews processor cycles without finishing initialisation. The stack trace is here when I force quit the process.

open -a $CONDA_PREFIX/bin/Designer.app


Environment (conda list):

``` $ conda list ca-certificates 2021.5.30 h033912b_0 conda-forge certifi 2021.5.30 py39h6e9494a_0 conda-forge dbus 1.13.6 ha13b53f_2 conda-forge expat 2.4.1 he49afe7_0 conda-forge gettext 0.19.8.1 h7937167_1005 conda-forge glib 2.68.3 he49afe7_0 conda-forge glib-tools 2.68.3 he49afe7_0 conda-forge icu 68.1 h74dc148_0 conda-forge jpeg 9d hbcb3906_0 conda-forge krb5 1.19.1 hcfbf3a7_0 conda-forge libclang 11.1.0 default_he082bbe_1 conda-forge libcxx 11.1.0 habf9029_0 conda-forge libedit 3.1.20191231 h0678c8f_2 conda-forge libffi 3.3 h046ec9c_2 conda-forge libglib 2.68.3 hd556434_0 conda-forge libiconv 1.16 haf1e3a3_0 conda-forge libllvm11 11.1.0 hd011deb_2 conda-forge libpng 1.6.37 h7cec526_2 conda-forge libpq 13.3 hea3049e_0 conda-forge lz4-c 1.9.3 h046ec9c_0 conda-forge mysql-common 8.0.25 h694c41f_2 conda-forge mysql-libs 8.0.25 h115446f_2 conda-forge ncurses 6.2 h2e338ed_4 conda-forge nspr 4.30 hcd9eead_0 conda-forge nss 3.67 h31e2bf1_0 conda-forge openssl 1.1.1k h0d85af4_0 conda-forge pcre 8.45 he49afe7_0 conda-forge pip 21.1.3 pyhd8ed1ab_0 conda-forge pyqt 5.12.3 py39h6e9494a_7 conda-forge pyqt-impl 5.12.3 py39hef7122c_7 conda-forge pyqt5-sip 4.19.18 py39hd8f94c5_7 conda-forge pyqtchart 5.12 py39hef7122c_7 conda-forge pyqtwebengine 5.12.1 py39hef7122c_7 conda-forge python 3.9.6 hd187cdc_1_cpython conda-forge python_abi 3.9 2_cp39 conda-forge qt 5.12.9 h126340a_4 conda-forge readline 8.1 h05e3726_0 conda-forge setuptools 49.6.0 py39h6e9494a_3 conda-forge sqlite 3.36.0 h23a322b_0 conda-forge tk 8.6.10 h0419947_1 conda-forge tzdata 2021a he74cb21_1 conda-forge wheel 0.36.2 pyhd3deb0d_0 conda-forge xz 5.2.5 haf1e3a3_1 conda-forge zlib 1.2.11 h7795811_1010 conda-forge zstd 1.5.0 h582d3a0_0 conda-forge ```


Details about conda and system ( conda info ):

``` $ conda info active environment : test active env location : /Users/andrew/miniconda3/envs/test shell level : 2 user config file : /Users/andrew/.condarc populated config files : /Users/andrew/.condarc conda version : 4.10.1 conda-build version : not installed python version : 3.7.3.final.0 virtual packages : __osx=10.16=0 __unix=0=0 __archspec=1=x86_64 base environment : /Users/andrew/miniconda3 (writable) conda av data dir : /Users/andrew/miniconda3/etc/conda conda av metadata url : https://repo.anaconda.com/pkgs/main channel URLs : https://conda.anaconda.org/conda-forge/osx-64 https://conda.anaconda.org/conda-forge/noarch https://repo.anaconda.com/pkgs/main/osx-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/osx-64 https://repo.anaconda.com/pkgs/r/noarch package cache : /Users/andrew/miniconda3/pkgs /Users/andrew/.conda/pkgs envs directories : /Users/andrew/miniconda3/envs /Users/andrew/.conda/envs platform : osx-64 user-agent : conda/4.10.1 requests/2.25.1 CPython/3.7.3 Darwin/20.5.0 OSX/10.16 UID:GID : 501:20 netrc file : None offline mode : False ```
isuruf commented 3 years ago

Have you tried python 3.9?

andyfaff commented 3 years ago

The qt package was installed into a Python 3.9.6 environment. However, the app bundle should be openable by itself. As far as I'm aware it's a native macOS program.

andyfaff commented 3 years ago

The version in release 5.12.5 works. I don't seem to be able to install 5.12.6, but 5.12.9 doesn't work.

mattgibbs commented 2 years ago

I am running into this problem too, on MacOS 12.0.1. A workaround seems to be to set this environment variable: export QT_MAC_WANTS_LAYER=1.