Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Command errored out with exit status 1: #62

Open
zc52406 opened this issue Jul 9, 2020 · 5 comments
Open

ERROR: Command errored out with exit status 1: #62

zc52406 opened this issue Jul 9, 2020 · 5 comments

Comments

@zc52406
Copy link

zc52406 commented Jul 9, 2020

报错啦~怎么处理呢?

`

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.`

@zc52406
Copy link
Author

zc52406 commented Jul 9, 2020

This error occurs in Windows 10, python version 3.8, and other versions have tried. The same problem will occur. Because of the VPN problem in China, the source uses alicloud. Excuse me, the landlord did not encounter this situation, how should I solve it?

@jongwook
Copy link
Member

jongwook commented Jul 9, 2020

It looks like a network issue (possibly related to the great firewall of China). Can you access this URL:

https://github.com/marl/crepe/raw/models/model-tiny.h5.bz2

From your machine?

@wubinbai
Copy link

@jongwook Hi, I am using Ubuntu from China as well. Connecting normal network in China cannot use pip to install, nor could I open the link you showed. Even though I can open the link by connecting to some kind of VPN to Hong Kong, I still cannot use pip install to install crepe package in Ubuntu. Any solutions? Thanks

@Abel1802
Copy link

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

@jcq15
Copy link

jcq15 commented 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants