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

Error:metadata-generation-failed and subprocess-exited-with-error #449

Open
AdarshhTiwarii opened this issue Oct 9, 2023 · 0 comments
Open

Comments

@AdarshhTiwarii
Copy link

AdarshhTiwarii commented Oct 9, 2023

(venv) PS C:\Users\Adarsh Anand Tiwari\PycharmProjects\book-recommendation-system> pip install numpy
Collecting numpy
Using cached numpy-1.26.0.tar.gz (15.6 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: 2
╰─> [68 lines of output]

  • C:\Users\Adarsh Anand Tiwari\PycharmProjects\book-recommendation-system\venv\bin\python.exe C:\Users\Adarsh Anand Tiwari\AppData\Local\Temp\pip-install-1g1
    r3_3f\numpy_90eda931f3b744579b11b3e44e1624bd\vendored-meson\meson\meson.py setup C:\Users\Adarsh Anand Tiwari\AppData\Local\Temp\pip-install-1g1r3_3f\numpy_90eda93
    1f3b744579b11b3e44e1624bd C:\Users\Adarsh Anand Tiwari\AppData\Local\Temp\pip-install-1g1r3_3f\numpy_90eda931f3b744579b11b3e44e1624bd.mesonpy-hu5t68a8\build -Dbui
    ldtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\Adarsh Anand Tiwari\AppData\Local\Temp\pip-install-1g1r3_3f\numpy_90eda931f3b744579b11b3e4
    4e1624bd.mesonpy-hu5t68a8\build\meson-python-native-file.ini
    Traceback (most recent call last):
    File "C:\Users\Adarsh Anand Tiwari\AppData\Local\Temp\pip-install-1g1r3_3f\numpy_90eda931f3b744579b11b3e44e1624bd\vendored-meson\meson\mesonbuild\mesonmain
    .py", line 194, in run
    return options.run_func(options)
    File "C:\Users\Adarsh Anand Tiwari\AppData\Local\Temp\pip-install-1g1r3_3f\numpy_90eda931f3b744579b11b3e44e1624bd\vendored-meson\meson\mesonbuild\msetup.py
    ", line 358, in run
    app.generate()
    File "C:\Users\Adarsh Anand Tiwari\AppData\Local\Temp\pip-install-1g1r3_3f\numpy_90eda931f3b744579b11b3e44e1624bd\vendored-meson\meson\mesonbuild\msetup.py
    ", line 183, in generate
    return self._generate(env, capture, vslite_ctx)
    File "C:\Users\Adarsh Anand Tiwari\AppData\Local\Temp\pip-install-1g1r3_3f\numpy_90eda931f3b744579b11b3e44e1624bd\vendored-meson\meson\mesonbuild\msetup.py
    ", line 228, in _generate
    intr.run()
    File "C:\Users\Adarsh Anand Tiwari\AppData\Local\Temp\pip-install-1g1r3_3f\numpy_90eda931f3b744579b11b3e44e1624bd\vendored-meson\meson\mesonbuild\interpret
    er\interpreter.py", line 2997, in run
    super().run()
    File "C:\Users\Adarsh Anand Tiwari\AppData\Local\Temp\pip-install-1g1r3_3f\numpy_90eda931f3b744579b11b3e44e1624bd\vendored-meson\meson\mesonbuild\interpret
    erbase\interpreterbase.py", line 164, in run
    self.evaluate_codeblock(self.ast, start=1)
    File "C:\Users\Adarsh Anand Tiwari\AppData\Local\Temp\pip-install-1g1r3_3f\numpy_90eda931f3b744579b11b3e44e1624bd\vendored-meson\meson\mesonbuild\interpret
    erbase\interpreterbase.py", line 190, in evaluate_codeblock
    raise e
    File "C:\Users\Adarsh Anand Tiwari\AppData\Local\Temp\pip-install-1g1r3_3f\numpy_90eda931f3b744579b11b3e44e1624bd\vendored-meson\meson\mesonbuild\interpret
    erbase\interpreterbase.py", line 182, in evaluate_codeblock
    self.evaluate_statement(cur)
    File "C:\Users\Adarsh Anand Tiwari\AppData\Local\Temp\pip-install-1g1r3_3f\numpy_90eda931f3b744579b11b3e44e1624bd\vendored-meson\meson\mesonbuild\interpret
    erbase\interpreterbase.py", line 198, in evaluate_statement
    self.assignment(cur)
    File "C:\Users\Adarsh Anand Tiwari\AppData\Local\Temp\pip-install-1g1r3_3f\numpy_90eda931f3b744579b11b3e44e1624bd\vendored-meson\meson\mesonbuild\interpret
    erbase\interpreterbase.py", line 635, in assignment
    value = self.evaluate_statement(node.value)
    File "C:\Users\Adarsh Anand Tiwari\AppData\Local\Temp\pip-install-1g1r3_3f\numpy_90eda931f3b744579b11b3e44e1624bd\vendored-meson\meson\mesonbuild\interpret
    erbase\interpreterbase.py", line 200, in evaluate_statement
    return self.method_call(cur)
    File "C:\Users\Adarsh Anand Tiwari\AppData\Local\Temp\pip-install-1g1r3_3f\numpy_90eda931f3b744579b11b3e44e1624bd\vendored-meson\meson\mesonbuild\interpret
    erbase\interpreterbase.py", line 550, in method_call
    res = obj.method_call(method_name, args, kwargs)
    File "C:\Users\Adarsh Anand Tiwari\AppData\Local\Temp\pip-install-1g1r3_3f\numpy_90eda931f3b744579b11b3e44e1624bd\vendored-meson\meson\mesonbuild\interpret
    erbase\baseobjects.py", line 94, in method_call
    return method(args, kwargs)
    File "C:\Users\Adarsh Anand Tiwari\AppData\Local\Temp\pip-install-1g1r3_3f\numpy_90eda931f3b744579b11b3e44e1624bd\vendored-meson\meson\mesonbuild\interpret
    erbase\decorators.py", line 109, in wrapped
    ret = f(*wrapped_args, **wrapped_kwargs)
    File "C:\Users\Adarsh Anand Tiwari\AppData\Local\Temp\pip-install-1g1r3_3f\numpy_90eda931f3b744579b11b3e44e1624bd\vendored-meson\meson\mesonbuild\interpret
    erbase\decorators.py", line 127, in wrapped
    return f(*wrapped_args, **wrapped_kwargs)
    File "C:\Users\Adarsh Anand Tiwari\AppData\Local\Temp\pip-install-1g1r3_3f\numpy_90eda931f3b744579b11b3e44e1624bd\vendored-meson\meson\mesonbuild\interpret
    erbase\decorators.py", line 826, in wrapped
    return f(*wrapped_args, **wrapped_kwargs)
    File "C:\Users\Adarsh Anand Tiwari\AppData\Local\Temp\pip-install-1g1r3_3f\numpy_90eda931f3b744579b11b3e44e1624bd\vendored-meson\meson\mesonbuild\interpret
    erbase\decorators.py", line 64, in wrapped
    return f(*wrapped_args, **wrapped_kwargs)
    File "C:\Users\Adarsh Anand Tiwari\AppData\Local\Temp\pip-install-1g1r3_3f\numpy_90eda931f3b744579b11b3e44e1624bd\vendored-meson\meson\mesonbuild\modules\p
    ython.py", line 204, in dependency_method
    dep = self._dependency_method_impl(kwargs)
    File "C:\Users\Adarsh Anand Tiwari\AppData\Local\Temp\pip-install-1g1r3_3f\numpy_90eda931f3b744579b11b3e44e1624bd\vendored-meson\meson\mesonbuild\modules\p
    ython.py", line 189, in _dependency_method_impl
    dep = find_external_dependency('python', self.interpreter.environment, new_kwargs, candidates)
    File "C:\Users\Adarsh Anand Tiwari\AppData\Local\Temp\pip-install-1g1r3_3f\numpy_90eda931f3b744579b11b3e44e1624bd\vendored-meson\meson\mesonbuild\dependenc
    ies\detect.py", line 124, in find_external_dependency
    d = c()
    File "C:\Users\Adarsh Anand Tiwari\AppData\Local\Temp\pip-install-1g1r3_3f\numpy_90eda931f3b744579b11b3e44e1624bd\vendored-meson\meson\mesonbuild\dependenc
    ies\python.py", line 216, in init
    if mesonlib.is_windows() and self.get_windows_python_arch().endswith('64') and mesonlib.version_compare(self.version, '<3.12'):
    AttributeError: 'NoneType' object has no attribute 'endswith'
    The Meson build system
    Version: 1.2.99
    Source dir: C:\Users\Adarsh Anand Tiwari\AppData\Local\Temp\pip-install-1g1r3_3f\numpy_90eda931f3b744579b11b3e44e1624bd
    Build dir: C:\Users\Adarsh Anand Tiwari\AppData\Local\Temp\pip-install-1g1r3_3f\numpy_90eda931f3b744579b11b3e44e1624bd.mesonpy-hu5t68a8\build
    Build type: native build
    Project name: NumPy
    Project version: 1.26.0
    C compiler for the host machine: cc (gcc 12.2.0 "cc (Rev1, Built by MSYS2 project) 12.2.0")
    C linker for the host machine: cc ld.bfd 2.39
    C++ compiler for the host machine: c++ (gcc 12.2.0 "c++ (Rev1, Built by MSYS2 project) 12.2.0")
    C++ linker for the host machine: c++ ld.bfd 2.39
    Cython compiler for the host machine: cython (cython 3.0.3)
    Host machine cpu family: x86_64
    Host machine cpu: x86_64
    Program python found: YES (C:\Users\Adarsh Anand Tiwari\PycharmProjects\book-recommendation-system\venv\bin\python.exe)
    Did not find pkg-config by name 'pkg-config'
    Found Pkg-config: NO
    Unknown Windows Python platform 'mingw_x86_64'
    Unknown Windows Python platform 'mingw_x86_64'

    ....\meson.build:43:12: ERROR: Unhandled python exception

    This is a Meson bug and should be reported!
    

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

Can someone help with this. I have been facing this since last two to three weeks but didn't got to right solution.

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