Skip to content

Commit

Permalink
Merge pull request #1132 from nstelter-slac/fix_designer_pip_install
Browse files Browse the repository at this point in the history
BUG: fix issue where designer doesn't load pydm widgets when pydm is installed from PyPI using pip
  • Loading branch information
YektaY authored Dec 10, 2024
2 parents f54c462 + 91e2525 commit 136ed4a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions docs/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,21 @@ Please note, this guide is written with Unix in mind, so there are probably some
Installing PyDM and Prerequisites with Anaconda
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

After installing Anaconda (see https://www.anaconda.com/download/), create a new
environment for PyDM::
$ conda create -n pydm-environment python=3.8 pyqt=5 pip numpy scipy six psutil pyqtgraph pydm -c conda-forge
$ source activate pydm-environment

.. warning::
There is currently no PyQt 5.15+ build available on conda or PyPI that has
designer support for python plugins.
designer support for python plugins. PyDM widgets will not load in these designer versions.

In order to use PyDM widgets in designer, please make sure to pin the PyQt version to 5.12.3 or lower
until this is resolved.

$ conda create -n pydm-environment python=3.10 pyqt=5.12.3 pip numpy scipy six psutil pyqtgraph pydm -c conda-forge

After installing Anaconda (see https://www.anaconda.com/download/), create a new
environment for PyDM::
$ conda create -n pydm-environment python=3.10 pyqt=5 pip numpy scipy six psutil pyqtgraph pydm -c conda-forge
$ source activate pydm-environment

Once you've installed and activated the environment, you should be able to run 'pydm' to launch PyDM, or run 'designer' to launch Qt Designer. If you are on Windows, run these commands from the Anaconda Prompt.

On MacOS, launching Qt Designer is a little more annoying:
Expand Down
File renamed without changes.

0 comments on commit 136ed4a

Please sign in to comment.