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

pip install failing at "Collecting pendulum<4,>=3.0.0 (from prefect)" step #16949

Open
nibab opened this issue Feb 3, 2025 · 3 comments
Open
Labels
bug Something isn't working upstream dependency An upstream issue caused by a bug in one of our dependencies

Comments

@nibab
Copy link

nibab commented Feb 3, 2025

Bug summary

Trying to run a vanilla pip install on a brand new venv returns:

(prefect-venv) ➜  ngen-sheet-connectors git:(main) pip install -U prefect
Collecting prefect
  Using cached prefect-3.1.15-py3-none-any.whl.metadata (14 kB)
Collecting aiosqlite<1.0.0,>=0.17.0 (from prefect)
  Using cached aiosqlite-0.21.0-py3-none-any.whl.metadata (4.3 kB)
Collecting alembic<2.0.0,>=1.7.5 (from prefect)
  Using cached alembic-1.14.1-py3-none-any.whl.metadata (7.4 kB)
Collecting apprise<2.0.0,>=1.1.0 (from prefect)
  Using cached apprise-1.9.2-py3-none-any.whl.metadata (52 kB)
Collecting asyncpg<1.0.0,>=0.23 (from prefect)
  Using cached asyncpg-0.30.0-cp313-cp313-macosx_10_13_x86_64.whl.metadata (5.0 kB)
Collecting click<8.2,>=8.0 (from prefect)
  Using cached click-8.1.8-py3-none-any.whl.metadata (2.3 kB)
Collecting cryptography>=36.0.1 (from prefect)
  Using cached cryptography-44.0.0-cp39-abi3-macosx_10_9_universal2.whl.metadata (5.7 kB)
Collecting dateparser<2.0.0,>=1.1.1 (from prefect)
  Using cached dateparser-1.2.0-py2.py3-none-any.whl.metadata (28 kB)
Collecting docker<8.0,>=4.0 (from prefect)
  Using cached docker-7.1.0-py3-none-any.whl.metadata (3.8 kB)
Collecting graphviz>=0.20.1 (from prefect)
  Using cached graphviz-0.20.3-py3-none-any.whl.metadata (12 kB)
Collecting jinja2<4.0.0,>=3.0.0 (from prefect)
  Using cached jinja2-3.1.5-py3-none-any.whl.metadata (2.6 kB)
Collecting jinja2-humanize-extension>=0.4.0 (from prefect)
  Using cached jinja2_humanize_extension-0.4.0-py3-none-any.whl.metadata (3.6 kB)
Collecting humanize<5.0.0,>=4.9.0 (from prefect)
  Using cached humanize-4.11.0-py3-none-any.whl.metadata (7.8 kB)
Collecting pytz<2025,>=2021.1 (from prefect)
  Using cached pytz-2024.2-py2.py3-none-any.whl.metadata (22 kB)
Collecting readchar<5.0.0,>=4.0.0 (from prefect)
  Using cached readchar-4.2.1-py3-none-any.whl.metadata (7.5 kB)
Collecting sqlalchemy<3.0.0,>=2.0 (from sqlalchemy[asyncio]<3.0.0,>=2.0->prefect)
  Using cached SQLAlchemy-2.0.37-cp313-cp313-macosx_10_13_x86_64.whl.metadata (9.6 kB)
Collecting typer!=0.12.2,<0.16.0,>=0.12.0 (from prefect)
  Using cached typer-0.15.1-py3-none-any.whl.metadata (15 kB)
Collecting anyio<5.0.0,>=4.4.0 (from prefect)
  Using cached anyio-4.8.0-py3-none-any.whl.metadata (4.6 kB)
Collecting asgi-lifespan<3.0,>=1.0 (from prefect)
  Using cached asgi_lifespan-2.1.0-py3-none-any.whl.metadata (10 kB)
Collecting cachetools<6.0,>=5.3 (from prefect)
  Using cached cachetools-5.5.1-py3-none-any.whl.metadata (5.4 kB)
Collecting cloudpickle<4.0,>=2.0 (from prefect)
  Using cached cloudpickle-3.1.1-py3-none-any.whl.metadata (7.1 kB)
Collecting coolname<3.0.0,>=1.0.4 (from prefect)
  Using cached coolname-2.2.0-py2.py3-none-any.whl.metadata (6.2 kB)
Collecting croniter<7.0.0,>=1.0.12 (from prefect)
  Using cached croniter-6.0.0-py2.py3-none-any.whl.metadata (32 kB)
Collecting exceptiongroup>=1.0.0 (from prefect)
  Using cached exceptiongroup-1.2.2-py3-none-any.whl.metadata (6.6 kB)
Collecting fastapi<1.0.0,>=0.111.0 (from prefect)
  Using cached fastapi-0.115.8-py3-none-any.whl.metadata (27 kB)
Collecting fsspec>=2022.5.0 (from prefect)
  Using cached fsspec-2025.2.0-py3-none-any.whl.metadata (11 kB)
Collecting griffe<2.0.0,>=0.49.0 (from prefect)
  Using cached griffe-1.5.6-py3-none-any.whl.metadata (5.0 kB)
Collecting httpcore<2.0.0,>=1.0.5 (from prefect)
  Using cached httpcore-1.0.7-py3-none-any.whl.metadata (21 kB)
Collecting httpx!=0.23.2,>=0.23 (from httpx[http2]!=0.23.2,>=0.23->prefect)
  Using cached httpx-0.28.1-py3-none-any.whl.metadata (7.1 kB)
Collecting jsonpatch<2.0,>=1.32 (from prefect)
  Using cached jsonpatch-1.33-py2.py3-none-any.whl.metadata (3.0 kB)
Collecting jsonschema<5.0.0,>=4.0.0 (from prefect)
  Using cached jsonschema-4.23.0-py3-none-any.whl.metadata (7.9 kB)
Collecting opentelemetry-api<2.0.0,>=1.27.0 (from prefect)
  Using cached opentelemetry_api-1.29.0-py3-none-any.whl.metadata (1.4 kB)
Collecting orjson<4.0,>=3.7 (from prefect)
  Using cached orjson-3.10.15-cp313-cp313-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl.metadata (41 kB)
Collecting packaging<24.3,>=21.3 (from prefect)
  Using cached packaging-24.2-py3-none-any.whl.metadata (3.2 kB)
Collecting pathspec>=0.8.0 (from prefect)
  Using cached pathspec-0.12.1-py3-none-any.whl.metadata (21 kB)
Collecting pendulum<4,>=3.0.0 (from prefect)
  Using cached pendulum-3.0.0.tar.gz (84 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]

      Cargo, the Rust package manager, is not installed or is not on PATH.
      This package requires Rust and Cargo to compile extensions. Install it through
      the system's package manager or via https://rustup.rs/

      Checking for Rust toolchain....
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Version info

no version. this is at pip install.

running on Macos 13.6.9 (22G830)

Additional context

No response

@nibab nibab added the bug Something isn't working label Feb 3, 2025
@zzstoatzz
Copy link
Collaborator

hi @nibab - what version of python are you using? if you're using 3.13 this might be pydantic/pydantic-extra-types#239

@obendidi
Copy link
Contributor

obendidi commented Feb 4, 2025

I think pendulum doesn't have a wheel available for macos with arm chips, so it is trying to build the package for arm.

You have to install rustup and cargo on your machine and then reinstall using pip

(from memory you also need install a missing rust dependency using rustup, you will see the command to run when it fails)

@cicdw cicdw added the upstream dependency An upstream issue caused by a bug in one of our dependencies label Feb 4, 2025
@zzstoatzz
Copy link
Collaborator

zzstoatzz commented Feb 4, 2025

I think pendulum doesn't have a wheel available for macos with arm chips, so it is trying to build the package for arm.

You have to install rustup and cargo on your machine and then reinstall using pip

(from memory you also need install a missing rust dependency using rustup, you will see the command to run when it fails)

@obendidi right, I think this is the case in 3.13, as mentioned in pydantic/pydantic-extra-types#239

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream dependency An upstream issue caused by a bug in one of our dependencies
Projects
None yet
Development

No branches or pull requests

4 participants