{"action":"created","issue":{"url":"https://api.github.com/repos/conda/conda-build/issues/332","labels_url":"https://api.github.com/repos/conda/conda-build/issues/332/labels{/name}","comments_url":"https://api.github.com/repos/conda/conda-build/issues/332/comments","events_url":"https://api.github.com/repos/conda/conda-build/issues/332/events","html_url":"https://github.com/conda/conda-build/issues/332","id":58963527,"number":332,"title":"conda build exits with Python OSError (GDAL with GEOS support build attempt)","user":{"login":"vitale232","id":8504254,"avatar_url":"https://avatars.githubusercontent.com/u/8504254?v=3","gravatar_id":"","url":"https://api.github.com/users/vitale232","html_url":"https://github.com/vitale232","followers_url":"https://api.github.com/users/vitale232/followers","following_url":"https://api.github.com/users/vitale232/following{/other_user}","gists_url":"https://api.github.com/users/vitale232/gists{/gist_id}","starred_url":"https://api.github.com/users/vitale232/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitale232/subscriptions","organizations_url":"https://api.github.com/users/vitale232/orgs","repos_url":"https://api.github.com/users/vitale232/repos","events_url":"https://api.github.com/users/vitale232/events{/privacy}","received_events_url":"https://api.github.com/users/vitale232/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-25T20:24:37Z","updated_at":"2015-02-25T22:04:27Z","closed_at":"2015-02-25T22:04:27Z","body":"The version of GDAL that is available via conda install does not include GEOS support, which is a problem for a large portion of our code base. To remedy the issue, I have been attempting to build a separate conda package for GDAL that includes GEOS support.\r\n\r\nIt seems like I'm almost there, but I'm getting a Python error. It seems like everything succeeds with the make and make install, but then the conda build*.py scripts are crashing.\r\n\r\nAny help as to what could be going wrong is much appreciated!\r\n\r\n**./gdal_geos/meta.yaml:**\r\n---------------------------------------------\r\npackage:\r\n  name: gdal_geos\r\n  version: 1.11.2\r\n\r\nsource:\r\n  fn: gdal-1.11.2.tar.gz\r\n  url: http://download.osgeo.org/gdal/1.11.2/gdal-1.11.2.tar.gz\r\n  md5: 866a46f72b1feadd60310206439c1a76\r\n\r\nbuild:\r\n  number: 0\r\n\r\nrequirements:\r\n  build:\r\n    - gdal\r\n    - geos\r\n    - proj4\r\n  run:\r\n    - gdal\r\n    - geos\r\n    - proj4\r\n\r\nabout:\r\n  home: http://www.gdal.org/index.html\r\n  license: MIT\r\n\r\n---------------------------------------------\r\n\r\n\r\n\r\n\r\n**./gdal_geos/build.sh:**\r\n---------------------------------------------\r\nchmod 755 configure\r\n./configure \\\r\n    --prefix=$PREFIX \\\r\n    --with-geos=yes \\\r\n    --with-hdf5=yes \\\r\n    --with-hdf4=yes \\\r\n    --with-python=yes \\\r\n    --with-java=no \r\n\r\nmake\r\nmake install\r\n\r\n---------------------------------------------\r\n\r\n\r\n\r\n\r\n\r\n**Traceback + a little:**\r\n---------------------------------------------\r\nnstalled /home/vitale232/anaconda/envs/_build/lib/python2.7/site-packages/GDAL-1.11.2-py2.7-linux-x86_64.egg\r\nProcessing dependencies for GDAL==1.11.2\r\nFinished processing dependencies for GDAL==1.11.2\r\nfor f in `ls ./scripts` ; do /bin/bash /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/libtool --mode=install  /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c ./scripts/$f /home/vitale232/anaconda/envs/_build/bin ; done\r\nlibtool: install: /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c ./scripts/epsg_tr.py /home/vitale232/anaconda/envs/_build/bin/epsg_tr.py\r\nlibtool: install: /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c ./scripts/esri2wkt.py /home/vitale232/anaconda/envs/_build/bin/esri2wkt.py\r\nlibtool: install: /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c ./scripts/gcps2vec.py /home/vitale232/anaconda/envs/_build/bin/gcps2vec.py\r\nlibtool: install: /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c ./scripts/gcps2wld.py /home/vitale232/anaconda/envs/_build/bin/gcps2wld.py\r\nlibtool: install: /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c ./scripts/gdal2tiles.py /home/vitale232/anaconda/envs/_build/bin/gdal2tiles.py\r\nlibtool: install: /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c ./scripts/gdal2xyz.py /home/vitale232/anaconda/envs/_build/bin/gdal2xyz.py\r\nlibtool: install: /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c ./scripts/gdal_auth.py /home/vitale232/anaconda/envs/_build/bin/gdal_auth.py\r\nlibtool: install: /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c ./scripts/gdal_calc.dox /home/vitale232/anaconda/envs/_build/bin/gdal_calc.dox\r\nlibtool: install: /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c ./scripts/gdal_calc.py /home/vitale232/anaconda/envs/_build/bin/gdal_calc.py\r\nlibtool: install: /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c ./scripts/gdalchksum.py /home/vitale232/anaconda/envs/_build/bin/gdalchksum.py\r\nlibtool: install: /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c ./scripts/gdalcompare.dox /home/vitale232/anaconda/envs/_build/bin/gdalcompare.dox\r\nlibtool: install: /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c ./scripts/gdalcompare.py /home/vitale232/anaconda/envs/_build/bin/gdalcompare.py\r\nlibtool: install: /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c ./scripts/gdal_edit.dox /home/vitale232/anaconda/envs/_build/bin/gdal_edit.dox\r\nlibtool: install: /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c ./scripts/gdal_edit.py /home/vitale232/anaconda/envs/_build/bin/gdal_edit.py\r\nlibtool: install: /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c ./scripts/gdal_fillnodata.dox /home/vitale232/anaconda/envs/_build/bin/gdal_fillnodata.dox\r\nlibtool: install: /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c ./scripts/gdal_fillnodata.py /home/vitale232/anaconda/envs/_build/bin/gdal_fillnodata.py\r\nlibtool: install: /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c ./scripts/gdalident.py /home/vitale232/anaconda/envs/_build/bin/gdalident.py\r\nlibtool: install: /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c ./scripts/gdalimport.py /home/vitale232/anaconda/envs/_build/bin/gdalimport.py\r\nlibtool: install: /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c ./scripts/gdal_merge.py /home/vitale232/anaconda/envs/_build/bin/gdal_merge.py\r\nlibtool: install: /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c ./scripts/gdalmove.dox /home/vitale232/anaconda/envs/_build/bin/gdalmove.dox\r\nlibtool: install: /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c ./scripts/gdalmove.py /home/vitale232/anaconda/envs/_build/bin/gdalmove.py\r\nlibtool: install: /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c ./scripts/gdal_polygonize.dox /home/vitale232/anaconda/envs/_build/bin/gdal_polygonize.dox\r\nlibtool: install: /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c ./scripts/gdal_polygonize.py /home/vitale232/anaconda/envs/_build/bin/gdal_polygonize.py\r\nlibtool: install: /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c ./scripts/gdal_proximity.dox /home/vitale232/anaconda/envs/_build/bin/gdal_proximity.dox\r\nlibtool: install: /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c ./scripts/gdal_proximity.py /home/vitale232/anaconda/envs/_build/bin/gdal_proximity.py\r\nlibtool: install: /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c ./scripts/gdal_retile.py /home/vitale232/anaconda/envs/_build/bin/gdal_retile.py\r\nlibtool: install: /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c ./scripts/gdal_sieve.dox /home/vitale232/anaconda/envs/_build/bin/gdal_sieve.dox\r\nlibtool: install: /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c ./scripts/gdal_sieve.py /home/vitale232/anaconda/envs/_build/bin/gdal_sieve.py\r\nlibtool: install: /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c ./scripts/mkgraticule.py /home/vitale232/anaconda/envs/_build/bin/mkgraticule.py\r\nlibtool: install: /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c ./scripts/pct2rgb.py /home/vitale232/anaconda/envs/_build/bin/pct2rgb.py\r\nlibtool: install: /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c ./scripts/rgb2pct.py /home/vitale232/anaconda/envs/_build/bin/rgb2pct.py\r\nmake[2]: Leaving directory `/home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/swig/python'\r\nmake[1]: Leaving directory `/home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/swig'\r\nfor f in LICENSE.TXT data/*.* ; do /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c -m 0644 $f /home/vitale232/anaconda/envs/_build/share/gdal ; done\r\n/bin/bash /home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/libtool --mode=finish --silent /home/vitale232/anaconda/envs/_build/lib\r\n/home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -d /home/vitale232/anaconda/envs/_build/lib/pkgconfig\r\n/home/vitale232/anaconda/conda-bld/work/gdal-1.11.2/install-sh -c -m 0644 gdal.pc /home/vitale232/anaconda/envs/_build/lib/pkgconfig/gdal.pc\r\nfound egg dir: /home/vitale232/anaconda/envs/_build/lib/python2.7/site-packages/GDAL-1.11.2-py2.7-linux-x86_64.egg\r\nAn unexpected error has occurred, please consider sending the\r\nfollowing traceback to the conda GitHub issue tracker at:\r\n\r\n    https://github.com/conda/conda-build/issues\r\n\r\nInclude the output of the command 'conda info' in your report.\r\n\r\n\r\nTraceback (most recent call last):\r\n  File \"/home/vitale232/anaconda/bin/conda-build\", line 5, in <module>\r\n    sys.exit(main())\r\n  File \"/home/vitale232/anaconda/lib/python2.7/site-packages/conda_build/main_build.py\", line 110, in main\r\n    args_func(args, p)\r\n  File \"/home/vitale232/anaconda/lib/python2.7/site-packages/conda_build/main_build.py\", line 308, in args_func\r\n    args.func(args, p)\r\n  File \"/home/vitale232/anaconda/lib/python2.7/site-packages/conda_build/main_build.py\", line 268, in execute\r\n    build.build(m, verbose=not args.quiet, post=post)\r\n  File \"/home/vitale232/anaconda/lib/python2.7/site-packages/conda_build/build.py\", line 354, in build\r\n    post_process(preserve_egg_dir=bool(m.get_value('build/preserve_egg_dir')))\r\n  File \"/home/vitale232/anaconda/lib/python2.7/site-packages/conda_build/post.py\", line 136, in post_process\r\n    remove_easy_install_pth(preserve_egg_dir=preserve_egg_dir)\r\n  File \"/home/vitale232/anaconda/lib/python2.7/site-packages/conda_build/post.py\", line 95, in remove_easy_install_pth\r\n    utils.copy_into(join(egg_path, fn), join(sp_dir, fn))\r\n  File \"/home/vitale232/anaconda/lib/python2.7/site-packages/conda_build/utils.py\", line 21, in copy_into\r\n    tocopy = os.listdir(src)\r\nOSError: [Errno 20] Not a directory: '/home/vitale232/anaconda/envs/_build/lib/python2.7/site-packages/GDAL-1.11.2-py2.7-linux-x86_64.egg/gdalnumeric.py'\r\n\r\n---------------------------------------------\r\n\r\n*conda info\r\n---------------------------------------------\r\n             platform : linux-64\r\n        conda version : 3.9.1\r\n  conda-build version : 1.8.2\r\n       python version : 2.7.9.final.0\r\n     requests version : 2.5.3\r\n     root environment : /home/vitale232/anaconda  (writable)\r\n  default environment : /home/vitale232/anaconda\r\n     envs directories : /home/vitale232/anaconda/envs\r\n        package cache : /home/vitale232/anaconda/pkgs\r\n         channel URLs : https://conda.binstar.org/birdhouse/linux-64/\r\n                        https://conda.binstar.org/birdhouse/noarch/\r\n                        http://repo.continuum.io/pkgs/free/linux-64/\r\n                        http://repo.continuum.io/pkgs/free/noarch/\r\n                        http://repo.continuum.io/pkgs/pro/linux-64/\r\n                        http://repo.continuum.io/pkgs/pro/noarch/\r\n          config file : /home/vitale232/.condarc\r\n    is foreign system : False\r\n\r\n---------------------------------------------"},"comment":{"url":"https://api.github.com/repos/conda/conda-build/issues/comments/76070573","html_url":"https://github.com/conda/conda-build/issues/332#issuecomment-76070573","issue_url":"https://api.github.com/repos/conda/conda-build/issues/332","id":76070573,"user":{"login":"vitale232","id":8504254,"avatar_url":"https://avatars.githubusercontent.com/u/8504254?v=3","gravatar_id":"","url":"https://api.github.com/users/vitale232","html_url":"https://github.com/vitale232","followers_url":"https://api.github.com/users/vitale232/followers","following_url":"https://api.github.com/users/vitale232/following{/other_user}","gists_url":"https://api.github.com/users/vitale232/gists{/gist_id}","starred_url":"https://api.github.com/users/vitale232/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitale232/subscriptions","organizations_url":"https://api.github.com/users/vitale232/orgs","repos_url":"https://api.github.com/users/vitale232/repos","events_url":"https://api.github.com/users/vitale232/events{/privacy}","received_events_url":"https://api.github.com/users/vitale232/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T22:04:27Z","updated_at":"2015-02-25T22:04:27Z","body":"After digging through some other issues and maintaining persistence, I was able to resolve this. This meta.yaml does the trick:\r\n\r\n-------------------------------------------------------\r\npackage:\r\n  name: gdal_geos\r\n  version: 1.11.2\r\n\r\nsource:\r\n  fn: gdal-1.11.2.tar.gz\r\n  url: http://download.osgeo.org/gdal/1.11.2/gdal-1.11.2.tar.gz\r\n  md5: 866a46f72b1feadd60310206439c1a76\r\n\r\nbuild:\r\n  number: 0\r\n  preserve_egg_dir: True\r\n\r\nrequirements:\r\n  build:\r\n    - setuptools\r\n    - gdal\r\n    - geos\r\n    - proj4\r\n  run:\r\n    - setuptools\r\n    - gdal\r\n    - geos\r\n    - proj4\r\n\r\nabout:\r\n  home: http://www.gdal.org/index.html\r\n  license: MIT\r\n\r\n-------------------------------------------------------\r\n\r\n\r\nI think in particular, adding preserve_egg_dir: True solved it."}}