pubmed_lookup fails with specific UID: 18628094
Closed this issue · 5 comments
HLAmolec commented
Hello,
pubmed_lookup fails with this path: https://www.ncbi.nlm.nih.gov/pubmed/18628094
Here is the error:
publication = Publication(lookup)
File "C:\Python38\lib\site-packages\pubmed_lookup\pubmed_lookup.py", line 42, in __init__
self.set_article_url(resolve_doi=resolve_doi)
File "C:\Python38\lib\site-packages\pubmed_lookup\pubmed_lookup.py", line 186, in set_article_url
response = urlopen(doi_url)
File "C:\Python38\lib\urllib\request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "C:\Python38\lib\urllib\request.py", line 531, in open
response = meth(req, response)
File "C:\Python38\lib\urllib\request.py", line 640, in http_response
response = self.parent.error(
File "C:\Python38\lib\urllib\request.py", line 563, in error
result = self._call_chain(*args)
File "C:\Python38\lib\urllib\request.py", line 502, in _call_chain
result = func(*args)
File "C:\Python38\lib\urllib\request.py", line 755, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "C:\Python38\lib\urllib\request.py", line 531, in open
response = meth(req, response)
File "C:\Python38\lib\urllib\request.py", line 640, in http_response
response = self.parent.error(
File "C:\Python38\lib\urllib\request.py", line 563, in error
result = self._call_chain(*args)
File "C:\Python38\lib\urllib\request.py", line 502, in _call_chain
result = func(*args)
File "C:\Python38\lib\urllib\request.py", line 755, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "C:\Python38\lib\urllib\request.py", line 525, in open
response = self._open(req, data)
File "C:\Python38\lib\urllib\request.py", line 542, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "C:\Python38\lib\urllib\request.py", line 502, in _call_chain
result = func(*args)
File "C:\Python38\lib\urllib\request.py", line 1360, in https_open
return self.do_open(http.client.HTTPSConnection, req,
File "C:\Python38\lib\urllib\request.py", line 1321, in do_open
r = h.getresponse()
File "C:\Python38\lib\http\client.py", line 1322, in getresponse
response.begin()
File "C:\Python38\lib\http\client.py", line 303, in begin
version, status, reason = self._read_status()
File "C:\Python38\lib\http\client.py", line 264, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "C:\Python38\lib\socket.py", line 669, in readinto
return self._sock.recv_into(b)
File "C:\Python38\lib\ssl.py", line 1241, in recv_into
return self.read(nbytes, buffer)
File "C:\Python38\lib\ssl.py", line 1099, in read
return self._sslobj.read(len, buffer)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
mfcovington commented
I suspect you are using an old version of pubmed_lookup
. Which version are you using?
HLAmolec commented
I've just install yesterday with pip and assumed it would install the
latest version.
I'm currently trying Python Bio Entrez and Medline and they seem to work
better.
Thanks,
Lena
…On Fri, Nov 1, 2019 at 3:26 PM Mike Covington ***@***.***> wrote:
I suspect you are using an old version of pubmed_lookup. Which version
are you using?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4?email_source=notifications&email_token=AEXWSLRG2TDRWUBXVJ63FQDQRR7HZA5CNFSM4JH4NNI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEC35ZPY#issuecomment-548920511>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEXWSLXLRXU4AAOYVDTKQQDQRR7HZANCNFSM4JH4NNIQ>
.
mfcovington commented
The package was actually updated yesterday and now works for your URL. You can type pip freeze
to determine the version.
HLAmolec commented
Why should i use your tool vs Python Bio package?
…On Fri, Nov 1, 2019 at 3:43 PM Mike Covington ***@***.***> wrote:
The package was actually updated yesterday and now works for your URL. You
can type pip freeze to determine the version.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4?email_source=notifications&email_token=AEXWSLQD6WZ3IJIPH2BCUA3QRSBHHA5CNFSM4JH4NNI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEC37BQQ#issuecomment-548925634>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEXWSLTBVRAHEMSMINA2V2TQRSBHHANCNFSM4JH4NNIQ>
.
mfcovington commented
You can use whichever one you'd like. Your issue was fixed yesterday in response to issue #3, so if you decide to use pubmed_lookup
, just be sure to update to pubmed-lookup>=0.2.3
.