Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Exception occurred: getaddrinfo() takes no keyword arguments #1

Open
attila-kocsis opened this issue Jan 15, 2019 · 2 comments
Open

Comments

@attila-kocsis
Copy link

I installed local-cname on a new Ubuntu 18.04 VM. First I installed Python on it with "sudo apt-get install python-pip" and then local-cname with "sudo pip install -U local-cname". When I tried "sudo local-cname google.com duckduckgo.com" I received the following: "ImportError: No module named pathlib". I then installed pathlib with "sudo pip install pathlib".
Now when I try "sudo local-cname google.com duckduckgo.com" I receive this: "Resolving duckduckgo.com .. EXCEPTION OCCURRED: getaddrinfo() takes no keyword arguments". Please see the screenshot attached.
local_cname_issue

gabriel-laet referenced this issue in gabriel-laet/local-cname May 8, 2019
@eddideku
Copy link

macOS
Python 2.7.16

Traceback (most recent call last): File "/usr/local/bin/local-cname", line 11, in <module> load_entry_point('local-cname==0.3', 'console_scripts', 'local-cname')() File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 489, 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/__init__.py", line 2843, in load_entry_point return ep.load() File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2434, in load return self.resolve() File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2440, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/Library/Python/2.7/site-packages/local_cname/cli.py", line 4, in <module> from pathlib import Path ImportError: No module named pathlib

@dfrieling
Copy link

came across the same problem - installed local-cname via pip3, ran it via python3 -> works

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants