Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with start code #7

Open
FranzEricSchneider opened this issue Jan 29, 2023 · 0 comments
Open

Issues with start code #7

FranzEricSchneider opened this issue Jan 29, 2023 · 0 comments

Comments

@FranzEricSchneider
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant