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

Required pip version is outdated and causing trouble when installing from PyPI #14

Closed
jeronimoluza opened this issue Aug 17, 2023 · 0 comments

Comments

@jeronimoluza
Copy link
Collaborator

Hi all,

I've been having trouble doing pip install babelgrid with newer versions of Python. After cloning the repo, installing Python 3.11 in a new environment and executing the command pip install . from inside the repository folder it prompts the next error:

Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: /opt/anaconda3/envs/btest/bin/python3.1 /opt/anaconda3/envs/btest/lib/python3.11/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/2x/t13x4mn107zd1xc9j8ks6q300000gn/T/pip-build-env-3r1icnx7/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'poetry>=0.12'
       cwd: None
  Complete output (134 lines):
  Collecting poetry>=0.12
    Using cached poetry-1.5.1-py3-none-any.whl (225 kB)
  Collecting jsonschema<5.0.0,>=4.10.0
    Using cached jsonschema-4.19.0-py3-none-any.whl (83 kB)
  Collecting crashtest<0.5.0,>=0.4.1
    Using cached crashtest-0.4.1-py3-none-any.whl (7.6 kB)
  Collecting cleo<3.0.0,>=2.0.0
    Using cached cleo-2.0.1-py3-none-any.whl (77 kB)
  Collecting requests<3.0,>=2.18
    Using cached requests-2.31.0-py3-none-any.whl (62 kB)
  Collecting keyring<24.0.0,>=23.9.0
    Using cached keyring-23.13.1-py3-none-any.whl (37 kB)
  Collecting filelock<4.0.0,>=3.8.0
    Using cached filelock-3.12.2-py3-none-any.whl (10 kB)
  Collecting virtualenv<21.0.0,>=20.22.0
    Using cached virtualenv-20.24.3-py3-none-any.whl (3.0 MB)
  Collecting build<0.11.0,>=0.10.0
    Using cached build-0.10.0-py3-none-any.whl (17 kB)
  Collecting dulwich<0.22.0,>=0.21.2
    Downloading dulwich-0.21.5.tar.gz (441 kB)
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
    Installing backend dependencies: started
    Installing backend dependencies: finished with status 'done'
      Preparing wheel metadata: started
      Preparing wheel metadata: finished with status 'done'
  Collecting tomlkit<1.0.0,>=0.11.4
    Using cached tomlkit-0.12.1-py3-none-any.whl (37 kB)
  Collecting lockfile<0.13.0,>=0.12.2
    Using cached lockfile-0.12.2-py2.py3-none-any.whl (13 kB)
  Collecting shellingham<2.0,>=1.5
    Using cached shellingham-1.5.3-py2.py3-none-any.whl (9.7 kB)
  Collecting platformdirs<4.0.0,>=3.0.0
    Using cached platformdirs-3.10.0-py3-none-any.whl (17 kB)
  Collecting urllib3<2.0.0,>=1.26.0
    Using cached urllib3-1.26.16-py2.py3-none-any.whl (143 kB)
  Collecting pkginfo<2.0.0,>=1.9.4
    Using cached pkginfo-1.9.6-py3-none-any.whl (30 kB)
  Collecting packaging>=20.4
    Using cached packaging-23.1-py3-none-any.whl (48 kB)
  Collecting pyproject-hooks<2.0.0,>=1.0.0
    Using cached pyproject_hooks-1.0.0-py3-none-any.whl (9.3 kB)
  Collecting cachecontrol[filecache]<0.13.0,>=0.12.9
    Using cached CacheControl-0.12.14-py2.py3-none-any.whl (21 kB)
  Collecting poetry-core==1.6.1
    Using cached poetry_core-1.6.1-py3-none-any.whl (450 kB)
  Collecting installer<0.8.0,>=0.7.0
    Using cached installer-0.7.0-py3-none-any.whl (453 kB)
  Collecting trove-classifiers>=2022.5.19
    Using cached trove_classifiers-2023.8.7-py3-none-any.whl (13 kB)
  Collecting requests-toolbelt<2,>=0.9.1
    Using cached requests_toolbelt-1.0.0-py2.py3-none-any.whl (54 kB)
  Collecting xattr<0.11.0,>=0.10.0; sys_platform == "darwin"
    Downloading xattr-0.10.1.tar.gz (15 kB)
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
    Installing backend dependencies: started
    Installing backend dependencies: finished with status 'done'
      Preparing wheel metadata: started
      Preparing wheel metadata: finished with status 'done'
  Collecting html5lib<2.0,>=1.0
    Using cached html5lib-1.1-py2.py3-none-any.whl (112 kB)
  Collecting pexpect<5.0.0,>=4.7.0
    Using cached pexpect-4.8.0-py2.py3-none-any.whl (59 kB)
  Collecting poetry-plugin-export<2.0.0,>=1.4.0
    Using cached poetry_plugin_export-1.4.0-py3-none-any.whl (10 kB)
  Collecting jsonschema-specifications>=2023.03.6
    Using cached jsonschema_specifications-2023.7.1-py3-none-any.whl (17 kB)
  Collecting rpds-py>=0.7.1
    Downloading rpds_py-0.9.2.tar.gz (16 kB)
    Installing build dependencies: started
    Installing build dependencies: finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /opt/anaconda3/envs/btest/bin/python3.1 /opt/anaconda3/envs/btest/lib/python3.11/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/2x/t13x4mn107zd1xc9j8ks6q300000gn/T/pip-build-env-izwwc884/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'maturin>=1.0,<2.0'
         cwd: None
    Complete output (52 lines):
    Collecting maturin<2.0,>=1.0
      Downloading maturin-1.2.3.tar.gz (175 kB)
      Installing build dependencies: started
      Installing build dependencies: finished with status 'done'
      Getting requirements to build wheel: started
      Getting requirements to build wheel: finished with status 'done'
        Preparing wheel metadata: started
        Preparing wheel metadata: finished with status 'done'
    Building wheels for collected packages: maturin
      Building wheel for maturin (PEP 517): started
      Building wheel for maturin (PEP 517): finished with status 'error'
      ERROR: Command errored out with exit status 1:
       command: /opt/anaconda3/envs/btest/bin/python3.1 /opt/anaconda3/envs/btest/lib/python3.11/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /var/folders/2x/t13x4mn107zd1xc9j8ks6q300000gn/T/tmpspmox5_d
           cwd: /private/var/folders/2x/t13x4mn107zd1xc9j8ks6q300000gn/T/pip-install-ir3gxu9v/maturin
      Complete output (33 lines):
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-10.9-x86_64-cpython-311
      creating build/lib.macosx-10.9-x86_64-cpython-311/maturin
      copying maturin/__init__.py -> build/lib.macosx-10.9-x86_64-cpython-311/maturin
      copying maturin/import_hook.py -> build/lib.macosx-10.9-x86_64-cpython-311/maturin
      copying maturin/__main__.py -> build/lib.macosx-10.9-x86_64-cpython-311/maturin
      running egg_info
      creating maturin.egg-info
      writing maturin.egg-info/PKG-INFO
      writing dependency_links to maturin.egg-info/dependency_links.txt
      writing requirements to maturin.egg-info/requires.txt
      writing top-level names to maturin.egg-info/top_level.txt
      writing manifest file 'maturin.egg-info/SOURCES.txt'
      reading manifest file 'maturin.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no files found matching '*.json' under directory 'src/python_interpreter'
      writing manifest file 'maturin.egg-info/SOURCES.txt'
      running build_ext
      running build_rust
      error: can't find Rust compiler

      If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.

      To update pip, run:

          pip install --upgrade pip

      and then retry package installation.

      If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
      ----------------------------------------
      ERROR: Failed building wheel for maturin
    Failed to build maturin
    ERROR: Could not build wheels for maturin which use PEP 517 and cannot be installed directly
    ----------------------------------------
  ERROR: Command errored out with exit status 1: /opt/anaconda3/envs/btest/bin/python3.1 /opt/anaconda3/envs/btest/lib/python3.11/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/2x/t13x4mn107zd1xc9j8ks6q300000gn/T/pip-build-env-izwwc884/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'maturin>=1.0,<2.0' Check the logs for full command output.
  ----------------------------------------
ERROR: Command errored out with exit status 1: /opt/anaconda3/envs/btest/bin/python3.1 /opt/anaconda3/envs/btest/lib/python3.11/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/2x/t13x4mn107zd1xc9j8ks6q300000gn/T/pip-build-env-3r1icnx7/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'poetry>=0.12' Check the logs for full command output.

The error appears to product of the pip version, and it appears to be fixed by changing required version found in requirements_dev.txt (pip==19.2.3 to just pip).

jeronimoluza added a commit that referenced this issue Aug 22, 2023
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

1 participant