Colab 'ERROR: Failed building wheel for s2p'
canatalay opened this issue · comments
I try to install s2p in colab but it failed. Any recommendation could be nice?
Created temporary directory: /tmp/pip-ephem-wheel-cache-lqqc3hgq
Created temporary directory: /tmp/pip-req-tracker-h4dzd9ab
Created requirements tracker '/tmp/pip-req-tracker-h4dzd9ab'
Created temporary directory: /tmp/pip-install-h7szeeky
1 location(s) to search for versions of s2p:
- https://pypi.org/simple/s2p/
Getting page https://pypi.org/simple/s2p/
Found index url https://pypi.org/simple
Looking up "https://pypi.org/simple/s2p/" in the cache
Request header has "max_age" as 0, cache bypassed
Starting new HTTPS connection (1): pypi.org:443
https://pypi.org:443 "GET /simple/s2p/ HTTP/1.1" 304 0
Analyzing links from page https://pypi.org/simple/s2p/
Found link https://files.pythonhosted.org/packages/67/a6/e7233128998b5069262e2028bd28a89b8f871a9b7b0300742632160d2216/s2p-1.0b2.tar.gz#sha256=1ee36ebb7348916955ca646b36d1546e625c35c02c3c0f0c2b5c6b7ef33c4bc7 (from https://pypi.org/simple/s2p/), version: 1.0b2
Found link https://files.pythonhosted.org/packages/5b/0b/b51fdedc16e33990fab0ae45ef63f1c5650d47ccfd14edd535d11403440d/s2p-1.0b4.tar.gz#sha256=215c2a18225eb1fefcc89e50aacacced17f7dc113ee435c274e098079a7e2cd2 (from https://pypi.org/simple/s2p/), version: 1.0b4
Found link https://files.pythonhosted.org/packages/b4/c9/020fda66ed70ae9adbe332326410241e88825839549d1144ab4b84bce7aa/s2p-1.0b5.tar.gz#sha256=b42f26e567b73696e2e537a0f52dde27149958d99cfe454196619fd1c5b3a449 (from https://pypi.org/simple/s2p/), version: 1.0b5
Found link https://files.pythonhosted.org/packages/79/4a/47bcf4aec87a77a090d051716701bba29ba721ba0f69a9e9076fd5f4030e/s2p-1.0b6.tar.gz#sha256=cb3accea0fc489c5303c3a6d88fbbdc94286997f8be7363eff14abc73f2e166d (from https://pypi.org/simple/s2p/), version: 1.0b6
Found link https://files.pythonhosted.org/packages/51/18/4a307ecf75b2e31cce8c22f850f7ef137c51dab59fe59cbb7f86635267de/s2p-1.0b7.tar.gz#sha256=42f94b24ca60a9534607d889d2a1185c7f1b779cec2641ffa5f6560e406566f1 (from https://pypi.org/simple/s2p/), version: 1.0b7
Found link https://files.pythonhosted.org/packages/d7/64/69174f9af27f994f42ec035a5d3f613c2d1dc07f10383f7afc91614878e1/s2p-1.0b8.tar.gz#sha256=e358e46152b27f511c0c3cd814ae1e36a9bb78451a1bdf0525745c04b457c850 (from https://pypi.org/simple/s2p/), version: 1.0b8
Found link https://files.pythonhosted.org/packages/f8/94/ce13ed326b7ee9fae6e0b86f32e83a009ffa8d0202cc60cb5e749795ad62/s2p-1.0b9.tar.gz#sha256=50d9f53cd594726a9c435b166fd29510338163f50f5f5eef81ca297f2dbbf364 (from https://pypi.org/simple/s2p/), version: 1.0b9
Skipping link: none of the wheel's tags match: cp36-cp36m-macosx_10_13_x86_64: https://files.pythonhosted.org/packages/42/7f/d643252275d5ce95402e6b2f0114e369a7a9db2e08097b5659c86b16c339/s2p-1.0b10-cp36-cp36m-macosx_10_13_x86_64.whl#sha256=32ba1a231b6ca142d09d162f3e6750fdcca62661f01f4558bdb0aa0bee89d26d (from https://pypi.org/simple/s2p/)
Found link https://files.pythonhosted.org/packages/be/2c/5808b0ac6a2d102f14d934c83c61e6f115f4d8240d4a958d0384b86028c0/s2p-1.0b10.tar.gz#sha256=db9167c5553cefe3ead0ea75b4d23b9d697a7c63fc562f2be498b5a1b820e29b (from https://pypi.org/simple/s2p/), version: 1.0b10
Skipping link: none of the wheel's tags match: cp36-cp36m-macosx_10_13_x86_64: https://files.pythonhosted.org/packages/66/a1/36d5236dc5753e2f960a7087356c40fa07e3c07774abfa9250f4808463e0/s2p-1.0b11-cp36-cp36m-macosx_10_13_x86_64.whl#sha256=a42dd54544f404874f429f25db9bbfa642de8fa5e38ced054a447db9a720a8bc (from https://pypi.org/simple/s2p/)
Found link https://files.pythonhosted.org/packages/65/05/8004babbf2416a4832025021dd15bc9d1f34ab8bc0b024c483606ca49391/s2p-1.0b11.tar.gz#sha256=411730f51c20b113a0825822157cbe7aa5177a81cd170683ab07b7fea2e005f5 (from https://pypi.org/simple/s2p/), version: 1.0b11
Skipping link: none of the wheel's tags match: cp36-cp36m-macosx_10_13_x86_64: https://files.pythonhosted.org/packages/a1/2c/32517de33870de47f54bf45b3b53a49f770990b1b28db953661ce43af21f/s2p-1.0b12-cp36-cp36m-macosx_10_13_x86_64.whl#sha256=3ff92b597e010acf42a469bc85c4a6f53b6e50e60f378e79112f756521ab355e (from https://pypi.org/simple/s2p/)
Found link https://files.pythonhosted.org/packages/1e/b2/bed077ce7cef3f75ddf3e6ae9d2a57274ef15696259ddcdf235ba233fc17/s2p-1.0b12.tar.gz#sha256=88d3030d346bf5842db3b8e89c77a3f105bfbe6cd9e4e631bb3d763d78a5e8d8 (from https://pypi.org/simple/s2p/), version: 1.0b12
Skipping link: none of the wheel's tags match: cp36-cp36m-macosx_10_13_x86_64: https://files.pythonhosted.org/packages/51/be/c52c0211e012c308b2b2c573a5f70dcd27d052ff5cb0c7ba6b4ae53bd76f/s2p-1.0b13-cp36-cp36m-macosx_10_13_x86_64.whl#sha256=0712ac8c215a8617ec52e13966301adb31a903d0365faa099da4753f778222e3 (from https://pypi.org/simple/s2p/)
Found link https://files.pythonhosted.org/packages/b9/32/889d7f9a51fdaf88834f319ee67cb3dfa790e0857a17f641c627d9aa382d/s2p-1.0b13.tar.gz#sha256=c3df1589438c101869531ff6a825f3850ce8bec4dfc62bb6621eae6805381fc2 (from https://pypi.org/simple/s2p/), version: 1.0b13
Skipping link: none of the wheel's tags match: cp36-cp36m-macosx_10_13_x86_64: https://files.pythonhosted.org/packages/be/d8/154342eda97c8e1c66b9d499c95ca75cffcd4056a420b8916c3f8eb16176/s2p-1.0b14-cp36-cp36m-macosx_10_13_x86_64.whl#sha256=8635a00c3666a6a53d11169102a18558d58e9748be05e15916a056f02c01944d (from https://pypi.org/simple/s2p/)
Found link https://files.pythonhosted.org/packages/28/4b/7c7fe6401c32a7672a6dbab78feb3a0c844ca8ce74a21dcb3789a57d89d1/s2p-1.0b14.tar.gz#sha256=6b70f27a3e3bc9804c3364366901fe8287f7b1aace551c4e934abddaa01b664b (from https://pypi.org/simple/s2p/), version: 1.0b14
Skipping link: none of the wheel's tags match: cp36-cp36m-macosx_10_13_x86_64: https://files.pythonhosted.org/packages/bb/39/80f4aa16b8b43b0404aa6dfe3948a5abe3592526908b10ce703b711e20fa/s2p-1.0b16-cp36-cp36m-macosx_10_13_x86_64.whl#sha256=10aa8dbe49976bc9ece9f9ba113cc2fe39c751ae31db00fca376c4d63aa36c92 (from https://pypi.org/simple/s2p/)
Found link https://files.pythonhosted.org/packages/42/57/4e1d96af37c7e61fdbc80f4649645efdf9c13893270aa8fefcd6ee7f8bf0/s2p-1.0b16.tar.gz#sha256=b7f6aa01dfebcb7ea94e0a085d73d91764eb3dc53283a07ad903dd895d6bf9af (from https://pypi.org/simple/s2p/), version: 1.0b16
Skipping link: none of the wheel's tags match: cp36-cp36m-macosx_10_13_x86_64: https://files.pythonhosted.org/packages/6f/c2/e7e2216263e8ecfa09f2eefaf44a0043c1168443c8c2c9da4f4c2c992353/s2p-1.0b17-cp36-cp36m-macosx_10_13_x86_64.whl#sha256=788da904cb2803f2d66ae34e717dd3ce50566db97a8a59cdca936fb2f6852804 (from https://pypi.org/simple/s2p/)
Found link https://files.pythonhosted.org/packages/0e/ec/e10312742407b36c2a4d647175a89c6b610a3e4e45c3f8e0c14c388cf10a/s2p-1.0b17.tar.gz#sha256=fa84716c6db1baa0cfe1032af74705b7528d2ea52a82c16c394387fe7d72c448 (from https://pypi.org/simple/s2p/), version: 1.0b17
Skipping link: none of the wheel's tags match: cp36-cp36m-macosx_10_13_x86_64: https://files.pythonhosted.org/packages/1c/7e/55661f0f49d0f52733259cf6dd3b705a46fda7284710accda17d0ac5ff15/s2p-1.0b18-cp36-cp36m-macosx_10_13_x86_64.whl#sha256=a3370bce43018ce3a1dab5a356cf7635f34f89b10a5653305e41c334a68a2eeb (from https://pypi.org/simple/s2p/)
Found link https://files.pythonhosted.org/packages/38/4f/652243661940c97b77980417a90cc3cc59c193d22a54de9b6dac5546bbd0/s2p-1.0b18.tar.gz#sha256=965ccdb81f04a3113c5258282c41e28b210c6bba44159e1f9c9c675efa45d3e3 (from https://pypi.org/simple/s2p/), version: 1.0b18
Found link https://files.pythonhosted.org/packages/25/5f/eddd30940faa8d8613ac3fd7b6867ff81615f72ec7231bbc1f4dfe8fa4de/s2p-1.0b19.tar.gz#sha256=1da77178723f3c99a23ed11b45ced67ccc8c332c4d949d902cc2289403835168 (from https://pypi.org/simple/s2p/) (requires-python:>=3), version: 1.0b19
Found link https://files.pythonhosted.org/packages/b8/c8/52c6378e7bfd38fc315fb041c498d3cd7aa82d014eaf1a547b2eb38a5f50/s2p-1.0b20.tar.gz#sha256=be538c057a1d4724d2ac29ecb9a88475d227b0a488b682e47a9287d67ad364ec (from https://pypi.org/simple/s2p/) (requires-python:>=3), version: 1.0b20
Found link https://files.pythonhosted.org/packages/fe/88/dc7e802562be1b9b3807086fee1d5eeb4db05be57269f34fb6396a8ffe87/s2p-1.0b21.tar.gz#sha256=5c9dc881439d9bf3b66de898ef77b51a1a6e4641addddaa399c6f79d66678c99 (from https://pypi.org/simple/s2p/) (requires-python:>=3), version: 1.0b21
Found link https://files.pythonhosted.org/packages/0e/54/6fce975ab3d935b60abcb18a334aa7f12ca0d76b66b9e1c805ab03b73326/s2p-1.0b22.tar.gz#sha256=b20c2aec54ba91487477ae32e4e34e353c25abef3730da023c1a54eb9c719aa1 (from https://pypi.org/simple/s2p/) (requires-python:>=3), version: 1.0b22
Found link https://files.pythonhosted.org/packages/ac/46/4d369bf6bbb3cc6d5b78e056252eae8c4fcb5ca0edd487379a59d46ecadb/s2p-1.0b23.tar.gz#sha256=8ae3a4a4293c6f94a292953bbc023260f651f12ad628aa6c48ac4ca6b498d5aa (from https://pypi.org/simple/s2p/) (requires-python:>=3), version: 1.0b23
Given no hashes to check 20 links for project 's2p': discarding no candidates
Using version 1.0b23 (newest of versions: 1.0b2, 1.0b4, 1.0b5, 1.0b6, 1.0b7, 1.0b8, 1.0b9, 1.0b10, 1.0b11, 1.0b12, 1.0b13, 1.0b14, 1.0b16, 1.0b17, 1.0b18, 1.0b19, 1.0b20, 1.0b21, 1.0b22, 1.0b23)
Collecting s2p
Created temporary directory: /tmp/pip-unpack-2df_xree
Looking up "https://files.pythonhosted.org/packages/ac/46/4d369bf6bbb3cc6d5b78e056252eae8c4fcb5ca0edd487379a59d46ecadb/s2p-1.0b23.tar.gz" in the cache
Current age based on date: 115
Ignoring unknown cache-control directive: immutable
Freshness lifetime from max-age: 365000000
The response is "fresh", returning cached response
365000000 > 115
Using cached https://files.pythonhosted.org/packages/ac/46/4d369bf6bbb3cc6d5b78e056252eae8c4fcb5ca0edd487379a59d46ecadb/s2p-1.0b23.tar.gz
Added s2p from https://files.pythonhosted.org/packages/ac/46/4d369bf6bbb3cc6d5b78e056252eae8c4fcb5ca0edd487379a59d46ecadb/s2p-1.0b23.tar.gz#sha256=8ae3a4a4293c6f94a292953bbc023260f651f12ad628aa6c48ac4ca6b498d5aa to build tracker '/tmp/pip-req-tracker-h4dzd9ab'
Running setup.py (path:/tmp/pip-install-h7szeeky/s2p/setup.py) egg_info for package s2p
Running command python setup.py egg_info
running egg_info
creating /tmp/pip-install-h7szeeky/s2p/pip-egg-info/s2p.egg-info
writing /tmp/pip-install-h7szeeky/s2p/pip-egg-info/s2p.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-install-h7szeeky/s2p/pip-egg-info/s2p.egg-info/dependency_links.txt
writing entry points to /tmp/pip-install-h7szeeky/s2p/pip-egg-info/s2p.egg-info/entry_points.txt
writing requirements to /tmp/pip-install-h7szeeky/s2p/pip-egg-info/s2p.egg-info/requires.txt
writing top-level names to /tmp/pip-install-h7szeeky/s2p/pip-egg-info/s2p.egg-info/top_level.txt
writing manifest file '/tmp/pip-install-h7szeeky/s2p/pip-egg-info/s2p.egg-info/SOURCES.txt'
reading manifest file '/tmp/pip-install-h7szeeky/s2p/pip-egg-info/s2p.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching '3rdparty/mgm_multi/data'
no previously-included directories found matching '3rdparty/mgm_multi/matlab'
no previously-included directories found matching '3rdparty/mgm/data'
no previously-included directories found matching '3rdparty/mgm/matlab'
no previously-included directories found matching '3rdparty/homography/test_data'
no previously-included directories found matching '3rdparty/msmw3/test_data'
no previously-included directories found matching '3rdparty/imscript/src/ftr'
no previously-included directories found matching '3rdparty/imscript/src/misc/older'
warning: no previously-included files matching '.git' found anywhere in distribution
warning: no previously-included files matching '.travis.yml' found anywhere in distribution
warning: no previously-included files matching '.png' found anywhere in distribution
warning: no previously-included files matching '.o' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
writing manifest file '/tmp/pip-install-h7szeeky/s2p/pip-egg-info/s2p.egg-info/SOURCES.txt'
Source in /tmp/pip-install-h7szeeky/s2p has version 1.0b23, which satisfies requirement s2p from https://files.pythonhosted.org/packages/ac/46/4d369bf6bbb3cc6d5b78e056252eae8c4fcb5ca0edd487379a59d46ecadb/s2p-1.0b23.tar.gz#sha256=8ae3a4a4293c6f94a292953bbc023260f651f12ad628aa6c48ac4ca6b498d5aa
Removed s2p from https://files.pythonhosted.org/packages/ac/46/4d369bf6bbb3cc6d5b78e056252eae8c4fcb5ca0edd487379a59d46ecadb/s2p-1.0b23.tar.gz#sha256=8ae3a4a4293c6f94a292953bbc023260f651f12ad628aa6c48ac4ca6b498d5aa from build tracker '/tmp/pip-req-tracker-h4dzd9ab'
Requirement already satisfied: numpy in /usr/local/lib/python3.6/dist-packages (from s2p) (1.17.5)
Requirement already satisfied: scipy in /usr/local/lib/python3.6/dist-packages (from s2p) (1.4.1)
Requirement already satisfied: rasterio[s3]>=1.0.14 in /usr/local/lib/python3.6/dist-packages (from s2p) (1.1.2)
Installing extra requirements: 's3'
Requirement already satisfied: utm in /usr/local/lib/python3.6/dist-packages (from s2p) (0.5.0)
Requirement already satisfied: pyproj>=2.0.2 in /usr/local/lib/python3.6/dist-packages (from s2p) (2.4.2.post1)
Requirement already satisfied: beautifulsoup4[lxml] in /usr/local/lib/python3.6/dist-packages (from s2p) (4.6.3)
Installing extra requirements: 'lxml'
Requirement already satisfied: plyfile in /usr/local/lib/python3.6/dist-packages (from s2p) (0.7.1)
Requirement already satisfied: ransac in /usr/local/lib/python3.6/dist-packages (from s2p) (1.0.2)
Requirement already satisfied: rpcm>=1.4.6 in /usr/local/lib/python3.6/dist-packages (from s2p) (1.4.6)
Requirement already satisfied: requests in /usr/local/lib/python3.6/dist-packages (from s2p) (2.21.0)
Requirement already satisfied: cligj>=0.5 in /usr/local/lib/python3.6/dist-packages (from rasterio[s3]>=1.0.14->s2p) (0.5.0)
Requirement already satisfied: click-plugins in /usr/local/lib/python3.6/dist-packages (from rasterio[s3]>=1.0.14->s2p) (1.1.1)
Requirement already satisfied: click<8,>=4.0 in /usr/local/lib/python3.6/dist-packages (from rasterio[s3]>=1.0.14->s2p) (7.0)
Requirement already satisfied: attrs in /usr/local/lib/python3.6/dist-packages (from rasterio[s3]>=1.0.14->s2p) (19.3.0)
Requirement already satisfied: affine in /usr/local/lib/python3.6/dist-packages (from rasterio[s3]>=1.0.14->s2p) (2.3.0)
Requirement already satisfied: snuggs>=1.4.1 in /usr/local/lib/python3.6/dist-packages (from rasterio[s3]>=1.0.14->s2p) (1.4.7)
Requirement already satisfied: boto3>=1.2.4; extra == "s3" in /usr/local/lib/python3.6/dist-packages (from rasterio[s3]>=1.0.14->s2p) (1.11.10)
Requirement already satisfied: lxml; extra == "lxml" in /usr/local/lib/python3.6/dist-packages (from beautifulsoup4[lxml]->s2p) (4.2.6)
Requirement already satisfied: geojson in /usr/local/lib/python3.6/dist-packages (from rpcm>=1.4.6->s2p) (2.5.0)
Requirement already satisfied: srtm4>=1.0.2 in /usr/local/lib/python3.6/dist-packages (from rpcm>=1.4.6->s2p) (1.1.1)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.6/dist-packages (from requests->s2p) (3.0.4)
Requirement already satisfied: idna<2.9,>=2.5 in /usr/local/lib/python3.6/dist-packages (from requests->s2p) (2.8)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.6/dist-packages (from requests->s2p) (2019.11.28)
Requirement already satisfied: urllib3<1.25,>=1.21.1 in /usr/local/lib/python3.6/dist-packages (from requests->s2p) (1.24.3)
Requirement already satisfied: pyparsing>=2.1.6 in /usr/local/lib/python3.6/dist-packages (from snuggs>=1.4.1->rasterio[s3]>=1.0.14->s2p) (2.4.6)
Requirement already satisfied: s3transfer<0.4.0,>=0.3.0 in /usr/local/lib/python3.6/dist-packages (from boto3>=1.2.4; extra == "s3"->rasterio[s3]>=1.0.14->s2p) (0.3.2)
Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /usr/local/lib/python3.6/dist-packages (from boto3>=1.2.4; extra == "s3"->rasterio[s3]>=1.0.14->s2p) (0.9.4)
Requirement already satisfied: botocore<1.15.0,>=1.14.10 in /usr/local/lib/python3.6/dist-packages (from boto3>=1.2.4; extra == "s3"->rasterio[s3]>=1.0.14->s2p) (1.14.10)
Requirement already satisfied: filelock in /usr/local/lib/python3.6/dist-packages (from srtm4>=1.0.2->rpcm>=1.4.6->s2p) (3.0.12)
Requirement already satisfied: docutils<0.16,>=0.10 in /usr/local/lib/python3.6/dist-packages (from botocore<1.15.0,>=1.14.10->boto3>=1.2.4; extra == "s3"->rasterio[s3]>=1.0.14->s2p) (0.15.2)
Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in /usr/local/lib/python3.6/dist-packages (from botocore<1.15.0,>=1.14.10->boto3>=1.2.4; extra == "s3"->rasterio[s3]>=1.0.14->s2p) (2.6.1)
Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.6/dist-packages (from python-dateutil<3.0.0,>=2.1->botocore<1.15.0,>=1.14.10->boto3>=1.2.4; extra == "s3"->rasterio[s3]>=1.0.14->s2p) (1.12.0)
Building wheels for collected packages: s2p
Created temporary directory: /tmp/pip-wheel-mxo2pgmf
Building wheel for s2p (setup.py) ... Destination directory: /tmp/pip-wheel-mxo2pgmf
Running command /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-h7szeeky/s2p/setup.py'"'"'; file='"'"'/tmp/pip-install-h7szeeky/s2p/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-mxo2pgmf --python-tag cp36
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/s2p
copying s2p/masking.py -> build/lib/s2p
copying s2p/initialization.py -> build/lib/s2p
copying s2p/config.py -> build/lib/s2p
copying s2p/rasterization.py -> build/lib/s2p
copying s2p/parallel.py -> build/lib/s2p
copying s2p/rectification.py -> build/lib/s2p
copying s2p/evaluation.py -> build/lib/s2p
copying s2p/triangulation.py -> build/lib/s2p
copying s2p/visualisation.py -> build/lib/s2p
copying s2p/cli.py -> build/lib/s2p
copying s2p/fusion.py -> build/lib/s2p
copying s2p/block_matching.py -> build/lib/s2p
copying s2p/sift.py -> build/lib/s2p
copying s2p/pointing_accuracy.py -> build/lib/s2p
copying s2p/init.py -> build/lib/s2p
copying s2p/geographiclib.py -> build/lib/s2p
copying s2p/common.py -> build/lib/s2p
copying s2p/ply.py -> build/lib/s2p
copying s2p/estimation.py -> build/lib/s2p
copying s2p/rpc_utils.py -> build/lib/s2p
make -j -C 3rdparty/homography
make[1]: Entering directory '/tmp/pip-install-h7szeeky/s2p/3rdparty/homography'
/bin/sh: 1: gdal-config: not found
g++ -march=native -O3gdal-config --cflags
-c -o main.o main.cpp
g++ -march=native -O3gdal-config --cflags
-c -o LibImages/LibImages.o LibImages/LibImages.cpp
g++ -march=native -O3gdal-config --cflags
-c -o Utilities/Utilities.o Utilities/Utilities.cpp
g++ -march=native -O3gdal-config --cflags
-c -o Utilities/Memory.o Utilities/Memory.cpp
g++ -march=native -O3gdal-config --cflags
-c -o Utilities/Parameters.o Utilities/Parameters.cpp
g++ -march=native -O3gdal-config --cflags
-c -o Utilities/Time.o Utilities/Time.cpp
/bin/sh: 1: gdal-config: not found
g++ -march=native -O3gdal-config --cflags
-c -o LibHomography/Homography.o LibHomography/Homography.cpp
g++ -march=native -O3gdal-config --cflags
-c -o LibHomography/Splines.o LibHomography/Splines.cpp
/bin/sh: 1: gdal-config: not found
/bin/sh: 1: /bin/sh: 1: gdal-config: not found
/bin/sh: 1: gdal-config: not found
gdal-config: not found
/bin/sh: 1: gdal-config: not found
/bin/sh: 1: gdal-config: not found
/bin/sh: 1: gdal-config: not found
main.cpp:15:10: fatal error: gdal_priv.h: No such file or directory
#include <gdal_priv.h>
^~~~~~~~~~~~~
LibImages/LibImages.cpp:11:10: fatal error: gdal_priv.h: No such file or directory
#include <gdal_priv.h>
^~~~~~~~~~~~~
compilation terminated.
compilation terminated.
: recipe for target 'main.o' failed
make[1]: *** [main.o] Error 1
make[1]: *** Waiting for unfinished jobs....
: recipe for target 'LibImages/LibImages.o' failed
make[1]: *** [LibImages/LibImages.o] Error 1
make[1]: Leaving directory '/tmp/pip-install-h7szeeky/s2p/3rdparty/homography'
makefile:26: recipe for target 'homography' failed
make: *** [homography] Error 2
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-h7szeeky/s2p/setup.py", line 76, in
""")
File "/usr/local/lib/python3.6/dist-packages/setuptools/init.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.6/dist-packages/wheel/bdist_wheel.py", line 223, in run
self.run_command('build')
File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3.6/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/tmp/pip-install-h7szeeky/s2p/setup.py", line 27, in run
subprocess.check_call("make", shell=True)
File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'make' returned non-zero exit status 2.
error
ERROR: Failed building wheel for s2p
Running setup.py clean for s2p
Running command /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-h7szeeky/s2p/setup.py'"'"'; file='"'"'/tmp/pip-install-h7szeeky/s2p/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' clean --all
running clean
removing 'build/lib' (and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.6' does not exist -- can't clean it
removing 'build'
Failed to build s2p
Installing collected packages: s2p
Created temporary directory: /tmp/pip-record-zzwz5grj
Running command /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-h7szeeky/s2p/setup.py'"'"'; file='"'"'/tmp/pip-install-h7szeeky/s2p/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-zzwz5grj/install-record.txt --single-version-externally-managed --compile --user --prefix=
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/s2p
copying s2p/masking.py -> build/lib/s2p
copying s2p/initialization.py -> build/lib/s2p
copying s2p/config.py -> build/lib/s2p
copying s2p/rasterization.py -> build/lib/s2p
copying s2p/parallel.py -> build/lib/s2p
copying s2p/rectification.py -> build/lib/s2p
copying s2p/evaluation.py -> build/lib/s2p
copying s2p/triangulation.py -> build/lib/s2p
copying s2p/visualisation.py -> build/lib/s2p
copying s2p/cli.py -> build/lib/s2p
copying s2p/fusion.py -> build/lib/s2p
copying s2p/block_matching.py -> build/lib/s2p
copying s2p/sift.py -> build/lib/s2p
copying s2p/pointing_accuracy.py -> build/lib/s2p
copying s2p/init.py -> build/lib/s2p
copying s2p/geographiclib.py -> build/lib/s2p
copying s2p/common.py -> build/lib/s2p
copying s2p/ply.py -> build/lib/s2p
copying s2p/estimation.py -> build/lib/s2p
copying s2p/rpc_utils.py -> build/lib/s2p
make -j -C 3rdparty/homography
make[1]: Entering directory '/tmp/pip-install-h7szeeky/s2p/3rdparty/homography'
/bin/sh: 1: gdal-config: not found
g++ -march=native -O3gdal-config --cflags
-c -o main.o main.cpp
g++ -march=native -O3gdal-config --cflags
-c -o LibImages/LibImages.o LibImages/LibImages.cpp
/bin/sh: 1: /bin/sh: 1: gdal-config: not found
gdal-config: not found
LibImages/LibImages.cpp:11:10: fatal error: gdal_priv.h: No such file or directory
#include <gdal_priv.h>
^~~~~~~~~~~~~
compilation terminated.
: recipe for target 'LibImages/LibImages.o' failed
make[1]: *** [LibImages/LibImages.o] Error 1
make[1]: *** Waiting for unfinished jobs....
main.cpp:15:10: fatal error: gdal_priv.h: No such file or directory
#include <gdal_priv.h>
^~~~~~~~~~~~~
compilation terminated.
: recipe for target 'main.o' failed
make[1]: *** [main.o] Error 1
make[1]: Leaving directory '/tmp/pip-install-h7szeeky/s2p/3rdparty/homography'
makefile:26: recipe for target 'homography' failed
make: *** [homography] Error 2
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-h7szeeky/s2p/setup.py", line 76, in
""")
File "/usr/local/lib/python3.6/dist-packages/setuptools/init.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.6/dist-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/usr/lib/python3.6/distutils/command/install.py", line 589, in run
self.run_command('build')
File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3.6/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/tmp/pip-install-h7szeeky/s2p/setup.py", line 27, in run
subprocess.check_call("make", shell=True)
File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'make' returned non-zero exit status 2.
Running setup.py install for s2p ... error
Cleaning up...
Removing source in /tmp/pip-install-h7szeeky/s2p
Removed build tracker '/tmp/pip-req-tracker-h4dzd9ab'
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-h7szeeky/s2p/setup.py'"'"'; file='"'"'/tmp/pip-install-h7szeeky/s2p/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-zzwz5grj/install-record.txt --single-version-externally-managed --compile --user --prefix= Check the logs for full command output.
Exception information:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/cli/base_command.py", line 153, in _main
status = self.run(options, args)
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/commands/install.py", line 455, in run
use_user_site=options.use_user_site,
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/req/init.py", line 62, in install_given_reqs
**kwargs
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/req/req_install.py", line 888, in install
cwd=self.unpacked_source_directory,
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/utils/subprocess.py", line 275, in runner
spinner=spinner,
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/utils/subprocess.py", line 242, in call_subprocess
raise InstallationError(exc_msg)
pip._internal.exceptions.InstallationError: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-h7szeeky/s2p/setup.py'"'"'; file='"'"'/tmp/pip-install-h7szeeky/s2p/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-zzwz5grj/install-record.txt --single-version-externally-managed --compile --user --prefix= Check the logs for full command output.
You must first install some dependencies:
!apt-get install build-essential geographiclib-tools libgeographic-dev libfftw3-dev libgeotiff-dev libtiff5-dev
!add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
!apt-get update
!apt-get install libgdal-dev gdal-bin
!pip3 install s2p