Skip to content

Issues with start code #7

@FranzEricSchneider

Description

@FranzEricSchneider

After installing in a conda environment with conda install pyqglviewer -c fredboudon -c conda-forge, I had the following issues with the starter code:

I believe PyQGLViewer is installed as shown, but qgllogo is unavailable, and I could not find it mentioned on the internet:

In [1]: from PyQGLViewer import *

In [2]: from qgllogo import draw_qgl_logo
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[2], line 1
----> 1 from qgllogo import draw_qgl_logo

ModuleNotFoundError: No module named 'qgllogo'

Next the QApplication seems to not some from the given imports, maybe it moved around in the Qt library?

In [3]: from PyQt5.QtGui import *

In [4]: qapp = QApplication([])
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Cell In[4], line 1
----> 1 qapp = QApplication([])

NameError: name 'QApplication' is not defined

In [5]: from PyQt5.Qt import QApplication

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions