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

Unable to prepare pyproject.toml building Aider from source code #3106

Closed
V4G4X opened this issue Feb 2, 2025 · 1 comment
Closed

Unable to prepare pyproject.toml building Aider from source code #3106

V4G4X opened this issue Feb 2, 2025 · 1 comment

Comments

@V4G4X
Copy link

V4G4X commented Feb 2, 2025

Issue

I followed these steps:

  1. Cloned Aider
  2. Created a new Python env using python3 -m venv .aider-dev-env
  3. Sourced into that python env source .aider-dev-env/bin/activate
  4. Run python -m pip install -e .

From there it would go ahead and fail at this point.

...
Collecting rpds-py==0.22.3 (from aider-chat==0.73.1.dev2+gf7deb025)
  Using cached rpds_py-0.22.3-cp313-cp313-macosx_11_0_arm64.whl.metadata (4.2 kB)
Collecting scipy==1.13.1 (from aider-chat==0.73.1.dev2+gf7deb025)
  Using cached scipy-1.13.1.tar.gz (57.2 MB)
  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
  ╰─> [54 lines of output]
      + meson setup /private/var/folders/jg/p3j54c054nn7xk5dsv2wx4wh0000gn/T/pip-install-pki9dogd/scipy_5d19190a1bc24948af0293b34429ae8b /private/var/folders/jg/p3j54c054nn7xk5dsv2wx4wh0000gn/T/pip-install-pki9dogd/scipy_5d19190a1bc24948af0293b34429ae8b/.mesonpy-dp4sf3lp -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/private/var/folders/jg/p3j54c054nn7xk5dsv2wx4wh0000gn/T/pip-install-pki9dogd/scipy_5d19190a1bc24948af0293b34429ae8b/.mesonpy-dp4sf3lp/meson-python-native-file.ini
      The Meson build system
      Version: 1.7.0
      Source dir: /private/var/folders/jg/p3j54c054nn7xk5dsv2wx4wh0000gn/T/pip-install-pki9dogd/scipy_5d19190a1bc24948af0293b34429ae8b
      Build dir: /private/var/folders/jg/p3j54c054nn7xk5dsv2wx4wh0000gn/T/pip-install-pki9dogd/scipy_5d19190a1bc24948af0293b34429ae8b/.mesonpy-dp4sf3lp
      Build type: native build
      Project name: scipy
      Project version: 1.13.1
      C compiler for the host machine: cc (clang 16.0.0 "Apple clang version 16.0.0 (clang-1600.0.26.6)")
      C linker for the host machine: cc ld64 1115.7.3
      C++ compiler for the host machine: c++ (clang 16.0.0 "Apple clang version 16.0.0 (clang-1600.0.26.6)")
      C++ linker for the host machine: c++ ld64 1115.7.3
      Cython compiler for the host machine: cython (cython 3.0.11)
      Host machine cpu family: aarch64
      Host machine cpu: aarch64
      Program python found: YES (/Users/varungawande/playground/aider/.aider-dev-env/bin/python)
      Did not find pkg-config by name 'pkg-config'
      Found pkg-config: NO
      Run-time dependency python found: YES 3.13
      Program cython found: YES (/private/var/folders/jg/p3j54c054nn7xk5dsv2wx4wh0000gn/T/pip-build-env-7wv1p6zz/overlay/bin/cython)
      Compiler for C supports arguments -Wno-unused-but-set-variable: YES
      Compiler for C supports arguments -Wno-unused-function: YES
      Compiler for C supports arguments -Wno-conversion: YES
      Compiler for C supports arguments -Wno-misleading-indentation: YES
      Library m found: YES

      ../meson.build:78:0: ERROR: Unknown compiler(s): [['gfortran'], ['flang-new'], ['flang'], ['nvfortran'], ['pgfortran'], ['ifort'], ['ifx'], ['g95']]
      The following exception(s) were encountered:
      Running `gfortran --help` gave "[Errno 2] No such file or directory: 'gfortran'"
      Running `gfortran --version` gave "[Errno 2] No such file or directory: 'gfortran'"
      Running `gfortran -V` gave "[Errno 2] No such file or directory: 'gfortran'"
      Running `flang-new --help` gave "[Errno 2] No such file or directory: 'flang-new'"
      Running `flang-new --version` gave "[Errno 2] No such file or directory: 'flang-new'"
      Running `flang-new -V` gave "[Errno 2] No such file or directory: 'flang-new'"
      Running `flang --help` gave "[Errno 2] No such file or directory: 'flang'"
      Running `flang --version` gave "[Errno 2] No such file or directory: 'flang'"
      Running `flang -V` gave "[Errno 2] No such file or directory: 'flang'"
      Running `nvfortran --help` gave "[Errno 2] No such file or directory: 'nvfortran'"
      Running `nvfortran --version` gave "[Errno 2] No such file or directory: 'nvfortran'"
      Running `nvfortran -V` gave "[Errno 2] No such file or directory: 'nvfortran'"
      Running `pgfortran --help` gave "[Errno 2] No such file or directory: 'pgfortran'"
      Running `pgfortran --version` gave "[Errno 2] No such file or directory: 'pgfortran'"
      Running `pgfortran -V` gave "[Errno 2] No such file or directory: 'pgfortran'"
      Running `ifort --help` gave "[Errno 2] No such file or directory: 'ifort'"
      Running `ifort --version` gave "[Errno 2] No such file or directory: 'ifort'"
      Running `ifort -V` gave "[Errno 2] No such file or directory: 'ifort'"
      Running `ifx --help` gave "[Errno 2] No such file or directory: 'ifx'"
      Running `ifx --version` gave "[Errno 2] No such file or directory: 'ifx'"
      Running `ifx -V` gave "[Errno 2] No such file or directory: 'ifx'"
      Running `g95 --help` gave "[Errno 2] No such file or directory: 'g95'"
      Running `g95 --version` gave "[Errno 2] No such file or directory: 'g95'"
      Running `g95 -V` gave "[Errno 2] No such file or directory: 'g95'"

      A full log can be found at /private/var/folders/jg/p3j54c054nn7xk5dsv2wx4wh0000gn/T/pip-install-pki9dogd/scipy_5d19190a1bc24948af0293b34429ae8b/.mesonpy-dp4sf3lp/meson-logs/meson-log.txt
      [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.

Weirdly enough, the "full log can be found here" file does not exist.

bat /private/var/folders/jg/p3j54c054nn7xk5dsv2wx4wh0000gn/T/pip-install-cai5kz4q/scipy_c8766046965b4213a7c2c1bd74d4eb2b/.mesonpy-o7kgtjw0/meson-logs/meson-log.txt
[bat error]: '/private/var/folders/jg/p3j54c054nn7xk5dsv2wx4wh0000gn/T/pip-install-cai5kz4q/scipy_c8766046965b4213a7c2c1bd74d4eb2b/.mesonpy-o7kgtjw0/meson-logs/meson-log.txt': No such file or directory (os error 2)

Version and model info

Aider from source: Commit: f7deb02
Python 3.13.1

@V4G4X
Copy link
Author

V4G4X commented Feb 2, 2025

Nevermind, had not seen this first: #3037

@V4G4X V4G4X closed this as completed Feb 2, 2025
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