glue icon indicating copy to clipboard operation
glue copied to clipboard

Glue doesn't start

Open nickcorona opened this issue 4 years ago • 9 comments

Installed with pip. Self-explanatory. I run glue command in windows powershell and it does nothing.

nickcorona avatar May 18 '20 00:05 nickcorona

Can you provide the output of the following command:

glue-deps list

Also can you provide the version of your operating system ?

specmicp avatar May 18 '20 09:05 specmicp

And to add to what @specmicp said, could you try starting glue by first starting ipython then typing:

from glue import qglue
qglue()

?

astrofrog avatar May 18 '20 10:05 astrofrog

I ran this command pip install glueviz[all,qt] to install but it didn't seem to install the dependencies. I got this error:

  WARNING: glueviz 0.15.2 does not provide the extra 'all'
  WARNING: glueviz 0.15.2 does not provide the extra 'qt'

glue-deps list

PS C:\Users\nickl> glue-deps list
               PYTHON
              Python:   INSTALLED (3.8.2)

        GUI FRAMEWORK
               PyQt5:   NOT INSTALLED
             PySide2:   NOT INSTALLED

             REQUIRED
                qtpy:   MISSING (Required)
          setuptools:   INSTALLED (46.3.1)
               numpy:   INSTALLED (1.18.3)
          bottleneck:   INSTALLED (1.3.2)
          matplotlib:   INSTALLED (3.2.1)
              pandas:   INSTALLED (1.0.3)
             astropy:   INSTALLED (4.0.1.post1)
                dill:   INSTALLED (0.3.1.1)
                h5py:   INSTALLED (2.10.0)
                xlrd:   INSTALLED (1.2.0)
 mpl-scatter-density:   INSTALLED (0.6)

  glue-vispy-viewers:   INSTALLED (0.12.2)

     IPYTHON TERMINAL
             IPython:   INSTALLED (7.13.0)
           qtconsole:   INSTALLED (4.7.3)
           ipykernel:   INSTALLED (5.2.1)
           traitlets:   INSTALLED (4.3.3)
            pygments:   INSTALLED (2.6.1)
               pyzmq:   INSTALLED (19.0.0)

              GENERAL
               scipy:   INSTALLED (1.4.1)
        scikit-image:   MISSING (Used to read popular image formats (jpeg, png, etc.))

            ASTRONOMY
               PyAVM:   MISSING (Used to parse AVM metadata in image files)
       spectral-cube:   MISSING (Used to read in spectral cubes)
         astrodendro:   MISSING (Used to read in and represent dendrograms)

              TESTING
                mock:   MISSING (Used in test code)
              pytest:   MISSING (Used in test code)

               EXPORT
              plotly:   MISSING (Used to explort plots to Plot.ly)

Also can you provide the version of your operating system ? Latest version of windows 10.

nickcorona avatar May 18 '20 23:05 nickcorona

I can confirm this problem with a fresh virtualenv (qtpy gets correctly installed for me though).

Manually downloading the package and looking through the setup.cfg shows that the extra_requires are not defined. It looks like they should be defined now (but I didn't knew about that setup.cfg syntax, very nice !)

specmicp avatar May 19 '20 07:05 specmicp

@nickcorona sorry, I almost forgot, for now, installing PyQt5 should solve the problem:

pip install PyQt5 qtpy

specmicp avatar May 19 '20 08:05 specmicp

@nickcorona sorry, I almost forgot, for now, installing PyQt5 should solve the problem:

pip install PyQt5 qtpy

Thanks!

nickcorona avatar May 19 '20 15:05 nickcorona

Manually downloading the package and looking through the setup.cfg shows that the extra_requires are not defined. It looks like they should be defined now (but I didn't knew about that setup.cfg syntax, very nice !)

[mini]conda apparently gets that now, with conda install glueviz[qt] installing qt-5.9.7 as qt, but pip does not and still installs a qtpy without working QtWidgets (pip also does not know about a generic qt or qtpy package). So maybe this is more a pip issue.

dhomeier avatar Feb 03 '22 16:02 dhomeier

pip install glue-core[qt] does include PyQt5 - though maybe we should make it so that pip install glueviz[qt] works too? (see the extra-requires in glue-core: https://github.com/glue-viz/glue/blob/main/setup.cfg#L93)

astrofrog avatar Feb 03 '22 16:02 astrofrog

So pip install glueviz[qt] automatically includes glue-core as a dependency, but does not "forward" the [qt] selection to the latter? Yes, that certainly has potential for confusion, easiest would be to ensure that glue-core is installed with the same settings.

dhomeier avatar Feb 03 '22 19:02 dhomeier