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

build fails with steps in contribution guidelines #1016

Closed
kaiogu opened this issue Feb 23, 2020 · 7 comments
Closed

build fails with steps in contribution guidelines #1016

kaiogu opened this issue Feb 23, 2020 · 7 comments
Labels
help wanted Contributors especially welcome p2-nice-to-have Less of a priority at the moment. We don't usually deal with this immediately. type: enhancement Something is not clear, small updates, improvement suggestions

Comments

@kaiogu
Copy link
Contributor

kaiogu commented Feb 23, 2020

When I tried to follow the contribution guidelines in https://dvc.org/doc/user-guide/contributing/core, I got a fatal error and could not build dvc.

Logs

(.env) kaio@kaio-SATELLITE-L50-C:~/PycharmProjects/dvc$ pip install -e ".[all,tests]"
Obtaining file:///home/kaio/PycharmProjects/dvc
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting ply>=3.9
  Using cached ply-3.11-py2.py3-none-any.whl (49 kB)
Processing /home/kaio/.cache/pip/wheels/41/99/17/7135f635215e1f61e906295afd11f4f791cfe4ab45f3bfdca2/nanotime-0.5.2-cp37-none-any.whl
Collecting python-dateutil<2.8.1,>=2.1
  Using cached python_dateutil-2.8.0-py2.py3-none-any.whl (226 kB)
Processing /home/kaio/.cache/pip/wheels/e8/e3/d0/a2d476b9cd09b8f5979789e0aaf07119726a3cfb19ee67aa1e/voluptuous-0.11.7-cp37-none-any.whl
Processing /home/kaio/.cache/pip/wheels/3f/eb/fd/69e5177f67b505e44acbd1aedfbe44b91768ee0c4cd5636576/shortuuid-0.5.0-cp37-none-any.whl
Collecting appdirs>=1.4.3
  Using cached appdirs-1.4.3-py2.py3-none-any.whl (12 kB)
Processing /home/kaio/.cache/pip/wheels/f1/e4/16/4981ca97c2d65106b49861e0b35e2660695be7219a2d351ee0/configobj-5.0.6-cp37-none-any.whl
Collecting colorama>=0.3.9
  Using cached colorama-0.4.3-py2.py3-none-any.whl (15 kB)
Collecting pyasn1>=0.4.1
  Using cached pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
Collecting flatten-json>=0.1.6
  Using cached flatten_json-0.1.7-py3-none-any.whl (6.4 kB)
Collecting requests>=2.22.0
  Downloading requests-2.23.0-py2.py3-none-any.whl (58 kB)
     |████████████████████████████████| 58 kB 423 kB/s 
Collecting inflect<4,>=2.1.0
  Using cached inflect-3.0.2-py2.py3-none-any.whl (31 kB)
Collecting pathspec>=0.6.0
  Using cached pathspec-0.7.0-py2.py3-none-any.whl (25 kB)
Processing /home/kaio/.cache/pip/wheels/43/ef/5b/424484e3955a0ac0e364fbf2648aaaab4be135b69a8b2b216d/pyfastcopy-1.0.3-cp37-none-any.whl
Collecting gitpython>3
  Using cached GitPython-3.0.8-py3-none-any.whl (450 kB)
Requirement already satisfied: setuptools>=34.0.0 in ./.env/lib/python3.7/site-packages (from dvc==0.86.5+ffa8fe) (45.2.0)
Collecting pydot>=1.2.4
  Using cached pydot-1.4.1-py2.py3-none-any.whl (19 kB)
Collecting grandalf==0.6
  Using cached grandalf-0.6-py3-none-any.whl (31 kB)
Processing /home/kaio/.cache/pip/wheels/e4/1f/b0/8730974894530362affb8a242aee8f3b42d55ec822c9e2a520/treelib-1.5.5-cp37-none-any.whl
Collecting distro>=1.3.0
  Using cached distro-1.4.0-py2.py3-none-any.whl (17 kB)
Collecting zc.lockfile>=1.2.1
  Using cached zc.lockfile-2.0-py2.py3-none-any.whl (9.7 kB)
Collecting packaging>=19.0
  Using cached packaging-20.1-py2.py3-none-any.whl (36 kB)
Processing /home/kaio/.cache/pip/wheels/d9/45/dd/65f0b38450c47cf7e5312883deb97d065e030c5cca0a365030/PyYAML-5.1.2-cp37-cp37m-linux_x86_64.whl
Collecting ruamel.yaml>=0.16.1
  Using cached ruamel.yaml-0.16.10-py2.py3-none-any.whl (111 kB)
Processing /home/kaio/.cache/pip/wheels/20/5a/d8/1d875df03deae6f178dfdf70238cca33f948ef8a6f5209f2eb/funcy-1.14-py2.py3-none-any.whl
Collecting speedcopy>=2.0.1
  Using cached speedcopy-2.0.1-py3-none-any.whl (11 kB)
Collecting humanize>=0.5.1
  Using cached humanize-1.0.0-py2.py3-none-any.whl (51 kB)
Collecting jsonpath-ng>=1.4.3
  Using cached jsonpath_ng-1.4.3-py2.py3-none-any.whl (29 kB)
Collecting texttable>=0.5.2
  Using cached texttable-1.6.2-py2.py3-none-any.whl (10 kB)
Collecting tqdm<5,>=4.40.0
  Downloading tqdm-4.43.0-py2.py3-none-any.whl (59 kB)
     |████████████████████████████████| 59 kB 522 kB/s 
Processing /home/kaio/.cache/pip/wheels/de/63/64/3699be2a9d0ccdb37c7f16329acf3863fd76eda58c39c737af/networkx-2.3-py2.py3-none-any.whl
Processing /home/kaio/.cache/pip/wheels/4f/51/d7/f65a7b7f37da7594f7021b122fe677187667ad21f1171d2514/flufl.lock-3.2-cp37-none-any.whl
Collecting pyarrow==0.15.1; extra == "all"
  Using cached pyarrow-0.15.1-cp37-cp37m-manylinux2010_x86_64.whl (59.2 MB)
Collecting pydrive2>=1.4.5; extra == "all"
  Using cached PyDrive2-1.4.5-py2.py3-none-any.whl (27 kB)
Collecting boto3>=1.9.201; extra == "all"
  Downloading boto3-1.12.5-py2.py3-none-any.whl (128 kB)
     |████████████████████████████████| 128 kB 618 kB/s 
Collecting paramiko>=2.5.0; extra == "all"
  Using cached paramiko-2.7.1-py2.py3-none-any.whl (206 kB)
Collecting azure-storage-blob==2.1.0; extra == "all"
  Using cached azure_storage_blob-2.1.0-py2.py3-none-any.whl (88 kB)
Processing /home/kaio/.cache/pip/wheels/49/6e/85/b5906782fd8a34fed603bf1000e458eb21b2249e912699ab33/oss2-2.6.1-cp37-none-any.whl
Collecting google-cloud-storage==1.19.0; extra == "all"
  Using cached google_cloud_storage-1.19.0-py2.py3-none-any.whl (69 kB)
Collecting black==19.10b0; extra == "tests"
  Using cached black-19.10b0-py36-none-any.whl (97 kB)
Collecting awscli>=1.16.297; extra == "tests"
  Downloading awscli-1.18.5-py2.py3-none-any.whl (2.9 MB)
     |████████████████████████████████| 2.9 MB 825 kB/s 
Collecting mock>=3.0.0; extra == "tests"
  Using cached mock-4.0.1-py3-none-any.whl (28 kB)
Collecting flake8; extra == "tests"
  Using cached flake8-3.7.9-py2.py3-none-any.whl (69 kB)
Collecting pytest-xdist>=1.26.1; extra == "tests"
  Using cached pytest_xdist-1.31.0-py2.py3-none-any.whl (36 kB)
Collecting flaky>=3.5.3; extra == "tests"
  Using cached flaky-3.6.1-py2.py3-none-any.whl (22 kB)
Collecting pydocstyle<4.0; extra == "tests"
  Using cached pydocstyle-3.0.0-py3-none-any.whl (33 kB)
Collecting xmltodict>=0.11.0; extra == "tests"
  Using cached xmltodict-0.12.0-py2.py3-none-any.whl (9.2 kB)
Processing /home/kaio/.cache/pip/wheels/c5/91/38/1295d9f7a1324b6a22adf410599216e7dd91a3db7e3ebd1176/collective.checkdocs-0.2-cp37-none-any.whl
Processing /home/kaio/.cache/pip/wheels/7c/74/22/be0712e86562730ee300efbad8c9c0e197fa3e473285590344/google_compute_engine-2.8.13-py2.py3-none-any.whl
Requirement already satisfied: wheel>=0.31.1; extra == "tests" in ./.env/lib/python3.7/site-packages (from dvc==0.86.5+ffa8fe) (0.34.2)
Collecting pytest>=4.6.0; extra == "tests"
  Using cached pytest-5.3.5-py3-none-any.whl (235 kB)
Collecting Pygments; extra == "tests"
  Using cached Pygments-2.5.2-py2.py3-none-any.whl (896 kB)
Collecting psutil; extra == "tests"
  Using cached psutil-5.7.0.tar.gz (449 kB)
Collecting pytest-mock==1.11.2; extra == "tests"
  Using cached pytest_mock-1.11.2-py2.py3-none-any.whl (10 kB)
Collecting rangehttpserver==1.2.0; extra == "tests"
  Using cached rangehttpserver-1.2.0-py2.py3-none-any.whl (4.2 kB)
Processing /home/kaio/.cache/pip/wheels/16/cc/5e/ae45eaceeed95a2bbfd16047d82847e3d7bc385a8fad78967f/mock_ssh_server-0.8.0-cp37-none-any.whl
Collecting flake8-docstrings; extra == "tests"
  Using cached flake8_docstrings-1.5.0-py2.py3-none-any.whl (5.5 kB)
Collecting pytest-timeout>=1.3.3; extra == "tests"
  Using cached pytest_timeout-1.3.4-py2.py3-none-any.whl (10 kB)
Collecting pytest-cov>=2.6.1; extra == "tests"
  Using cached pytest_cov-2.8.1-py2.py3-none-any.whl (18 kB)
Collecting moto==1.3.14.dev464; extra == "tests"
  Using cached moto-1.3.14.dev464-py2.py3-none-any.whl (717 kB)
Collecting jaraco.windows==3.9.2; extra == "tests"
  Using cached jaraco.windows-3.9.2-py2.py3-none-any.whl (54 kB)
Collecting six>=1.5
  Using cached six-1.14.0-py2.py3-none-any.whl (10 kB)
Collecting idna<3,>=2.5
  Downloading idna-2.9-py2.py3-none-any.whl (58 kB)
     |████████████████████████████████| 58 kB 510 kB/s 
Collecting certifi>=2017.4.17
  Using cached certifi-2019.11.28-py2.py3-none-any.whl (156 kB)
Collecting chardet<4,>=3.0.2
  Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
  Using cached urllib3-1.25.8-py2.py3-none-any.whl (125 kB)
Collecting importlib-metadata
  Using cached importlib_metadata-1.5.0-py2.py3-none-any.whl (30 kB)
Collecting gitdb2>=3
  Downloading gitdb2-4.0.1-py2.py3-none-any.whl (63 kB)
     |████████████████████████████████| 63 kB 253 kB/s 
Collecting pyparsing>=2.1.4
  Using cached pyparsing-2.4.6-py2.py3-none-any.whl (67 kB)
Processing /home/kaio/.cache/pip/wheels/8b/99/a0/81daf51dcd359a9377b110a8a886b3895921802d2fc1b2397e/future-0.18.2-cp37-none-any.whl
Collecting ruamel.yaml.clib>=0.1.2; platform_python_implementation == "CPython" and python_version < "3.9"
  Using cached ruamel.yaml.clib-0.2.0-cp37-cp37m-manylinux1_x86_64.whl (547 kB)
Collecting decorator
  Using cached decorator-4.4.1-py2.py3-none-any.whl (9.2 kB)
Processing /home/kaio/.cache/pip/wheels/e1/26/5d/fb4b06bb9bb028e49b117b9bdb93c9875e751ff52f6b08aa27/atpublic-1.0-cp37-none-any.whl
Collecting numpy>=1.14
  Using cached numpy-1.18.1-cp37-cp37m-manylinux1_x86_64.whl (20.1 MB)
Processing /home/kaio/.cache/pip/wheels/b8/f6/f5/b7bef1a5bc0e07ca4aa54c596b0b574c5afc07a9fddccf08f8/google_api_python_client-1.7.11-cp37-none-any.whl
Collecting pyOpenSSL>=19.1.0
  Using cached pyOpenSSL-19.1.0-py2.py3-none-any.whl (53 kB)
Collecting oauth2client>=4.0.0
  Using cached oauth2client-4.1.3-py2.py3-none-any.whl (98 kB)
Collecting httplib2<=0.15.0
  Using cached httplib2-0.15.0-py3-none-any.whl (94 kB)
Collecting botocore<1.16.0,>=1.15.5
  Downloading botocore-1.15.5-py2.py3-none-any.whl (5.9 MB)
     |████████████████████████████████| 5.9 MB 34 kB/s 
Collecting jmespath<1.0.0,>=0.7.1
  Using cached jmespath-0.9.4-py2.py3-none-any.whl (24 kB)
Collecting s3transfer<0.4.0,>=0.3.0
  Using cached s3transfer-0.3.3-py2.py3-none-any.whl (69 kB)
Collecting pynacl>=1.0.1
  Using cached PyNaCl-1.3.0-cp34-abi3-manylinux1_x86_64.whl (759 kB)
Collecting bcrypt>=3.1.3
  Using cached bcrypt-3.1.7-cp34-abi3-manylinux1_x86_64.whl (56 kB)
Collecting cryptography>=2.5
  Using cached cryptography-2.8-cp34-abi3-manylinux2010_x86_64.whl (2.3 MB)
Collecting azure-storage-common~=2.1
  Using cached azure_storage_common-2.1.0-py2.py3-none-any.whl (47 kB)
Collecting azure-common>=1.1.5
  Using cached azure_common-1.1.24-py2.py3-none-any.whl (12 kB)
Collecting pycryptodome>=3.4.7
  Downloading pycryptodome-3.9.7-cp37-cp37m-manylinux1_x86_64.whl (13.7 MB)
     |████████████████████████████████| 13.7 MB 856 kB/s 
Processing /home/kaio/.cache/pip/wheels/88/95/86/59eede7821fe229ed531fd71c27caf4dbace660ab9d7de64f3/aliyun_python_sdk_core_v3-2.13.11-cp37-none-any.whl
Processing /home/kaio/.cache/pip/wheels/db/ea/94/cf21e77a277ab19e1ccd954715ee166bfeb3cc2b99797cbbf9/aliyun_python_sdk_kms-2.9.0-cp37-none-any.whl
Processing /home/kaio/.cache/pip/wheels/50/24/4d/4580ca4a299f1ad6fd63443e6e584cb21e9a07988e4aa8daac/crcmod-1.7-cp37-cp37m-linux_x86_64.whl
Collecting google-auth>=1.2.0
  Using cached google_auth-1.11.2-py2.py3-none-any.whl (76 kB)
Collecting google-cloud-core<2.0dev,>=1.0.3
  Using cached google_cloud_core-1.3.0-py2.py3-none-any.whl (26 kB)
Collecting google-resumable-media>=0.3.1
  Using cached google_resumable_media-0.5.0-py2.py3-none-any.whl (38 kB)
Collecting regex
  Downloading regex-2020.2.20-cp37-cp37m-manylinux2010_x86_64.whl (689 kB)
     |████████████████████████████████| 689 kB 896 kB/s 
Collecting toml>=0.9.4
  Using cached toml-0.10.0-py2.py3-none-any.whl (25 kB)
Collecting attrs>=18.1.0
  Using cached attrs-19.3.0-py2.py3-none-any.whl (39 kB)
Collecting click>=6.5
  Using cached Click-7.0-py2.py3-none-any.whl (81 kB)
Collecting typed-ast>=1.4.0
  Using cached typed_ast-1.4.1-cp37-cp37m-manylinux1_x86_64.whl (737 kB)
Collecting docutils<0.16,>=0.10
  Using cached docutils-0.15.2-py3-none-any.whl (547 kB)
Collecting rsa<=3.5.0,>=3.1.2
  Using cached rsa-3.4.2-py2.py3-none-any.whl (46 kB)
Collecting pycodestyle<2.6.0,>=2.5.0
  Using cached pycodestyle-2.5.0-py2.py3-none-any.whl (51 kB)
Collecting mccabe<0.7.0,>=0.6.0
  Using cached mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB)
Collecting entrypoints<0.4.0,>=0.3.0
  Using cached entrypoints-0.3-py2.py3-none-any.whl (11 kB)
Collecting pyflakes<2.2.0,>=2.1.0
  Using cached pyflakes-2.1.1-py2.py3-none-any.whl (59 kB)
Collecting pytest-forked
  Using cached pytest_forked-1.1.3-py2.py3-none-any.whl (4.5 kB)
Collecting execnet>=1.1
  Using cached execnet-1.7.1-py2.py3-none-any.whl (39 kB)
Collecting snowballstemmer
  Using cached snowballstemmer-2.0.0-py2.py3-none-any.whl (97 kB)
Collecting boto
  Using cached boto-2.49.0-py2.py3-none-any.whl (1.4 MB)
Collecting more-itertools>=4.0.0
  Using cached more_itertools-8.2.0-py3-none-any.whl (43 kB)
Collecting wcwidth
  Using cached wcwidth-0.1.8-py2.py3-none-any.whl (17 kB)
Collecting py>=1.5.0
  Using cached py-1.8.1-py2.py3-none-any.whl (83 kB)
Collecting pluggy<1.0,>=0.12
  Using cached pluggy-0.13.1-py2.py3-none-any.whl (18 kB)
Collecting coverage>=4.4
  Using cached coverage-5.0.3-cp37-cp37m-manylinux1_x86_64.whl (227 kB)
Processing /home/kaio/.cache/pip/wheels/46/5f/86/11c6b72b064888e80b98bfcbcdaf2a83517a8cf8f2bb2a3227/jsondiff-1.1.2-cp37-none-any.whl
Collecting sshpubkeys<4.0,>=3.1.0
  Using cached sshpubkeys-3.1.0-py2.py3-none-any.whl (12 kB)
Collecting werkzeug
  Using cached Werkzeug-1.0.0-py2.py3-none-any.whl (298 kB)
Collecting pytz
  Using cached pytz-2019.3-py2.py3-none-any.whl (509 kB)
Collecting responses>=0.9.0
  Using cached responses-0.10.9-py2.py3-none-any.whl (14 kB)
Collecting aws-xray-sdk!=0.96,>=0.93
  Using cached aws_xray_sdk-2.4.3-py2.py3-none-any.whl (87 kB)
Collecting python-jose<4.0.0
  Using cached python_jose-3.1.0-py2.py3-none-any.whl (26 kB)
Collecting docker>=2.5.1
  Using cached docker-4.2.0-py2.py3-none-any.whl (143 kB)
Collecting cfn-lint>=0.4.0
  Downloading cfn_lint-0.28.2-py3-none-any.whl (3.2 MB)
     |████████████████████████████████| 3.2 MB 17 kB/s 
Collecting Jinja2>=2.10.1
  Using cached Jinja2-2.11.1-py2.py3-none-any.whl (126 kB)
Collecting path.py>=6.2
  Using cached path.py-12.4.0-py3-none-any.whl (2.3 kB)
Collecting jaraco.ui
  Using cached jaraco.ui-2.0.1-py2.py3-none-any.whl (7.5 kB)
Collecting jaraco.structures>=1.1.1
  Using cached jaraco.structures-2.0-py2.py3-none-any.whl (4.3 kB)
Collecting jaraco.text
  Using cached jaraco.text-3.2.0-py2.py3-none-any.whl (8.1 kB)
Collecting jaraco.collections
  Using cached jaraco.collections-3.0.0-py2.py3-none-any.whl (9.4 kB)
Collecting zipp>=0.5
  Using cached zipp-3.0.0-py3-none-any.whl (4.8 kB)
Collecting gitdb>=4
  Downloading gitdb-4.0.0-py2.py3-none-any.whl (63 kB)
     |████████████████████████████████| 63 kB 245 kB/s 
Collecting uritemplate<4dev,>=3.0.0
  Using cached uritemplate-3.0.1-py2.py3-none-any.whl (15 kB)
Collecting google-auth-httplib2>=0.0.3
  Using cached google_auth_httplib2-0.0.3-py2.py3-none-any.whl (6.3 kB)
Collecting pyasn1-modules>=0.0.5
  Using cached pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
Collecting cffi>=1.4.1
  Using cached cffi-1.14.0-cp37-cp37m-manylinux1_x86_64.whl (400 kB)
Processing /home/kaio/.cache/pip/wheels/7b/19/33/b4995aaf4c949cf1949f74baac8d79a2ce47268aa4ebce4116/aliyun_python_sdk_core-2.13.14-py3-none-any.whl
Collecting cachetools<5.0,>=2.0.0
  Using cached cachetools-4.0.0-py3-none-any.whl (10 kB)
Collecting google-api-core<2.0.0dev,>=1.16.0
  Using cached google_api_core-1.16.0-py2.py3-none-any.whl (70 kB)
Collecting apipkg>=1.4
  Using cached apipkg-1.5-py2.py3-none-any.whl (4.9 kB)
Collecting ecdsa>=0.13
  Using cached ecdsa-0.15-py2.py3-none-any.whl (100 kB)
Processing /home/kaio/.cache/pip/wheels/e5/78/69/f40ab7cae531c8f07003a9d1b4b81ebec14cda95519c57e7dd/wrapt-1.12.0-py3-none-any.whl
Collecting jsonpickle
  Using cached jsonpickle-1.3-py2.py3-none-any.whl (32 kB)
Collecting websocket-client>=0.32.0
  Using cached websocket_client-0.57.0-py2.py3-none-any.whl (200 kB)
Collecting jsonschema~=3.0
  Using cached jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)
Collecting jsonpatch; python_version != "3.4"
  Using cached jsonpatch-1.25-py2.py3-none-any.whl (11 kB)
Collecting aws-sam-translator>=1.19.1
  Downloading aws-sam-translator-1.21.0.tar.gz (128 kB)
     |████████████████████████████████| 128 kB 1.0 MB/s 
Collecting MarkupSafe>=0.23
  Using cached MarkupSafe-1.1.1-cp37-cp37m-manylinux1_x86_64.whl (27 kB)
Collecting path<13.2
  Using cached path-13.1.0-py3-none-any.whl (19 kB)
Collecting jaraco.classes
  Using cached jaraco.classes-3.1.0-py2.py3-none-any.whl (5.7 kB)
Collecting jaraco.functools
  Using cached jaraco.functools-3.0.0-py2.py3-none-any.whl (6.7 kB)
Collecting smmap>=3
  Downloading smmap-3.0.0-py2.py3-none-any.whl (25 kB)
Processing /home/kaio/.cache/pip/wheels/0e/53/27/fee7fd9562e10dd046caccfc0340b8cf789b46846e660f3380/pycparser-2.19-py2.py3-none-any.whl
Processing /home/kaio/.cache/pip/wheels/2c/f9/7f/6eb87e636072bf467e25348bbeb96849333e6a080dca78f706/googleapis_common_protos-1.51.0-cp37-none-any.whl
Collecting protobuf>=3.4.0
  Using cached protobuf-3.11.3-cp37-cp37m-manylinux1_x86_64.whl (1.3 MB)
Processing /home/kaio/.cache/pip/wheels/b5/78/ac/f26a78a989cd97f90981d96a560d7e1da5e1307284301d94e8/pyrsistent-0.15.7-cp37-cp37m-linux_x86_64.whl
Collecting jsonpointer>=1.9
  Using cached jsonpointer-2.0-py2.py3-none-any.whl (7.6 kB)
Building wheels for collected packages: psutil, aws-sam-translator
  Building wheel for psutil (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/kaio/PycharmProjects/dvc/.env/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-b_khxslz/psutil/setup.py'"'"'; __file__='"'"'/tmp/pip-install-b_khxslz/psutil/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-1gf7rx9_
       cwd: /tmp/pip-install-b_khxslz/psutil/
  Complete output (44 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.7
  creating build/lib.linux-x86_64-3.7/psutil
  copying psutil/_psbsd.py -> build/lib.linux-x86_64-3.7/psutil
  copying psutil/_psaix.py -> build/lib.linux-x86_64-3.7/psutil
  copying psutil/_pslinux.py -> build/lib.linux-x86_64-3.7/psutil
  copying psutil/_compat.py -> build/lib.linux-x86_64-3.7/psutil
  copying psutil/_pswindows.py -> build/lib.linux-x86_64-3.7/psutil
  copying psutil/_pssunos.py -> build/lib.linux-x86_64-3.7/psutil
  copying psutil/__init__.py -> build/lib.linux-x86_64-3.7/psutil
  copying psutil/_psosx.py -> build/lib.linux-x86_64-3.7/psutil
  copying psutil/_common.py -> build/lib.linux-x86_64-3.7/psutil
  copying psutil/_psposix.py -> build/lib.linux-x86_64-3.7/psutil
  creating build/lib.linux-x86_64-3.7/psutil/tests
  copying psutil/tests/test_bsd.py -> build/lib.linux-x86_64-3.7/psutil/tests
  copying psutil/tests/test_sunos.py -> build/lib.linux-x86_64-3.7/psutil/tests
  copying psutil/tests/test_system.py -> build/lib.linux-x86_64-3.7/psutil/tests
  copying psutil/tests/test_process.py -> build/lib.linux-x86_64-3.7/psutil/tests
  copying psutil/tests/runner.py -> build/lib.linux-x86_64-3.7/psutil/tests
  copying psutil/tests/test_misc.py -> build/lib.linux-x86_64-3.7/psutil/tests
  copying psutil/tests/test_connections.py -> build/lib.linux-x86_64-3.7/psutil/tests
  copying psutil/tests/test_osx.py -> build/lib.linux-x86_64-3.7/psutil/tests
  copying psutil/tests/test_posix.py -> build/lib.linux-x86_64-3.7/psutil/tests
  copying psutil/tests/__init__.py -> build/lib.linux-x86_64-3.7/psutil/tests
  copying psutil/tests/test_contracts.py -> build/lib.linux-x86_64-3.7/psutil/tests
  copying psutil/tests/test_memory_leaks.py -> build/lib.linux-x86_64-3.7/psutil/tests
  copying psutil/tests/test_windows.py -> build/lib.linux-x86_64-3.7/psutil/tests
  copying psutil/tests/__main__.py -> build/lib.linux-x86_64-3.7/psutil/tests
  copying psutil/tests/test_aix.py -> build/lib.linux-x86_64-3.7/psutil/tests
  copying psutil/tests/test_linux.py -> build/lib.linux-x86_64-3.7/psutil/tests
  copying psutil/tests/test_unicode.py -> build/lib.linux-x86_64-3.7/psutil/tests
  running build_ext
  building 'psutil._psutil_linux' extension
  creating build/temp.linux-x86_64-3.7
  creating build/temp.linux-x86_64-3.7/psutil
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=570 -DPSUTIL_LINUX=1 -I/usr/include/python3.7m -I/home/kaio/PycharmProjects/dvc/.env/include/python3.7m -c psutil/_psutil_common.c -o build/temp.linux-x86_64-3.7/psutil/_psutil_common.o
  psutil/_psutil_common.c:9:10: fatal error: Python.h: No such file or directory
      9 | #include <Python.h>
        |          ^~~~~~~~~~
  compilation terminated.
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for psutil
  Running setup.py clean for psutil
  Building wheel for aws-sam-translator (setup.py) ... done
  Created wheel for aws-sam-translator: filename=aws_sam_translator-1.21.0-py3-none-any.whl size=162063 sha256=13880c54615d2ddf86bd367d268170662f905837a79b5469c1aee67e1455b49c
  Stored in directory: /home/kaio/.cache/pip/wheels/bb/c1/fd/2d8f7f6ffbfc187e76903b7b8ef9d8625261a9701be4fd1258
Successfully built aws-sam-translator
Failed to build psutil
ERROR: moto 1.3.14.dev464 has requirement idna<2.9,>=2.5, but you'll have idna 2.9 which is incompatible.
Installing collected packages: ply, nanotime, six, python-dateutil, voluptuous, shortuuid, appdirs, configobj, colorama, pyasn1, flatten-json, idna, certifi, chardet, urllib3, requests, zipp, importlib-metadata, inflect, pathspec, pyfastcopy, smmap, gitdb, gitdb2, gitpython, pyparsing, pydot, future, grandalf, treelib, distro, zc.lockfile, packaging, PyYAML, ruamel.yaml.clib, ruamel.yaml, funcy, speedcopy, humanize, decorator, jsonpath-ng, texttable, tqdm, networkx, atpublic, flufl.lock, numpy, pyarrow, uritemplate, pyasn1-modules, cachetools, rsa, google-auth, httplib2, google-auth-httplib2, google-api-python-client, pycparser, cffi, cryptography, pyOpenSSL, oauth2client, pydrive2, docutils, jmespath, botocore, s3transfer, boto3, pynacl, bcrypt, paramiko, azure-common, azure-storage-common, azure-storage-blob, pycryptodome, aliyun-python-sdk-core-v3, aliyun-python-sdk-core, aliyun-python-sdk-kms, crcmod, oss2, protobuf, googleapis-common-protos, pytz, google-api-core, google-cloud-core, google-resumable-media, google-cloud-storage, regex, toml, attrs, click, typed-ast, black, awscli, mock, pycodestyle, mccabe, entrypoints, pyflakes, flake8, more-itertools, wcwidth, py, pluggy, pytest, pytest-forked, apipkg, execnet, pytest-xdist, flaky, snowballstemmer, pydocstyle, xmltodict, collective.checkdocs, boto, google-compute-engine, Pygments, psutil, pytest-mock, rangehttpserver, mock-ssh-server, flake8-docstrings, pytest-timeout, coverage, pytest-cov, jsondiff, ecdsa, sshpubkeys, werkzeug, responses, wrapt, jsonpickle, aws-xray-sdk, python-jose, websocket-client, docker, pyrsistent, jsonschema, jsonpointer, jsonpatch, aws-sam-translator, cfn-lint, MarkupSafe, Jinja2, moto, path, path.py, jaraco.classes, jaraco.functools, jaraco.text, jaraco.ui, jaraco.structures, jaraco.collections, jaraco.windows, dvc
    Running setup.py install for psutil ... error
    ERROR: Command errored out with exit status 1:
     command: /home/kaio/PycharmProjects/dvc/.env/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-b_khxslz/psutil/setup.py'"'"'; __file__='"'"'/tmp/pip-install-b_khxslz/psutil/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-oyaldix0/install-record.txt --single-version-externally-managed --compile --install-headers /home/kaio/PycharmProjects/dvc/.env/include/site/python3.7/psutil
         cwd: /tmp/pip-install-b_khxslz/psutil/
    Complete output (44 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.7
    creating build/lib.linux-x86_64-3.7/psutil
    copying psutil/_psbsd.py -> build/lib.linux-x86_64-3.7/psutil
    copying psutil/_psaix.py -> build/lib.linux-x86_64-3.7/psutil
    copying psutil/_pslinux.py -> build/lib.linux-x86_64-3.7/psutil
    copying psutil/_compat.py -> build/lib.linux-x86_64-3.7/psutil
    copying psutil/_pswindows.py -> build/lib.linux-x86_64-3.7/psutil
    copying psutil/_pssunos.py -> build/lib.linux-x86_64-3.7/psutil
    copying psutil/__init__.py -> build/lib.linux-x86_64-3.7/psutil
    copying psutil/_psosx.py -> build/lib.linux-x86_64-3.7/psutil
    copying psutil/_common.py -> build/lib.linux-x86_64-3.7/psutil
    copying psutil/_psposix.py -> build/lib.linux-x86_64-3.7/psutil
    creating build/lib.linux-x86_64-3.7/psutil/tests
    copying psutil/tests/test_bsd.py -> build/lib.linux-x86_64-3.7/psutil/tests
    copying psutil/tests/test_sunos.py -> build/lib.linux-x86_64-3.7/psutil/tests
    copying psutil/tests/test_system.py -> build/lib.linux-x86_64-3.7/psutil/tests
    copying psutil/tests/test_process.py -> build/lib.linux-x86_64-3.7/psutil/tests
    copying psutil/tests/runner.py -> build/lib.linux-x86_64-3.7/psutil/tests
    copying psutil/tests/test_misc.py -> build/lib.linux-x86_64-3.7/psutil/tests
    copying psutil/tests/test_connections.py -> build/lib.linux-x86_64-3.7/psutil/tests
    copying psutil/tests/test_osx.py -> build/lib.linux-x86_64-3.7/psutil/tests
    copying psutil/tests/test_posix.py -> build/lib.linux-x86_64-3.7/psutil/tests
    copying psutil/tests/__init__.py -> build/lib.linux-x86_64-3.7/psutil/tests
    copying psutil/tests/test_contracts.py -> build/lib.linux-x86_64-3.7/psutil/tests
    copying psutil/tests/test_memory_leaks.py -> build/lib.linux-x86_64-3.7/psutil/tests
    copying psutil/tests/test_windows.py -> build/lib.linux-x86_64-3.7/psutil/tests
    copying psutil/tests/__main__.py -> build/lib.linux-x86_64-3.7/psutil/tests
    copying psutil/tests/test_aix.py -> build/lib.linux-x86_64-3.7/psutil/tests
    copying psutil/tests/test_linux.py -> build/lib.linux-x86_64-3.7/psutil/tests
    copying psutil/tests/test_unicode.py -> build/lib.linux-x86_64-3.7/psutil/tests
    running build_ext
    building 'psutil._psutil_linux' extension
    creating build/temp.linux-x86_64-3.7
    creating build/temp.linux-x86_64-3.7/psutil
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=570 -DPSUTIL_LINUX=1 -I/usr/include/python3.7m -I/home/kaio/PycharmProjects/dvc/.env/include/python3.7m -c psutil/_psutil_common.c -o build/temp.linux-x86_64-3.7/psutil/_psutil_common.o
    psutil/_psutil_common.c:9:10: fatal error: Python.h: No such file or directory
        9 | #include <Python.h>
          |          ^~~~~~~~~~
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/kaio/PycharmProjects/dvc/.env/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-b_khxslz/psutil/setup.py'"'"'; __file__='"'"'/tmp/pip-install-b_khxslz/psutil/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-oyaldix0/install-record.txt --single-version-externally-managed --compile --install-headers /home/kaio/PycharmProjects/dvc/.env/include/site/python3.7/psutil Check the logs for full command output.

I managed to install DVC only after doing pip install python-dev-tools. I got two non-fatal errors though.

Maybe an extra step should be added to the contribution guidelines to install python-dev-tools?

I'm running Ubuntu 19.10

@efiop
Copy link
Contributor

efiop commented Feb 23, 2020

@jorgeorpinel
Copy link
Contributor

So pip install -e ".[all,tests]" can produce ERROR: Failed building wheel for psutil, which is fixed with pip install python-dev-tools.

Is this really a docs issue, or will it be fixed in the core repo?

@efiop
Copy link
Contributor

efiop commented Mar 9, 2020

@jorgeorpinel It won't be fixed in core repo, it is part of setting up a dev env for tests.

@efiop efiop added the p2-nice-to-have Less of a priority at the moment. We don't usually deal with this immediately. label Mar 9, 2020
@jorgeorpinel
Copy link
Contributor

OK. I don't understand what the solution is though. Could you provide the missing info for the docs (at some point)? Thanks

@shcheklein shcheklein changed the title Build fails with steps in contribution guidelines build fails with steps in contribution guidelines Mar 15, 2020
@shcheklein shcheklein added type: enhancement Something is not clear, small updates, improvement suggestions good first issue Good for newcomers help wanted Contributors especially welcome labels Mar 15, 2020
@utkarshsingh99
Copy link
Contributor

Unfortunately, I didn't get any error even after not installing python-dev-tools.

(.env) utkarsh@linuxize:~/Work/dvc-temp/dvc$ pip uninstall python-dev-tools  
WARNING: Skipping python-dev-tools as it is not installed.
(.env) utkarsh@linuxize:~/Work/dvc-temp/dvc$ pip install -e ".[all,tests]"
Obtaining file:///home/utkarsh/Work/GSoD/dvc-temp/dvc
  Installing build dependencies ... done
...(normal installation log)

But it is true that some non-fatal errors turned out while installing.

ERROR: botocore 1.16.13 has requirement docutils<0.16,>=0.10, but you'll have docutils 0.16 which is incompatible.
ERROR: awscli 1.18.63 has requirement docutils<0.16,>=0.10, but you'll have docutils 0.16 which is incompatible.
ERROR: cfn-lint 0.32.1 has requirement networkx~=2.4; python_version >= "3.5", but you'll have networkx 2.3 which is incompatible.
ERROR: moto 1.3.14.dev464 has requirement idna<2.9,>=2.5, but you'll have idna 2.9 which is incompatible.

I know these errors might be subjective to the user's current version of packages.
Looking by the info on python-dev-tools, it seems like installing it might have resolved certain dependencies of required packages in pip install.
But I'm not sure if that would resolve the problem for everyone.
Maybe looking at more cases in q-and-a and need-help channels in Discord could narrow down a more common work-around?

@jorgeorpinel jorgeorpinel removed the good first issue Good for newcomers label May 20, 2020
@jorgeorpinel
Copy link
Contributor

jorgeorpinel commented May 20, 2020

I don't know if this is still an issue. No one else has reported it so maybe let's close for now? Unless you know what's missing from the contrib guide, @efiop. Thanks

@efiop
Copy link
Contributor

efiop commented May 26, 2020

Closing for now. Thanks!

@efiop efiop closed this as completed May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Contributors especially welcome p2-nice-to-have Less of a priority at the moment. We don't usually deal with this immediately. type: enhancement Something is not clear, small updates, improvement suggestions
Projects
None yet
Development

No branches or pull requests

5 participants