Closed satishBohra closed 6 months ago
Also seen on macOS using Python 3.11.4.
Using Python 3.10.12, pip install -r requirements.txt
completed correctly from main branch.
Edit: Tested with Python 3.10.
Faced the same bug but installed dependencies one by one, which works.
It works form me on Python version 3.10.11. Also, I have to install C++ compiler, check out the system requirements section.
I fixed a similar issue by using Python version 3.10.10 on linux-mint. I think it's a wrapt issue caused by python 3.11 deprecations. I didn't try versions other than 3.10.10, but given the other comments I suspect anything less than 3.11 would work. After downloading the LLM and editing the env to add its (absolute) path, I also had to use pip install sentence_transformers
for langchain.
Now I have it working.
same issue with me using python version 3.113 on windows 10 os.
Same issue, solutions listed here did not work.
faced the same with Python 3.11.4. Worked fine with 3.10 and installing C++ Universal Windows Platform Support
I think i handle some of the error that i have try follow these steps
0.pip cache purge
😏pip install meson
1.python -m pip install --upgrade pip
😎pip install importlib-metadata
2.python -m pip install --upgrade setuptools
😇pip install subprocess.run
3.pip3 install wheel setuptools pip --upgrade
🤨pip install toml
4.pip install numpy --use-deprecated=legacy-resolver
🤨pip install setuptools-metadata
problem still exists
Downgrading to Python 3.10.x solved the issue for me. Hope it helps.
Same problem here
you can try python 3.8, I solve the problem successfully.
The same type of error occurred for me during the installation of the scipy package on Python 3.9.13
Try to install nearly below or above version of scipy with the Python version release date.
For example, if you have Python 3.9.13 (release date: May 17, 2022) (as in my case), try to install the scipy package version 1.8.1 (release date: May 18, 2022).
I don't know whether it will work for you in your case but it worked for me to install more than 2 packages with the same issue.
Python 3.9.13
Pillow 9.5.0
scipy 1.8.1
matplotlib 3.7.1
I also get the same type of error. However, I'm on a RaspberryPi 4, and running Python 3.11.2. What I'm trying to install (for Thonny), is QCustomPlot_PyQt5. I tested even QCustomPlot_PyQt6, still get the same issue.
Further research, on my system, I could see that some packages/software was not completely installed.
If someone else has same version of Python (3.11.2), and is running Bookworm, let me know if you solved it, and which steps to take.
for me too in my MacAir Big Sur, every install using brew if its needed python-hatchling, this errors will in some way.
How can i resolve this error in windows 11 -Python 3.12.2
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.
I installed Cargo from here: https://rustup.rs and added to the path
Yes! DOWNGRADING THE PYTHON VERSION FROM 3.11 TO 3.10 SOLVES THE ERROR.
Could be resolved if you install required pip one by one
it works
Same problem here
pip install matplotlib==3.8.4 it works. i got python 3.11
pip install matplotlib==3.8.4 worked for me, too.
pip install matplotlib==3.8.4
it works
It works! Thank you a lot!!!
same problem
You are not writing the package correctly
Note: if you'd like to ask a question or open a discussion, head over to the Discussions section and post it there. Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [86 lines of output] Traceback (most recent call last): File "C:\Users\Satish\AppData\Local\Temp\pip-build-env-om9hg96c\overlay\Lib\site-packages\setuptools\config\expand.py", line 81, in getattr return next( ^^^^^ File "C:\Users\Satish\AppData\Local\Temp\pip-build-env-om9hg96c\overlay\Lib\site-packages\setuptools\config\expand.py", line 82, in
ast.literal_eval(value)
File "C:\Users\Satish\AppData\Local\Programs\Python\Python311\Lib\ast.py", line 110, in literal_eval
return _convert(node_or_string)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Satish\AppData\Local\Programs\Python\Python311\Lib\ast.py", line 109, in _convert
return _convert_signed_num(node)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Satish\AppData\Local\Programs\Python\Python311\Lib\ast.py", line 83, in _convert_signed_num
return _convert_num(node)
^^^^^^^^^^^^^^^^^^
File "C:\Users\Satish\AppData\Local\Programs\Python\Python311\Lib\ast.py", line 74, in _convert_num
_raise_malformed_node(node)
File "C:\Users\Satish\AppData\Local\Programs\Python\Python311\Lib\ast.py", line 71, in _raise_malformed_node
raise ValueError(msg + f': {node!r}')
ValueError: malformed node or string on line 2: <ast.Call object at 0x0000025683AD1330>
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. Describe the bug and how to reproduce it A clear and concise description of what the bug is and the steps to reproduce the behavior.
Expected behavior A clear and concise description of what you expected to happen.
Environment (please complete the following information):
Additional context Add any other context about the problem here.