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

hi #4

Closed
eyuansu62 opened this issue Oct 23, 2019 · 8 comments
Closed

hi #4

eyuansu62 opened this issue Oct 23, 2019 · 8 comments

Comments

@eyuansu62
Copy link

git+git://github.com/j6mes/drqa@parallel
git+git://github.com/sheffieldnlp/fever-scorer@master
这两个是不是无法git了呀

@jayzzhou-thu
Copy link
Member

@eyuansu62 我试了一下pip install -r requirements.txt 是可以的,有相应的错误日志吗?

@eyuansu62
Copy link
Author

eyuansu62 commented Oct 23, 2019 via email

@jayzzhou-thu
Copy link
Member

jayzzhou-thu commented Oct 23, 2019

Collecting git+git://github.com/j6mes/drqa@parallel (from -r requirements.txt (line 3))   Cloning git://github.com/j6mes/drqa (to revision parallel) to /tmp/pip-req-build-n5vybbhi   Running command git clone -q git://github.com/j6mes/drqa /tmp/pip-req-build-n5vybbhi   fatal: The remote end hung up unexpectedly ERROR: Command errored out with exit status 128: git clone -q git://github.com/j6mes/drqa /tmp/pip-req-build-n5vybbhi Check the logs for full command output. 请问这是为什么呢?

------------------ 原始邮件 ------------------ 发件人: "jayzzhou-thu"<notifications@github.com>; 发送时间: 2019年10月23日(星期三) 晚上8:53 收件人: "thunlp/GEAR"<GEAR@noreply.github.com>; 抄送: "末冬末秋"<772468951@qq.com>;"Mention"<mention@noreply.github.com>; 主题: Re: [thunlp/GEAR] hi (#4) @eyuansu62 我试了一下pip install -r requirements.txt 是可以的,有相应的错误日志吗? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

查一下问题可能在
fatal: The remote end hung up unexpectedly
这个可能有用 http://blog.fidding.me/article/87

@eyuansu62
Copy link
Author

eyuansu62 commented Oct 23, 2019 via email

@Yuanlim0919
Copy link

您好,不好意思打扰了。我在安装的过程中也遇到一样的问题。但上面提供说可能有解决办法的链接已经没办法开启了,想请问有其他的方法吗?谢谢

完整的指令和error message 如下:

Collecting git+git://github.com/j6mes/drqa@parallel (from -r requirements.txt (line 4))
Cloning git://github.com/j6mes/drqa (to revision parallel) to c:\users\acer\appdata\local\temp\pip-req-build-usc5i35f
Running command git clone -q git://github.com/j6mes/drqa 'C:\Users\acer\AppData\Local\Temp\pip-req-build-usc5i35f'
fatal: unable to connect to github.com:
github.com[0: 20.27.177.113]: errno=Unknown error

WARNING: Discarding git+git://github.com/j6mes/drqa@parallel. Command errored out with exit status 128: git clone -q git://github.com/j6mes/drqa 'C:\Users\acer\AppData\Local\Temp\pip-req-build-usc5i35f' Check the logs for full command output.
ERROR: Command errored out with exit status 128: git clone -q git://github.com/j6mes/drqa 'C:\Users\acer\AppData\Local\Temp\pip-req-build-usc5i35f' Check the logs for full command output.

@jayzzhou-thu
Copy link
Member

//github.com/j6mes/drqa

Hi,下面是一个可行的方法,可以试试

先将分支克隆到本地
git clone https://github.com/j6mes/DrQA.git

之后进入目录之后切换到parallel分支
git checkout parallel

之后手动安装一下
python setup.py develop

@Yuanlim0919
Copy link

感谢你的回复,我试试看这个方法

@Yuanlim0919
Copy link

Hi 您好,我尝试这个方法的过程中发生了这个错误:
Traceback (most recent call last):
File "setup.py", line 12, in
readme = f.read()
File "C:\Users\acer\Anaconda3\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 18545: character maps to

后来查到是 open() 里面需要代入encoding="utf8" 这个参数,在这边分享一下
https://stackoverflow.com/questions/9233027/unicodedecodeerror-charmap-codec-cant-decode-byte-x-in-position-y-character

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

3 participants