Commits


Yasuo Honda authored and Krisztián Szűcs committed 6d52b223d78
ARROW-3618: [Packaging/Documentation] Add `-c conda-forge` option to avoid PackagesNotFoundError While I was following https://github.com/apache/arrow/blob/master/dev/tasks/README.md `conda install` causes `PackagesNotFoundError`. I have addressed it by adding `-c conda-forge` option. Not sure if this is a right way to fix but wanted to be reviewed. ### Steps to reproduce: 1. Install Miniconda ```sh $ bash ./Miniconda3-latest-Linux-x86_64.sh In order to continue the installation process, please review the license agreement. Please, press ENTER to continue >>> Do you accept the license terms? [yes|no] [no] >>> yes Miniconda3 will now be installed into this location: /home/yahonda/miniconda3 - Press ENTER to confirm the location - Press CTRL-C to abort the installation - Or specify a different location below [/home/yahonda/miniconda3] >>> [/home/yahonda/miniconda3] >>> PREFIX=/home/yahonda/miniconda3 installing: python-3.7.0-hc3d631a_0 ... Python 3.7.0 installing: ca-certificates-2018.03.07-0 ... installing: conda-env-2.6.0-1 ... installing: libgcc-ng-8.2.0-hdf63c60_1 ... installing: libstdcxx-ng-8.2.0-hdf63c60_1 ... installing: libffi-3.2.1-hd88cf55_4 ... installing: ncurses-6.1-hf484d3e_0 ... installing: openssl-1.0.2p-h14c3975_0 ... installing: xz-5.2.4-h14c3975_4 ... installing: yaml-0.1.7-had09818_2 ... installing: zlib-1.2.11-ha838bed_2 ... installing: libedit-3.1.20170329-h6b74fdf_2 ... installing: readline-7.0-h7b6447c_5 ... installing: tk-8.6.8-hbc83047_0 ... installing: sqlite-3.24.0-h84994c4_0 ... installing: asn1crypto-0.24.0-py37_0 ... installing: certifi-2018.8.24-py37_1 ... installing: chardet-3.0.4-py37_1 ... installing: idna-2.7-py37_0 ... installing: pycosat-0.6.3-py37h14c3975_0 ... installing: pycparser-2.18-py37_1 ... installing: pysocks-1.6.8-py37_0 ... installing: ruamel_yaml-0.15.46-py37h14c3975_0 ... installing: six-1.11.0-py37_1 ... installing: cffi-1.11.5-py37he75722e_1 ... installing: setuptools-40.2.0-py37_0 ... installing: cryptography-2.3.1-py37hc365091_0 ... installing: wheel-0.31.1-py37_0 ... installing: pip-10.0.1-py37_0 ... installing: pyopenssl-18.0.0-py37_0 ... installing: urllib3-1.23-py37_0 ... installing: requests-2.19.1-py37_0 ... installing: conda-4.5.11-py37_0 ... installation finished. Do you wish the installer to prepend the Miniconda3 install location to PATH in your /home/yahonda/.bashrc ? [yes|no] [no] >>> yes Appending source /home/yahonda/miniconda3/bin/activate to /home/yahonda/.bashrc A backup will be made to: /home/yahonda/.bashrc-miniconda3.bak For this change to become active, you have to open a new terminal. Thank you for installing Miniconda3! $ ``` 2. Install the python dependencies for the script: ```sh $ conda install -y jinja2 pygit2 click ruamel.yaml setuptools_scm github3.py python-gnupg toolz jira Solving environment: failed PackagesNotFoundError: The following packages are not available from current channels: - pygit2 - ruamel.yaml - python-gnupg - jira - github3.py Current channels: - https://repo.anaconda.com/pkgs/main/linux-64 - https://repo.anaconda.com/pkgs/main/noarch - https://repo.anaconda.com/pkgs/free/linux-64 - https://repo.anaconda.com/pkgs/free/noarch - https://repo.anaconda.com/pkgs/r/linux-64 - https://repo.anaconda.com/pkgs/r/noarch - https://repo.anaconda.com/pkgs/pro/linux-64 - https://repo.anaconda.com/pkgs/pro/noarch To search for alternate channels that may provide the conda package you're looking for, navigate to https://anaconda.org and use the search bar at the top of the page. $ ``` ### Actual result: ``` PackagesNotFoundError: The following packages are not available from current channels: ``` ### With `-c conda-forge` option ``` $ conda install -c conda-forge -y jinja2 pygit2 click ruamel.yaml setuptools_scm github3.py python-gnupg toolz jira Solving environment: done ## Package Plan ## environment location: /home/yahonda/miniconda3 added / updated specs: - click - github3.py - jinja2 - jira - pygit2 - python-gnupg - ruamel.yaml - setuptools_scm - toolz The following packages will be downloaded: package | build ---------------------------|----------------- six-1.11.0 | py36_1001 21 KB conda-forge pip-18.1 | py36_1000 1.8 MB conda-forge openssl-1.0.2p | h470a237_1 3.1 MB conda-forge markupsafe-1.0 | py36h470a237_1 33 KB conda-forge python-gnupg-0.4.3 | py_1 16 KB conda-forge ndg-httpsclient-0.5.1 | py_1 26 KB conda-forge requests-oauthlib-1.0.0 | py_1 17 KB conda-forge requests-toolbelt-0.8.0 | py_1 34 KB conda-forge pygit2-0.27.1 | py36h470a237_0 344 KB conda-forge bzip2-1.0.6 | h470a237_2 310 KB conda-forge asn1crypto-0.24.0 | py36_1003 154 KB conda-forge jwcrypto-0.5.0 | py_0 67 KB conda-forge pbr-4.2.0 | py_0 65 KB conda-forge toolz-0.9.0 | py_1 42 KB conda-forge setuptools-40.4.3 | py36_0 554 KB conda-forge click-7.0 | py_0 61 KB conda-forge blinker-1.4 | py_1 13 KB conda-forge cffi-1.11.5 | py36h5e8e0c9_1 404 KB conda-forge pycosat-0.6.3 | py36h470a237_1 216 KB conda-forge python-dateutil-2.7.4 | py_0 203 KB conda-forge python-3.6.6 | h5001a0f_0 20.9 MB conda-forge wheel-0.32.2 | py36_0 34 KB conda-forge libssh2-1.8.0 | h5b517e9_2 240 KB conda-forge libgit2-0.27.5 | h5ee2e84_0 628 KB conda-forge ruamel.yaml-0.15.74 | py36h470a237_0 730 KB conda-forge pyopenssl-18.0.0 | py36_1000 80 KB conda-forge idna-2.7 | py36_1002 131 KB conda-forge pyasn1-0.4.4 | py_1 47 KB conda-forge ca-certificates-2018.10.15 | ha4d7672_0 135 KB conda-forge urllib3-1.23 | py36_1001 152 KB conda-forge cryptography-vectors-2.3.1 | py36_1000 30.5 MB conda-forge pysocks-1.6.8 | py36_1002 22 KB conda-forge jinja2-2.10 | py_1 89 KB conda-forge curl-7.61.1 | h74213dd_2 134 KB conda-forge chardet-3.0.4 | py36_1003 190 KB conda-forge libcurl-7.61.1 | hbdb9355_2 523 KB conda-forge uritemplate.py-3.0.2 | py_1 9 KB conda-forge requests-2.20.0 | py36_1000 84 KB conda-forge oauthlib-2.1.0 | py_0 69 KB conda-forge pyjwt-1.6.4 | py_0 16 KB conda-forge certifi-2018.10.15 | py36_1000 138 KB conda-forge jira-2.0.0 | py_0 46 KB conda-forge cryptography-2.3.1 | py36hdffb7b8_0 960 KB conda-forge pycparser-2.19 | py_0 87 KB conda-forge defusedxml-0.5.0 | py_1 20 KB conda-forge github3.py-1.2.0 | py_0 85 KB conda-forge setuptools_scm-3.1.0 | py_0 18 KB conda-forge conda-4.5.11 | py36_1000 651 KB conda-forge krb5-1.16.1 | hbb41f41_0 1.4 MB conda-forge ruamel_yaml-0.15.71 | py36h470a237_0 550 KB conda-forge ------------------------------------------------------------ Total: 65.9 MB The following NEW packages will be INSTALLED: blinker: 1.4-py_1 conda-forge bzip2: 1.0.6-h470a237_2 conda-forge click: 7.0-py_0 conda-forge cryptography-vectors: 2.3.1-py36_1000 conda-forge curl: 7.61.1-h74213dd_2 conda-forge defusedxml: 0.5.0-py_1 conda-forge github3.py: 1.2.0-py_0 conda-forge jinja2: 2.10-py_1 conda-forge jira: 2.0.0-py_0 conda-forge jwcrypto: 0.5.0-py_0 conda-forge krb5: 1.16.1-hbb41f41_0 conda-forge libcurl: 7.61.1-hbdb9355_2 conda-forge libgit2: 0.27.5-h5ee2e84_0 conda-forge libssh2: 1.8.0-h5b517e9_2 conda-forge markupsafe: 1.0-py36h470a237_1 conda-forge ndg-httpsclient: 0.5.1-py_1 conda-forge oauthlib: 2.1.0-py_0 conda-forge pbr: 4.2.0-py_0 conda-forge pyasn1: 0.4.4-py_1 conda-forge pygit2: 0.27.1-py36h470a237_0 conda-forge pyjwt: 1.6.4-py_0 conda-forge python-dateutil: 2.7.4-py_0 conda-forge python-gnupg: 0.4.3-py_1 conda-forge requests-oauthlib: 1.0.0-py_1 conda-forge requests-toolbelt: 0.8.0-py_1 conda-forge ruamel.yaml: 0.15.74-py36h470a237_0 conda-forge setuptools_scm: 3.1.0-py_0 conda-forge toolz: 0.9.0-py_1 conda-forge uritemplate.py: 3.0.2-py_1 conda-forge The following packages will be UPDATED: asn1crypto: 0.24.0-py37_0 --> 0.24.0-py36_1003 conda-forge ca-certificates: 2018.03.07-0 --> 2018.10.15-ha4d7672_0 conda-forge certifi: 2018.8.24-py37_1 --> 2018.10.15-py36_1000 conda-forge cffi: 1.11.5-py37he75722e_1 --> 1.11.5-py36h5e8e0c9_1 conda-forge chardet: 3.0.4-py37_1 --> 3.0.4-py36_1003 conda-forge conda: 4.5.11-py37_0 --> 4.5.11-py36_1000 conda-forge cryptography: 2.3.1-py37hc365091_0 --> 2.3.1-py36hdffb7b8_0 conda-forge idna: 2.7-py37_0 --> 2.7-py36_1002 conda-forge openssl: 1.0.2p-h14c3975_0 --> 1.0.2p-h470a237_1 conda-forge pip: 10.0.1-py37_0 --> 18.1-py36_1000 conda-forge pycosat: 0.6.3-py37h14c3975_0 --> 0.6.3-py36h470a237_1 conda-forge pycparser: 2.18-py37_1 --> 2.19-py_0 conda-forge pyopenssl: 18.0.0-py37_0 --> 18.0.0-py36_1000 conda-forge pysocks: 1.6.8-py37_0 --> 1.6.8-py36_1002 conda-forge requests: 2.19.1-py37_0 --> 2.20.0-py36_1000 conda-forge ruamel_yaml: 0.15.46-py37h14c3975_0 --> 0.15.71-py36h470a237_0 conda-forge setuptools: 40.2.0-py37_0 --> 40.4.3-py36_0 conda-forge six: 1.11.0-py37_1 --> 1.11.0-py36_1001 conda-forge urllib3: 1.23-py37_0 --> 1.23-py36_1001 conda-forge wheel: 0.31.1-py37_0 --> 0.32.2-py36_0 conda-forge The following packages will be DOWNGRADED: python: 3.7.0-hc3d631a_0 --> 3.6.6-h5001a0f_0 conda-forge Downloading and Extracting Packages six-1.11.0 | 21 KB | ############################################################################################################################################################### | 100% pip-18.1 | 1.8 MB | ############################################################################################################################################################### | 100% openssl-1.0.2p | 3.1 MB | ############################################################################################################################################################### | 100% markupsafe-1.0 | 33 KB | ############################################################################################################################################################### | 100% python-gnupg-0.4.3 | 16 KB | ############################################################################################################################################################### | 100% ndg-httpsclient-0.5. | 26 KB | ############################################################################################################################################################### | 100% requests-oauthlib-1. | 17 KB | ############################################################################################################################################################### | 100% requests-toolbelt-0. | 34 KB | ############################################################################################################################################################### | 100% pygit2-0.27.1 | 344 KB | ############################################################################################################################################################### | 100% bzip2-1.0.6 | 310 KB | ############################################################################################################################################################### | 100% asn1crypto-0.24.0 | 154 KB | ############################################################################################################################################################### | 100% jwcrypto-0.5.0 | 67 KB | ############################################################################################################################################################### | 100% pbr-4.2.0 | 65 KB | ############################################################################################################################################################### | 100% toolz-0.9.0 | 42 KB | ############################################################################################################################################################### | 100% setuptools-40.4.3 | 554 KB | ############################################################################################################################################################### | 100% click-7.0 | 61 KB | ############################################################################################################################################################### | 100% blinker-1.4 | 13 KB | ############################################################################################################################################################### | 100% cffi-1.11.5 | 404 KB | ############################################################################################################################################################### | 100% pycosat-0.6.3 | 216 KB | ############################################################################################################################################################### | 100% python-dateutil-2.7. | 203 KB | ############################################################################################################################################################### | 100% python-3.6.6 | 20.9 MB | ############################################################################################################################################################### | 100% wheel-0.32.2 | 34 KB | ############################################################################################################################################################### | 100% libssh2-1.8.0 | 240 KB | ############################################################################################################################################################### | 100% libgit2-0.27.5 | 628 KB | ############################################################################################################################################################### | 100% ruamel.yaml-0.15.74 | 730 KB | ############################################################################################################################################################### | 100% pyopenssl-18.0.0 | 80 KB | ############################################################################################################################################################### | 100% idna-2.7 | 131 KB | ############################################################################################################################################################### | 100% pyasn1-0.4.4 | 47 KB | ############################################################################################################################################################### | 100% ca-certificates-2018 | 135 KB | ############################################################################################################################################################### | 100% urllib3-1.23 | 152 KB | ############################################################################################################################################################### | 100% cryptography-vectors | 30.5 MB | ############################################################################################################################################################### | 100% pysocks-1.6.8 | 22 KB | ############################################################################################################################################################### | 100% jinja2-2.10 | 89 KB | ############################################################################################################################################################### | 100% curl-7.61.1 | 134 KB | ############################################################################################################################################################### | 100% chardet-3.0.4 | 190 KB | ############################################################################################################################################################### | 100% libcurl-7.61.1 | 523 KB | ############################################################################################################################################################### | 100% uritemplate.py-3.0.2 | 9 KB | ############################################################################################################################################################### | 100% requests-2.20.0 | 84 KB | ############################################################################################################################################################### | 100% oauthlib-2.1.0 | 69 KB | ############################################################################################################################################################### | 100% pyjwt-1.6.4 | 16 KB | ############################################################################################################################################################### | 100% certifi-2018.10.15 | 138 KB | ############################################################################################################################################################### | 100% jira-2.0.0 | 46 KB | ############################################################################################################################################################### | 100% cryptography-2.3.1 | 960 KB | ############################################################################################################################################################### | 100% pycparser-2.19 | 87 KB | ############################################################################################################################################################### | 100% defusedxml-0.5.0 | 20 KB | ############################################################################################################################################################### | 100% github3.py-1.2.0 | 85 KB | ############################################################################################################################################################### | 100% setuptools_scm-3.1.0 | 18 KB | ############################################################################################################################################################### | 100% conda-4.5.11 | 651 KB | ############################################################################################################################################################### | 100% krb5-1.16.1 | 1.4 MB | ############################################################################################################################################################### | 100% ruamel_yaml-0.15.71 | 550 KB | ############################################################################################################################################################### | 100% Preparing transaction: done Verifying transaction: done Executing transaction: done $ ``` Author: Yasuo Honda <yasuo.honda@gmail.com> Closes #2841 from yahonda/add_conda_forge_to_install_packages and squashes the following commits: 03909829 <Yasuo Honda> Add `-c conda-forge` option to avoid PackagesNotFoundError