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

What's the wrong when I install "stash" by pythonista? #245

Closed
tchy opened this issue Jun 1, 2017 · 2 comments · Fixed by #314
Closed

What's the wrong when I install "stash" by pythonista? #245

tchy opened this issue Jun 1, 2017 · 2 comments · Fixed by #314

Comments

@tchy
Copy link

tchy commented Jun 1, 2017

import requests as r; exec(r.get('http://bit.ly/get-stash').text)
Traceback (most recent call last):
File "/var/containers/Bundle/Application/59699EF3-A79B-4527-9A91-9CFFC403710E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/requests/packages/urllib3/connectionpool.py", line 377, in _make_request
httplib_response = conn.getresponse(buffering=True)
TypeError: getresponse() got an unexpected keyword argument 'buffering'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/var/containers/Bundle/Application/59699EF3-A79B-4527-9A91-9CFFC403710E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/requests/packages/urllib3/connectionpool.py", line 560, in urlopen
body=body, headers=headers)
File "/var/containers/Bundle/Application/59699EF3-A79B-4527-9A91-9CFFC403710E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/requests/packages/urllib3/connectionpool.py", line 379, in _make_request
httplib_response = conn.getresponse()
File "/var/containers/Bundle/Application/59699EF3-A79B-4527-9A91-9CFFC403710E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/http/client.py", line 1176, in getresponse
response.begin()
File "/var/containers/Bundle/Application/59699EF3-A79B-4527-9A91-9CFFC403710E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/http/client.py", line 284, in begin
version, status, reason = self._read_status()
File "/var/containers/Bundle/Application/59699EF3-A79B-4527-9A91-9CFFC403710E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/http/client.py", line 253, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/var/containers/Bundle/Application/59699EF3-A79B-4527-9A91-9CFFC403710E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/requests/adapters.py", line 377, in send
timeout=timeout
File "/var/containers/Bundle/Application/59699EF3-A79B-4527-9A91-9CFFC403710E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/requests/packages/urllib3/connectionpool.py", line 610, in urlopen
_stacktrace=sys.exc_info()[2])
File "/var/containers/Bundle/Application/59699EF3-A79B-4527-9A91-9CFFC403710E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/requests/packages/urllib3/util/retry.py", line 248, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/var/containers/Bundle/Application/59699EF3-A79B-4527-9A91-9CFFC403710E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/requests/packages/urllib3/packages/six.py", line 311, in reraise
raise value.with_traceback(tb)
File "/var/containers/Bundle/Application/59699EF3-A79B-4527-9A91-9CFFC403710E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/requests/packages/urllib3/connectionpool.py", line 560, in urlopen
body=body, headers=headers)
File "/var/containers/Bundle/Application/59699EF3-A79B-4527-9A91-9CFFC403710E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/requests/packages/urllib3/connectionpool.py", line 379, in _make_request
httplib_response = conn.getresponse()
File "/var/containers/Bundle/Application/59699EF3-A79B-4527-9A91-9CFFC403710E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/http/client.py", line 1176, in getresponse
response.begin()
File "/var/containers/Bundle/Application/59699EF3-A79B-4527-9A91-9CFFC403710E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/http/client.py", line 284, in begin
version, status, reason = self._read_status()
File "/var/containers/Bundle/Application/59699EF3-A79B-4527-9A91-9CFFC403710E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/http/client.py", line 253, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
requests.packages.urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
File "/var/containers/Bundle/Application/59699EF3-A79B-4527-9A91-9CFFC403710E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/requests/api.py", line 67, in get
return request('get', url, params=params, **kwargs)
File "/var/containers/Bundle/Application/59699EF3-A79B-4527-9A91-9CFFC403710E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/requests/api.py", line 53, in request
return session.request(method=method, url=url, **kwargs)
File "/var/containers/Bundle/Application/59699EF3-A79B-4527-9A91-9CFFC403710E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/requests/sessions.py", line 469, in request
resp = self.send(prep, **send_kwargs)
File "/var/containers/Bundle/Application/59699EF3-A79B-4527-9A91-9CFFC403710E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/requests/sessions.py", line 577, in send
r = adapter.send(request, **kwargs)
File "/var/containers/Bundle/Application/59699EF3-A79B-4527-9A91-9CFFC403710E/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/requests/adapters.py", line 427, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))

@Seanld
Copy link
Contributor

Seanld commented Jul 12, 2017

According the errors it's providing, the only thing I can deduce is that the server closing the connection before StaSh is actually being downloaded. This could be because your internet connection is too slow. Check your internet connection, restart Pythonista, and try again. Please tell me if the problem persists.

@Tossy654
Copy link

Tossy654 commented Aug 8, 2017

try this 🙂
import requests as r; exec(r.get('https://raw.githubusercontent.com/ywangd/stash/master/getstash.py').text)

bennr01 added a commit to bennr01/stash that referenced this issue May 4, 2018
#About this commit/PR
This is a commit/PR to close a large number of old/fixed issues at once using the github `fix #<issuenumber>` syntax.
Below is a list of all issues which will automatically be closed by merging this commit/PR into `ywangd/master`.
Behind each issue number is a short summary about the issue or why it can be closed.

#Issues which can be closed

**Py3 related:**
- fix ywangd#281 (py3 had not yet been supported)
- fix ywangd#261 (python3 pip installation)
- fix ywangd#246 (python3 code in python2)
- fix ywangd#222 (python3 command in stash)
- fix ywangd#200 (pip now works (at least partially) with python3)
- close ywangd#197 (general pythonista3 compatibility thread)


**Questions which have been answered / unfixable bugs:**
- close ywangd#310 (pip installation with c code)
- close ywangd#292 (StaSh is not dead; also a question regarding py3)
- close ywangd#290 (pip installation, problem solved)
- close ywangd#289 (answer provided, no further activity by reporter)
- close ywangd#279 (pip install protects standard distribution)
- close ywangd#245 (answered)
- close ywangd#244 (not possible (unless someone finds a workaround)
- close ywangd#243 (c-code in pip installation)
- close ywangd#208 (question answered)


**implemented suggestions/changes:**
- fix ywangd#273 (partially implemented as part of py2and3)
- fix ywangd#193 (implemented by now)
- fix ywangd#63  (subcommand completion; implemented long ago)
- fix ywangd#39  (pip; implemented long ago)

**fixed bugs:**
- fix ywangd#308 (https error in pip; fixed)
- fix ywangd#223 (old beta-related bug)
- fix ywangd#211 (old beta-related bug)
- fix ywangd#209 (seems to be fixed, can not reproduce)
- fix ywangd#206 (git did not clone into subdirectory; fixed)
- fix ywangd#98  (telnet did not send \r\n; fixed)


**other stuff:**
- close ywangd#260 (no useful bug description)
- close ywangd#258 (no useful bug description)
- close ywangd#251 (not a bug but an announcement, no longer relevant)
- close ywangd#241 (works now)
- close ywangd#219 (no further acivity by reporter, likely user error)


#Issues which can be closed, but where the underlying issue has not been fixed
- close ywangd#285 (pip command too complex)
- close ywangd#291 (pip installation question, but not c-code related. But seems package-related)
- close ywangd#274 (pip install problem, at least partial related to c-code, no further activity by reporter)
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

Successfully merging a pull request may close this issue.

3 participants