python setup.py bdist_wheel did not run successfully on MAC M1 - python-3.x

I want to pip install robotframework-puppeteerlibrary on mac m1.But it have some error.
after install I try to solve by pip install --upgrade pip pip install --use-pep517 greenlet the result is the same before. And then I brew install greenlet again. It doesn't working.I don't how to solve this problem.
Expected result : I want to use puppeteer on mac with robotframework.
Requirement already satisfied: zipp>=0.5 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from importlib-metadata>=1.4->pyppeteer==1.0.2->robotframework-puppeteerlibrary) (3.12.1)
Building wheels for collected packages: greenlet
Building wheel for greenlet (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [243 lines of output]
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for greenlet
Running setup.py clean for greenlet
Failed to build greenlet
Installing collected packages: pyee, greenlet, playwright, robotframework-puppeteerlibrary
Attempting uninstall: pyee
Found existing installation: pyee 9.0.4
Uninstalling pyee-9.0.4:
Successfully uninstalled pyee-9.0.4
Attempting uninstall: greenlet
Found existing installation: greenlet 2.0.2
Uninstalling greenlet-2.0.2:
Successfully uninstalled greenlet-2.0.2
Running setup.py install for greenlet ... error
error: subprocess-exited-with-error
× Running setup.py install for greenlet did not run successfully.
│ exit code: 1
╰─> [245 lines of output]
running install
/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build/lib.macosx-10.9-universal2-cpython-311
creating build/lib.macosx-10.9-universal2-cpython-311/greenlet
copying src/greenlet/__init__.py -> build/lib.macosx-10.9-universal2-cpython-311/greenlet
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
Rolling back uninstall of greenlet
Moving to /Library/Frameworks/Python.framework/Versions/3.11/include/python3.11/greenlet/
from /Library/Frameworks/Python.framework/Versions/3.11/include/python3.11/~reenlet
Moving to /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/greenlet-2.0.2.dist-info/
from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/~reenlet-2.0.2.dist-info
Moving to /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/greenlet/
from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/~reenlet
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> greenlet
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
I want to pip install package and use with robotframework.

Related

I'm encountering an error while installing turicreate module on wsl, is there any requirements I'm missing?

whenever I try to install turicreate module on wsl it's showing an error like this
`Collecting turicreate
Using cached turicreate-6.4.tar.gz (1.9 kB)
Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for turicreate, since package 'wheel' is not installed.
Installing collected packages: turicreate
Running setup.py install for turicreate ... error
error: subprocess-exited-with-error
× Running setup.py install for turicreate did not run successfully.
│ exit code: 1
╰─> [30 lines of output]
running install
/root/turitest/venv/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
==================================================================================
TURICREATE ERROR
If you see this message, pip install did not find an available binary package
for your system.
Supported Platforms:
* macOS 10.12+ x86_64.
* Linux x86_64 (including WSL on Windows 10).
Support Python Versions:
* 2.7
* 3.5
* 3.6
* 3.7
* 3.8
Another possible cause of this error is an outdated pip version. Try:
`pip install -U pip`
==================================================================================
[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.
╰─> turicreate
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
`
pip version - 22.0.2
python3.10 (I guess this maybe the problem, but I'm not sure)
windows10 OS
can someone help me to install turicreate...
I tried updating and upgrading pip versions, tried in python 2.7 and python3.10 but still got the same error.
I also tried this command,
python3 -m pip3 install -U pip
this returned
No module named pip3

pip install websocket - Error: subprocess-exited-with-error. Cant execute `setup.py` since setuptools is not available in the build environment

pip --version pip 23.0 from C:\Users\sebas\AppData\Local\Programs\Python\Python310\lib\site-packages\pip (python 3.10)
python --version 3.10.4
$ pip install websocket
Collecting websocket
Using cached websocket-0.2.1.tar.gz (195 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]
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.
Any idea what's going on here? I have never seen such an error before.

locustio installed falid error: legacy-install-failure error: subprocess-exited-with-error

how to install locustio
study_locust /usr/local/bin/python3.8 -m pip install locustio
Looking in indexes: http://pypi.byted.org/simple/pypi/+simple
Collecting locustio
Downloading http://pypi.byted.org/packages/pypi/locustio/locustio-0.999.tar.gz (267 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 267.6/267.6 kB 741.2 kB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Installing collected packages: locustio
DEPRECATION: locustio is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
Running setup.py install for locustio ... error
error: subprocess-exited-with-error
× Running setup.py install for locustio did not run successfully.
│ exit code: 1
╰─\> \[4 lines of output\]
running install
\*\*\*\* Locust package has moved from 'locustio' to 'locust'. Please update your reference (or pin your version to 0.14.6 if you dont want to update to 1.0) \*\*\*\*
\[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.
╰─\> locustio
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
➜ study_locust
× Running setup.py install for locustio did not run successfully.
│ exit code: 1
╰─> [4 lines of output]
running install
\*\*\*\* Locust package has moved from 'locustio' to 'locust'. Please update your reference (or pin your version to 0.14.6 if you dont want to update to 1.0) \*\*\*\*
\[end of output\]
https://docs.locust.io/en/stable/installation.html
locustio is no longer the name of the package. As the error message and docs say, you need to install locust.
pip3 install locust

ipymbl install from pip

I try to install the library ipympl using pip:
pip3 install ipympl
I am on a windows computer with python 3.8.
I get this Error:
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.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
I Install https://rustup.rs/
and give path but still not working I think that I do something wrong.

Error trying to install python pywinpty>=1.1.0 package

I try to install the python for aws glue connectivity,
so I installed pip install --upgrade jupyter boto3 aws-glue-sessions.
I'm getting errors in this particular package.
Collecting pywinpty>=1.1.0 Using cached pywinpty-2.0.5.tar.gz (23 kB) 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]
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
Found a solution online. Installing 64 bit Python resolved my issue. Check your installation with python -V -V, it should say 64 bit.

Resources