Skip to content

Trouble with a packaging tutorial #940

Closed
@rostisLAW-os

Description

@rostisLAW-os

OS version

Termux

Python version

Python 3.12.10

Pip version

pip 25.1.1

Guide link

No response

Problem description

hi everybody. when installing aiogram on my termux, an error appears in my terminal and I cannot install it. the error occurs when it starts to install pydantic-core.tar.gz. I left the error code at the bottom.

Error message

~ $ pip install aiogram                 Collecting aiogram
  Using cached aiogram-3.20.0.post0-py3-none-any.whl.metadata (7.6 kB)
Collecting aiofiles<24.2,>=23.2.1 (from aiogram)
  Using cached aiofiles-24.1.0-py3-none-any.whl.metadata (10 kB)
Collecting aiohttp<3.12,>=3.9.0 (from aiogram)
  Using cached aiohttp-3.11.18.tar.gz (7.7 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting certifi>=2023.7.22 (from aiogram)
  Using cached certifi-2025.4.26-py3-none-any.whl.metadata (2.5 kB)
Collecting magic-filter<1.1,>=1.0.12 (from aiogram)
  Using cached magic_filter-1.0.12-py3-none-any.whl.metadata (1.5 kB)
Collecting pydantic<2.12,>=2.4.1 (from aiogram)
  Using cached pydantic-2.11.5-py3-none-any.whl.metadata (67 kB)
Collecting typing-extensions<=5.0,>=4.7.0 (from aiogram)
  Using cached typing_extensions-4.14.0-py3-none-any.whl.metadata (3.0 kB)
Collecting aiohappyeyeballs>=2.3.0 (from aiohttp<3.12,>=3.9.0->aiogram)
  Using cached aiohappyeyeballs-2.6.1-py3-none-any.whl.metadata (5.9 kB)
Collecting aiosignal>=1.1.2 (from aiohttp<3.12,>=3.9.0->aiogram)
  Using cached aiosignal-1.3.2-py2.py3-none-any.whl.metadata (3.8 kB)
Collecting attrs>=17.3.0 (from aiohttp<3.12,>=3.9.0->aiogram)
  Using cached attrs-25.3.0-py3-none-any.whl.metadata (10 kB)
Collecting frozenlist>=1.1.1 (from aiohttp<3.12,>=3.9.0->aiogram)
  Using cached frozenlist-1.6.2-py3-none-any.whl.metadata (17 kB)
Collecting multidict<7.0,>=4.5 (from aiohttp<3.12,>=3.9.0->aiogram)
  Using cached multidict-6.4.4-py3-none-any.whl.metadata (5.3 kB)
Collecting propcache>=0.2.0 (from aiohttp<3.12,>=3.9.0->aiogram)
  Using cached propcache-0.3.1-py3-none-any.whl.metadata (10 kB)
Collecting yarl<2.0,>=1.17.0 (from aiohttp<3.12,>=3.9.0->aiogram)
  Using cached yarl-1.20.0-py3-none-any.whl.metadata (72 kB)
Collecting annotated-types>=0.6.0 (from pydantic<2.12,>=2.4.1->aiogram)
  Using cached annotated_types-0.7.0-py3-none-any.whl.metadata (15 kB)
Collecting pydantic-core==2.33.2 (from pydantic<2.12,>=2.4.1->aiogram)
  Using cached pydantic_core-2.33.2.tar.gz (435 kB)
  Installing build dependencies ... error
  error: subprocess-exited-with-error

  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [28 lines of output]
      Collecting maturin<2,>=1
        Using cached maturin-1.8.6.tar.gz (203 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 metadata (pyproject.toml): started
        Preparing metadata (pyproject.toml): finished with status 'error'
        error: subprocess-exited-with-error

        × Preparing metadata (pyproject.toml) did not run successfully.
        │ exit code: 1
        ╰─> [3 lines of output]
            Python reports SOABI: cpython-312
            Unsupported platform: 312
            Rust not found, installing into a temporary directory
            [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.
      [end of output]

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

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions