how to fix "Command errored out with exit status 1" - python

I'm trying to install it on colab notebook.
The command I tried is :
pip install models
It's giving me error as:
Collecting models
Using cached https://files.pythonhosted.org/packages/92/3c/ac1ddde60c02b5a46993bd3c6f4c66a9dbc100059da8333178ce17a22db5/models-0.9.3.tar.gz
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Try:
pip install pymodels
This is documented here. This is because they renamed the module.

Related

Conection timeout error when installing mlxtend from github on google colab

That's my question too. When I want to install mlxtend from github I got this error:
this is my code on google colab:
!pip install git+git://github.com/rasbt/mlxtend.git
and I got this error:
Collecting git+git://github.com/rasbt/mlxtend.git
Cloning git://github.com/rasbt/mlxtend.git to /tmp/pip-req-build-4jwtt0vm
Running command git clone -q git://github.com/rasbt/mlxtend.git /tmp/pip-req-build-4jwtt0vm
fatal: unable to connect to github.com:
github.com[0: 140.82.113.3]: errno=Connection timed out
WARNING: Discarding git+git://github.com/rasbt/mlxtend.git. Command errored out with exit status 128: git clone -q git://github.com/rasbt/mlxtend.git /tmp/pip-req-build-4jwtt0vm Check the logs for full command output.
ERROR: Command errored out with exit status 128: git clone -q git://github.com/rasbt/mlxtend.git /tmp/pip-req-build-4jwtt0vm Check the logs for full command output.
Please help me how can I fix this error. (I mean connection time out)
I tried updating pip and installing mlxtend and did not succeed.

Unable to install ciso8601 on Windows

I have tried to do a pip3 install ciso8601 on the Windows command prompt (I have Python 3.10 installed) but I can't help hitting this error message :
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Hugo\AppData\Local\Programs\Python\Python310\python.exe' 'C:\Users\Hugo\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' build_wheel 'C:\Users\Hugo\AppData\Local\Temp\tmpfaqzmm6w'
cwd: C:\Users\Hugo\AppData\Local\Temp\pip-install-z81gigrv\ciso8601_18ea0de24a904fcdaeae094cf83a0854
And a bit further after a few lines of code verbose, there's this :
ERROR: Failed building wheel for ciso8601
Failed to build ciso8601
ERROR: Could not build wheels for ciso8601, which is required to install pyproject.toml-based projects
I've looked for solutions online but I only read things about Visual C++ which version 14 is already installed on my computer.

I am trying to run and existing code but when I try to run the code the error shows "No module named fetch"

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.`
trying to install fetch using pip install fetch but gives error as in the picture below
It seems like the program was written in Python <3, as file() is a function that is not supported in Python 3.

How do I resolve error installing manim using poetry?

I want to setup manim community repo using poetry. I ran the command "poetry install". I am getting the following error.
Python 3.8.5, Pip 20.2.4
EnvCommandError
Command D:\manim\venv\Scripts\pip.exe install --no-deps file:///C:/Users/abc/AppData/Local/pypoetry/Cache/artifacts/03/ee/1a/ee5da5d7b449da38c4e593ecc6a57342de04222cd7fbe5b126a4e3f
df0/pangocairocffi-0.3.2.tar.gz errored with the following return code 1, and output:
Processing c:\users\abc\appdata\local\pypoetry\cache\artifacts\03\ee\1a\ee5da5d7b449da38c4e593ecc6a57342de04222cd7fbe5b126a4e3fdf0\pangocairocffi-0.3.2.tar.gz
ERROR: Command errored out with exit status 1:
...
...
...
OSError: dlopen() failed to load a library: pango / pango-1 / pango-1.0 / pango-1.0-0
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Use poetry only when you want to contribute to Manim Community itself, or else don't use it.
Now let's, come to the error. What the error, say's is it can't find some shared libraries. According to the docs, it says, you have to install Pango for it to work.
Possibly, you may have missed this step.
https://docs.manim.community/en/latest/installation/win.html#pango-installation

pip install darknetpy not working, "ERROR: Command errored out with exit status 1"

I am trying to install darknetpy using these instructions:
https://pypi.org/project/darknetpy/
however every time I run 'pip install darknetpy' I get:
$ pip install darknetpy
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting darknetpy
Using cached darknetpy-4.1.tar.gz (9.4 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'c:\python27\python.exe' 'c:\python27\lib\site-packages\pip\_vendor\pep517\_in_process.py' get_requires_for_build_wheel 'c:\users\paddy\appdata\local\temp\tmp9kl8jm'
cwd: c:\users\paddy\appdata\local\temp\pip-install-eqp5it\darknetpy
Complete output (2 lines):
c:\python27\python.exe: No module named pip
Please install setuptools-rust package
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\python27\python.exe' 'c:\python27\lib\site-packages\pip\_vendor\pep517\_in_process.py' get_requires_for_build_wheel 'c:\users\paddy\appdata\local\temp\tmp9kl8jm' Check the logs for full command output.
I have installed setuptools-rust but still get the same errors as above.
I am on a Windows 10 laptop and using Git Bash as my emulator. Please help!
Use the following command to install darknetpy successfully:
pip install https://github.com/danielgatis/darknetpy/raw/master/dist/darknetpy-4.2-cp37-cp37m-linux_x86_64.whl

Categories