conda-forge / r-rgdal-feedstock

A conda-smithy repository for r-rgdal.
BSD 3-Clause "New" or "Revised" License
2 stars 9 forks source link

r-rgdal, PROJ6 and "+init=epsg" syntax #31

Closed JamesSample closed 5 years ago

JamesSample commented 5 years ago

I am trying to setup r-rgdal within a JupyterLab environment using a Docker container based on Ubuntu 18.04 and derived from the Jupyter Data Science Notebook Docker stack.

The following minimal Dockerfile reproduces my issue, although my "real" Dockerfile is a bit more complicated.

ARG BASE_CONTAINER=jupyter/datascience-notebook:2ce7c06a61a1
FROM $BASE_CONTAINER

# Use strict channel priority for conda
RUN conda config --set channel_priority strict

# Install conda-forge packages
RUN conda install -c conda-forge --quiet --yes \
    'gdal' \
    'proj4' \
    'r-rgdal' && \
    conda clean --all -f -y && \
    fix-permissions $CONDA_DIR && \
    fix-permissions /home/$NB_USER

USER $NB_UID

This builds without errors and I can start JupyterLab using

 docker run -ti --rm -p 8888:8888 -v ${PWD}:/home/jovyan/work my_image start.sh jupyter lab

If I then create an R notebook and run library(rgdal), I see the following, which looks OK

Loading required package: sp
rgdal: version: 1.4-4, (SVN revision 833)
 Geospatial Data Abstraction Library extensions to R successfully loaded
 Loaded GDAL runtime: GDAL 3.0.1, released 2019/06/28
 Path to GDAL shared files: 
 GDAL binary built with GEOS: TRUE 
 Loaded PROJ.4 runtime: Rel. 6.1.1, July 1st, 2019, [PJ_VERSION: 611]
 Path to PROJ.4 shared files: (autodetected)
 Linking to sp version: 1.3-1 

However, if I try CRS("+init=epsg:3035") I get the following error

Error in CRS("+init=epsg:3035"): no arguments in initialization list

The same code works fine using rgdal installed locally via R-Studio. I've also asked on the r-sig-geo mailing list and it appears that this should work with recent versions of rgdal and PROJ version 6 (see the discussion here for further details).

I realise there are various issues for both Python and R relating to API changes in PROJ6, but I think CRS("+init=epsg:3035") should still work (?).

Does anyone have any suggestions, please? I'm currently unsure whether:

  1. This is a "local" problem with my installation
  2. I need to switch to a different syntax for PROJ6 (if so, what?), or
  3. This is a build issue with r-rgdal/proj/gdal on conda-forge?

Thanks in advance for any suggestions! :-)


Environment (conda list):

``` $ conda list # packages in environment at /opt/conda: # # Name Version Build Channel _libgcc_mutex 0.1 main defaults _r-mutex 1.0.1 anacondar_1 conda-forge alembic 1.0.11 py_0 conda-forge asn1crypto 0.24.0 py37_1003 conda-forge async_generator 1.10 py_0 conda-forge attrs 19.1.0 py_0 conda-forge backcall 0.1.0 py_0 conda-forge beautifulsoup4 4.8.0 py37_0 conda-forge binutils_impl_linux-64 2.31.1 h6176602_1 defaults binutils_linux-64 2.31.1 h6176602_8 defaults blas 2.11 openblas conda-forge bleach 3.1.0 py_0 conda-forge blinker 1.4 py_1 conda-forge bokeh 1.3.4 py37_0 conda-forge boost-cpp 1.70.0 h8e57a91_2 conda-forge bwidget 1.9.11 0 conda-forge bzip2 1.0.8 h516909a_0 conda-forge ca-certificates 2019.9.11 hecc5488_0 conda-forge cairo 1.16.0 hfb77d84_1002 conda-forge certifi 2019.9.11 py37_0 conda-forge certipy 0.1.3 py_0 conda-forge cffi 1.12.3 py37h8022711_0 conda-forge cfitsio 3.470 hb60a0a2_2 conda-forge chardet 3.0.4 py37_1003 conda-forge click 7.0 py_0 conda-forge cloudpickle 1.2.1 py_0 conda-forge conda 4.7.10 py37_0 conda-forge conda-package-handling 1.4.0 py37_0 conda-forge configurable-http-proxy 4.1.0 node11_1 conda-forge cryptography 2.7 py37h72c5cf5_0 conda-forge curl 7.65.3 hf8cf82a_0 conda-forge cycler 0.10.0 py_1 conda-forge cython 0.29.13 py37he1b5a44_0 conda-forge cytoolz 0.10.0 py37h516909a_0 conda-forge dask 2.2.0 py_0 conda-forge dask-core 2.2.0 py_0 conda-forge decorator 4.4.0 py_0 conda-forge defusedxml 0.5.0 py_1 conda-forge dill 0.3.0 py37_0 conda-forge distributed 2.2.0 py_1 conda-forge entrypoints 0.3 py37_1000 conda-forge expat 2.2.5 he1b5a44_1003 conda-forge fastcache 1.1.0 py37h516909a_0 conda-forge fontconfig 2.13.1 h86ecdb6_1001 conda-forge freetype 2.10.0 he983fc9_1 conda-forge freexl 1.0.5 h14c3975_1002 conda-forge fribidi 1.0.5 h516909a_1002 conda-forge fsspec 0.4.1 py_0 conda-forge gcc_impl_linux-64 7.3.0 habb00fd_1 conda-forge gcc_linux-64 7.3.0 h553295d_8 conda-forge gdal 3.0.1 py37hbb6b9fb_8 conda-forge geos 3.7.2 he1b5a44_1 conda-forge geotiff 1.5.1 hcd53e25_3 conda-forge gettext 0.19.8.1 hc5be6a0_1002 conda-forge gfortran_impl_linux-64 7.3.0 hdf63c60_1 defaults gfortran_linux-64 7.3.0 h553295d_8 defaults giflib 5.1.7 h516909a_1 conda-forge glib 2.58.3 h6f030ca_1002 conda-forge gmp 6.1.2 hf484d3e_1000 conda-forge gmpy2 2.1.0b1 py37h04dde30_0 conda-forge graphite2 1.3.13 hf484d3e_1000 conda-forge gsl 2.5 h294904e_0 conda-forge gxx_impl_linux-64 7.3.0 hdf63c60_1 conda-forge gxx_linux-64 7.3.0 h553295d_8 conda-forge h5py 2.9.0 nompi_py37h513d04c_1104 conda-forge harfbuzz 2.4.0 h9f30f68_2 conda-forge hdf4 4.2.13 h9a582f1_1002 conda-forge hdf5 1.10.5 nompi_h3c11f04_1100 conda-forge heapdict 1.0.0 py37_1000 conda-forge icu 64.2 he1b5a44_0 conda-forge idna 2.8 py37_1000 conda-forge imageio 2.5.0 py37_0 conda-forge ipykernel 5.1.1 py37h5ca1d4c_0 conda-forge ipython 7.7.0 py37h5ca1d4c_0 conda-forge ipython_genutils 0.2.0 py_1 conda-forge ipywidgets 7.5.1 py_0 conda-forge jedi 0.14.1 py37_0 conda-forge jinja2 2.10.1 py_0 conda-forge joblib 0.13.2 py_0 conda-forge jpeg 9c h14c3975_1001 conda-forge json-c 0.13.1 h14c3975_1001 conda-forge json5 0.8.5 py_0 conda-forge jsonschema 3.0.2 py37_0 conda-forge jupyter_client 5.3.1 py_0 conda-forge jupyter_core 4.4.0 py_0 conda-forge jupyterhub 1.0.0 py37_0 conda-forge jupyterlab 1.0.4 py37_0 conda-forge jupyterlab_server 1.0.0 py_1 conda-forge kealib 1.4.10 h58c409b_1005 conda-forge kiwisolver 1.1.0 py37hc9558a2_0 conda-forge krb5 1.16.3 h05b26f9_1001 conda-forge libarchive 3.3.3 hb44662c_1005 conda-forge libblas 3.8.0 11_openblas conda-forge libcblas 3.8.0 11_openblas conda-forge libcurl 7.65.3 hda55be3_0 conda-forge libdap4 3.20.4 hd3bb157_0 conda-forge libedit 3.1.20170329 hf8c457e_1001 conda-forge libffi 3.2.1 he1b5a44_1006 conda-forge libgcc-ng 9.1.0 hdf63c60_0 defaults libgdal 3.0.1 hf47eb90_8 conda-forge libgfortran-ng 7.3.0 hdf63c60_0 defaults libiconv 1.15 h516909a_1005 conda-forge libkml 1.3.0 h4fcabce_1010 conda-forge liblapack 3.8.0 11_openblas conda-forge liblapacke 3.8.0 11_openblas conda-forge libnetcdf 4.6.2 h303dfb8_1003 conda-forge libopenblas 0.3.6 h6e990d7_6 conda-forge libpng 1.6.37 hed695b0_0 conda-forge libpq 11.5 hd9ab2ff_1 conda-forge libprotobuf 3.9.1 h8b12597_0 conda-forge libsodium 1.0.17 h516909a_0 conda-forge libspatialite 4.3.0a h57ae47a_1030 conda-forge libssh2 1.8.2 h22169c7_2 conda-forge libstdcxx-ng 9.1.0 hdf63c60_0 defaults libtiff 4.0.10 h57b8799_1003 conda-forge libuuid 2.32.1 h14c3975_1000 conda-forge libxcb 1.13 h14c3975_1002 conda-forge libxml2 2.9.9 hee79883_2 conda-forge llvmlite 0.29.0 py37hfd453ef_1 conda-forge locket 0.2.0 py_2 conda-forge lz4-c 1.8.3 he1b5a44_1001 conda-forge lzo 2.10 h14c3975_1000 conda-forge make 4.2.1 h14c3975_2004 conda-forge mako 1.0.14 py_0 conda-forge markupsafe 1.1.1 py37h14c3975_0 conda-forge matplotlib-base 3.1.1 py37he7580a8_1 conda-forge mistune 0.8.4 py37h14c3975_1000 conda-forge mpc 1.1.0 hb20f59a_1006 conda-forge mpfr 4.0.2 ha14ba45_0 conda-forge mpmath 1.1.0 py_0 conda-forge msgpack-python 0.6.1 py37h6bb024c_0 conda-forge nbconvert 5.5.0 py_0 conda-forge nbformat 4.4.0 py_1 conda-forge ncurses 6.1 hf484d3e_1002 conda-forge networkx 2.3 py_0 conda-forge nodejs 11.14.0 he1b5a44_1 conda-forge notebook 6.0.0 py37_0 conda-forge numba 0.45.1 py37hb3f55d8_0 conda-forge numexpr 2.6.9 py37h637b7d7_1000 conda-forge numpy 1.17.0 py37h95a1406_0 conda-forge oauthlib 3.0.1 py_0 conda-forge olefile 0.46 py_0 conda-forge openjpeg 2.3.1 h21c5421_1 conda-forge openssl 1.1.1c h516909a_0 conda-forge packaging 19.0 py_0 conda-forge pamela 1.0.0 py_0 conda-forge pandas 0.25.0 py37hb3f55d8_0 conda-forge pandoc 2.7.3 0 conda-forge pandocfilters 1.4.2 py_1 conda-forge pango 1.42.4 he7ab937_0 conda-forge parso 0.5.1 py_0 conda-forge partd 1.0.0 py_0 conda-forge patsy 0.5.1 py_0 conda-forge pcre 8.41 hf484d3e_1003 conda-forge pexpect 4.7.0 py37_0 conda-forge pickleshare 0.7.5 py37_1000 conda-forge pillow 6.1.0 py37h6b7be26_1 conda-forge pip 19.2.1 py37_0 conda-forge pixman 0.38.0 h516909a_1003 conda-forge poppler 0.67.0 ha967d66_7 conda-forge poppler-data 0.4.9 1 conda-forge postgresql 11.5 hc63931a_1 conda-forge proj4 6.1.1 hc80f0dc_1 conda-forge prometheus_client 0.7.1 py_0 conda-forge prompt_toolkit 2.0.9 py_0 conda-forge protobuf 3.9.1 py37he1b5a44_0 conda-forge psutil 5.6.3 py37h516909a_0 conda-forge pthread-stubs 0.4 h14c3975_1001 conda-forge ptyprocess 0.6.0 py_1001 conda-forge pycosat 0.6.3 py37h14c3975_1001 conda-forge pycparser 2.19 py37_1 conda-forge pycurl 7.43.0.2 py37h16ce93b_1 conda-forge pygments 2.4.2 py_0 conda-forge pyjwt 1.7.1 py_0 conda-forge pyopenssl 19.0.0 py37_0 conda-forge pyparsing 2.4.2 py_0 conda-forge pyrsistent 0.15.4 py37h516909a_0 conda-forge pysocks 1.7.0 py37_0 conda-forge python 3.7.3 h33d41f4_1 conda-forge python-dateutil 2.8.0 py_0 conda-forge python-editor 1.0.4 py_0 conda-forge python-libarchive-c 2.8 py37_1004 conda-forge pytz 2019.2 py_0 conda-forge pywavelets 1.0.3 py37hd352d35_1 conda-forge pyyaml 5.1.2 py37h516909a_0 conda-forge pyzmq 18.0.2 py37h1768529_2 conda-forge r-askpass 1.1 r36hcdcec82_1 conda-forge r-assertthat 0.2.1 r36h6115d3f_1 conda-forge r-backports 1.1.4 r36hcdcec82_1 conda-forge r-base 3.6.1 h6e652e1_3 conda-forge r-base64enc 0.1_3 r36hcdcec82_1003 conda-forge r-bh 1.69.0_1 r36h6115d3f_1 conda-forge r-bit 1.1_14 r36hcdcec82_1 conda-forge r-bit64 0.9_7 r36hcdcec82_1001 conda-forge r-bitops 1.0_6 r36hcdcec82_1003 conda-forge r-blob 1.2.0 r36_1 conda-forge r-brew 1.0_6 r36h6115d3f_1002 conda-forge r-broom 0.5.2 r36h6115d3f_1 conda-forge r-callr 3.3.1 r36h6115d3f_0 conda-forge r-caret 6.0_84 r36hcdcec82_1 conda-forge r-cellranger 1.1.0 r36h6115d3f_1002 conda-forge r-class 7.3_15 r36hcdcec82_1001 conda-forge r-cli 1.1.0 r36h6115d3f_1 conda-forge r-clipr 0.7.0 r36h6115d3f_0 conda-forge r-clisymbols 1.2.0 r36h6115d3f_1002 conda-forge r-codetools 0.2_16 r36h6115d3f_1001 conda-forge r-colorspace 1.4_1 r36hcdcec82_1 conda-forge r-commonmark 1.7 r36hcdcec82_1001 conda-forge r-config 0.3 r36h6115d3f_1002 conda-forge r-crayon 1.3.4 r36h6115d3f_1002 conda-forge r-curl 4.0 r36hcdcec82_0 conda-forge r-data.table 1.12.2 r36hcdcec82_1 conda-forge r-dbi 1.0.0 r36h6115d3f_1002 conda-forge r-dbplyr 1.4.2 r36h6115d3f_1 conda-forge r-desc 1.2.0 r36h6115d3f_1002 conda-forge r-devtools 2.1.0 r36h6115d3f_1 conda-forge r-digest 0.6.20 r36h0357c0b_1 conda-forge r-dplyr 0.8.3 r36h0357c0b_1 conda-forge r-ellipsis 0.2.0.1 r36hcdcec82_1 conda-forge r-evaluate 0.14 r36h6115d3f_1 conda-forge r-fansi 0.4.0 r36hcdcec82_1001 conda-forge r-forcats 0.4.0 r36h6115d3f_1 conda-forge r-foreach 1.4.7 r36h6115d3f_0 conda-forge r-forecast 8.7 r36h0357c0b_1 conda-forge r-forge 0.2.0 r36h6115d3f_1 conda-forge r-fracdiff 1.4_2 r36hcdcec82_1003 conda-forge r-fs 1.3.1 r36h0357c0b_1 conda-forge r-generics 0.0.2 r36h6115d3f_1002 conda-forge r-ggplot2 3.2.0 r36h6115d3f_1 conda-forge r-gh 1.0.1 r36h6115d3f_1002 conda-forge r-git2r 0.26.1 r36h5ca76e2_1 conda-forge r-glue 1.3.1 r36hcdcec82_1 conda-forge r-gower 0.2.1 r36hcdcec82_1 conda-forge r-gtable 0.3.0 r36h6115d3f_2 conda-forge r-haven 2.1.1 r36h0357c0b_1 conda-forge r-hexbin 1.27.3 r36h9bbef5b_1 conda-forge r-highr 0.8 r36h6115d3f_1 conda-forge r-hms 0.5.0 r36h6115d3f_1 conda-forge r-htmltools 0.3.6 r36he1b5a44_1003 conda-forge r-htmlwidgets 1.3 r36h6115d3f_1001 conda-forge r-httpuv 1.5.1 r36h0357c0b_1 conda-forge r-httr 1.4.1 r36h6115d3f_0 conda-forge r-ini 0.3.1 r36h6115d3f_1002 conda-forge r-ipred 0.9_9 r36hcdcec82_1 conda-forge r-irdisplay 0.7 r36_1001 conda-forge r-irkernel 1.0.2 r36h6115d3f_2 conda-forge r-iterators 1.0.12 r36h6115d3f_0 conda-forge r-jsonlite 1.6 r36hcdcec82_1001 conda-forge r-kernsmooth 2.23_15 r36h9bbef5b_1003 conda-forge r-knitr 1.24 r36h6115d3f_0 conda-forge r-labeling 0.3 r36h6115d3f_1002 conda-forge r-later 0.8.0 r36h0357c0b_1 conda-forge r-lattice 0.20_38 r36hcdcec82_1002 conda-forge r-lava 1.6.5 r36h6115d3f_1 conda-forge r-lazyeval 0.2.2 r36hcdcec82_1 conda-forge r-lmtest 0.9_37 r36h9bbef5b_1 conda-forge r-lubridate 1.7.4 r36h0357c0b_1002 conda-forge r-magrittr 1.5 r36h6115d3f_1002 conda-forge r-markdown 1.1 r36hcdcec82_0 conda-forge r-mass 7.3_51.4 r36hcdcec82_1 conda-forge r-matrix 1.2_17 r36hcdcec82_1 conda-forge r-memoise 1.1.0 r36h6115d3f_1002 conda-forge r-mgcv 1.8_28 r36hcdcec82_1 conda-forge r-mime 0.7 r36hcdcec82_1 conda-forge r-modelmetrics 1.2.2 r36h0357c0b_1 conda-forge r-modelr 0.1.5 r36h6115d3f_0 conda-forge r-munsell 0.5.0 r36h6115d3f_1002 conda-forge r-nlme 3.1_141 r36h9bbef5b_0 conda-forge r-nnet 7.3_12 r36hcdcec82_1003 conda-forge r-numderiv 2016.8_1.1 r36h6115d3f_1 conda-forge r-nycflights13 1.0.0 r36_1001 conda-forge r-openssl 1.4.1 r36h9c8475f_0 conda-forge r-pbdzmq 0.3_3 r36h559a7a4_1002 conda-forge r-pillar 1.4.2 r36h6115d3f_2 conda-forge r-pkgbuild 1.0.4 r36h6115d3f_0 conda-forge r-pkgconfig 2.0.2 r36h6115d3f_1002 conda-forge r-pkgload 1.0.2 r36h0357c0b_1001 conda-forge r-plogr 0.2.0 r36h6115d3f_1002 conda-forge r-plyr 1.8.4 r36h0357c0b_1003 conda-forge r-praise 1.0.0 r36h6115d3f_1002 conda-forge r-prettyunits 1.0.2 r36h6115d3f_1002 conda-forge r-processx 3.4.1 r36hcdcec82_0 conda-forge r-prodlim 2018.04.18 r36h0357c0b_1003 conda-forge r-progress 1.2.2 r36h6115d3f_1 conda-forge r-promises 1.0.1 r36h0357c0b_1001 conda-forge r-ps 1.3.0 r36hcdcec82_1001 conda-forge r-purrr 0.3.2 r36hcdcec82_1 conda-forge r-quadprog 1.5_7 r36h9bbef5b_1 conda-forge r-quantmod 0.4_15 r36h6115d3f_1 conda-forge r-r2d3 0.2.3 r36h6115d3f_1001 conda-forge r-r6 2.4.0 r36h6115d3f_2 conda-forge r-randomforest 4.6_14 r36h9bbef5b_1001 conda-forge r-rappdirs 0.3.1 r36hcdcec82_1003 conda-forge r-rcmdcheck 1.3.3 r36h6115d3f_1 conda-forge r-rcolorbrewer 1.1_2 r36h6115d3f_1002 conda-forge r-rcpp 1.0.2 r36h0357c0b_0 conda-forge r-rcpparmadillo 0.9.500.2.0 r36h0357c0b_1 conda-forge r-rcurl 1.95_4.12 r36hcdcec82_1 conda-forge r-readr 1.3.1 r36h0357c0b_1001 conda-forge r-readxl 1.3.1 r36h0357c0b_1 conda-forge r-recipes 0.1.6 r36h6115d3f_1 conda-forge r-rematch 1.0.1 r36h6115d3f_1002 conda-forge r-remotes 2.1.0 r36h6115d3f_1 conda-forge r-repr 1.0.1 r36h6115d3f_1 conda-forge r-reprex 0.3.0 r36h6115d3f_1 conda-forge r-reshape2 1.4.3 r36h0357c0b_1004 conda-forge r-rgdal 1.4_4 r36h33584d0_4 conda-forge r-rlang 0.4.0 r36hcdcec82_1 conda-forge r-rmarkdown 1.14 r36h6115d3f_1 conda-forge r-roxygen2 6.1.1 r36h0357c0b_1001 conda-forge r-rpart 4.1_15 r36hcdcec82_1 conda-forge r-rprojroot 1.3_2 r36h6115d3f_1002 conda-forge r-rsqlite 2.1.2 r36h0357c0b_0 conda-forge r-rstudioapi 0.10 r36h6115d3f_1 conda-forge r-rvest 0.3.4 r36h6115d3f_1 conda-forge r-scales 1.0.0 r36h0357c0b_1002 conda-forge r-selectr 0.4_1 r36h6115d3f_1001 conda-forge r-sessioninfo 1.1.1 r36h6115d3f_1001 conda-forge r-shiny 1.3.2 r36h6115d3f_1 conda-forge r-sourcetools 0.1.7 r36he1b5a44_1001 conda-forge r-sp 1.3_1 r36hcdcec82_1001 conda-forge r-sparklyr 1.0.2 r36h6115d3f_1 conda-forge r-squarem 2017.10_1 r36h6115d3f_1002 conda-forge r-stringi 1.4.3 r36h0e574ca_3 conda-forge r-stringr 1.4.0 r36h6115d3f_1 conda-forge r-survival 2.44_1.1 r36hcdcec82_1 conda-forge r-sys 3.2 r36hcdcec82_1 conda-forge r-testthat 2.2.1 r36h0357c0b_0 conda-forge r-tibble 2.1.3 r36hcdcec82_1 conda-forge r-tidyr 0.8.3 r36h0357c0b_1 conda-forge r-tidyselect 0.2.5 r36h0357c0b_1001 conda-forge r-tidyverse 1.2.1 r36h6115d3f_1002 conda-forge r-timedate 3043.102 r36h6115d3f_1001 conda-forge r-tinytex 0.15 r36h6115d3f_0 conda-forge r-tseries 0.10_47 r36h9bbef5b_1 conda-forge r-ttr 0.23_4 r36h9bbef5b_1001 conda-forge r-urca 1.3_0 r36h9bbef5b_1003 conda-forge r-usethis 1.5.1 r36h6115d3f_1 conda-forge r-utf8 1.1.4 r36hcdcec82_1001 conda-forge r-uuid 0.1_2 r36hcdcec82_1002 conda-forge r-vctrs 0.2.0 r36hcdcec82_1 conda-forge r-viridislite 0.3.0 r36h6115d3f_1002 conda-forge r-whisker 0.3_2 r36h6115d3f_1002 conda-forge r-withr 2.1.2 r36h6115d3f_1001 conda-forge r-xfun 0.8 r36h6115d3f_1 conda-forge r-xml2 1.2.2 r36h0357c0b_0 conda-forge r-xopen 1.0.0 r36h6115d3f_1001 conda-forge r-xtable 1.8_4 r36h6115d3f_2 conda-forge r-xts 0.11_2 r36hcdcec82_1 conda-forge r-yaml 2.2.0 r36hcdcec82_1002 conda-forge r-zeallot 0.1.0 r36h6115d3f_1001 conda-forge r-zoo 1.8_6 r36hcdcec82_1 conda-forge readline 8.0 hf8c457e_0 conda-forge requests 2.22.0 py37_1 conda-forge rpy2 2.9.4 py37r36hd767a1f_3 conda-forge ruamel_yaml 0.15.71 py37h14c3975_1000 conda-forge scikit-image 0.15.0 py37hb3f55d8_2 conda-forge scikit-learn 0.21.3 py37hcdab131_0 conda-forge scipy 1.3.1 py37h921218d_1 conda-forge seaborn 0.9.0 py_1 conda-forge sed 4.7 h1bed415_1000 conda-forge send2trash 1.5.0 py_0 conda-forge setuptools 41.0.1 py37_0 conda-forge simplegeneric 0.8.1 py_1 conda-forge six 1.12.0 py37_1000 conda-forge sortedcontainers 2.1.0 py_0 conda-forge soupsieve 1.9.2 py37_0 conda-forge sqlalchemy 1.3.6 py37h516909a_0 conda-forge sqlite 3.29.0 hcee41ef_0 conda-forge statsmodels 0.10.1 py37hc1659b7_0 conda-forge sympy 1.4 py37_0 conda-forge tbb 2018.0.5 h2d50403_0 conda-forge tblib 1.4.0 py_0 conda-forge terminado 0.8.2 py37_0 conda-forge testpath 0.4.2 py_1001 conda-forge tiledb 1.6.2 h69c774e_1 conda-forge tini 0.18.0 h14c3975_1001 conda-forge tk 8.6.9 hed695b0_1002 conda-forge tktable 2.10 h555a92e_1 conda-forge toolz 0.10.0 py_0 conda-forge tornado 6.0.3 py37h516909a_0 conda-forge tqdm 4.32.2 py_0 conda-forge traitlets 4.3.2 py37_1000 conda-forge tzcode 2019a h516909a_1002 conda-forge tzlocal 2.0.0 py_0 conda-forge urllib3 1.25.3 py37_0 conda-forge vincent 0.4.4 py_1 conda-forge wcwidth 0.1.7 py_1 conda-forge webencodings 0.5.1 py_1 conda-forge wheel 0.33.4 py37_0 conda-forge widgetsnbextension 3.5.1 py37_0 conda-forge xerces-c 3.2.2 h8412b87_1004 conda-forge xlrd 1.2.0 py_0 conda-forge xorg-kbproto 1.0.7 h14c3975_1002 conda-forge xorg-libice 1.0.10 h516909a_0 conda-forge xorg-libsm 1.2.3 h84519dc_1000 conda-forge xorg-libx11 1.6.8 h516909a_0 conda-forge xorg-libxau 1.0.9 h14c3975_0 conda-forge xorg-libxdmcp 1.1.3 h516909a_0 conda-forge xorg-libxext 1.3.4 h516909a_0 conda-forge xorg-libxrender 0.9.10 h516909a_1002 conda-forge xorg-renderproto 0.11.1 h14c3975_1002 conda-forge xorg-xextproto 7.3.0 h14c3975_1002 conda-forge xorg-xproto 7.0.31 h14c3975_1007 conda-forge xz 5.2.4 h14c3975_1001 conda-forge yaml 0.1.7 h14c3975_1001 conda-forge zeromq 4.3.2 he1b5a44_2 conda-forge zict 1.0.0 py_0 conda-forge zlib 1.2.11 h516909a_1005 conda-forge zstd 1.4.0 h3b9ef0a_0 conda-forge ```


Details about conda and system ( conda info ):

``` $ conda info active environment : None user config file : /home/jovyan/.condarc populated config files : /opt/conda/.condarc /home/jovyan/.condarc conda version : 4.7.10 conda-build version : not installed python version : 3.7.3.final.0 virtual packages : base environment : /opt/conda (writable) channel URLs : https://conda.anaconda.org/conda-forge/linux-64 https://conda.anaconda.org/conda-forge/noarch https://repo.anaconda.com/pkgs/main/linux-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/linux-64 https://repo.anaconda.com/pkgs/r/noarch package cache : /opt/conda/pkgs /home/jovyan/.conda/pkgs envs directories : /opt/conda/envs /home/jovyan/.conda/envs platform : linux-64 user-agent : conda/4.7.10 requests/2.22.0 CPython/3.7.3 Linux/4.9.93-linuxkit-aufs ubuntu/18.04.2 glibc/2.27 UID:GID : 1000:100 netrc file : None offline mode : False ```
ocefpaf commented 5 years ago

I don't think this is related to the proj version. It seems to be related to the environment variable for the $PROJ_LIB environment variable. Here is what I get if I installed this in an env and activate:

> library(rgdal)
Loading required package: sp
rgdal: version: 1.4-4, (SVN revision 833)
 Geospatial Data Abstraction Library extensions to R successfully loaded
 Loaded GDAL runtime: GDAL 3.0.1, released 2019/06/28
 Path to GDAL shared files: 
 GDAL binary built with GEOS: TRUE 
 Loaded PROJ.4 runtime: Rel. 6.1.1, July 1st, 2019, [PJ_VERSION: 611]
 Path to PROJ.4 shared files: ~/miniconda3/envs/TEST/share/proj
 Linking to sp version: 1.3-1 
> CRS("+init=epsg:3035")
CRS arguments:
 +init=epsg:3035 +proj=laea +lat_0=52 +lon_0=10 +x_0=4321000
+y_0=3210000 +ellps=GRS80 +units=m +no_defs

Note that I have the right path Path to PROJ.4 shared files: ~/miniconda3/envs/TEST/share/proj instead of (autodetected).

Are you installing things in the base environment? Can you try to activate it before calling jupyterlab? (conda activate base or source activate base).

I'm closing this b/c it is not really a problem with the package but conda's use with a Docker image. We can still discuss things here but ultimately it is a conda "expected" behavior to have things installed in an env and activate that env.

JamesSample commented 5 years ago

Thanks for such a fast and helpful response!

You're absolutely right - this is a path/environment variable problem. When I saw Path to PROJ.4 shared files: (autodetected) I assumed everything was OK, but explicitly setting the path to the proj folder has solved the problem :-)

I am installing everything within my base environment, since this Dockerfile will only ever be used with a single env deployed via JupyterHub. The environment is configured in the Jupyter "base notebook" Dockerfile here and to get things working I had to fix the PROJ_LIB environment variable in my Dockerfile, as follows:

ENV PROJ_LIB $CONDA_DIR/share/proj

Thanks once again for your help on this! I was heading in completely the wrong direction thinking this was something to do with PROJ6/PROJ4 "emulation mode".

ocefpaf commented 5 years ago

I actually had this issue somewhere else and I did not post my solutions here b/c they were all bad. I'm copying your solution now :smile: win-win

Thanks!