← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #261363]: gethostname failure when using java 1.7

 

Question #261363 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/261363

OscarD posted a new comment:
Sorry that it took so long for me to try the 1.1 version but I've
finally got some time to investigate this.

So after installing 1.1 and trying the import pymongo again, I found
that 1.1 results in a similar error as 1.0.1 using java 1.7. Different
line number but similar error.

import pymongo
  File "/Library/Python/2.7/site-packages/pymongo.egg/pymongo/__init__.py", line 104, in <module>
  File "/Library/Python/2.7/site-packages/pymongo.egg/pymongo/connection.py", line 41, in <module>
  File "/Library/Python/2.7/site-packages/pymongo.egg/bson/__init__.py", line 32, in <module>
  File "/Library/Python/2.7/site-packages/pymongo.egg/bson/objectid.py", line 50, in <module>
  File "/Library/Python/2.7/site-packages/pymongo.egg/bson/objectid.py", line 57, in ObjectId
  File "/Library/Python/2.7/site-packages/pymongo.egg/bson/objectid.py", line 46, in _machine_bytes
  File "/Users/oscar/SikuliX1/sikulix.jar/Lib/_socket.py", line 357, in handle_exception
socket.gaierror: (20001, 'getaddrinfo failed')

I also found a wiki page
(https://wiki.python.org/jython/NewSocketModule) that mentions an issue
with Jython in trying to open a socket using a domain name that contains
non-ASCII characters. In my instance, that is not the case as the
hostname only contains ASCII characters.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.