Skip to content

Installation Error #13

@TaimourNazar

Description

@TaimourNazar

### pip install simplerllm
When I started installing it, it stopped multiple times with errors and then I had to install all these.

  1. sudo apt install python3.13-dev
  2. sudo apt install gfortran
  3. sudo apt install libopenblas-dev
  4. pip install maturin
  5. pip install pydantic-core

After installing these installation progressed further but now it again stopped with error.
It seems the problem in recent error is with maturin and pydantic-core.
I also tried running

  1. pip install --no-cache-dir pydantic-core
  2. pip install --upgrade maturin

Still it is giving error and not installing.

Output on terminal is as follows:

Collecting simplerllm

  Downloading SimplerLLM-0.3.1.1-py3-none-any.whl.metadata (7.2 kB)

Collecting aiohttp==3.9.4 (from simplerllm)

  Downloading aiohttp-3.9.4.tar.gz (7.5 MB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.5/7.5 MB 1.1 MB/s eta 0:00:00

  Installing build dependencies ... done

  Getting requirements to build wheel ... done

  Preparing metadata (pyproject.toml) ... done

Collecting duckduckgo-search==5.3.0 (from simplerllm)

  Downloading duckduckgo_search-5.3.0-py3-none-any.whl.metadata (18 kB)

Collecting lxml-html-clean==0.1.1 (from simplerllm)

  Downloading lxml_html_clean-0.1.1-py3-none-any.whl.metadata (1.5 kB)

Collecting newspaper3k==0.2.8 (from simplerllm)

  Downloading newspaper3k-0.2.8-py3-none-any.whl.metadata (11 kB)

Collecting numpy==1.26.4 (from simplerllm)

  Downloading numpy-1.26.4.tar.gz (15.8 MB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 15.8/15.8 MB 519.6 kB/s eta 0:00:00

  Installing build dependencies ... done

  Getting requirements to build wheel ... done

  Installing backend dependencies ... done

  Preparing metadata (pyproject.toml) ... done

Collecting openai==1.25.0 (from simplerllm)

  Downloading openai-1.25.0-py3-none-any.whl.metadata (21 kB)

Collecting pydantic==2.7.1 (from simplerllm)

  Downloading pydantic-2.7.1-py3-none-any.whl.metadata (107 kB)

Collecting PyPDF2==3.0.1 (from simplerllm)

  Downloading pypdf2-3.0.1-py3-none-any.whl.metadata (6.8 kB)

Collecting python-dotenv==1.0.1 (from simplerllm)

  Downloading python_dotenv-1.0.1-py3-none-any.whl.metadata (23 kB)

Collecting python-docx==1.1.0 (from simplerllm)

  Downloading python_docx-1.1.0-py3-none-any.whl.metadata (2.0 kB)

Collecting pytube==15.0.0 (from simplerllm)

  Downloading pytube-15.0.0-py3-none-any.whl.metadata (5.0 kB)

Collecting Requests==2.31.0 (from simplerllm)

  Downloading requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)

Collecting youtube-transcript-api==0.6.2 (from simplerllm)

  Downloading youtube_transcript_api-0.6.2-py3-none-any.whl.metadata (15 kB)

Collecting pandas==2.2.2 (from simplerllm)

  Downloading pandas-2.2.2.tar.gz (4.4 MB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.4/4.4 MB 907.7 kB/s eta 0:00:00

  Installing build dependencies ... done

  Getting requirements to build wheel ... done

  Installing backend dependencies ... done

  Preparing metadata (pyproject.toml) ... done

Collecting colorama==0.4.6 (from simplerllm)

  Downloading colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB)

Collecting scipy==1.14.0 (from simplerllm)

  Downloading scipy-1.14.0.tar.gz (58.6 MB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.6/58.6 MB 1.3 MB/s eta 0:00:00

  Installing build dependencies ... done

  Getting requirements to build wheel ... done

  Installing backend dependencies ... done

  Preparing metadata (pyproject.toml) ... done

Collecting dill==0.3.8 (from simplerllm)

  Downloading dill-0.3.8-py3-none-any.whl.metadata (10 kB)

Collecting tiktoken==0.6.0 (from simplerllm)

  Downloading tiktoken-0.6.0.tar.gz (33 kB)

  Installing build dependencies ... done

  Getting requirements to build wheel ... done

  Preparing metadata (pyproject.toml) ... done

Collecting aiosignal>=1.1.2 (from aiohttp==3.9.4->simplerllm)

  Downloading aiosignal-1.3.2-py2.py3-none-any.whl.metadata (3.8 kB)

Collecting attrs>=17.3.0 (from aiohttp==3.9.4->simplerllm)

  Downloading attrs-24.3.0-py3-none-any.whl.metadata (11 kB)

Collecting frozenlist>=1.1.1 (from aiohttp==3.9.4->simplerllm)

  Downloading frozenlist-1.5.0-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (13 kB)

Collecting multidict<7.0,>=4.5 (from aiohttp==3.9.4->simplerllm)

  Downloading multidict-6.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.0 kB)

Collecting yarl<2.0,>=1.0 (from aiohttp==3.9.4->simplerllm)

  Downloading yarl-1.18.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (69 kB)

Collecting click>=8.1.7 (from duckduckgo-search==5.3.0->simplerllm)

  Downloading click-8.1.8-py3-none-any.whl.metadata (2.3 kB)

Collecting curl-cffi>=0.6.2 (from duckduckgo-search==5.3.0->simplerllm)

  Downloading curl_cffi-0.7.4-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (12 kB)

Collecting orjson>=3.10.0 (from duckduckgo-search==5.3.0->simplerllm)

  Downloading orjson-3.10.13-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (41 kB)

Collecting lxml (from lxml-html-clean==0.1.1->simplerllm)

  Downloading lxml-5.3.0-cp313-cp313-manylinux_2_28_x86_64.whl.metadata (3.8 kB)

Collecting beautifulsoup4>=4.4.1 (from newspaper3k==0.2.8->simplerllm)

  Downloading beautifulsoup4-4.12.3-py3-none-any.whl.metadata (3.8 kB)

Collecting Pillow>=3.3.0 (from newspaper3k==0.2.8->simplerllm)

  Downloading pillow-11.0.0-cp313-cp313-manylinux_2_28_x86_64.whl.metadata (9.1 kB)

Collecting PyYAML>=3.11 (from newspaper3k==0.2.8->simplerllm)

  Downloading PyYAML-6.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.1 kB)

Collecting cssselect>=0.9.2 (from newspaper3k==0.2.8->simplerllm)

  Downloading cssselect-1.2.0-py2.py3-none-any.whl.metadata (2.2 kB)

Collecting nltk>=3.2.1 (from newspaper3k==0.2.8->simplerllm)

  Downloading nltk-3.9.1-py3-none-any.whl.metadata (2.9 kB)

Collecting feedparser>=5.2.1 (from newspaper3k==0.2.8->simplerllm)

  Downloading feedparser-6.0.11-py3-none-any.whl.metadata (2.4 kB)

Collecting tldextract>=2.0.1 (from newspaper3k==0.2.8->simplerllm)

  Downloading tldextract-5.1.3-py3-none-any.whl.metadata (11 kB)

Collecting feedfinder2>=0.0.4 (from newspaper3k==0.2.8->simplerllm)

  Downloading feedfinder2-0.0.4.tar.gz (3.3 kB)

  Installing build dependencies ... done

  Getting requirements to build wheel ... done

  Preparing metadata (pyproject.toml) ... done

Collecting jieba3k>=0.35.1 (from newspaper3k==0.2.8->simplerllm)

  Downloading jieba3k-0.35.1.zip (7.4 MB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.4/7.4 MB 729.8 kB/s eta 0:00:00

  Installing build dependencies ... done

  Getting requirements to build wheel ... done

  Preparing metadata (pyproject.toml) ... done

Collecting python-dateutil>=2.5.3 (from newspaper3k==0.2.8->simplerllm)

  Downloading python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)

Collecting tinysegmenter==0.3 (from newspaper3k==0.2.8->simplerllm)

  Downloading tinysegmenter-0.3.tar.gz (16 kB)

  Installing build dependencies ... done

  Getting requirements to build wheel ... done

  Preparing metadata (pyproject.toml) ... done

Requirement already satisfied: anyio<5,>=3.5.0 in ./.venv/lib/python3.13/site-packages (from openai==1.25.0->simplerllm) (4.7.0)

Collecting distro<2,>=1.7.0 (from openai==1.25.0->simplerllm)

  Downloading distro-1.9.0-py3-none-any.whl.metadata (6.8 kB)

Requirement already satisfied: httpx<1,>=0.23.0 in ./.venv/lib/python3.13/site-packages (from openai==1.25.0->simplerllm) (0.27.2)

Requirement already satisfied: sniffio in ./.venv/lib/python3.13/site-packages (from openai==1.25.0->simplerllm) (1.3.1)

Collecting tqdm>4 (from openai==1.25.0->simplerllm)

  Downloading tqdm-4.67.1-py3-none-any.whl.metadata (57 kB)

Requirement already satisfied: typing-extensions<5,>=4.7 in ./.venv/lib/python3.13/site-packages (from openai==1.25.0->simplerllm) (4.12.2)

Collecting pytz>=2020.1 (from pandas==2.2.2->simplerllm)

  Downloading pytz-2024.2-py2.py3-none-any.whl.metadata (22 kB)

Collecting tzdata>=2022.7 (from pandas==2.2.2->simplerllm)

  Downloading tzdata-2024.2-py2.py3-none-any.whl.metadata (1.4 kB)

Requirement already satisfied: annotated-types>=0.4.0 in ./.venv/lib/python3.13/site-packages (from pydantic==2.7.1->simplerllm) (0.7.0)

Collecting pydantic-core==2.18.2 (from pydantic==2.7.1->simplerllm)

  Downloading pydantic_core-2.18.2.tar.gz (383 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

  ╰─> [13 lines of output]

      error: failed to parse manifest at /tmp/pip-install-enzi0tp6/pydantic-core_bf10c760f3ff4bf08f10743bdef5929f/Cargo.toml

      

      Caused by:

        failed to parse the edition key

      

      Caused by:

        supported edition values are 2015 or 2018, but 2021 is unknown

      💥 maturin failed

        Caused by: Cargo metadata failed. Does your crate compile with cargo build?

        Caused by: cargo metadata exited with an error:

      Error running maturin: Command '['maturin', 'pep517', 'write-dist-info', '--metadata-directory', '/tmp/pip-modern-metadata-8cs5bi8m', '--interpreter', '/home/user/Documents/Work/Python/seo_agent/.venv/bin/python3.13']' returned non-zero exit status 1.

      Checking for Rust toolchain....

      Running maturin pep517 write-dist-info --metadata-directory /tmp/pip-modern-metadata-8cs5bi8m --interpreter /home/user/Documents/Work/Python/seo_agent/.venv/bin/python3.13

      [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.

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