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

Python socket package throws error in fake2db_logger under helpers.py #25

Closed
aneeshvaidya opened this issue Jul 10, 2015 · 3 comments
Closed

Comments

@aneeshvaidya
Copy link

$ fake2db --help
Traceback (most recent call last):
  File "/usr/local/bin/fake2db", line 9, in <module>
    load_entry_point('fake2db==0.2.2', 'console_scripts', 'fake2db')()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 357, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2394, in load_entry_point
    return ep.load()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2108, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/Library/Python/2.7/site-packages/fake2db/fake2db.py", line 7, in <module>
    logger, extra_information = fake2db_logger()
  File "/Library/Python/2.7/site-packages/fake2db/helpers.py", line 13, in fake2db_logger
    local_ip = socket.gethostbyname(socket.gethostname())
socket.gaierror: [Errno 8] nodename nor servname provided, or not known

I don't think it's an internet issue, as I am connecting to the ip of a local vm. What are your thought?

@emirozer
Copy link
Owner

Hi @aneeshvaidya ,

Can i get your OS information if possible ?

@aneeshvaidya
Copy link
Author

I'm running OS X Yosemite 10.10.3. Currently I'm running docker containers in boot2docker, and trying to connect to the exposed port of the mongo service that I'm running.

@emirozer
Copy link
Owner

I am sorry i was distracted for a while, i will test this tomorrow and comment back here

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

No branches or pull requests

2 participants