metadata-generation-failed. i dont understand. i tryed everthing on google - python

pip install pyqt5
Collecting pyqt5
Using cached PyQt5-5.15.7.tar.gz (3.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
╰─> [29 lines 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.
first. brew install pyqt5
second. venv and activate
last pip install pyqt5 but get error
how can i do?...
i don't know plz

Related

LightFM library install error on Sagemaker Notebook

I was using LightFM library on Sagemaker Notebook without any issue before.
However, from yesterday, I started seeing this error message and could no longer complete installation (pip install lightfm)
Building wheels for collected packages: lightfm
Building wheel for lightfm (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [176 lines of output]
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/setuptools/dist.py:775: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
...
...
...
...
In file included from /home/ec2-user/anaconda3/envs/python3/include/python3.10/unicodeobject.h:1046:0,
from /home/ec2-user/anaconda3/envs/python3/include/python3.10/Python.h:83,
from lightfm/_lightfm_fast_openmp.c:20:
/home/ec2-user/anaconda3/envs/python3/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
^~~~~~~~~~~~~~~~~~~~~
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> lightfm
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
I tried several suggestions I found from web, such as
pip install --upgrade pip
pip install --upgrade wheel
pip install --upgrade setuptools
pip install Cmake
pip install requests --no-dependencies
but none of these worked - still getting same error message.
How should I mitigate from this error?
This seems to be an issue with the lightfm package installation. Have you tried installing this in another environment? This can also be dependent on the notebook kernel you are using. Can you try installing in a virtual environment as well?

why do I see this error when I try to install Openai Whisper

PS C:\> pip install git+https://github.com/openai/whisper.git
Collecting git+https://github.com/openai/whisper.git
Cloning https://github.com/openai/whisper.git to c:\users\minju\appdata\local\temp\pip-req-build-aaszmdk8
Running command git clone --filter=blob:none --quiet https://github.com/openai/whisper.git 'C:\Users\minju\AppData\Local\Temp\pip-req-build-aaszmdk8'
Resolved https://github.com/openai/whisper.git to commit 28769fcfe50755a817ab922a7bc83483159600a9
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
ERROR: Can not execute `setup.py` since setuptools is not available in the build environment.
[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.
It's via VS code, and I don't know what's the problem.
Both git and pip are operating fine.
How can I solve that?
You need setuptools installed in your environment. So try pip install setuptools in your terminal, and then retry your installation.

pyppeteer ghost cursor installing doesn't work

I have tried pip install pyppeteer-ghost-cursor==0.2.3
but it returned
Collecting pyppeteer-ghost-cursor==0.2.3
Using cached pyppeteer_ghost_cursor-0.2.3-py3-none-any.whl (21 kB)
Collecting bezier
Using cached bezier-2021.2.12.tar.gz (313 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
The BEZIER_INSTALL_PREFIX environment variable must be set.
[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.
What can i do now to install this package pls help
Im using windows 10 to install this package but don't really work
INSTALL_PREFIX environment variable must be set error
I had the same problem. You have to downgrade to Python 3.9.x unfortunately.

Heroku pip install suddenly started to return an error: use_2to3 is invalid

Heroku deploy started to return this error when trying to deploy a python app:
-----> Installing requirements with pip
Collecting amqp==2.6.1
Downloading amqp-2.6.1-py2.py3-none-any.whl (48 kB)
Collecting anyjson==0.3.3
Downloading anyjson-0.3.3.tar.gz (8.3 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
error in anyjson setup command: use_2to3 is invalid.
[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.
! Push rejected, failed to compile Python app.
! Push failed
There was no change in requirements.txt
Heroku recently updated setuptools to 60.10.0 for python build pack
However, the setuptools upgrade also drops support for the deprecated
use_2to3 feature, which may be used be a small number of legacy
dependency versions. This change occurred in setuptools 58.0.0
(released 2021-09-04), which we have deliberately not updated to for
as long as possible, in order to give any affected packages time to be
fixed. However it's no longer viable to delay updating any longer, due
to the pipenv compatibility issues.
The above pull request have some options to fix affected packages. In my case we didn't need anyjson anyway, removing it from requirements.txt fixed the problem
I had the same error, unfortunately the downgrade setuptools didn't help me. In my case, the solution was to uninstall the kombu package (ofc if you don't use Celery in your project)

PyQt3D Error While Generating Package Metadata

I am trying to install PyQt3D on my Mac running macOS Monterey. However, when I run python3 -m pip install PyQt3D, I get the following error. I've tried looking it up but was unable to find a solution.
I've tried it with PyQt5, too, and it results in the same error.
Does anyone know what the problem actually is and what I can do to fix it?
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Collecting PyQt3D
Using cached PyQt3D-5.15.5.tar.gz (7.5 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
╰─> [6 lines of output]
Querying qmake about your Qt installation...
/opt/homebrew/bin/qmake -query
These bindings will be built: Qt3DCore, Qt3DInput, Qt3DLogic, Qt3DRender, Qt3DAnimation, Qt3DExtras.
Generating the Qt3DCore bindings...
_in_process.py: /private/var/folders/_d/pchrth1s1vjghjhzdbtsngsw0000gn/T/pip-install-sbq5vcl5/pyqt3d_fd2968c9d6a042fa83e3a2e40e291e99/sip/Qt3DCore/qaspectengine.sip:46: ::Qt3DCore::QAspectEngine::aspects() unsupported function return type - provide %MethodCode and a C++ signature
[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.

Categories