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

import gdal clobbering PATH on Ubuntu #259

Closed
Thingus opened this issue Jan 25, 2019 · 6 comments
Closed

import gdal clobbering PATH on Ubuntu #259

Thingus opened this issue Jan 25, 2019 · 6 comments

Comments

@Thingus
Copy link

Thingus commented Jan 25, 2019

Issue: import gdal clobbering PATH

On import, gdal from conda-forge causes a Windows-style path variable to be prepended to PATH

Steps to reproduce the problem.

>>> import os
>>> os.environ["PATH"]
'/home/john/miniconda3/envs/eoenv/bin:/home/john/miniconda3/bin:....'
>>> import gdal
>>> os.environ["PATH"]
'/home/john/miniconda3/envs/eoenv\\Library\\bin;/home/john/miniconda3/envs/eoenv/bin:/home/john/miniconda3/bin...'
>>> 

First reported in OSGeo/gdal#1231 (comment) , referred to here


Environment (conda list):
asn1crypto                0.24.0                   py36_0  
atomicwrites              1.2.1                    py36_0  
attrs                     18.2.0           py36h28b3542_0  
blas                      1.0                         mkl  
boto3                     1.9.35                   py36_0  
botocore                  1.12.35                  py36_0  
bzip2                     1.0.6                h14c3975_5  
ca-certificates           2018.03.07                    0  
cairo                     1.14.12              h8948797_3  
cartopy                   0.17.0           py36hbb7e04d_1  
certifi                   2018.11.29               py36_0  
cffi                      1.11.5           py36he75722e_1  
Click                     7.0                       <pip>
cloudpickle               0.6.1                    py36_0  
cryptography              2.4.2            py36h1ba5d50_0  
curl                      7.63.0            hbc83047_1000  
cycler                    0.10.0                   py36_0  
dask-core                 0.20.2                   py36_0  
dbus                      1.13.2               h714fa37_1  
decorator                 4.3.0                    py36_0  
docutils                  0.14                     py36_0  
expat                     2.2.6                he6710b0_0  
fontconfig                2.13.0               h9420a91_0  
freetype                  2.9.1                h8a8886c_1  
freexl                    1.0.5                h14c3975_0  
gdal                      2.3.3            py36hbb2a789_0  
geojson                   2.4.1                     <pip>
geomet                    0.2.0.post2               <pip>
geos                      3.7.1                he6710b0_0  
giflib                    5.1.4                h14c3975_1  
glib                      2.56.2               hd408876_0  
gst-plugins-base          1.14.0               hbbd80ab_1  
gstreamer                 1.14.0               hb453b48_1  
hdf4                      4.2.13               h3ca952b_2  
hdf5                      1.10.4               hb1b8bf9_0  
html2text                 2018.1.9                  <pip>
icu                       58.2                 h9c2bf20_1  
idna                      2.7                      py36_0  
imageio                   2.4.1                    py36_0  
intel-openmp              2019.1                      144  
jmespath                  0.9.3                    py36_0  
joblib                    0.12.5                   py36_0  
jpeg                      9b                   h024ee3a_2  
json-c                    0.13.1               h1bed415_0  
kealib                    1.4.7                hd0c454d_6  
kiwisolver                1.0.1            py36hf484d3e_0  
krb5                      1.16.1               h173b8e3_7  
libboost                  1.67.0               h46d08c1_4  
libcurl                   7.63.0            h20c2e04_1000  
libdap4                   3.19.1               h6ec2957_0  
libedit                   3.1.20170329         h6b74fdf_2  
libffi                    3.2.1                hd88cf55_4  
libgcc-ng                 8.2.0                hdf63c60_1  
libgdal                   2.3.3                h2e7e64b_0  
libgfortran               3.0.0                         1  
libgfortran-ng            7.3.0                hdf63c60_0  
libkml                    1.3.0                h590aaf7_4  
libnetcdf                 4.6.1                h11d0813_2  
libopenblas               0.2.20               h9ac9557_7  
libpng                    1.6.35               hbc83047_0  
libpq                     11.1                 h20c2e04_0  
libspatialite             4.3.0a              hb08deb6_19  
libssh2                   1.8.0                h1ba5d50_4  
libstdcxx-ng              8.2.0                hdf63c60_1  
libtiff                   4.0.9                he85c1e1_2  
libuuid                   1.0.3                h1bed415_2  
libxcb                    1.13                 h1bed415_1  
libxml2                   2.9.8                h26e45fe_1  
libxslt                   1.1.32               h1312cb7_0  
lxml                      4.2.5            py36hefd8a0e_0  
matplotlib                3.0.1            py36h5429711_0  
mkl                       2018.0.3                      1  
mkl_fft                   1.0.6            py36h7dd41cf_0  
mkl_random                1.0.1            py36h4414c95_1  
more-itertools            4.3.0                    py36_0  
ncurses                   6.1                  hf484d3e_0  
networkx                  2.2                      py36_1  
numpy                     1.15.4           py36h1d66e8a_0  
numpy-base                1.15.4           py36h81de0dd_0  
olefile                   0.46                     py36_0  
openblas                  0.2.19                        0  
openjpeg                  2.3.0                h05c96fa_1  
openssl                   1.1.1a               h7b6447c_0  
owslib                    0.17.0                   py36_0  
pcre                      8.42                 h439df22_0  
pillow                    5.3.0            py36h34e0f95_0  
pip                       18.1                     py36_0  
pixman                    0.34.0               hceecf20_3  
planet                    1.2.1                     <pip>
pluggy                    0.8.0                    py36_0  
poppler                   0.65.0               h581218d_1  
poppler-data              0.4.9                         0  
proj4                     5.2.0                he6710b0_1  
py                        1.7.0                    py36_0  
pycparser                 2.19                     py36_0  
pyepsg                    0.3.2                    py36_0  
pykdtree                  1.3.1            py36hdd07704_2  
pyopenssl                 18.0.0                   py36_0  
pyparsing                 2.3.0                    py36_0  
pyproj                    1.9.5.1          py36h14380d9_1  
pyqt                      5.9.2            py36h05f1152_2  
pyshp                     1.2.12                   py36_0  
pysocks                   1.6.8                    py36_0  
pytest                    4.0.0                    py36_0  
python                    3.6.8                h0371630_0  
python-dateutil           2.7.5                    py36_0  
python-fmask              0.5.3           py36h3010b51_1000    conda-forge
pytz                      2018.7                   py36_0  
pywavelets                1.0.1            py36hdd07704_0  
qt                        5.9.7                h5867ecd_1  
readline                  7.0                  h7b6447c_5  
requests                  2.14.2                   py36_0  
requests-futures          0.9.9                     <pip>
rios                      1.4.6                 py36_1000    conda-forge
s3transfer                0.1.13                   py36_0  
scikit-image              0.14.0           py36hf484d3e_1  
scikit-learn              0.19.2           py36h4989274_0  
scipy                     1.1.0            py36hfa4b5c9_1  
sentinelhub               2.4.7                     <pip>
sentinelsat               0.12.2                    <pip>
setuptools                40.5.0                   py36_0  
shapely                   1.6.4            py36h86c5351_0  
sip                       4.19.8           py36hf484d3e_0  
six                       1.11.0                   py36_1  
sqlite                    3.26.0               h7b6447c_0  
tenacity                  5.0.2                     <pip>
tifffile                  2019.1.4                  <pip>
tk                        8.6.8                hbc83047_0  
toolz                     0.9.0                    py36_0  
tornado                   5.1.1            py36h7b6447c_0  
tqdm                      4.29.1                    <pip>
urllib3                   1.24.1                   py36_0  
utm                       0.4.2                     <pip>
wheel                     0.32.2                   py36_0  
xerces-c                  3.2.2                h780794e_0  
xz                        5.2.4                h14c3975_4  
zlib                      1.2.11               ha838bed_2  


Details about conda and system ( conda info ):
     active environment : eoenv
    active env location : /home/john/miniconda3/envs/eoenv
            shell level : 2
       user config file : /home/john/.condarc
 populated config files : 
          conda version : 4.5.12
    conda-build version : not installed
         python version : 3.7.1.final.0
       base environment : /home/john/miniconda3  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/linux-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/pro/linux-64
                          https://repo.anaconda.com/pkgs/pro/noarch
          package cache : /home/john/miniconda3/pkgs
                          /home/john/.conda/pkgs
       envs directories : /home/john/miniconda3/envs
                          /home/john/.conda/envs
               platform : linux-64
             user-agent : conda/4.5.12 requests/2.21.0 CPython/3.7.1 Linux/4.15.0-43-generic ubuntu/18.04 glibc/2.27
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False

@kmuehlbauer
Copy link
Contributor

@Thingus The gdal in the list does not come from conda-forge.

Can't reproduce using conda-forge channel in a fresh environment (using gdal 2.3.3)

@kmuehlbauer
Copy link
Contributor

Reopen if appropriate.

@Erotemic
Copy link

Where does conda install gdal come from? When I do conda list I get

# packages in environment at /home/joncrall/.local/conda/envs/py37:
#
# Name                    Version                   Build  Channel
gdal                      2.3.3            py37hbb2a789_0  

which does not specify a channel. Has this issue been reported to the appropriate maintainer? I'm not sure where the correct place to report / track the progress of this issue is.

@ocefpaf
Copy link
Member

ocefpaf commented Oct 17, 2019

Where does conda install gdal come from?

Not sure what you mean?

When I do conda list I get

I believe you want https://docs.conda.io/projects/conda/en/latest/user-guide/configuration/use-condarc.html#show-channel-urls-show-channel-urls

which does not specify a channel.

If no channel is specified then it is from defaults.

Has this issue been reported to the appropriate maintainer?

Nope. It is about defaults and not conda-forge.

I'm not sure where the correct place to report / track the progress of this issue is.

Definitely not in a closed issue. Please open a new one and add the required information for us to help you debug it.

@Erotemic
Copy link

Definitely not in a closed issue. Please open a new one and add the required information for us to help you debug it.

Where is the bug tracker for the defaults channel?

@ocefpaf
Copy link
Member

ocefpaf commented Oct 17, 2019

Where is the bug tracker for the defaults channel?

That you'll have to ask Anaconda. Here we take care of the community channel conda-forge.

@conda-forge conda-forge locked and limited conversation to collaborators Oct 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants