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

"Unable to load the layer <built-in method name of QgsVectorLayer object at 0x0B8EE3D8>" when d&d from browser to DB manager #17253

Closed
qgib opened this issue Aug 20, 2013 · 5 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! DB Manager Relating to the DB Manager core plugin
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Aug 20, 2013

Author Name: Giovanni Manghi (@gioman)
Original Redmine Issue: 8488
Affected QGIS version: master
Redmine category:db_manager


On Windows, not on Linux (apparently).

@qgib
Copy link
Contributor Author

qgib commented Aug 20, 2013

Author Name: Jürgen Fischer (@jef-n)


See also http://lists.osgeo.org/pipermail/qgis-developer/2013-August/027876.html

@qgib
Copy link
Contributor Author

qgib commented Aug 20, 2013

Author Name: Salvatore Larosa (@slarosa)


I don't know if we can fix this directly from browser code, but it look like if on Windows the shp path is wrong:

@C:\your.shp@

will be converted in:

@C\:/your.shp@

if it is not possible to fix from browser we can fix it using regexp module to remove the backslash.

@qgib
Copy link
Contributor Author

qgib commented Aug 20, 2013

Author Name: Jürgen Fischer (@jef-n)


Fixed in changeset "b9b8a03905e0a0482e05bec99d4f021b1f54644c".


  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented Aug 20, 2013

Author Name: Salvatore Larosa (@slarosa)


better solution, but the fix seems incomplete :-)

@qgib
Copy link
Contributor Author

qgib commented Aug 20, 2013

Author Name: Jürgen Fischer (@jef-n)


Salvatore Larosa wrote:

better solution, but the fix seems incomplete :-)

Why? QgsMimeDataUtils does the colon escaping...

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! DB Manager Relating to the DB Manager core plugin labels May 24, 2019
@qgib qgib added this to the Version 2.0.0 milestone May 24, 2019
@qgib qgib closed this as completed May 24, 2019
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! DB Manager Relating to the DB Manager core plugin
Projects
None yet
Development

No branches or pull requests

1 participant