question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERROR: Command errored out with exit status 1:

See original GitHub issue

报错啦~怎么处理呢?

`

pip install crepe

Looking in indexes: http://mirrors.aliyun.com/pypi/simple/ Collecting crepe Downloading http://mirrors.aliyun.com/pypi/packages/c8/74/1677b9369f233745b3dedf707ce26fb935c5c400379c45400df818f3a805/crepe-0.0.11.tar.gz (15 kB)

ERROR: Command errored out with exit status 1:
 command: 'd:\program files\python\python38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = 
 '"'"'C:\\Users\\mac\\AppData\\Local\\Temp\\pip-install-frjzwa1k\\crepe\\setup.py'"'"'; __file__='"'"'C:\\Users\\mac\\AppData\\Local\\Temp\\pip-install-frjzwa1k\\crepe\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 
'C:\Users\mac\AppData\Local\Temp\pip-pip-egg-info-ky0m23t0'

     cwd: C:\Users\mac\AppData\Local\Temp\pip-install-frjzwa1k\crepe\
Complete output (57 lines):
C:\Users\mac\AppData\Local\Temp\pip-install-frjzwa1k\crepe\setup.py:2: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp
Traceback (most recent call last):
  File "d:\program files\python\python38\lib\urllib\request.py", line 1350, in do_open
    h.request(req.get_method(), req.selector, req.data, headers,
  File "d:\program files\python\python38\lib\http\client.py", line 1240, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "d:\program files\python\python38\lib\http\client.py", line 1286, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "d:\program files\python\python38\lib\http\client.py", line 1235, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "d:\program files\python\python38\lib\http\client.py", line 1006, in _send_output
    self.send(msg)
  File "d:\program files\python\python38\lib\http\client.py", line 946, in send
    self.connect()
  File "d:\program files\python\python38\lib\http\client.py", line 1402, in connect
    super().connect()
  File "d:\program files\python\python38\lib\http\client.py", line 917, in connect
    self.sock = self._create_connection(
  File "d:\program files\python\python38\lib\socket.py", line 787, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "d:\program files\python\python38\lib\socket.py", line 918, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 11004] getaddrinfo failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\mac\AppData\Local\Temp\pip-install-frjzwa1k\crepe\setup.py", line 30, in <module>
    urlretrieve(base_url + compressed_file, compressed_path)
  File "d:\program files\python\python38\lib\urllib\request.py", line 247, in urlretrieve
    with contextlib.closing(urlopen(url, data)) as fp:
  File "d:\program files\python\python38\lib\urllib\request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "d:\program files\python\python38\lib\urllib\request.py", line 531, in open
    response = meth(req, response)
  File "d:\program files\python\python38\lib\urllib\request.py", line 640, in http_response
    response = self.parent.error(
  File "d:\program files\python\python38\lib\urllib\request.py", line 563, in error
    result = self._call_chain(*args)
  File "d:\program files\python\python38\lib\urllib\request.py", line 502, in _call_chain
    result = func(*args)
  File "d:\program files\python\python38\lib\urllib\request.py", line 755, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "d:\program files\python\python38\lib\urllib\request.py", line 525, in open
    response = self._open(req, data)
  File "d:\program files\python\python38\lib\urllib\request.py", line 542, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "d:\program files\python\python38\lib\urllib\request.py", line 502, in _call_chain
    result = func(*args)
  File "d:\program files\python\python38\lib\urllib\request.py", line 1393, in https_open
    return self.do_open(http.client.HTTPSConnection, req,
  File "d:\program files\python\python38\lib\urllib\request.py", line 1353, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 11004] getaddrinfo failed>
Downloading weight file model-tiny.h5.bz2 ...
----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.`

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Abel1802commented, Nov 21, 2020

The problem was solved when I used conda. conda install -c conda-forge crepe

0reactions
jcq15commented, Jan 20, 2021

It’s because of the shit GFW in China. I’ve solved the problem by downloading the models manually and installing them from the source code.

wget http://mirrors.tencentyun.com/pypi/packages/c8/74/1677b9369f233745b3dedf707ce26fb935c5c400379c45400df818f3a805/crepe-0.0.11.tar.gz
cd crepe-0.0.11

Modify setup.py, comment line 30, because we will download these files manually.

# urlretrieve(base_url + compressed_file, compressed_path)

Download these files on your pc:

Update the five files to crepe-0.0.11/crepe/. Now you can install it:

python setup.py

Finally, you may get an error, but in fact, the crepe has already been installed successfully.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Command errored out with exit status 1: python." when trying ...
I am trying to install django-heroku using pip, but it keeps running into an error. I have seen suggestions telling me to make...
Read more >
Command errored out with exit status 1: python setup.py ...
To solve the ERROR: Command errored out with exit status 1: python setup.py egg_info, upgrade your versions of `pip`, `setuptools` and `wheel` before ......
Read more >
Command errored out with exit status 1 · Issue #8618 · pypa/pip
I have been trying to install some packages like pyautogui, pyinstaller, pygame but I have the same error. I have uploaded many packages...
Read more >
Command Errored Out With Exit Status 1 Python
Command errored out with exit status 1 python. There was no issue with the command, one file with name string.py was causing the...
Read more >
How to fix error ERROR Command errored out with exit status ...
ERROR : Command errored out with exit status 1: command: /Users/user/Dev/trydjango/new_env/bin/python -c 'import sys, setuptools, tokenize; sys.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found