Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 648946

Summary: sci-geosciences/qgis-3.0.0: Warning 4: Failed to open /usr/share/qgis/resources/data/world_map.shp, Åtkomst nekas.
Product: Gentoo Linux Reporter: Erik <esigra>
Component: Current packagesAssignee: Sci-geo Project <sci-geosciences>
Status: RESOLVED FIXED    
Severity: normal CC: esigra, mmokrejs
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://issues.qgis.org/issues/17980
Whiteboard:
Package list:
Runtime testing required: ---

Description Erik 2018-02-27 14:05:22 UTC
After emerging sci-geosciences/qgis-3.0.0, executing qgis in a terminal and pressing Ctrl+Shift+P gives:
Warning 4: Failed to open /usr/share/qgis/resources/data/world_map.shp, Åtkomst nekas.
Warning: Calling appendChild() on a null node does nothing.

The file exists and can be viewed in QGIS. Maybe the code that is called by Ctrl+Shift+P tries to open the file with write permission?
Comment 1 Andreas Sturmlechner gentoo-dev 2018-03-05 01:29:19 UTC
I can't see how this issue could be caused by packaging, so please report it upstream.
Comment 2 Andreas Sturmlechner gentoo-dev 2018-03-30 16:53:19 UTC
Please test with 3.0.1.
Comment 3 Erik 2018-06-15 02:06:34 UTC
Tested with version 3.0.3:
Warning 4: Failed to open /usr/share/qgis/resources/data/world_map.shp, Åtkomst nekas.

Note that the warning about appendChild does not appear.
Comment 4 Chris Mayo 2019-04-02 18:55:49 UTC
Upstream report:

https://issues.qgis.org/issues/17980

Nothing failing to work.
Comment 5 Martin Mokrejš 2022-10-23 08:33:28 UTC
Same here. I indeed seems qgis is trying to get a write access to the syste-wide installed file.

src/core/proj/qgscoordinatetransform.cpp:826 : (transformCoords) [5182ms] Projection failed emitting invalid transform signal: forward transform of
(inf, inf)
Error: Fallback transform failed
src/core/providers/ogr/qgsogrprovider.cpp:3536 : (open) [338ms] OGR failed to opened in update mode, trying in read-only mode
src/core/providers/ogr/qgsogrprovider.cpp:3536 : (open) [4ms] OGR failed to opened in update mode, trying in read-only mode
src/core/providers/ogr/qgsogrprovider.cpp:3536 : (open) [3ms] OGR failed to opened in update mode, trying in read-only mode
src/core/providers/ogr/qgsogrprovider.cpp:3536 : (open) [3ms] OGR failed to opened in update mode, trying in read-only mode
src/core/providers/ogr/qgsogrprovider.cpp:3536 : (open) [3ms] OGR failed to opened in update mode, trying in read-only mode
src/core/providers/ogr/qgsogrprovider.cpp:3536 : (open) [3ms] OGR failed to opened in update mode, trying in read-only mode
src/core/providers/ogr/qgsogrprovider.cpp:3536 : (open) [2ms] OGR failed to opened in update mode, trying in read-only mode
src/core/providers/ogr/qgsogrprovider.cpp:3536 : (open) [3ms] OGR failed to opened in update mode, trying in read-only mode
src/core/providers/ogr/qgsogrprovider.cpp:3536 : (open) [3ms] OGR failed to opened in update mode, trying in read-only mode
src/core/providers/ogr/qgsogrprovider.cpp:3536 : (open) [4ms] OGR failed to opened in update mode, trying in read-only mode
src/core/providers/ogr/qgsogrprovider.cpp:3536 : (open) [6ms] OGR failed to opened in update mode, trying in read-only mode
src/core/providers/ogr/qgsogrprovider.cpp:3536 : (open) [4ms] OGR failed to opened in update mode, trying in read-only mode
src/core/providers/ogr/qgsogrprovider.cpp:3536 : (open) [763ms] OGR failed to opened in update mode, trying in read-only mode
src/core/providers/ogr/qgsogrprovider.cpp:3536 : (open) [3ms] OGR failed to opened in update mode, trying in read-only mode
src/core/providers/ogr/qgsogrprovider.cpp:3536 : (open) [4ms] OGR failed to opened in update mode, trying in read-only mode
src/core/providers/ogr/qgsogrprovider.cpp:3536 : (open) [4ms] OGR failed to opened in update mode, trying in read-only mode
Warning 1: The definition of projected CRS EPSG:5514 got from GeoTIFF keys is not the same as the one from the EPSG registry, which may cause issues during reprojection operations. Set GTIFF_SRS_SOURCE configuration option to EPSG to use official parameters (overriding the ones from GeoTIFF keys), or to GEOKEYS to use custom values from GeoTIFF keys and drop the EPSG code.
Warning 1: The definition of projected CRS EPSG:5514 got from GeoTIFF keys is not the same as the one from the EPSG registry, which may cause issues during reprojection operations. Set GTIFF_SRS_SOURCE configuration option to EPSG to use official parameters (overriding the ones from GeoTIFF keys), or to GEOKEYS to use custom values from GeoTIFF keys and drop the EPSG code.
src/core/providers/ogr/qgsogrprovider.cpp:3536 : (open) [806ms] OGR failed to opened in update mode, trying in read-only mode
src/core/providers/ogr/qgsogrprovider.cpp:3536 : (open) [4ms] OGR failed to opened in update mode, trying in read-only mode
src/core/providers/ogr/qgsogrprovider.cpp:3536 : (open) [3ms] OGR failed to opened in update mode, trying in read-only mode
src/core/providers/ogr/qgsogrprovider.cpp:3536 : (open) [4ms] OGR failed to opened in update mode, trying in read-only mode
src/core/providers/ogr/qgsogrprovider.cpp:3536 : (open) [8ms] OGR failed to opened in update mode, trying in read-only mode
src/core/providers/ogr/qgsogrprovider.cpp:3536 : (open) [11ms] OGR failed to opened in update mode, trying in read-only mode
src/core/providers/ogr/qgsogrprovider.cpp:3536 : (open) [4ms] OGR failed to opened in update mode, trying in read-only mode
...
src/core/providers/ogr/qgsogrprovider.cpp:3536 : (open) [10ms] OGR failed to opened in update mode, trying in read-only mode
src/core/providers/ogr/qgsogrprovider.cpp:3536 : (open) [12ms] OGR failed to opened in update mode, trying in read-only mode
src/core/providers/ogr/qgsogrprovider.cpp:3536 : (open) [9ms] OGR failed to opened in update mode, trying in read-only mode
src/core/providers/ogr/qgsogrprovider.cpp:3536 : (open) [18ms] OGR failed to opened in update mode, trying in read-only mode
Warning 4: Failed to open /usr/share/qgis/resources/data/world_map.gpkg: Operation not permitted. [sorry, I am translating back to English from Czech]
src/core/providers/ogr/qgsogrprovider.cpp:3536 : (open) [427ms] OGR failed to opened in update mode, trying in read-only mode


# emerge -pv qgis

[ebuild   R    ] sci-geosciences/qgis-3.22.11::gentoo  USE="georeferencer mapserver opencl pdal python qml -3d -examples -grass -hdf5 -netcdf -oracle -polar -postgres -serial -test" PYTHON_SINGLE_TARGET="python3_8 -python3_9 -python3_10" 0 KiB
Comment 6 Chris Mayo 2023-01-04 19:24:28 UTC
Fixed in 3.28:

c26d58ece8 ("feat: New force read only option for vector layer", 2022-07-25)
https://github.com/qgis/QGIS/commit/c26d58ece8
Comment 7 Larry the Git Cow gentoo-dev 2023-01-05 09:01:56 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fc571aca6ad492deb7d07d0d7d464161db99c76

commit 6fc571aca6ad492deb7d07d0d7d464161db99c76
Author:     Marco Genasci <fedeliallalinea@gmail.com>
AuthorDate: 2022-12-05 10:35:27 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-01-05 09:01:30 +0000

    sci-geosciences/qgis: version bump to 3.28.1
    
    Closes: https://bugs.gentoo.org/648946
    Signed-off-by: Marco Genasci <fedeliallalinea@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-geosciences/qgis/Manifest           |   1 +
 sci-geosciences/qgis/qgis-3.28.1.ebuild | 277 ++++++++++++++++++++++++++++++++
 2 files changed, 278 insertions(+)