glue-viz / glue

Linked Data Visualizations Across Multiple Files
http://glueviz.org
Other
740 stars 153 forks source link

Glue doesn't start #2142

Open nickcorona opened 4 years ago

nickcorona commented 4 years ago

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

specmicp commented 4 years ago

Can you provide the output of the following command:

glue-deps list

Also can you provide the version of your operating system ?

astrofrog commented 4 years ago

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

from glue import qglue
qglue()

?

nickcorona commented 4 years ago

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.

specmicp commented 4 years ago

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 commented 4 years ago

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

pip install PyQt5 qtpy

nickcorona commented 4 years ago

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

pip install PyQt5 qtpy

Thanks!

dhomeier commented 2 years ago

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.

astrofrog commented 2 years ago

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)

dhomeier commented 2 years ago

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.