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

Warning Cannot find proj.db #369

Open
cecileherr opened this issue Apr 17, 2024 · 1 comment
Open

Warning Cannot find proj.db #369

cecileherr opened this issue Apr 17, 2024 · 1 comment

Comments

@cecileherr
Copy link
Collaborator

  • niche_vlaanderen version: 1.2
  • Python version: 3
  • Operating System: Win

Niche Python Package question

A user gets the following warning "PROJ: proj_create_from_database: Cannot find proj.db" when he runs this:

import niche_vlaanderen as nv
import matplotlib.pyplot as plt

Any idea what the problem could be?
A quick Google Search suggests a problem with setting PROJ_LIB in Windows with GDAL versions >3.0 which are using Proj versions >6.

Installed packages:

conda list
# packages in environment at C:\Users\wm\.conda\envs\niche:
#
# Name                    Version                   Build  Channel
affine                    2.3.0              pyhd3eb1b0_0  
anyio                     3.5.0           py310haa95532_0  
argon2-cffi               21.3.0             pyhd3eb1b0_0  
argon2-cffi-bindings      21.2.0          py310h2bbff1b_0  
asttokens                 2.0.5              pyhd3eb1b0_0  
async-lru                 2.0.4           py310haa95532_0  
attrs                     23.1.0          py310haa95532_0  
babel                     2.11.0          py310haa95532_0  
backcall                  0.2.0              pyhd3eb1b0_0  
beautifulsoup4            4.12.2          py310haa95532_0  
blas                      1.0                         mkl  
bleach                    4.1.0              pyhd3eb1b0_0  
bottleneck                1.3.5           py310h9128911_0  
brotli                    1.0.9                h2bbff1b_7  
brotli-bin                1.0.9                h2bbff1b_7  
brotli-python             1.0.9           py310hd77b12b_7  
bzip2                     1.0.8                he774522_0  
ca-certificates           2023.12.12           haa95532_0  
certifi                   2023.11.17      py310haa95532_0  
cffi                      1.16.0          py310h2bbff1b_0  
cfitsio                   3.470                h2bbff1b_7  
charset-normalizer        2.0.4              pyhd3eb1b0_0  
click                     8.1.7           py310haa95532_0  
click-plugins             1.1.1              pyhd3eb1b0_0  
cligj                     0.7.2              pyhd3eb1b0_0  
colorama                  0.4.6           py310haa95532_0  
comm                      0.1.2           py310haa95532_0  
contourpy                 1.2.0           py310h59b6b97_0  
cryptography              41.0.7          py310h89fc84f_0  
curl                      8.4.0                he2ea4bf_1  
cycler                    0.11.0             pyhd3eb1b0_0  
debugpy                   1.6.7           py310hd77b12b_0  
decorator                 5.1.1              pyhd3eb1b0_0  
defusedxml                0.7.1              pyhd3eb1b0_0  
exceptiongroup            1.0.4           py310haa95532_0  
executing                 0.8.3              pyhd3eb1b0_0  
expat                     2.5.0                hd77b12b_0  
fiona                     1.8.22          py310h4748b25_0  
fonttools                 4.25.0             pyhd3eb1b0_0  
freetype                  2.12.1               ha860e81_0  
freexl                    1.0.6                h2bbff1b_0  
gdal                      3.0.2                    pypi_0    pypi
geopandas                 0.14.1                   pypi_0    pypi
geos                      3.8.0                h33f27b4_0  
geotiff                   1.7.0                h4545760_1  
giflib                    5.2.1                h8cc25b3_3  
hdf4                      4.2.13               h712560f_2  
hdf5                      1.10.6               h1756f20_1  
icc_rt                    2022.1.0             h6049295_2  
icu                       73.1                 h6c2663c_0  
idna                      3.4             py310haa95532_0  
intel-openmp              2023.1.0         h59b6b97_46320  
ipykernel                 6.25.0          py310h9909e9c_0  
ipython                   8.15.0          py310haa95532_0  
ipywidgets                8.0.4           py310haa95532_0  
jedi                      0.18.1          py310haa95532_1  
jinja2                    3.1.2           py310haa95532_0  
jpeg                      9e                   h2bbff1b_1  
json5                     0.9.6              pyhd3eb1b0_0  
jsonschema                4.19.2          py310haa95532_0  
jsonschema-specifications 2023.7.1        py310haa95532_0  
jupyter                   1.0.0           py310haa95532_8  
jupyter-lsp               2.2.0           py310haa95532_0  
jupyter_client            8.6.0           py310haa95532_0  
jupyter_console           6.6.3           py310haa95532_0  
jupyter_core              5.5.0           py310haa95532_0  
jupyter_events            0.8.0           py310haa95532_0  
jupyter_server            2.10.0          py310haa95532_0  
jupyter_server_terminals  0.4.4           py310haa95532_1  
jupyterlab                4.0.8           py310haa95532_0  
jupyterlab_pygments       0.1.2                      py_0  
jupyterlab_server         2.25.1          py310haa95532_0  
jupyterlab_widgets        3.0.9           py310haa95532_0  
kealib                    1.4.14               hde4a422_1  
kiwisolver                1.4.4           py310hd77b12b_0  
krb5                      1.20.1               h5b6d351_0  
lerc                      3.0                  hd77b12b_0  
libbrotlicommon           1.0.9                h2bbff1b_7  
libbrotlidec              1.0.9                h2bbff1b_7  
libbrotlienc              1.0.9                h2bbff1b_7  
libclang                  14.0.6          default_hb5a9fac_1  
libclang13                14.0.6          default_h8e68704_1  
libcurl                   8.4.0                h86230a5_1  
libdeflate                1.17                 h2bbff1b_1  
libffi                    3.4.4                hd77b12b_0  
libgdal                   3.0.2                hc12e7b7_6  
libiconv                  1.16                 h2bbff1b_2  
libnetcdf                 4.8.1                h6685c40_2  
libpng                    1.6.39               h8cc25b3_0  
libpq                     12.15                h906ac69_1  
libsodium                 1.0.18               h62dcd97_0  
libspatialite             4.3.0a              h6ec8781_23  
libssh2                   1.10.0               he2ea4bf_2  
libtiff                   4.5.1                hd77b12b_0  
libwebp                   1.3.2                hbc33d0d_0  
libwebp-base              1.3.2                h2bbff1b_0  
libxml2                   2.10.4               h0ad7f3c_1  
libzip                    1.8.0                h289538f_1  
lz4-c                     1.9.4                h2bbff1b_0  
m2w64-expat               2.1.1                         2  
m2w64-gcc-libgfortran     5.3.0                         6  
m2w64-gcc-libs            5.3.0                         7  
m2w64-gcc-libs-core       5.3.0                         7  
m2w64-gettext             0.19.7                        2  
m2w64-gmp                 6.1.0                         2  
m2w64-libiconv            1.14                          6  
m2w64-libwinpthread-git   5.0.0.4634.697f757               2  
m2w64-xz                  5.2.2                         2  
markupsafe                2.1.3           py310h2bbff1b_0  
matplotlib                3.8.0           py310haa95532_0  
matplotlib-base           3.8.0           py310h4ed8f06_0  
matplotlib-inline         0.1.6           py310haa95532_0  
mistune                   2.0.4           py310haa95532_0  
mkl                       2023.1.0         h6b88ed4_46358  
mkl-service               2.4.0           py310h2bbff1b_1  
mkl_fft                   1.3.8           py310h2bbff1b_0  
mkl_random                1.2.4           py310h59b6b97_0  
msys2-conda-epoch         20160418                      1  
munch                     2.5.0              pyhd3eb1b0_0  
munkres                   1.1.4                      py_0  
nbclient                  0.8.0           py310haa95532_0  
nbconvert                 7.10.0          py310haa95532_0  
nbformat                  5.9.2           py310haa95532_0  
nest-asyncio              1.5.6           py310haa95532_0  
niche-vlaanderen          1.2                      pypi_0    pypi
notebook                  7.0.6           py310haa95532_0  
notebook-shim             0.2.3           py310haa95532_0  
numexpr                   2.8.7           py310h2cd9be0_0  
numpy                     1.26.3          py310h055cbcc_0  
numpy-base                1.26.3          py310h65a83cf_0  
openjpeg                  2.4.0                h4fc8c34_0  
openssl                   3.0.12               h2bbff1b_0  
overrides                 7.4.0           py310haa95532_0  
packaging                 23.2                     pypi_0    pypi
pandas                    1.5.3           py310h4ed8f06_0  
pandocfilters             1.5.0              pyhd3eb1b0_0  
parso                     0.8.3              pyhd3eb1b0_0  
pickleshare               0.7.5           pyhd3eb1b0_1003  
pillow                    10.0.1          py310h045eedc_0  
pip                       23.3.1          py310haa95532_0  
platformdirs              3.10.0          py310haa95532_0  
ply                       3.11            py310haa95532_0  
proj                      6.2.1                h3758d61_0  
prometheus_client         0.14.1          py310haa95532_0  
prompt-toolkit            3.0.36          py310haa95532_0  
prompt_toolkit            3.0.36               hd3eb1b0_0  
psutil                    5.9.0           py310h2bbff1b_0  
pure_eval                 0.2.2              pyhd3eb1b0_0  
pycparser                 2.21               pyhd3eb1b0_0  
pygments                  2.15.1          py310haa95532_1  
pyopenssl                 23.2.0          py310haa95532_0  
pyparsing                 3.0.9           py310haa95532_0  
pyproj                    3.6.1                    pypi_0    pypi
pyqt                      5.15.10         py310hd77b12b_0  
pyqt5-sip                 12.13.0         py310h2bbff1b_0  
pysocks                   1.7.1           py310haa95532_0  
python                    3.10.13              he1021f5_0  
python-dateutil           2.8.2              pyhd3eb1b0_0  
python-fastjsonschema     2.16.2          py310haa95532_0  
python-json-logger        2.0.7           py310haa95532_0  
pytz                      2023.3.post1    py310haa95532_0  
pywin32                   305             py310h2bbff1b_0  
pywinpty                  2.0.10          py310h5da7b33_0  
pyyaml                    6.0.1           py310h2bbff1b_0  
pyzmq                     25.1.0          py310hd77b12b_0  
qt-main                   5.15.2              h19c9488_10  
qtconsole                 5.5.0           py310haa95532_0  
qtpy                      2.4.1           py310haa95532_0  
rasterio                  1.2.10          py310h05ce7db_0  
rasterstats               0.19.0                   pypi_0    pypi
referencing               0.30.2          py310haa95532_0  
requests                  2.31.0          py310haa95532_0  
rfc3339-validator         0.1.4           py310haa95532_0  
rfc3986-validator         0.1.1           py310haa95532_0  
rpds-py                   0.10.6          py310h062c2fa_0  
send2trash                1.8.2           py310haa95532_0  
setuptools                68.2.2          py310haa95532_0  
shapely                   2.0.1           py310h6c53999_0  
simplejson                3.19.2                   pypi_0    pypi
sip                       6.7.12          py310hd77b12b_0  
six                       1.16.0             pyhd3eb1b0_1  
sniffio                   1.2.0           py310haa95532_1  
snuggs                    1.4.7              pyhd3eb1b0_0  
soupsieve                 2.5             py310haa95532_0  
sqlite                    3.41.2               h2bbff1b_0  
stack_data                0.2.0              pyhd3eb1b0_0  
tbb                       2021.8.0             h59b6b97_0  
terminado                 0.17.1          py310haa95532_0  
tiledb                    2.3.3                hd8964de_3  
tinycss2                  1.2.1           py310haa95532_0  
tk                        8.6.12               h2bbff1b_0  
tomli                     2.0.1           py310haa95532_0  
tornado                   6.3.3           py310h2bbff1b_0  
tqdm                      4.66.1                   pypi_0    pypi
traitlets                 5.7.1           py310haa95532_0  
typing-extensions         4.7.1           py310haa95532_0  
typing_extensions         4.7.1           py310haa95532_0  
tzdata                    2023c                h04d1e81_0  
urllib3                   1.26.18         py310haa95532_0  
vc                        14.2                 h21ff451_1  
vs2015_runtime            14.27.29016          h5e58377_2  
wcwidth                   0.2.5              pyhd3eb1b0_0  
webencodings              0.5.1           py310haa95532_1  
websocket-client          0.58.0          py310haa95532_4  
wheel                     0.41.2          py310haa95532_0  
widgetsnbextension        4.0.5           py310haa95532_0  
win_inet_pton             1.1.0           py310haa95532_0  
winpty                    0.4.3                         4  
xerces-c                  3.2.4                hd77b12b_1  
xz                        5.4.5                h8cc25b3_0  
yaml                      0.2.5                he774522_0  
zeromq                    4.3.4                hd77b12b_0  
zlib                      1.2.13               h8cc25b3_0  
zstd                      1.5.5                hd43e919_0  
pip list
Package                   Version
------------------------- ------------
affine                    2.3.0
anyio                     3.5.0
argon2-cffi               21.3.0
argon2-cffi-bindings      21.2.0
asttokens                 2.0.5
async-lru                 2.0.4
attrs                     23.1.0
Babel                     2.11.0
backcall                  0.2.0
beautifulsoup4            4.12.2
bleach                    4.1.0
Bottleneck                1.3.5
Brotli                    1.0.9
certifi                   2023.11.17
cffi                      1.16.0
charset-normalizer        2.0.4
click                     8.1.7
click-plugins             1.1.1
cligj                     0.7.2
colorama                  0.4.6
comm                      0.1.2
contourpy                 1.2.0
cryptography              41.0.7
cycler                    0.11.0
debugpy                   1.6.7
decorator                 5.1.1
defusedxml                0.7.1
exceptiongroup            1.0.4
executing                 0.8.3
fastjsonschema            2.16.2
Fiona                     1.8.22
fonttools                 4.25.0
GDAL                      3.0.2
geopandas                 0.14.1
idna                      3.4
ipykernel                 6.25.0
ipython                   8.15.0
ipywidgets                8.0.4
jedi                      0.18.1
Jinja2                    3.1.2
json5                     0.9.6
jsonschema                4.19.2
jsonschema-specifications 2023.7.1
jupyter                   1.0.0
jupyter_client            8.6.0
jupyter-console           6.6.3
jupyter_core              5.5.0
jupyter-events            0.8.0
jupyter-lsp               2.2.0
jupyter_server            2.10.0
jupyter_server_terminals  0.4.4
jupyterlab                4.0.8
jupyterlab-pygments       0.1.2
jupyterlab_server         2.25.1
jupyterlab-widgets        3.0.9
kiwisolver                1.4.4
MarkupSafe                2.1.3
matplotlib                3.8.0
matplotlib-inline         0.1.6
mistune                   2.0.4
mkl-fft                   1.3.8
mkl-random                1.2.4
mkl-service               2.4.0
munch                     2.5.0
munkres                   1.1.4
nbclient                  0.8.0
nbconvert                 7.10.0
nbformat                  5.9.2
nest-asyncio              1.5.6
niche-vlaanderen          1.2
notebook                  7.0.6
notebook_shim             0.2.3
numexpr                   2.8.7
numpy                     1.26.3
overrides                 7.4.0
packaging                 23.1
pandas                    1.5.3
pandocfilters             1.5.0
parso                     0.8.3
pickleshare               0.7.5
Pillow                    10.0.1
pip                       23.3.1
platformdirs              3.10.0
ply                       3.11
prometheus-client         0.14.1
prompt-toolkit            3.0.36
psutil                    5.9.0
pure-eval                 0.2.2
pycparser                 2.21
Pygments                  2.15.1
pyOpenSSL                 23.2.0
pyparsing                 3.0.9
pyproj                    3.6.1
PyQt5                     5.15.10
PyQt5-sip                 12.13.0
PySocks                   1.7.1
python-dateutil           2.8.2
python-json-logger        2.0.7
pytz                      2023.3.post1
pywin32                   305.1
pywinpty                  2.0.10
PyYAML                    6.0.1
pyzmq                     25.1.0
qtconsole                 5.5.0
QtPy                      2.4.1
rasterio                  1.2.10
rasterstats               0.19.0
referencing               0.30.2
requests                  2.31.0
rfc3339-validator         0.1.4
rfc3986-validator         0.1.1
rpds-py                   0.10.6
Send2Trash                1.8.2
setuptools                68.2.2
shapely                   2.0.1
simplejson                3.19.2
sip                       6.7.12
six                       1.16.0
sniffio                   1.2.0
snuggs                    1.4.7
soupsieve                 2.5
stack-data                0.2.0
terminado                 0.17.1
tinycss2                  1.2.1
tomli                     2.0.1
tornado                   6.3.3
tqdm                      4.66.1
traitlets                 5.7.1
typing_extensions         4.7.1
urllib3                   1.26.18
wcwidth                   0.2.5
webencodings              0.5.1
websocket-client          0.58.0
wheel                     0.41.2
widgetsnbextension        4.0.5
win-inet-pton             1.1.0

I do not get the warning on my computer with:

gdal                      3.6.3           py311h4bd9738_0    conda-forge
proj                      9.1.1                heca977f_2    conda-forge
GDAL                     3.6.3
@johanvdw
Copy link
Collaborator

For just using niche this should be harmless: we don't use any projection functions directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants