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

Error opening data loader dialog from MetaSearch #40490

Closed
AndreasVaage opened this issue Dec 8, 2020 · 8 comments
Closed

Error opening data loader dialog from MetaSearch #40490

AndreasVaage opened this issue Dec 8, 2020 · 8 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers MetaSearch stale Uh oh! Seems this work is abandoned, and the PR is about to close.

Comments

@AndreasVaage
Copy link

Describe the bug

I got the following error when opening the data loader dialog from MetaSearch:

‼️ AttributeError: type object 'WidgetMode' has no attribute 'Embedded'

With the full error message:

Traceback (most recent call last):
File "/usr/share/qgis/python/plugins/MetaSearch/dialogs/maindialog.py", line 770, in 
add_to_ows QgsProviderRegistry.WidgetMode.Embedded)
AttributeError: type object 'WidgetMode' has no attribute 'Embedded'

How to Reproduce

  1. Open MetaSearch.
  2. Select a CSW and a service (I have tested with WMS and WFS).
  3. Click "Add Data".
  4. Select option from the drop down menu.
  5. See error.

QGIS and OS versions

QGIS version 3.16.1-Hannover QGIS code revision b381a90
Compiled against Qt 5.9.5 Running against Qt 5.9.5
Compiled against GDAL/OGR 2.2.3 Running against GDAL/OGR 2.2.3
Compiled against GEOS 3.6.2-CAPI-1.10.2 Running against GEOS 3.6.2-CAPI-1.10.2 4d2925d6
Compiled against SQLite 3.22.0 Running against SQLite 3.22.0
PostgreSQL Client Version 10.15 (Ubuntu 10.15-0ubuntu0.18.04.1) SpatiaLite Version 4.3.0a
QWT Version 6.1.3 QScintilla2 Version 2.10.2
PROJ.4 Version 493
OS Version Ubuntu 18.04.5 LTS
Active python plugins processing; MetaSearch; db_manager

Additional context

I first ran into and circumvented issue #38074 by manually upgrading owslib as suggested by johtoblans comment.

The relevant line was introduced in #34861.

@AndreasVaage AndreasVaage added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Dec 8, 2020
@gioman
Copy link
Contributor

gioman commented Dec 8, 2020

How to Reproduce

1. Open MetaSearch.

2. Select a CSW and a service (I have tested with WMS and WFS).

3. Click "Add Data".

4. Select option from the drop down menu.

5. See error.

@AndreasVaage cannot replicate on 3.16.1 on Ubuntu 20.04

@gioman gioman added Feedback Waiting on the submitter for answers Plugins labels Dec 8, 2020
@AndreasVaage
Copy link
Author

Thank you for testing so quickly. I tried purging and installing 3.10.12 LTR instead, but got the same error, except the relevant line changed from 770 to 769. Any suggestion for how I can go forward debugging this?

@gioman
Copy link
Contributor

gioman commented Dec 8, 2020

Any suggestion for how I can go forward debugging this

@tomkralidis any idea?

@tomkralidis
Copy link
Contributor

fwiw I cannot reproduce either locally.

@gioman
Copy link
Contributor

gioman commented Dec 10, 2020

fwiw I cannot reproduce either locally.

@tomkralidis I was able to replicate the reported issue on a clean Ubuntu 18.04 machine with QGIS 3.16.1.

I had to upgrade manually owslib to 0.19 (otherwise #38074). I was not able to upgrade to a more recent version because it has dependencies (like proj 7.2) that I can't be quickly solved.

@gioman gioman removed the Feedback Waiting on the submitter for answers label Dec 10, 2020
@gioman gioman added MetaSearch and removed Plugins labels Dec 28, 2020
@alexbruy
Copy link
Contributor

I can't reproduce. Is this still valid?

@alexbruy alexbruy added the Feedback Waiting on the submitter for answers label Jan 25, 2022
@github-actions
Copy link

github-actions bot commented Feb 9, 2022

The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale".
If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue.
In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue.
If there is no further activity on this issue, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Feb 9, 2022
@github-actions
Copy link

github-actions bot commented Mar 9, 2022

While we hate to see this happen, this issue has been automatically closed because it has not had any activity in the last 42 days despite being marked as feedback. If this issue should be reconsidered, please follow the guidelines in the previous comment and reopen this issue.
Or, if you have any further questions, there are also further support channels that can help you.

@github-actions github-actions bot closed this as completed Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers MetaSearch stale Uh oh! Seems this work is abandoned, and the PR is about to close.
Projects
None yet
Development

No branches or pull requests

4 participants