AnacondaRecipes / pyqt-feedstock

A conda-smithy repository for pyqt.
BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

Missing PyQt Designer Plugin #1

Open hhslepicka opened 5 years ago

hhslepicka commented 5 years ago

When using the pyqt package from the anaconda channel I can't get the pyqtplugins. Checking the content of the package it does not include it. The one available at conda-forge v 5.6.0 does.

File missing is usually located at:

/envs//plugins/designer/libpyqt5.so or /envs//plugins/designer/libpyqt5.dylib
hhslepicka commented 5 years ago

@mingwandroid sorry to tag you here but do you have any idea why that happens with this particular recipe?

hhslepicka commented 5 years ago

@msarahan and @nehaljwani sorry to tag you in here but is there a better place to report an issue with a package?

msarahan commented 5 years ago

You're in the right place. Either here or https://github.com/continuumio/anaconda-issues

If you put up a PR that fixes our recipe, that will help us fix this sooner. Otherwise, it may be quite a while before we can get to it.

hhslepicka commented 5 years ago

Thank you, @msarahan! I will try to take a look and see if I can fix it...

hhslepicka commented 5 years ago

@msarahan I could not get it fixed on my own. Would it be possible to allocate someone from your team to look into that?

mingwandroid commented 5 years ago

I believe this is fixed in the latest releases of qt 5.9.6.

Please give details if that's not the case case as per the template at https://github.com/Continuum IO/anaconda-issues

hhslepicka commented 5 years ago

@mingwandroid thank you for your answer. Unfortunately that is not the case.

Here are the requested details following the template at the URL that you pointed:

Actual Behavior

After installing PyQt5 and Qt5 using the default anaconda channels libpyqt5 is not available and with that the Qt Designer can't load custom PyQt widgets.

Expected Behavior

libpyqt5.dylib to be available after installing PyQt5. When installing pyqt from conda-forge the library gets installed at <env>/plugins/designer/libpyqt5.dylib.

The same happens for Linux and Windows.

Steps to Reproduce

conda create -n test python=3.6 qt=5 pyqt=5

source activate test

cd ~/mc/envs/test
find ./ -name "libpyqt5.dylib"
Anaconda or Miniconda version:
Operating System:

macOS High Sierra - 10.13.6

conda info
     active environment : test
    active env location : /Users/slepicka/mc/envs/test
            shell level : 1
       user config file : /Users/slepicka/.condarc
 populated config files : /Users/slepicka/.condarc
          conda version : 4.5.4
    conda-build version : 3.0.19
         python version : 3.6.0.final.0
       base environment : /Users/slepicka/mc  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/osx-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/osx-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/osx-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/pro/osx-64
                          https://repo.anaconda.com/pkgs/pro/noarch
          package cache : /Users/slepicka/mc/pkgs
                          /Users/slepicka/.conda/pkgs
       envs directories : /Users/slepicka/mc/envs
                          /Users/slepicka/.conda/envs
               platform : osx-64
             user-agent : conda/4.5.4 requests/2.12.4 CPython/3.6.0 Darwin/17.7.0 OSX/10.13.6
                UID:GID : 1918637911:1704612529
             netrc file : None
           offline mode : False
conda list --show-channel-urls
# packages in environment at /Users/slepicka/mc/envs/test:
#
# Name                    Version                   Build  Channel
ca-certificates           2018.03.07                    0    defaults
certifi                   2018.8.24                py36_1    defaults
dbus                      1.13.2               h760590f_1    defaults
expat                     2.2.6                h0a44026_0    defaults
gettext                   0.19.8.1             h15daf44_3    defaults
glib                      2.56.2               hd9629dc_0    defaults
icu                       58.2                 h4b95b61_1    defaults
jpeg                      9b                   he5867d9_2    defaults
libcxx                    4.0.1                h579ed51_0    defaults
libcxxabi                 4.0.1                hebd6815_0    defaults
libedit                   3.1.20170329         hb402a30_2    defaults
libffi                    3.2.1                h475c297_4    defaults
libiconv                  1.15                 hdd342a3_7    defaults
libpng                    1.6.34               he12f830_0    defaults
ncurses                   6.1                  h0a44026_0    defaults
openssl                   1.0.2p               h1de35cc_0    defaults
pcre                      8.42                 h378b8a2_0    defaults
pip                       10.0.1                   py36_0    defaults
pyqt                      5.9.2            py36h655552a_2    defaults
python                    3.6.6                hc167b69_0    defaults
qt                        5.9.6                h45cd832_2    defaults
readline                  7.0                  h1de35cc_5    defaults
setuptools                40.2.0                   py36_0    defaults
sip                       4.19.8           py36h0a44026_0    defaults
sqlite                    3.24.0               ha441bb4_0    defaults
tk                        8.6.8                ha441bb4_0    defaults
wheel                     0.31.1                   py36_0    defaults
xz                        5.2.4                h1de35cc_4    defaults
zlib                      1.2.11               hf3cbc9b_2    defaults
mingwandroid commented 5 years ago

OK thanks for the feedback.

hhslepicka commented 5 years ago

@mingwandroid any news on this issue?

mingwandroid commented 5 years ago

Sorry I've not had a chance to look into it yet.

teddyrendahl commented 5 years ago

⬆️ Running into this issue as well

hhslepicka commented 5 years ago

@mingwandroid any news on this issue?

hhslepicka commented 5 years ago

Happy New Year, folks! 🎉 @mingwandroid @msarahan any news on this issue?

prjemian commented 5 years ago

Also running into this issue.

prjemian commented 5 years ago

As a workaround for this problem du jour, I copy the libpyqt5.so from another conda environment and this works for me. This must only be a temporary measure since it is not assured that the libpyqt5.so compiled for one version will work with another version and have no errors. This is the one found locally.

(pydm-test) user@vmhost ~/.../pydm/tutorial $ ll /path/to/anaconda/envs/py36/plugins/designer/libpyqt5.so
-rwxrwxr-x 1 user 31608 Jan 17  2017 /path/to/anaconda/envs/py36/plugins/designer/libpyqt5.so*
hhslepicka commented 5 years ago

Maybe this can be related to my findings here: https://github.com/conda-forge/pyqt-feedstock/issues/44

hhslepicka commented 4 years ago

@mingwandroid @msarahan I can now confirm that the Designer plugin is finally working properly after the merge of https://github.com/conda-forge/pyqt-feedstock/pull/57 . Can you guys add the changes into this repo so users installing it from defaults can also benefit from the fix?

mingwandroid commented 4 years ago

Next time we look at qt we'll add this, if not before. Many thanks for your help!

hhslepicka commented 4 years ago

@mingwandroid do you have an estimate on when will this happen ? I’m asking so I can tell users when they could expect it to be fixed. Thanks!

mingwandroid commented 4 years ago

Over to @msarahan ..the work should be easy enough now! Thanks again.

hhslepicka commented 4 years ago

@msarahan any idea when we can count on this fix being incorporated at the anaconda pyqt?

hhslepicka commented 4 years ago

@msarahan any news? Could this be synced with the conda-forge changes? We are having many issues with users using the defaults channel and not picking the fixes and updates of PyQt available at conda-forge, mainly the fix for the PyQt Designer Plugin.