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

Not able to run script #28

Open
mograsanjay opened this issue Nov 29, 2020 · 3 comments
Open

Not able to run script #28

mograsanjay opened this issue Nov 29, 2020 · 3 comments

Comments

@mograsanjay
Copy link

! When running the script with python3 domLink.py -D starlink.com . Getting below error
<class 'type'>
Traceback (most recent call last):
File "domLink.py", line 221, in
main()
File "domLink.py", line 150, in main
api_key = args.api if args.api else read_key_from_config()
File "domLink.py", line 47, in read_key_from_config
return config.get('API_KEYS', 'whoxy')
File "/usr/lib/python3.8/configparser.py", line 781, in get
d = self._unify_values(section, vars)
File "/usr/lib/python3.8/configparser.py", line 1149, in _unify_values
raise NoSectionError(section) from None
configparser.NoSectionError: No section: 'API_KEYS'

@whoot
Copy link
Contributor

whoot commented Dec 4, 2020

Its simple:

  1. Script needs to be run with Python2
  2. You need to set an API key

@danieltamang806
Copy link

how to set an API?

@whoot
Copy link
Contributor

whoot commented Nov 21, 2021

how to set an API?

It literaly is in the Readme: "Set that API key in a file named domLink.cfg in the same directory."

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

3 participants