confluent-kafka install error - filename or extension is too long - python

I want to install feathr module, but during installation, I am getting this error( also attached in the screenshot) and I have no idea how to fix this. Please help.
enter image description here
The filename or extension is too long
[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.
╰─> confluent-kafka
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

Related

Cannot install "mathutils" in python

I tried everything. From pip and source code. However it keeps showing error.
| ^~~~~~~~~~~~~~
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.
╰─> mathutils
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
I tired with anaconda, with just Python, either pip install or build source package. Nothing is working.

Pycharm legacy install failure

I try for install package reportlab in pycharm and got this error
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.32.31326\\bin\\HostX86\\x64\\cl.exe' 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.
reportlab
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
When search in SO and other website i got some reference like this but cant solve this problem. I even cant run some command like pip install –upgrade setuptools and pip install –upgrade wheel like in reference
Can someone provide me how to solve this ? i already stuck with this problem from last week
PS : Let me know if you need more detail information

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.

Pip doesn't let me install pyzmail, I always get the same error no matter what I try

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.

Installation error: legacy-install-failure pyoptimus

I'm trying to install pyoptimus in a conda virtual environment, but I'm getting this error every time.
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.
╰─> llvmlite
As per the official documentation, I've tried creating different environments with different versions of python, but it doesn't seem to work!
Please let me know if anyone knows a way around the problem. Thanks!

Categories