[Zope3-Users] Installation prerequisites

Stephan Richter srichter at cosmos.phy.tufts.edu
Mon Nov 15 16:15:08 EST 2004


On Sunday 14 November 2004 06:59, John Poltorak wrote:
> I've managed to run one test - ZConfig.components.logger.tests.test_logger

Cool!

> and it manages to find these sorts of errors:-
>
>   File "/usr/local/python/Lib/urllib2.py", line 129, in urlopen
>     return _opener.open(url, data)
>   File "/usr/local/python/Lib/urllib2.py", line 326, in open
>     '_open', req)
>   File "/usr/local/python/Lib/urllib2.py", line 306, in _call_chain
>     result = func(*args)
>   File "/usr/local/python/Lib/urllib2.py", line 980, in file_open
>     return self.open_local_file(req)
>   File "/usr/local/python/Lib/urllib2.py", line 1004, in open_local_file
>     if not host or \
> gaierror: (7, 'getaddrinfo failed')

Right.

> How do I find exactly what this objecting to?

No clue what this is about.

> I inserted 'print host' just before line 1004 in the hope that I could
> identify why 'getaddrinfo' failed.

You might want to try to reduce this test to a pure urllib2.open_local_file() 
call. Try to see whether this fails or passes. Basically, can you run:

# Python
>>> import urllib2
>>> urllib2.open_local_file('/.../...')

> Any suggestions as to how identify the cause of this error?

Yeah, keep reducing it; right now there is too much other stuff going on.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-users mailing list