-
Notifications
You must be signed in to change notification settings - Fork 27
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
libcurl - could not load library #138
Comments
Hmm. I get an error as well, but a different one. Could you run the curl) pkg> st -m ArchGDAL GDAL GDAL_jll GEOS_jll LibCURL_jll Libtiff_jll PROJ_jll
Status `C:\tmp\curl\Manifest.toml`
[c9ce4bd3] ArchGDAL v0.4.1
[add2ef01] GDAL v1.1.3
[a7073274] GDAL_jll v3.0.4+1
[d604d12d] GEOS_jll v3.8.1+0
[deac9b47] LibCURL_jll v7.71.1+0
[89763e89] Libtiff_jll v4.1.0+0
[58948b4f] PROJ_jll v7.0.1+0
julia> using ArchGDAL
julia> landsat = "https://storage.cloud.google.com/gcp-public-data-landsat/LC08/01/044/034/LC08_L1GT_044034_20130330_20170310_01_T2/LC08_L1GT_044034_20130330_20170310_01_T2_B6.TIF"
julia> ArchGDAL.read(landsat)
ERROR: GDALError (CE_Failure, code 1):
Cert verify failed: BADCERT_NOT_TRUSTED
Stacktrace:
[1] gdaljl_errorhandler(::GDAL.CPLErr, ::Int32, ::Cstring) at C:\Users\visser_mn\.julia\packages\GDAL\yPmFi\src\error.jl:36
[2] gdalopenex(::String, ::Int64, ::Ptr{Cstring}, ::Ptr{Cstring}, ::Ptr{Cstring}) at C:\Users\visser_mn\.julia\packages\GDAL\yPmFi\src\gdal_h.jl:472
[3] #read#60 at C:\Users\visser_mn\.julia\packages\ArchGDAL\ohMpc\src\dataset.jl:388 [inlined]
[4] read(::String) at C:\Users\visser_mn\.julia\packages\ArchGDAL\ohMpc\src\dataset.jl:388
[5] top-level scope at REPL[8]:1 |
I got the same:
Now, i also get badcert like you ??? So I no longer get the first error. Nothing changed except I restarted my julia session. |
Hopefully will help with yeesian/ArchGDAL.jl#138, which has libcurl init issues.
Hmm I just also got a spurious InitError like you. Hopefully a rebuild, JuliaPackaging/Yggdrasil#1494, will help with And then hopefully we can use this to fix the certificate issue: JuliaGeo/GDAL.jl#94 |
Hopefully will help with yeesian/ArchGDAL.jl#138, which has libcurl init issues.
Ok with GDAL.jl v1.1.4 this should be fixed now. Only issue is that it doesn't like the image you linked. julia> landsat_gcp = "https://storage.cloud.google.com/gcp-public-data-landsat/LC08/01/044/034/LC08_L1GT_044034_20130330_20170310_01_T2/LC08_L1GT_044034_20130330_20170310_01_T2_B6.TIF"
julia> ArchGDAL.read(landsat_gcp)
ERROR: GDALError (CE_Failure, code 4):
Failed to read TopoJSON data
julia> ArchGDAL.read("/vsicurl/$landsat_gcp")
ERROR: GDALError (CE_Failure, code 3):
Cannot read 91270 bytes
julia> landsat_aws = "https://landsat-pds.s3.amazonaws.com/L8/139/045/LC81390452014295LGN00/LC81390452014295LGN00_B1.TIF"
julia> ArchGDAL.read("/vsicurl/$landsat_aws")
GDAL Dataset (Driver: GTiff/GeoTIFF)
File(s):
/vsicurl/https://landsat-pds.s3.amazonaws.com/L8/139/045/LC81390452014295LGN00/LC81390452014295LGN00_B1.TIF
/vsicurl/https://landsat-pds.s3.amazonaws.com/L8/139/045/LC81390452014295LGN00/LC81390452014295LGN00_B1.TIF.ovr
/vsicurl/https://landsat-pds.s3.amazonaws.com/L8/139/045/LC81390452014295LGN00/LC81390452014295LGN00_MTL.txt
Dataset (width x height): 7621 x 7791 (pixels)
Number of raster bands: 1
[GA_ReadOnly] Band 1 (Gray): 7621 x 7791 (UInt16) |
I'll close this since the curl issue is fixed now. Thanks for the report. Do let us know if something else is not right! |
I just installed a fresh julia 1.5 and added ArchGDAL to try to read a geotff from the web.
And that gives me this error
There is a libcurl-4.dll in that location.
I'm using win10 and ArchGDAL = "c9ce4bd3-c3d5-55b8-8973-c0e20141b8c3"
The text was updated successfully, but these errors were encountered: