Skip to content

Error setting up environment following the Install from conda-forge instructions #60

@jeremyg19

Description

@jeremyg19

I ran the following

conda create -n geo python=3.11
conda activate geo
conda install -c conda-forge mamba
mamba install -c conda-forge lidar

After

python
from lidar import *

I get the following

Traceback (most recent call last):
File "", line 1, in
File "/home/jagraham/mambaforge/envs/geo/lib/python3.11/site-packages/lidar/init.py", line 9, in
from .filling import (
File "/home/jagraham/mambaforge/envs/geo/lib/python3.11/site-packages/lidar/filling.py", line 11, in
from osgeo import gdal, ogr, osr
File "/home/jagraham/mambaforge/envs/geo/lib/python3.11/site-packages/osgeo/gdal.py", line 82, in
from osgeo.gdalconst import *
File "/home/jagraham/mambaforge/envs/geo/lib/python3.11/site-packages/osgeo/gdalconst.py", line 309, in
GAAT_BOOLEAN = _gdalconst.GAAT_BOOLEAN
^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'osgeo._gdalconst' has no attribute 'GAAT_BOOLEAN'

I thought that the mamba solver finds the right GDAL version to install to build the environment. Is it still required to do the

sudo add-apt-repository ppa:ubuntugis/ppa
sudo apt-get update
sudo apt-get install gdal-bin libgdal-dev

And if so does that make system-wide changes or just in the created conda environment?

Here below is the callback from mamba install -c conda-forge lidar

(geo) jagraham@precision7770a:~/Documents/git/geo_stac$ mamba install -c conda-forge lidar

              __    __    __    __                                                                                     
             /  \  /  \  /  \  /  \                                                                                    
            /    \/    \/    \/    \                                                                                   

███████████████/ /██/ /██/ /██/ /████████████████████████
/ / \ / \ / \ / \ ____
/ / _/ _/ _/ \ o _,
/ / _
__/ `
|/
███╗ ███╗ █████╗ ███╗ ███╗██████╗ █████╗
████╗ ████║██╔══██╗████╗ ████║██╔══██╗██╔══██╗
██╔████╔██║███████║██╔████╔██║██████╔╝███████║
██║╚██╔╝██║██╔══██║██║╚██╔╝██║██╔══██╗██╔══██║
██║ ╚═╝ ██║██║ ██║██║ ╚═╝ ██║██████╔╝██║ ██║
╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝

    mamba (1.4.2) supported by @QuantStack

    GitHub:  https://github.com/mamba-org/mamba
    Twitter: https://twitter.com/QuantStack

█████████████████████████████████████████████████████████████

Looking for: ['lidar']

warning libmamba Cache file "/home/jagraham/mambaforge/pkgs/cache/497deca9.json" was modified by another program
warning libmamba Cache file "/home/jagraham/mambaforge/pkgs/cache/09cdf8bf.json" was modified by another program
warning libmamba Cache file "/home/jagraham/mambaforge/pkgs/cache/47929eba.json" was modified by another program
warning libmamba Cache file "/home/jagraham/mambaforge/pkgs/cache/3e39a7aa.json" was modified by another program
warning libmamba Cache file "/home/jagraham/mambaforge/pkgs/cache/2ce54b42.json" was modified by another program
warning libmamba Cache file "/home/jagraham/mambaforge/pkgs/cache/4ea078d6.json" was modified by another program
pkgs/main/noarch 904.8kB @ 1.5MB/s 0.6s
pkgs/r/linux-64 1.9MB @ 2.7MB/s 0.7s
pkgs/r/noarch 2.3MB @ 1.9MB/s 0.7s
pkgs/main/linux-64 8.2MB @ 3.2MB/s 2.6s
conda-forge/noarch 22.3MB @ 6.7MB/s 3.5s
conda-forge/linux-64 49.6MB @ 6.0MB/s 8.7s

Pinned packages:

  • python 3.11.*

Transaction

Prefix: /home/jagraham/mambaforge/envs/geo

Updating specs:

  • lidar
  • ca-certificates
  • openssl

Package Version Build Channel Size
───────────────────────────────────────────────────────────────────────────────────────────────────
Install:
───────────────────────────────────────────────────────────────────────────────────────────────────

  • affine 2.4.0 pyhd8ed1ab_1 conda-forge/noarch Cached
  • aom 3.9.1 hac33072_0 conda-forge/linux-64 Cached
  • attrs 25.1.0 pyh71513ae_0 conda-forge/noarch Cached
  • aws-c-auth 0.8.1 h205f482_0 conda-forge/linux-64 Cached
  • aws-c-cal 0.8.1 h1a47875_3 conda-forge/linux-64 Cached
  • aws-c-common 0.10.6 hb9d3cd8_0 conda-forge/linux-64 Cached
  • aws-c-compression 0.3.0 h4e1184b_5 conda-forge/linux-64 Cached
  • aws-c-event-stream 0.5.0 h7959bf6_11 conda-forge/linux-64 Cached
  • aws-c-http 0.9.2 hefd7a92_4 conda-forge/linux-64 Cached
  • aws-c-io 0.15.3 h173a860_6 conda-forge/linux-64 Cached
  • aws-c-mqtt 0.11.0 h11f4f37_12 conda-forge/linux-64 Cached
  • aws-c-s3 0.7.9 he1b24dc_1 conda-forge/linux-64 Cached
  • aws-c-sdkutils 0.2.2 h4e1184b_0 conda-forge/linux-64 Cached
  • aws-checksums 0.2.2 h4e1184b_4 conda-forge/linux-64 Cached
  • aws-crt-cpp 0.29.9 he0e7f3f_2 conda-forge/linux-64 Cached
  • aws-sdk-cpp 1.11.489 h4d475cb_0 conda-forge/linux-64 Cached
  • azure-core-cpp 1.14.0 h5cfcd09_0 conda-forge/linux-64 Cached
  • azure-identity-cpp 1.10.0 h113e628_0 conda-forge/linux-64 Cached
  • azure-storage-blobs-cpp 12.13.0 h3cf044e_1 conda-forge/linux-64 Cached
  • azure-storage-common-cpp 12.8.0 h736e048_1 conda-forge/linux-64 Cached
  • beautifulsoup4 4.13.3 pyha770c72_0 conda-forge/noarch Cached
  • blosc 1.21.6 he440d0b_1 conda-forge/linux-64 Cached
  • branca 0.8.1 pyhd8ed1ab_0 conda-forge/noarch Cached
  • brotli 1.1.0 hb9d3cd8_2 conda-forge/linux-64 Cached
  • brotli-bin 1.1.0 hb9d3cd8_2 conda-forge/linux-64 Cached
  • brotli-python 1.1.0 py311hfdbb021_2 conda-forge/linux-64 Cached
  • brunsli 0.1 h9c3ff4c_0 conda-forge/linux-64 Cached
  • c-blosc2 2.15.2 h3122c55_1 conda-forge/linux-64 Cached
  • cairo 1.18.2 h3394656_1 conda-forge/linux-64 Cached
  • capnproto 1.0.2 h766bdaa_3 conda-forge/linux-64 Cached
  • certifi 2025.1.31 pyhd8ed1ab_0 conda-forge/noarch Cached
  • cffi 1.17.1 py311hf29c0ef_0 conda-forge/linux-64 Cached
  • cfitsio 4.5.0 h44b4e7a_0 conda-forge/linux-64 Cached
  • charls 2.4.2 h59595ed_0 conda-forge/linux-64 Cached
  • charset-normalizer 3.4.1 pyhd8ed1ab_0 conda-forge/noarch Cached
  • click 8.1.8 pyh707e725_0 conda-forge/noarch Cached
  • click-plugins 1.1.1 pyhd8ed1ab_1 conda-forge/noarch Cached
  • cligj 0.7.2 pyhd8ed1ab_2 conda-forge/noarch Cached
  • colorama 0.4.6 pyhd8ed1ab_1 conda-forge/noarch Cached
  • contourpy 1.3.1 py311hd18a35c_0 conda-forge/linux-64 Cached
  • cycler 0.12.1 pyhd8ed1ab_1 conda-forge/noarch Cached
  • cyrus-sasl 2.1.27 h54b06d7_7 conda-forge/linux-64 Cached
  • dav1d 1.2.1 hd590300_0 conda-forge/linux-64 Cached
  • filelock 3.17.0 pyhd8ed1ab_0 conda-forge/noarch Cached
  • folium 0.19.5 pyhd8ed1ab_0 conda-forge/noarch Cached
  • font-ttf-dejavu-sans-mono 2.37 hab24e00_0 conda-forge/noarch Cached
  • font-ttf-inconsolata 3.000 h77eed37_0 conda-forge/noarch Cached
  • font-ttf-source-code-pro 2.038 h77eed37_0 conda-forge/noarch Cached
  • font-ttf-ubuntu 0.83 h77eed37_3 conda-forge/noarch Cached
  • fontconfig 2.15.0 h7e30c49_1 conda-forge/linux-64 Cached
  • fonts-conda-ecosystem 1 0 conda-forge/noarch Cached
  • fonts-conda-forge 1 0 conda-forge/noarch Cached
  • fonttools 4.56.0 py311h2dc5d0c_0 conda-forge/linux-64 Cached
  • freetype 2.12.1 h267a509_2 conda-forge/linux-64 Cached
  • freexl 2.0.0 h9dce30a_2 conda-forge/linux-64 Cached
  • gdal 3.10.2 py311hbde30c8_0 conda-forge/linux-64 Cached
  • gdown 5.2.0 pyhd8ed1ab_1 conda-forge/noarch Cached
  • geopandas 1.0.1 pyhd8ed1ab_3 conda-forge/noarch Cached
  • geopandas-base 1.0.1 pyha770c72_3 conda-forge/noarch Cached
  • geos 3.13.0 h5888daf_0 conda-forge/linux-64 Cached
  • geotiff 1.7.4 h3551947_0 conda-forge/linux-64 Cached
  • giflib 5.2.2 hd590300_0 conda-forge/linux-64 Cached
  • h2 4.2.0 pyhd8ed1ab_0 conda-forge/noarch Cached
  • hdf4 4.2.15 h2a13503_7 conda-forge/linux-64 Cached
  • hdf5 1.14.3 nompi_h2d575fe_109 conda-forge/linux-64 Cached
  • hpack 4.1.0 pyhd8ed1ab_0 conda-forge/noarch Cached
  • hyperframe 6.1.0 pyhd8ed1ab_0 conda-forge/noarch Cached
  • icu 75.1 he02047a_0 conda-forge/linux-64 Cached
  • idna 3.10 pyhd8ed1ab_1 conda-forge/noarch Cached
  • imagecodecs 2024.12.30 py311h9971d45_0 conda-forge/linux-64 Cached
  • imageio 2.37.0 pyhfb79c49_0 conda-forge/noarch Cached
  • importlib-metadata 8.6.1 pyha770c72_0 conda-forge/noarch Cached
  • jinja2 3.1.5 pyhd8ed1ab_0 conda-forge/noarch Cached
  • joblib 1.4.2 pyhd8ed1ab_1 conda-forge/noarch Cached
  • json-c 0.18 h6688a6e_0 conda-forge/linux-64 Cached
  • jxrlib 1.1 hd590300_3 conda-forge/linux-64 Cached
  • kealib 1.6.1 he902fbf_0 conda-forge/linux-64 Cached
  • kiwisolver 1.4.7 py311hd18a35c_0 conda-forge/linux-64 Cached
  • lazy-loader 0.4 pyhd8ed1ab_2 conda-forge/noarch Cached
  • lazy_loader 0.4 pyhd8ed1ab_2 conda-forge/noarch Cached
  • lcms2 2.17 h717163a_0 conda-forge/linux-64 Cached
  • lerc 4.0.0 h27087fc_0 conda-forge/linux-64 Cached
  • libabseil 20240722.0 cxx17_hbbce691_4 conda-forge/linux-64 Cached
  • libaec 1.1.3 h59595ed_0 conda-forge/linux-64 Cached
  • libavif16 1.1.1 hf3231e4_3 conda-forge/linux-64 Cached
  • libblas 3.9.0 31_h59b9bed_openblas conda-forge/linux-64 Cached
  • libbrotlicommon 1.1.0 hb9d3cd8_2 conda-forge/linux-64 Cached
  • libbrotlidec 1.1.0 hb9d3cd8_2 conda-forge/linux-64 Cached
  • libbrotlienc 1.1.0 hb9d3cd8_2 conda-forge/linux-64 Cached
  • libcblas 3.9.0 31_he106b2a_openblas conda-forge/linux-64 Cached
  • libcrc32c 1.1.2 h9c3ff4c_0 conda-forge/linux-64 Cached
  • libde265 1.0.15 h00ab1b0_0 conda-forge/linux-64 Cached
  • libdeflate 1.23 h4ddbbb0_0 conda-forge/linux-64 Cached
  • libgdal 3.10.2 hea5fcb0_0 conda-forge/linux-64 Cached
  • libgdal-core 3.10.2 h3359108_0 conda-forge/linux-64 Cached
  • libgdal-fits 3.10.2 h872822d_0 conda-forge/linux-64 Cached
  • libgdal-grib 3.10.2 h724c1be_0 conda-forge/linux-64 Cached
  • libgdal-hdf4 3.10.2 h05c48c5_0 conda-forge/linux-64 Cached
  • libgdal-hdf5 3.10.2 hf0b1780_0 conda-forge/linux-64 Cached
  • libgdal-jp2openjpeg 3.10.2 ha1d2769_0 conda-forge/linux-64 Cached
  • libgdal-kea 3.10.2 h41c5bbd_0 conda-forge/linux-64 Cached
  • libgdal-netcdf 3.10.2 ha1d9371_0 conda-forge/linux-64 Cached
  • libgdal-pdf 3.10.2 h8221dc3_0 conda-forge/linux-64 Cached
  • libgdal-pg 3.10.2 ha83508c_0 conda-forge/linux-64 Cached
  • libgdal-postgisraster 3.10.2 ha83508c_0 conda-forge/linux-64 Cached
  • libgdal-tiledb 3.10.2 h30425e6_0 conda-forge/linux-64 Cached
  • libgdal-xls 3.10.2 h5b36e33_0 conda-forge/linux-64 Cached
  • libgfortran 14.2.0 h69a702a_2 conda-forge/linux-64 Cached
  • libgfortran5 14.2.0 hf1ad2bd_2 conda-forge/linux-64 Cached
  • libglib 2.82.2 h2ff4ddf_1 conda-forge/linux-64 Cached
  • libgoogle-cloud 2.35.0 h2b5623c_0 conda-forge/linux-64 Cached
  • libgoogle-cloud-storage 2.35.0 h0121fbd_0 conda-forge/linux-64 Cached
  • libgrpc 1.67.1 h25350d4_1 conda-forge/linux-64 Cached
  • libheif 1.19.5 gpl_hc21c24c_100 conda-forge/linux-64 Cached
  • libhwy 1.1.0 h00ab1b0_0 conda-forge/linux-64 Cached
  • libjpeg-turbo 3.0.0 hd590300_1 conda-forge/linux-64 Cached
  • libjxl 0.11.1 hdb8da77_0 conda-forge/linux-64 Cached
  • libkml 1.3.0 hf539b9f_1021 conda-forge/linux-64 Cached
  • liblapack 3.9.0 31_h7ac8fdf_openblas conda-forge/linux-64 Cached
  • libnetcdf 4.9.2 nompi_h00e09a9_116 conda-forge/linux-64 Cached
  • libntlm 1.8 hb9d3cd8_0 conda-forge/linux-64 Cached
  • libopenblas 0.3.29 pthreads_h94d23a6_0 conda-forge/linux-64 Cached
  • libpng 1.6.47 h943b412_0 conda-forge/linux-64 Cached
  • libpq 17.4 h27ae623_0 conda-forge/linux-64 Cached
  • libprotobuf 5.28.3 h6128344_1 conda-forge/linux-64 Cached
  • libre2-11 2024.07.02 hbbce691_2 conda-forge/linux-64 Cached
  • librttopo 1.1.0 h97f6797_17 conda-forge/linux-64 Cached
  • libspatialite 5.1.0 h1b4f908_12 conda-forge/linux-64 Cached
  • libtiff 4.7.0 hd9ff511_3 conda-forge/linux-64 Cached
  • libwebp-base 1.5.0 h851e524_0 conda-forge/linux-64 Cached
  • libxcb 1.17.0 h8a09558_0 conda-forge/linux-64 Cached
  • libxslt 1.1.39 h76b75d6_0 conda-forge/linux-64 Cached
  • libzip 1.11.2 h6991a6a_0 conda-forge/linux-64 Cached
  • libzopfli 1.0.3 h9c3ff4c_0 conda-forge/linux-64 Cached
  • lidar 0.8.4 pyhd8ed1ab_0 conda-forge/noarch Cached
  • mapclassify 2.8.1 pyhd8ed1ab_1 conda-forge/noarch Cached
  • markupsafe 3.0.2 py311h2dc5d0c_1 conda-forge/linux-64 Cached
  • matplotlib-base 3.10.0 py311h2b939e6_0 conda-forge/linux-64 Cached
  • minizip 4.0.7 h05a5f5f_3 conda-forge/linux-64 Cached
  • munkres 1.1.4 pyh9f0ad1d_0 conda-forge/noarch Cached
  • networkx 3.4.2 pyh267e887_2 conda-forge/noarch Cached
  • nspr 4.36 h5888daf_0 conda-forge/linux-64 Cached
  • nss 3.108 h159eef7_0 conda-forge/linux-64 Cached
  • numpy 2.2.3 py311h5d046bc_0 conda-forge/linux-64 Cached
  • openjpeg 2.5.3 h5fbd93e_0 conda-forge/linux-64 Cached
  • openldap 2.6.9 he970967_0 conda-forge/linux-64 Cached
  • packaging 24.2 pyhd8ed1ab_2 conda-forge/noarch Cached
  • pandas 2.2.3 py311h7db5c69_1 conda-forge/linux-64 Cached
  • pcre2 10.44 hba22ea6_2 conda-forge/linux-64 Cached
  • pillow 11.1.0 py311h1322bbf_0 conda-forge/linux-64 Cached
  • pixman 0.44.2 h29eaf8c_0 conda-forge/linux-64 Cached
  • poppler 24.12.0 hd7b24de_2 conda-forge/linux-64 Cached
  • poppler-data 0.4.12 hd8ed1ab_0 conda-forge/noarch Cached
  • postgresql 17.4 h9e3fa73_0 conda-forge/linux-64 Cached
  • proj 9.5.1 h0054346_0 conda-forge/linux-64 Cached
  • pthread-stubs 0.4 hb9d3cd8_1002 conda-forge/linux-64 Cached
  • pycparser 2.22 pyh29332c3_1 conda-forge/noarch Cached
  • pyogrio 0.10.0 py311hf6089d3_1 conda-forge/linux-64 Cached
  • pyparsing 3.2.1 pyhd8ed1ab_0 conda-forge/noarch Cached
  • pyproj 3.7.1 py311h0f98d5a_0 conda-forge/linux-64 Cached
  • pyshp 2.3.1 pyhd8ed1ab_1 conda-forge/noarch Cached
  • pysocks 1.7.1 pyha55dd90_7 conda-forge/noarch Cached
  • python-dateutil 2.9.0.post0 pyhff2d567_1 conda-forge/noarch Cached
  • python-tzdata 2025.1 pyhd8ed1ab_0 conda-forge/noarch Cached
  • python_abi 3.11 5_cp311 conda-forge/linux-64 Cached
  • pytz 2024.1 pyhd8ed1ab_0 conda-forge/noarch Cached
  • pywavelets 1.8.0 py311h9f3472d_0 conda-forge/linux-64 Cached
  • qhull 2020.2 h434a139_5 conda-forge/linux-64 Cached
  • rasterio 1.4.3 py311h5394301_0 conda-forge/linux-64 Cached
  • rav1e 0.6.6 he8a937b_2 conda-forge/linux-64 Cached
  • re2 2024.07.02 h9925aae_2 conda-forge/linux-64 Cached
  • requests 2.32.3 pyhd8ed1ab_1 conda-forge/noarch Cached
  • richdem 2.3.0 py311hef8459e_12 conda-forge/linux-64 Cached
  • s2n 1.5.11 h072c03f_0 conda-forge/linux-64 Cached
  • scikit-image 0.25.2 py311h7db5c69_0 conda-forge/linux-64 Cached
  • scikit-learn 1.6.1 py311h57cc02b_0 conda-forge/linux-64 Cached
  • scipy 1.15.2 py311h8f841c2_0 conda-forge/linux-64 Cached
  • shapely 2.0.7 py311h2fdb869_0 conda-forge/linux-64 Cached
  • six 1.17.0 pyhd8ed1ab_0 conda-forge/noarch Cached
  • snappy 1.2.1 h8bd8927_1 conda-forge/linux-64 Cached
  • snuggs 1.4.7 pyhd8ed1ab_2 conda-forge/noarch Cached
  • soupsieve 2.5 pyhd8ed1ab_1 conda-forge/noarch Cached
  • sqlite 3.49.1 h9eae976_1 conda-forge/linux-64 Cached
  • svt-av1 3.0.0 h5888daf_0 conda-forge/linux-64 Cached
  • threadpoolctl 3.5.0 pyhc1e730c_0 conda-forge/noarch Cached
  • tifffile 2025.2.18 pyhd8ed1ab_0 conda-forge/noarch Cached
  • tiledb 2.27.1 he4dccf3_0 conda-forge/linux-64 Cached
  • tqdm 4.67.1 pyhd8ed1ab_1 conda-forge/noarch Cached
  • typing-extensions 4.12.2 hd8ed1ab_1 conda-forge/noarch Cached
  • typing_extensions 4.12.2 pyha770c72_1 conda-forge/noarch Cached
  • tzcode 2025a hb9d3cd8_0 conda-forge/linux-64 Cached
  • unicodedata2 16.0.0 py311h9ecbd09_0 conda-forge/linux-64 Cached
  • uriparser 0.9.8 hac33072_0 conda-forge/linux-64 Cached
  • urllib3 2.3.0 pyhd8ed1ab_0 conda-forge/noarch Cached
  • whitebox 2.3.6 pyhd8ed1ab_0 conda-forge/noarch Cached
  • x265 3.5 h924138e_3 conda-forge/linux-64 Cached
  • xerces-c 3.2.5 h988505b_2 conda-forge/linux-64 Cached
  • xorg-libice 1.1.2 hb9d3cd8_0 conda-forge/linux-64 Cached
  • xorg-libsm 1.2.5 he73a12e_0 conda-forge/linux-64 Cached
  • xorg-libx11 1.8.11 h4f16b4b_0 conda-forge/linux-64 Cached
  • xorg-libxau 1.0.12 hb9d3cd8_0 conda-forge/linux-64 Cached
  • xorg-libxdmcp 1.1.5 hb9d3cd8_0 conda-forge/linux-64 Cached
  • xorg-libxext 1.3.6 hb9d3cd8_0 conda-forge/linux-64 Cached
  • xorg-libxrender 0.9.12 hb9d3cd8_0 conda-forge/linux-64 Cached
  • xyzservices 2025.1.0 pyhd8ed1ab_0 conda-forge/noarch Cached
  • zfp 1.0.1 h5888daf_2 conda-forge/linux-64 Cached
  • zipp 3.21.0 pyhd8ed1ab_1 conda-forge/noarch Cached
  • zlib 1.3.1 hb9d3cd8_2 conda-forge/linux-64 Cached
  • zlib-ng 2.2.4 h7955e40_0 conda-forge/linux-64 Cached
  • zstandard 0.19.0 py311hd4cff14_0 conda-forge/linux-64 Cached

Change:
───────────────────────────────────────────────────────────────────────────────────────────────────

  • libxml2 2.13.6 h0d44e9d_0 conda-forge
  • libxml2 2.13.6 h8d12d68_0 conda-forge/linux-64 Cached

Summary:

Install: 210 packages
Change: 1 packages

Total download: 0 B

───────────────────────────────────────────────────────────────────────────────────────────────────

Confirm changes: [Y/n] y

Downloading and Extracting Packages

Preparing transaction: done
Verifying transaction: done
Executing transaction: done

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions