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

Pthyon error message when opening riverscapes projects in QRV #100

Closed
shelbysawyer opened this issue Jan 11, 2024 · 2 comments
Closed

Pthyon error message when opening riverscapes projects in QRV #100

shelbysawyer opened this issue Jan 11, 2024 · 2 comments
Labels
🐛 bug Something isn't working 🌐 Viewer QGIS

Comments

@shelbysawyer
Copy link

When I open riverscapes projects with the Riverscapes Plugin in QGIS (v 0.8.0), I get this error message:

WARNING Traceback (most recent call last): File "C:/Users/shelby/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrave_toolbar\src\dock_widget.py", line 432, in close_all self.close_project(self.loaded_projects[0]) IndexError: list index out of range

I'm not sure if this is a plugin problem or my local machine, but thought I would flag it.

@shelbysawyer shelbysawyer added the 🐛 bug Something isn't working label Jan 11, 2024
@shelbysawyer
Copy link
Author

Following this up with another error, which happened when I tried to add a second VBET project into a project that already had a VBET project open in it:

An error has occurred while executing Python code: 

IndexError: list index out of range 
Traceback (most recent call last):
  File "C:/Users/shelby/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrave_toolbar\src\qrave_toolbar.py", line 355, in projectBrowserDlg
    self.dockwidget.add_project(dialog_return[0])
  File "C:/Users/shelby/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrave_toolbar\src\dock_widget.py", line 222, in add_project
    self.add_children_to_map(new_project.qproject, new_project.views[new_project.default_view])
  File "C:/Users/shelby/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrave_toolbar\src\dock_widget.py", line 531, in add_children_to_map
    data.add_layer_to_map(child)
  File "C:/Users/shelby/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrave_toolbar\src\classes\qrave_map_layer.py", line 197, in add_layer_to_map
    elif lyr[0] == ancestry[0][0]:  # bit of a hacky way to test if map layer is in the same named qproject
IndexError: list index out of range


Python version: 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] 
QGIS version: 3.18.2-Zürich Zürich, 515138c171 

Python Path:
C:/PROGRA~1/QGIS3~1.18/apps/qgis/./python
C:/Users/shelby/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/shelby/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/PROGRA~1/QGIS3~1.18/apps/qgis/./python/plugins
C:\PROGRA~1\QGIS3~1.18\apps\Python37
C:\PROGRA~1\QGIS3~1.18\apps\Python37\Scripts
C:\Program Files\QGIS 3.18\bin\python37.zip
C:\PROGRA~1\QGIS3~1.18\apps\Python37\DLLs
C:\PROGRA~1\QGIS3~1.18\apps\Python37\lib
C:\Program Files\QGIS 3.18\bin
C:\PROGRA~1\QGIS3~1.18\apps\Python37\lib\site-packages
C:\PROGRA~1\QGIS3~1.18\apps\Python37\lib\site-packages\win32
C:\PROGRA~1\QGIS3~1.18\apps\Python37\lib\site-packages\win32\lib
C:\PROGRA~1\QGIS3~1.18\apps\Python37\lib\site-packages\Pythonwin
C:/Users/shelby/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/shelby/Desktop/0_FIGURES

@shelbysawyer
Copy link
Author

Closing because I believe this is redundant with #106.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working 🌐 Viewer QGIS
Projects
None yet
Development

No branches or pull requests

2 participants