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

error: command 'pip3 install ./python_example/' failed with exit status 1 #18

Closed
ronbarak opened this issue Mar 1, 2017 · 16 comments
Closed

Comments

@ronbarak
Copy link

ronbarak commented Mar 1, 2017

I'm trying to install https://github.com/pybind/python_example on Ubuntu 16.04, and I receive:
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
None of Google's top suggestions rectified the issue.

Any idea how to resolve?
openstack@prclnx04:~/python/pybind11$ pwd
/home/openstack/python/pybind11
openstack@prclnx04:~/python/pybind11$ git clone https://github.com/pybind/python_example.git
fatal: destination path 'python_example' already exists and is not an empty directory.
openstack@prclnx04:~/python/pybind11$ rm -rf ./python_example/
openstack@prclnx04:~/python/pybind11$ git clone https://github.com/pybind/python_example.git
Cloning into 'python_example'...
remote: Counting objects: 104, done.
remote: Total 104 (delta 0), reused 0 (delta 0), pack-reused 104
Receiving objects: 100% (104/104), 24.70 KiB | 0 bytes/s, done.
Resolving deltas: 100% (48/48), done.
Checking connectivity... done.
openstack@prclnx04:~/python/pybind11$ pip3 install ./python_example/
Processing ./python_example
Requirement already satisfied: pybind11>=1.7 in /usr/local/lib/python2.7/dist-packages/pybind11-2.1.dev0-py2.7.egg (from python-example==0.0.1)
Installing collected packages: python-example
  Running setup.py install for python-example ... error
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-zvc86btp-build/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-zjwl40ws-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_ext
    creating tmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c /tmp/tmpncjaa8z9.cpp -o tmp/tmpncjaa8z9.o -std=c++14
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c /tmp/tmp4z5uuskd.cpp -o tmp/tmp4z5uuskd.o -fvisibility=hidden
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    building 'python_example' extension
    creating build
    creating build/temp.linux-x86_64-3.5
    creating build/temp.linux-x86_64-3.5/src
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/include/python3.5 -I/home/openstack/.local/include/python3.5m -I/usr/include/python3.5m -c src/main.cpp -o build/temp.linux-x86_64-3.5/src/main.o -DVERSION_INFO="0.0.1" -std=c++14 -fvisibility=hidden
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    src/main.cpp:1:31: fatal error: pybind11/pybind11.h: No such file or directory
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-zvc86btp-build/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-zjwl40ws-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-zvc86btp-build/
openstack@prclnx04:~/python/pybind11$
@ronbarak
Copy link
Author

ronbarak commented Mar 1, 2017

The actual error seems to be:
src/main.cpp:1:31: fatal error: pybind11/pybind11.h: No such file or directory compilation terminated..

but, from the below, it seems that the file actually exists in ./pybind11/pybind11.h.

Is it possible that the $PWD of the src/main.cpp process is not .?

openstack@prclnx04:~/python/pybind11$ find . -name pybind11.h
./include/pybind11/pybind11.h
./build/mock_install/include/pybind11/pybind11.h
./build/pybind11/pybind11.h
./pybind11/pybind11.h
openstack@prclnx04:~/python/pybind11$ file ./pybind11/pybind11.h
./pybind11/pybind11.h: C++ source, ASCII text

@dean0x7d
Copy link
Member

dean0x7d commented Mar 1, 2017

This part is weird:

openstack@prclnx04:~/python/pybind11$ pip3 install ./python_example/
Processing ./python_example
Requirement already satisfied: pybind11>=1.7 in /usr/local/lib/python2.7/dist-packages/pybind11-2.1.dev0-py2.7.egg (from python-example==0.0.1)

You're using pip3 but it finds the python2.7 installation of pybind11? Try pip3 list and pip3 install pybind11 to make sure it's installed properly.

@wjakob
Copy link
Member

wjakob commented Mar 27, 2017

@ronbarak: Any updates here?

@alexlenail
Copy link

I'm having a similar issue when I try to build wheels for other platforms using this repo's setup.py file with travis. I can build wheels locally, but when I try to do so remotely:

Building wheels for collected packages: pcst-fast
  Running setup.py bdist_wheel for pcst-fast ... error
  Complete output from command /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;__file__='/private/var/folders/my/m6ynh3bn6tq06h7xr3js0z7r0000gn/T/pip-Ojb0wl-build/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 /var/folders/my/m6ynh3bn6tq06h7xr3js0z7r0000gn/T/tmpznG2kgpip-wheel-:
  running bdist_wheel
  running build
  running build_py
  package init file 'src/__init__.py' not found (or not a regular file)
  creating build
  creating build/lib.macosx-10.6-intel-2.7
  creating build/lib.macosx-10.6-intel-2.7/pcst_fast
  copying src/test_pcst_fast.py -> build/lib.macosx-10.6-intel-2.7/pcst_fast
  running build_ext
  creating var
  creating var/folders
  creating var/folders/my
  creating var/folders/my/m6ynh3bn6tq06h7xr3js0z7r0000gn
  creating var/folders/my/m6ynh3bn6tq06h7xr3js0z7r0000gn/T
  /usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c /var/folders/my/m6ynh3bn6tq06h7xr3js0z7r0000gn/T/tmp5A29cw.cpp -o var/folders/my/m6ynh3bn6tq06h7xr3js0z7r0000gn/T/tmp5A29cw.o -std=c++11
  /usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c /var/folders/my/m6ynh3bn6tq06h7xr3js0z7r0000gn/T/tmpCupTAS.cpp -o var/folders/my/m6ynh3bn6tq06h7xr3js0z7r0000gn/T/tmpCupTAS.o -fvisibility=hidden
  building 'pcst_fast' extension
  creating build/temp.macosx-10.6-intel-2.7
  creating build/temp.macosx-10.6-intel-2.7/src
  /usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/Users/travis/Library/Python/2.7/include/python2.7 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/pcst_fast_pybind.cc -o build/temp.macosx-10.6-intel-2.7/src/pcst_fast_pybind.o -stdlib=libc++ -mmacosx-version-min=10.7 -DVERSION_INFO="1.0.2" -std=c++11 -fvisibility=hidden
  src/pcst_fast_pybind.cc:6:10: fatal error: 'pybind11/pybind11.h' file not found
  #include <pybind11/pybind11.h>
           ^
  1 error generated.
  error: command '/usr/bin/clang' failed with exit status 1
  
  ----------------------------------------
  Failed building wheel for pcst-fast

@Chunde
Copy link

Chunde commented Feb 8, 2018

I built the pybind first, then tried the python_example, it poped same error as here, I can 't find any useful document for how to set up system vairbles.

@DomHudson
Copy link

Hi, I commented on this here on the main pybind repository. Copying here for posterity:


This actually appears to be a pip problem. When creating the virtualenv it was installing pip 10.0.0b1 which doesn't have the necessary locations package that pybind11 looks for. Instead the package is located at pip._internal.locations.

https://github.com/pypa/pip/blob/release/10.0.0/src/pip/_internal/locations.py)`.

Forcing an install of the previous non-beta version fixes it for now.

pip install pip==9.0.3

@SylvainCorlay
Copy link
Member

This actually appears to be a pip problem. When creating the virtualenv it was installing pip 10.0.0b1 which doesn't have the necessary locations package that pybind11 looks for. Instead the package is located at pip._internal.locations.

I think that this should be reported to upstream pip before they release 10.0.

pip.locations is a public API that has no equivalent elsewhere.

@SylvainCorlay
Copy link
Member

opened issue in pip: pypa/pip#5191

@wjakob
Copy link
Member

wjakob commented Apr 8, 2018

To my knowledge, this is fixed by pybind11 PR #1190. Can you verify? If so, we should probably get that merged soon.

@DomHudson
Copy link

Lovely thank you @wjakob . Indeed installing that version prior to this example package and all compiles successfully.

@SylvainCorlay
Copy link
Member

Thanks. I will run a test with homebrew python tomorrow which uses a different distutils scheme.

@am2222
Copy link

am2222 commented May 23, 2019

Hi
I have similar error


before_install.1
1.72s$ sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
gpg: keyring `/tmp/tmp3f_yo5yb/secring.gpg' created
gpg: keyring `/tmp/tmp3f_yo5yb/pubring.gpg' created
gpg: requesting key BA9EF27F from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp3f_yo5yb/trustdb.gpg: trustdb created
gpg: key BA9EF27F: public key "Launchpad Toolchain builds" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK
before_install.2
8.91s$ sudo apt-get update -qq
before_install.3
85.08s$ sudo apt-get install gcc-5 -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  cpp-5 g++-5 gcc-5-base gcc-7-base gcc-9-base libasan2 libatomic1 libcc1-0
  libcilkrts5 libgcc-5-dev libgomp1 libitm1 liblsan0 libmpx0 libquadmath0
  libstdc++-5-dev libstdc++6 libtsan0 libubsan0
Suggested packages:
  gcc-5-locales g++-5-multilib gcc-5-doc libstdc++6-5-dbg gcc-5-multilib
  libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg libasan2-dbg
  liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg libmpx0-dbg
  libquadmath0-dbg libstdc++-5-doc
The following NEW packages will be installed:
  gcc-7-base gcc-9-base
The following packages will be upgraded:
  cpp-5 g++-5 gcc-5 gcc-5-base libasan2 libatomic1 libcc1-0 libcilkrts5
  libgcc-5-dev libgomp1 libitm1 liblsan0 libmpx0 libquadmath0 libstdc++-5-dev
  libstdc++6 libtsan0 libubsan0
18 upgraded, 2 newly installed, 0 to remove and 110 not upgraded.
Need to get 30.3 MB of archives.
After this operation, 1,604 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 gcc-9-base amd64 9.1.0-2ubuntu2~16.04 [17.6 kB]
Get:2 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libstdc++6 amd64 9.1.0-2ubuntu2~16.04 [517 kB]
Get:3 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libgomp1 amd64 9.1.0-2ubuntu2~16.04 [89.0 kB]
Get:4 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libitm1 amd64 9.1.0-2ubuntu2~16.04 [27.8 kB]
Get:5 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libatomic1 amd64 9.1.0-2ubuntu2~16.04 [9,084 B]
Get:6 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libasan2 amd64 5.5.0-12ubuntu1~16.04 [265 kB]
Get:7 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 liblsan0 amd64 9.1.0-2ubuntu2~16.04 [139 kB]
Get:8 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libtsan0 amd64 9.1.0-2ubuntu2~16.04 [301 kB]
Get:9 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 gcc-7-base amd64 7.4.0-1ubuntu1~16.04~ppa1 [18.8 kB]
Get:10 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libubsan0 amd64 7.4.0-1ubuntu1~16.04~ppa1 [126 kB]
Get:11 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libcilkrts5 amd64 7.4.0-1ubuntu1~16.04~ppa1 [42.4 kB]
Get:12 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libmpx0 amd64 5.5.0-12ubuntu1~16.04 [9,830 B]
Get:13 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libquadmath0 amd64 9.1.0-2ubuntu2~16.04 [145 kB]
Get:14 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 g++-5 amd64 5.5.0-12ubuntu1~16.04 [8,446 kB]
Get:15 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 gcc-5 amd64 5.5.0-12ubuntu1~16.04 [8,620 kB]
Get:16 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libstdc++-5-dev amd64 5.5.0-12ubuntu1~16.04 [1,421 kB]
Get:17 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libgcc-5-dev amd64 5.5.0-12ubuntu1~16.04 [2,231 kB]
Get:18 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libcc1-0 amd64 9.1.0-2ubuntu2~16.04 [48.5 kB]
Get:19 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 cpp-5 amd64 5.5.0-12ubuntu1~16.04 [7,796 kB]
Get:20 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 gcc-5-base amd64 5.5.0-12ubuntu1~16.04 [16.9 kB]
Fetched 30.3 MB in 1min 14s (409 kB/s)
Selecting previously unselected package gcc-9-base:amd64.
(Reading database ... 124189 files and directories currently installed.)
Preparing to unpack .../gcc-9-base_9.1.0-2ubuntu2~16.04_amd64.deb ...
Unpacking gcc-9-base:amd64 (9.1.0-2ubuntu2~16.04) ...
Processing triggers for ccache (3.2.4-1) ...
Updating symlinks in /usr/lib/ccache ...
Setting up gcc-9-base:amd64 (9.1.0-2ubuntu2~16.04) ...
(Reading database ... 124195 files and directories currently installed.)
Preparing to unpack .../libstdc++6_9.1.0-2ubuntu2~16.04_amd64.deb ...
Unpacking libstdc++6:amd64 (9.1.0-2ubuntu2~16.04) over (5.4.0-6ubuntu1~16.04.11) ...
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Setting up libstdc++6:amd64 (9.1.0-2ubuntu2~16.04) ...
Processing triggers for libc-bin (2.23-0ubuntu11) ...
(Reading database ... 124195 files and directories currently installed.)
Preparing to unpack .../libgomp1_9.1.0-2ubuntu2~16.04_amd64.deb ...
Unpacking libgomp1:amd64 (9.1.0-2ubuntu2~16.04) over (5.4.0-6ubuntu1~16.04.11) ...
Preparing to unpack .../libitm1_9.1.0-2ubuntu2~16.04_amd64.deb ...
Unpacking libitm1:amd64 (9.1.0-2ubuntu2~16.04) over (5.4.0-6ubuntu1~16.04.11) ...
Preparing to unpack .../libatomic1_9.1.0-2ubuntu2~16.04_amd64.deb ...
Unpacking libatomic1:amd64 (9.1.0-2ubuntu2~16.04) over (5.4.0-6ubuntu1~16.04.11) ...
Preparing to unpack .../libasan2_5.5.0-12ubuntu1~16.04_amd64.deb ...
Unpacking libasan2:amd64 (5.5.0-12ubuntu1~16.04) over (5.4.0-6ubuntu1~16.04.11) ...
Preparing to unpack .../liblsan0_9.1.0-2ubuntu2~16.04_amd64.deb ...
Unpacking liblsan0:amd64 (9.1.0-2ubuntu2~16.04) over (5.4.0-6ubuntu1~16.04.11) ...
Preparing to unpack .../libtsan0_9.1.0-2ubuntu2~16.04_amd64.deb ...
Unpacking libtsan0:amd64 (9.1.0-2ubuntu2~16.04) over (5.4.0-6ubuntu1~16.04.11) ...
Selecting previously unselected package gcc-7-base:amd64.
Preparing to unpack .../gcc-7-base_7.4.0-1ubuntu1~16.04~ppa1_amd64.deb ...
Unpacking gcc-7-base:amd64 (7.4.0-1ubuntu1~16.04~ppa1) ...
Preparing to unpack .../libubsan0_7.4.0-1ubuntu1~16.04~ppa1_amd64.deb ...
Unpacking libubsan0:amd64 (7.4.0-1ubuntu1~16.04~ppa1) over (5.4.0-6ubuntu1~16.04.11) ...
Preparing to unpack .../libcilkrts5_7.4.0-1ubuntu1~16.04~ppa1_amd64.deb ...
Unpacking libcilkrts5:amd64 (7.4.0-1ubuntu1~16.04~ppa1) over (5.4.0-6ubuntu1~16.04.11) ...
Preparing to unpack .../libmpx0_5.5.0-12ubuntu1~16.04_amd64.deb ...
Unpacking libmpx0:amd64 (5.5.0-12ubuntu1~16.04) over (5.4.0-6ubuntu1~16.04.11) ...
Preparing to unpack .../libquadmath0_9.1.0-2ubuntu2~16.04_amd64.deb ...
Unpacking libquadmath0:amd64 (9.1.0-2ubuntu2~16.04) over (5.4.0-6ubuntu1~16.04.11) ...
Preparing to unpack .../g++-5_5.5.0-12ubuntu1~16.04_amd64.deb ...
Unpacking g++-5 (5.5.0-12ubuntu1~16.04) over (5.4.0-6ubuntu1~16.04.11) ...
Preparing to unpack .../gcc-5_5.5.0-12ubuntu1~16.04_amd64.deb ...
Unpacking gcc-5 (5.5.0-12ubuntu1~16.04) over (5.4.0-6ubuntu1~16.04.11) ...
Preparing to unpack .../libstdc++-5-dev_5.5.0-12ubuntu1~16.04_amd64.deb ...
Unpacking libstdc++-5-dev:amd64 (5.5.0-12ubuntu1~16.04) over (5.4.0-6ubuntu1~16.04.11) ...
Preparing to unpack .../libgcc-5-dev_5.5.0-12ubuntu1~16.04_amd64.deb ...
Unpacking libgcc-5-dev:amd64 (5.5.0-12ubuntu1~16.04) over (5.4.0-6ubuntu1~16.04.11) ...
Preparing to unpack .../libcc1-0_9.1.0-2ubuntu2~16.04_amd64.deb ...
Unpacking libcc1-0:amd64 (9.1.0-2ubuntu2~16.04) over (5.4.0-6ubuntu1~16.04.11) ...
Preparing to unpack .../cpp-5_5.5.0-12ubuntu1~16.04_amd64.deb ...
Unpacking cpp-5 (5.5.0-12ubuntu1~16.04) over (5.4.0-6ubuntu1~16.04.11) ...
Preparing to unpack .../gcc-5-base_5.5.0-12ubuntu1~16.04_amd64.deb ...
Unpacking gcc-5-base:amd64 (5.5.0-12ubuntu1~16.04) over (5.4.0-6ubuntu1~16.04.11) ...
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Processing triggers for ccache (3.2.4-1) ...
Updating symlinks in /usr/lib/ccache ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libgomp1:amd64 (9.1.0-2ubuntu2~16.04) ...
Setting up libitm1:amd64 (9.1.0-2ubuntu2~16.04) ...
Setting up libatomic1:amd64 (9.1.0-2ubuntu2~16.04) ...
Setting up gcc-5-base:amd64 (5.5.0-12ubuntu1~16.04) ...
Setting up libasan2:amd64 (5.5.0-12ubuntu1~16.04) ...
Setting up liblsan0:amd64 (9.1.0-2ubuntu2~16.04) ...
Setting up libtsan0:amd64 (9.1.0-2ubuntu2~16.04) ...
Setting up gcc-7-base:amd64 (7.4.0-1ubuntu1~16.04~ppa1) ...
Setting up libubsan0:amd64 (7.4.0-1ubuntu1~16.04~ppa1) ...
Setting up libcilkrts5:amd64 (7.4.0-1ubuntu1~16.04~ppa1) ...
Setting up libmpx0:amd64 (5.5.0-12ubuntu1~16.04) ...
Setting up libquadmath0:amd64 (9.1.0-2ubuntu2~16.04) ...
Setting up cpp-5 (5.5.0-12ubuntu1~16.04) ...
Setting up libcc1-0:amd64 (9.1.0-2ubuntu2~16.04) ...
Setting up libgcc-5-dev:amd64 (5.5.0-12ubuntu1~16.04) ...
Setting up gcc-5 (5.5.0-12ubuntu1~16.04) ...
Setting up libstdc++-5-dev:amd64 (5.5.0-12ubuntu1~16.04) ...
Setting up g++-5 (5.5.0-12ubuntu1~16.04) ...
Processing triggers for libc-bin (2.23-0ubuntu11) ...
before_install.4
0.77s$ sudo apt-get install g++-5 -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
g++-5 is already the newest version (5.5.0-12ubuntu1~16.04).
g++-5 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 110 not upgraded.
before_install.5
4.54s$ sudo apt-get install python-pip python-dev build-essential
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.1ubuntu2).
python-dev is already the newest version (2.7.12-1~16.04).
The following additional packages will be installed:
  python-pip-whl
Recommended packages:
  python-all-dev python-setuptools python-wheel
The following NEW packages will be installed:
  python-pip python-pip-whl
0 upgraded, 2 newly installed, 0 to remove and 110 not upgraded.
Need to get 1,255 kB of archives.
After this operation, 1,854 kB of additional disk space will be used.
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 python-pip-whl all 8.1.1-2ubuntu0.4 [1,110 kB]
Get:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 python-pip all 8.1.1-2ubuntu0.4 [144 kB]
Fetched 1,255 kB in 0s (3,068 kB/s)
Selecting previously unselected package python-pip-whl.
(Reading database ... 124207 files and directories currently installed.)
Preparing to unpack .../python-pip-whl_8.1.1-2ubuntu0.4_all.deb ...
Unpacking python-pip-whl (8.1.1-2ubuntu0.4) ...
Selecting previously unselected package python-pip.
Preparing to unpack .../python-pip_8.1.1-2ubuntu0.4_all.deb ...
Unpacking python-pip (8.1.1-2ubuntu0.4) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up python-pip-whl (8.1.1-2ubuntu0.4) ...
Setting up python-pip (8.1.1-2ubuntu0.4) ...
before_install.6
4.27s$ sudo apt-get install python3-setuptools
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  python-setuptools-doc
The following NEW packages will be installed:
  python3-setuptools
0 upgraded, 1 newly installed, 0 to remove and 110 not upgraded.
Need to get 88.0 kB of archives.
After this operation, 439 kB of additional disk space will be used.
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 python3-setuptools all 20.7.0-1 [88.0 kB]
Fetched 88.0 kB in 0s (654 kB/s)
Selecting previously unselected package python3-setuptools.
(Reading database ... 124333 files and directories currently installed.)
Preparing to unpack .../python3-setuptools_20.7.0-1_all.deb ...
Unpacking python3-setuptools (20.7.0-1) ...
Setting up python3-setuptools (20.7.0-1) ...
before_install.7
4.50s$ sudo apt-get install python3-pip
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Recommended packages:
  python3-wheel
The following NEW packages will be installed:
  python3-pip
0 upgraded, 1 newly installed, 0 to remove and 110 not upgraded.
Need to get 109 kB of archives.
After this operation, 569 kB of additional disk space will be used.
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 python3-pip all 8.1.1-2ubuntu0.4 [109 kB]
Fetched 109 kB in 0s (691 kB/s)
Selecting previously unselected package python3-pip.
(Reading database ... 124391 files and directories currently installed.)
Preparing to unpack .../python3-pip_8.1.1-2ubuntu0.4_all.deb ...
Unpacking python3-pip (8.1.1-2ubuntu0.4) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up python3-pip (8.1.1-2ubuntu0.4) ...
before_install.8
3.00s$ sudo pip install --user --upgrade pip virtualenv
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.
  warnings.warn(warning, RequestsDependencyWarning)
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
The directory '/home/travis/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/travis/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting pip
  Downloading https://files.pythonhosted.org/packages/5c/e0/be401c003291b56efc55aeba6a80ab790d3d4cece2778288d65323009420/pip-19.1.1-py2.py3-none-any.whl (1.4MB)
    100% |████████████████████████████████| 1.4MB 14.6MB/s 
Collecting virtualenv
  Downloading https://files.pythonhosted.org/packages/ca/ee/8375c01412abe6ff462ec80970e6bb1c4308724d4366d7519627c98691ab/virtualenv-16.6.0-py2.py3-none-any.whl (2.0MB)
    100% |████████████████████████████████| 2.0MB 8.5MB/s 
Installing collected packages: pip, virtualenv
  The script virtualenv is installed in '/home/travis/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed pip-19.1.1 virtualenv-16.6.0
You are using pip version 19.0.3, however version 19.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
before_install.9
0.87s$ sudo pip install --user setuptools
/home/travis/.local/lib/python2.7/site-packages/pip/_vendor/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.
  warnings.warn(warning, RequestsDependencyWarning)
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
WARNING: The directory '/home/travis/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
WARNING: The directory '/home/travis/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: setuptools in /usr/local/lib/python2.7/dist-packages (40.8.0)
before_install.10
5.16s$ sudo virtualenv -p python3 venv
Running virtualenv with interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /home/travis/build/am2222/pydggrid/venv/bin/python3
Also creating executable in /home/travis/build/am2222/pydggrid/venv/bin/python
Installing setuptools, pip, wheel...
done.
before_install.11
0.01s$ source venv/bin/activate
before_install.12
1.03s$ sudo pip install pybind11
/home/travis/.local/lib/python2.7/site-packages/pip/_vendor/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.
  warnings.warn(warning, RequestsDependencyWarning)
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
WARNING: The directory '/home/travis/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
WARNING: The directory '/home/travis/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting pybind11
  Downloading https://files.pythonhosted.org/packages/f2/7c/e71995e59e108799800cb0fce6c4b4927914d7eada0723dd20bae3b51786/pybind11-2.2.4-py2.py3-none-any.whl (145kB)
     |████████████████████████████████| 153kB 3.3MB/s 
Installing collected packages: pybind11
Successfully installed pybind11-2.2.4
before_install.13
1.57s$ sudo python3 -m pip install pybind11
The directory '/home/travis/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/travis/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting pybind11
  Downloading https://files.pythonhosted.org/packages/f2/7c/e71995e59e108799800cb0fce6c4b4927914d7eada0723dd20bae3b51786/pybind11-2.2.4-py2.py3-none-any.whl (145kB)
    100% |████████████████████████████████| 153kB 4.2MB/s 
Installing collected packages: pybind11
Successfully installed pybind11
You are using pip version 8.1.1, however version 19.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
install.1
0.00s$ cd $TRAVIS_BUILD_DIR/
install.2
0.01s$ ls
conda.recipe  docs     MANIFEST.in  setup.py  tests
dist	      LICENSE  README.md    src       venv
install.3
0.48s$ sudo python3 setup.py sdist
/usr/include/python3.5m
/home/travis/build/am2222/pydggrid
running sdist
running egg_info
creating pydggrid.egg-info
writing dependency_links to pydggrid.egg-info/dependency_links.txt
writing top-level names to pydggrid.egg-info/top_level.txt
writing pydggrid.egg-info/PKG-INFO
writing requirements to pydggrid.egg-info/requires.txt
writing manifest file 'pydggrid.egg-info/SOURCES.txt'
reading manifest file 'pydggrid.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'src/dggrid/*.hpp'
writing manifest file 'pydggrid.egg-info/SOURCES.txt'
warning: sdist: standard file not found: should have one of README, README.rst, README.txt
running check
creating pydggrid-0.0.1
creating pydggrid-0.0.1/pydggrid.egg-info
creating pydggrid-0.0.1/src
creating pydggrid-0.0.1/src/dggrid
making hard links in pydggrid-0.0.1...
hard linking MANIFEST.in -> pydggrid-0.0.1
hard linking setup.py -> pydggrid-0.0.1
hard linking pydggrid.egg-info/PKG-INFO -> pydggrid-0.0.1/pydggrid.egg-info
hard linking pydggrid.egg-info/SOURCES.txt -> pydggrid-0.0.1/pydggrid.egg-info
hard linking pydggrid.egg-info/dependency_links.txt -> pydggrid-0.0.1/pydggrid.egg-info
hard linking pydggrid.egg-info/not-zip-safe -> pydggrid-0.0.1/pydggrid.egg-info
hard linking pydggrid.egg-info/requires.txt -> pydggrid-0.0.1/pydggrid.egg-info
hard linking pydggrid.egg-info/top_level.txt -> pydggrid-0.0.1/pydggrid.egg-info
hard linking src/dggrid/Dg2WayConverter.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgAddress.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgAddressBase.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgAddressBase.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgBase.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgBase.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgBoundedHexC2RF2D.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgBoundedHexC2RF2D.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgBoundedIDGG.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgBoundedIDGG.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgBoundedIDGGS.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgBoundedIDGGS.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgBoundedRF.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgBoundedRF2D.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgBoundedRF2D.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgBoundedRFBase.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgBoundedRFS2D.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgBoundedRFS2D.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgBoundedRF_template.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgCell.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgCell.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgColor.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgColor.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgConstants.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgContCartRF.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgConverter.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgConverterBase.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgConverterBase.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgDVec2D.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgDVec2D.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgDVec3D.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgDVec3D.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgDiscRF.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgDiscRF2D.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgDiscRFS.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgDiscRFS2D.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgDiscRFS2D.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgDiscRFS_template.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgDiscRF_template.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgDistance.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgDistanceBase.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgDmdD4Grid2D.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgDmdD4Grid2D.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgDmdD4Grid2DS.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgDmdD4Grid2DS.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgDmdD8Grid2D.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgDmdD8Grid2D.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgDmdD8Grid2DS.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgDmdD8Grid2DS.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgEllipsoidRF.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgEllipsoidRF.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgGeoDatumRF.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgGeoProjConverter.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgGeoProjRF.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgGeoSphRF.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgGeoSphRF.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgHexC1Grid2D.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgHexC1Grid2D.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgHexC2Grid2D.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgHexC2Grid2D.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgHexGrid2DS.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgHexGrid2DS.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgIDGG.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgIDGG.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgIDGGS.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgIDGGS.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgIDGGS3H.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgIDGGS3H.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgIDGGS43H.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgIDGGS43H.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgIDGGS4D.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgIDGGS4D.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgIDGGS4H.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgIDGGS4H.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgIDGGS4T.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgIDGGS4T.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgIVec2D.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgIVec2D.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgIVec3D.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgIVec3D.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgIcosaMap.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgIcosaMap.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgIcosaProj.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgInAIGenFile.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgInAIGenFile.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgInLocFile.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgInLocTextFile.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgInLocTextFile.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgInShapefile.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgInShapefile.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgInShapefileAtt.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgInShapefileAtt.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgInputStream.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgInputStream.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgLabelLoc.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgLocBase.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgLocBase.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgLocList.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgLocList.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgLocVector.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgLocVector.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgLocation.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgLocation.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgOutAIGenFile.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgOutAIGenFile.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgOutGeoJSONFile.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgOutGeoJSONFile.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgOutKMLfile.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgOutKMLfile.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgOutLocFile.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgOutLocFile.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgOutLocTextFile.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgOutLocTextFile.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgOutPtsText.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgOutPtsText.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgOutRandPtsText.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgOutRandPtsText.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgOutShapefile.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgOutShapefile.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgOutputStream.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgOutputStream.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgParamList.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgParamList.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgPhysicalRF.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgPhysicalRF2D.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgPhysicalRF2D_template.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgPhysicalRFBase.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgPhysicalRFBase_template.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgPhysicalRFS2D.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgPhysicalRFS2D_template.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgPhysicalRF_template.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgPolygon.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgPolygon.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgProjFuller.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgProjFuller.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgProjGnomonicRF.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgProjGnomonicRF.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgProjISEA.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgProjISEA.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgProjTriRF.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgProjTriRF.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgRF.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgRFBase.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgRFBase.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgRFNetwork.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgRFNetwork.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgRF_template.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgRadixString.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgRandom.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgRandom.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgSeriesConverter.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgSeriesConverter.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgSpatialDB.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgSqrD4Grid2D.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgSqrD4Grid2D.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgSqrD4Grid2DS.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgSqrD4Grid2DS.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgSqrD8Grid2D.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgSqrD8Grid2D.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgSqrD8Grid2DS.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgSqrD8Grid2DS.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgString.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgSuperfund.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgSuperfund.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgTriGrid2D.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgTriGrid2D.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgTriGrid2DS.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgTriGrid2DS.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgUtil.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/DgUtil.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/PJ_gnom.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/adjlon.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/cgen_body.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/cgen_funcs.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/cgen_head.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/clipper.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/clipper.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/dggrid.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/dglib.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/hypot.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/pj_auth.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/pj_mlfn.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/pj_msfn.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/pj_phi2.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/pj_qsfn.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/pj_tsfn.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/proj4.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/shapefil.h -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/util.cpp -> pydggrid-0.0.1/src/dggrid
hard linking src/dggrid/util.h -> pydggrid-0.0.1/src/dggrid
Writing pydggrid-0.0.1/setup.cfg
Creating tar archive
removing 'pydggrid-0.0.1' (and everything under it)
1.91s$ sudo pip install --verbose dist/*.tar.gz
/home/travis/.local/lib/python2.7/site-packages/pip/_vendor/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.
  warnings.warn(warning, RequestsDependencyWarning)
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
WARNING: The directory '/home/travis/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Created temporary directory: /tmp/pip-ephem-wheel-cache-G6Zwtc

Created temporary directory: /tmp/pip-req-tracker-rg5H5R
Created requirements tracker '/tmp/pip-req-tracker-rg5H5R'
Created temporary directory: /tmp/pip-install-hArYya
Processing ./dist/pydggrid-0.0.1.tar.gz
  Created temporary directory: /tmp/pip-req-build-cQwNxr
  Added file:///home/travis/build/am2222/pydggrid/dist/pydggrid-0.0.1.tar.gz to build tracker '/tmp/pip-req-tracker-rg5H5R'
    Running setup.py (path:/tmp/pip-req-build-cQwNxr/setup.py) egg_info for package from file:///home/travis/build/am2222/pydggrid/dist/pydggrid-0.0.1.tar.gz
    Running command python setup.py egg_info
    /usr/local/include/python2.7
    /tmp/pip-req-build-cQwNxr
    running egg_info
    creating pip-egg-info/pydggrid.egg-info
    writing requirements to pip-egg-info/pydggrid.egg-info/requires.txt
    writing pip-egg-info/pydggrid.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/pydggrid.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/pydggrid.egg-info/dependency_links.txt
    writing manifest file 'pip-egg-info/pydggrid.egg-info/SOURCES.txt'
    reading manifest file 'pip-egg-info/pydggrid.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching 'src/dggrid/*.hpp'
    writing manifest file 'pip-egg-info/pydggrid.egg-info/SOURCES.txt'
  Source in /tmp/pip-req-build-cQwNxr has version 0.0.1, which satisfies requirement pydggrid==0.0.1 from file:///home/travis/build/am2222/pydggrid/dist/pydggrid-0.0.1.tar.gz
  Removed pydggrid==0.0.1 from file:///home/travis/build/am2222/pydggrid/dist/pydggrid-0.0.1.tar.gz from build tracker '/tmp/pip-req-tracker-rg5H5R'
Requirement already satisfied: pybind11>=2.2 in /usr/local/lib/python2.7/dist-packages (from pydggrid==0.0.1) (2.2.4)
Building wheels for collected packages: pydggrid
  Created temporary directory: /tmp/pip-wheel-DOxzTY
  Building wheel for pydggrid (setup.py) ...   Destination directory: /tmp/pip-wheel-DOxzTY
  Running command /usr/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-req-build-cQwNxr/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-DOxzTY --python-tag cp27
  /usr/local/include/python2.7
  /tmp/pip-req-build-cQwNxr
  running bdist_wheel
  running build
  running build_ext
  creating tmp
  gcc -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c /tmp/tmpJihpNl.cpp -o tmp/tmpJihpNl.o -std=c++14
  cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
  gcc -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c /tmp/tmpnkVLd3.cpp -o tmp/tmpnkVLd3.o -fvisibility=hidden
  cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
  building 'pydggrid' extension
  creating build
  creating build/temp.linux-x86_64-2.7
  creating build/temp.linux-x86_64-2.7/tmp
  creating build/temp.linux-x86_64-2.7/tmp/pip-req-build-cQwNxr
  creating build/temp.linux-x86_64-2.7/tmp/pip-req-build-cQwNxr/src
  creating build/temp.linux-x86_64-2.7/tmp/pip-req-build-cQwNxr/src/dggrid
  gcc -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/include/python3.6 -I/usr/local/include/python3.6 -I/usr/local/include/python2.7 -I/home/travis/.local/include/python2.7 -I/usr/include/python2.7 -c /tmp/pip-req-build-cQwNxr/src/main.cpp -o build/temp.linux-x86_64-2.7/tmp/pip-req-build-cQwNxr/src/main.o -DVERSION_INFO="0.0.1" -std=c++14 -fvisibility=hidden
  gcc: error: /tmp/pip-req-build-cQwNxr/src/main.cpp: No such file or directory
  gcc: fatal error: no input files
  compilation terminated.
  error: command 'gcc' failed with exit status 1
error
  ERROR: Failed building wheel for pydggrid
  Running setup.py clean for pydggrid
  Running command /usr/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-req-build-cQwNxr/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' clean --all
  /usr/local/include/python2.7
  /tmp/pip-req-build-cQwNxr
  running clean
  removing 'build/temp.linux-x86_64-2.7' (and everything under it)
  'build/lib.linux-x86_64-2.7' does not exist -- can't clean it
  'build/bdist.linux-x86_64' does not exist -- can't clean it
  'build/scripts-2.7' does not exist -- can't clean it
  removing 'build'
Failed to build pydggrid
Installing collected packages: pydggrid
  Created temporary directory: /tmp/pip-record-62_96D
    Running command /usr/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-req-build-cQwNxr/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-62_96D/install-record.txt --single-version-externally-managed --compile
  Running setup.py install for pydggrid ...     /usr/local/include/python2.7
    /tmp/pip-req-build-cQwNxr
    running install
    running build
    running build_ext
    gcc -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c /tmp/tmpXLaspq.cpp -o tmp/tmpXLaspq.o -std=c++14
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    gcc -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c /tmp/tmp6N7P90.cpp -o tmp/tmp6N7P90.o -fvisibility=hidden
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    building 'pydggrid' extension
    creating build
    creating build/temp.linux-x86_64-2.7
    creating build/temp.linux-x86_64-2.7/tmp
    creating build/temp.linux-x86_64-2.7/tmp/pip-req-build-cQwNxr
    creating build/temp.linux-x86_64-2.7/tmp/pip-req-build-cQwNxr/src
    creating build/temp.linux-x86_64-2.7/tmp/pip-req-build-cQwNxr/src/dggrid
    gcc -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/include/python3.6 -I/usr/local/include/python3.6 -I/usr/local/include/python2.7 -I/home/travis/.local/include/python2.7 -I/usr/include/python2.7 -c /tmp/pip-req-build-cQwNxr/src/main.cpp -o build/temp.linux-x86_64-2.7/tmp/pip-req-build-cQwNxr/src/main.o -DVERSION_INFO="0.0.1" -std=c++14 -fvisibility=hidden
    gcc: error: /tmp/pip-req-build-cQwNxr/src/main.cpp: No such file or directory
    gcc: fatal error: no input files
    compilation terminated.
    error: command 'gcc' failed with exit status 1
error
Cleaning up...
  Removing source in /tmp/pip-req-build-cQwNxr
Removed build tracker '/tmp/pip-req-tracker-rg5H5R'

Error says no main.cpp exists in location but it exists in github. How can I debug this error. It is almost few days that I am working on this error

@henryiii
Copy link
Collaborator

Should be fine as of 2.6.0+, probably 2.5+.

@wanzaiqidao
Copy link

You can try to upgrade your pip.
sudo pip3 install --upgrade pip
After I use this, everything is ok

@MessiahHamilton
Copy link

Thank you very much.Im no longer getting errors. :D

@vikasgill1
Copy link

try this:
pip install psycopg2==2.7.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests