Re: problems connecting to pubmed

"Alexandre F. Santos" <[email protected]> Wed, 14 Sep 2005 23:21:54 +0200 (MEST)
Newsgroups gmane.comp.gnome.apps.pybliographer
Message-ID <[email protected]>
Ok, some follow up on this issue:

I installed the latest stable version (1.2.6.2) and I tried again to connect
to medline: it failed again, and I post the error messages:


Traceback (most recent call last):
  File "/usr/local/share/pybliographer/Pyblio/GnomeUI/Document.py", line
309, in query_database
    url = apply (Query.medline_query, data)
  File "/usr/local/share/pybliographer/Pyblio/Query.py", line 256, in
medline_query
    uids = query_info (keyword, field, maxcount, displaystart, entrezdate) #
get the pubmed UIDs and dump into uids variable
  File "/usr/local/share/pybliographer/Pyblio/Query.py", line 56, in
query_info
    f = urllib.urlopen ("%s?%s" % (query_url, params))
  File "/usr/lib/python2.3/urllib.py", line 76, in urlopen
    return opener.open(url)
  File "/usr/lib/python2.3/urllib.py", line 181, in open
    return getattr(self, name)(url)
  File "/usr/lib/python2.3/urllib.py", line 297, in open_http
    h.endheaders()
  File "/usr/lib/python2.3/httplib.py", line 712, in endheaders
    self._send_output()
  File "/usr/lib/python2.3/httplib.py", line 597, in _send_output
    self.send(msg)
  File "/usr/lib/python2.3/httplib.py", line 564, in send
    self.connect()
  File "/usr/lib/python2.3/httplib.py", line 532, in connect
    socket.SOCK_STREAM):
IOError: [Errno socket error] (-2, 'Name or service not known')

It looks like a connection setting problem, but when I try to us the browser
to connect the website:

http://www.ncbi.nlm.nih.gov/entrez/utils/pmqty.fcgi

I get:

" Can't run executor   empty query  Query syntax error."

Which means i can get to the service, it's not a real connection problem

Is there something wrong with the python installation? After all pyblio is
using urllib and httplib libraries, but i don't know if they are the
culprits.

Alex

-- 
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse für Mail, Message, More +++


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php