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.
Related
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.
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
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 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)
So I'm following along "Automate the boring stuff" by Al Sweigart. And he uses pyzmail in the book. Naturally I'm going to want to use it too in order to follow along with the book. I've tried every single thing on the internet - and it's just frustrating. Can somebody tell me how to fix this please? I just can't get this damn pyzmail module installed. I've even tried virtual environments. I get this error no matter what, it's like it's destined to be and god wants me to suffer in the cmd prompt and google for 3 hours .
.\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0>pip install pyzmail
Collecting pyzmail
Using cached pyzmail-1.0.3.tar.gz (57 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [2 lines of output]
error in pyzmail setup command: use_2to3 is invalid.
VERSION 1.0.3
[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.
This is the error. I find it really confusing.
error: metadata-generation-failed
I am not sure that it will work but that's what I found.
setuptools>=58 breaks support for use_2to3 that is why you are facing this error
Consider downgrading the setuptools to version 57.
pip install -I setuptools==57.5.0
That is the latest 57 version.
Also, you may consider not using this library.
UPDATE
As I understood, this package is abandoned and the last release was in May 2014. Downgrading the setuptools will not work. This package fails in setting up an abandoned distribute library.
Link to the same problem and answer.