(gdal_env2) Kritiks-MacBook-Air:data2 kritiksoman$ conda install -c conda-forge opencv scikit-image Fetching package metadata ............. Solving package specifications: . Package plan for installation in environment /Volumes/MacBookData/kritiksoman/anaconda3/envs/gdal_env2: The following NEW packages will be INSTALLED: backports: 1.0-py27_1 conda-forge backports.functools_lru_cache: 1.4-py27_1 conda-forge backports_abc: 0.5-py27_0 conda-forge blas: 1.1-openblas conda-forge certifi: 2017.11.5-py27_0 conda-forge dask-core: 0.16.1-py_0 conda-forge decorator: 4.1.2-py27_0 conda-forge ffmpeg: 3.2.4-3 conda-forge harfbuzz: 1.3.4-2 conda-forge imageio: 2.2.0-py27_0 conda-forge jasper: 1.900.1-4 conda-forge libwebp: 0.5.2-7 conda-forge networkx: 1.11-py27_0 conda-forge olefile: 0.44-py27_0 conda-forge openblas: 0.2.20-6 conda-forge opencv: 3.3.0-py27_blas_openblas_203 conda-forge [blas_openblas] pillow: 4.3.0-py27_1 conda-forge pywavelets: 0.5.2-py27_1 conda-forge scikit-image: 0.13.0-py27_3 conda-forge singledispatch: 3.4.0.3-py27_0 conda-forge ssl_match_hostname: 3.5.0.1-py27_1 conda-forge subprocess32: 3.2.7-py27_0 conda-forge toolz: 0.8.2-py_2 conda-forge tornado: 4.5.3-py27_0 conda-forge x264: 20131217-3 conda-forge The following packages will be UPDATED: matplotlib: 2.0.2-np113py27_intel_1 intel [intel ] --> 2.1.1-py27_0 conda-forge poppler: 0.60.1-hb654a48_0 --> 0.61.1-2 conda-forge The following packages will be SUPERSEDED by a higher-priority channel: cairo: 1.14.10-h913ea44_6 --> 1.14.6-5 conda-forge fontconfig: 2.12.4-hffb9db1_2 --> 2.12.1-6 conda-forge freetype: 2.8-intel_0 intel [intel ] --> 2.7-2 conda-forge glib: 2.53.6-h33f6a65_2 --> 2.51.4-0 conda-forge libpng: 1.6.32-intel_0 intel [intel ] --> 1.6.28-2 conda-forge The following packages will be DOWNGRADED: gdal: 2.2.2-py27h9d2a75c_1 --> 1.10.1-py27_1 geotiff: 1.4.2-1 conda-forge --> 1.4.2-0 conda-forge libgdal: 2.2.2-hdcd1c41_0 --> 1.11.2-1 libtiff: 4.0.9-0 conda-forge --> 4.0.7-1 conda-forge openjpeg: 2.3.0-2 conda-forge --> 2.3.0-1 conda-forge Proceed ([y]/n)? y dask-core-0.16 100% |#####################################################| Time: 0:00:02 160.49 kB/s decorator-4.1. 100% |#####################################################| Time: 0:00:00 1.64 MB/s olefile-0.44-p 100% |#####################################################| Time: 0:00:00 122.00 kB/s toolz-0.8.2-py 100% |#####################################################| Time: 0:00:00 52.22 kB/s networkx-1.11- 100% |#####################################################| Time: 0:00:05 265.24 kB/s pillow-4.3.0-p 100% |#####################################################| Time: 0:00:02 263.50 kB/s imageio-2.2.0- 100% |#####################################################| Time: 0:00:13 247.85 kB/s pywavelets-0.5 100% |#####################################################| Time: 0:00:15 273.53 kB/s scikit-image-0 100% |#####################################################| Time: 0:00:31 758.82 kB/s (gdal_env2) Kritiks-MacBook-Air:data2 kritiksoman$ python Python 2.7.14 |Intel Corporation| (default, Oct 16 2017, 10:29:14) [GCC 4.2.1 Compatible Apple LLVM 7.3.0 (clang-703.0.31)] on darwin Type "help", "copyright", "credits" or "license" for more information. Intel(R) Distribution for Python is brought to you by Intel Corporation. Please check out: https://software.intel.com/en-us/python-distribution >>> import gdal >>> import [3]+ Stopped python (gdal_env2) Kritiks-MacBook-Air:data2 kritiksoman$ ls DEMaligned.tif algo10.py customer_points.dbf original DEMaligned.tif.aux.xml clustering.py customer_points.shp processed Orthoclippedaligned.tif clustering2.py customer_points.shx (gdal_env2) Kritiks-MacBook-Air:data2 kritiksoman$ cd .. (gdal_env2) Kritiks-MacBook-Air:ubuntu data kritiksoman$ ls data1 data2 (gdal_env2) Kritiks-MacBook-Air:ubuntu data kritiksoman$ cd data1 (gdal_env2) Kritiks-MacBook-Air:data1 kritiksoman$ ls DEMaligned.tif my.dbf DEMaligned.tif.aux.xml my.shp Orthoclipped.tif my.shx Orthoclippedaligned.tif myshape.dbf Untitled Document 1 myshape.prj algo10.py myshape.qpj algo11.py myshape.shp algo12.py myshape.shx clustering outfile.jpg contourRefine.py outputs customer_points.dbf plot_dbscan.py customer_points.shp quantCheck.py customer_points.shx readshape.py findHull.py speed grassDetection.py speed.py groundDetection.py versions isprs-archives-XLII-1-W1-339-2017.pdf writeShape.py map writeShape2.py (gdal_env2) Kritiks-MacBook-Air:data1 kritiksoman$ cd clustering/ (gdal_env2) Kritiks-MacBook-Air:clustering kritiksoman$ ls DEMaligned.tif algo13.py clustering2.py Orthoclippedaligned.tif clustering.py (gdal_env2) Kritiks-MacBook-Air:clustering kritiksoman$ python algo13.py --------------------------------------------------------------------------------------------------- Traceback (most recent call last): File "algo13.py", line 85, in original_dem = original_dem.ReadAsArray() File "/Volumes/MacBookData/kritiksoman/anaconda3/envs/gdal_env2/lib/python2.7/site-packages/osgeo/gdal.py", line 781, in ReadAsArray import gdalnumeric File "/Volumes/MacBookData/kritiksoman/anaconda3/envs/gdal_env2/lib/python2.7/site-packages/osgeo/gdalnumeric.py", line 1, in from gdal_array import * File "/Volumes/MacBookData/kritiksoman/anaconda3/envs/gdal_env2/lib/python2.7/site-packages/osgeo/gdal_array.py", line 25, in _gdal_array = swig_import_helper() File "/Volumes/MacBookData/kritiksoman/anaconda3/envs/gdal_env2/lib/python2.7/site-packages/osgeo/gdal_array.py", line 17, in swig_import_helper import _gdal_array ImportError: No module named _gdal_array (gdal_env2) Kritiks-MacBook-Air:clustering kritiksoman$