I am slightly new to ubuntu,
I have a NASA-ADS dev_key to access some data on there system but am unable to:
- save it as an environment variable named
ADS_DEV_KEY
or - save it to a file called
~/.ads/dev_key
after following the instructions in link https://pypi.python.org/pypi/ads/0.0.809
For the first option: I don't know any thing about how to save an environment variable naming ADS_DEV_KEY
For 2nd option I am unable to locate any directory naming .ads where I should save the text file for available key.
Note:
When I import installed ads library to python it gives me this error:
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import ads
File "/home/sibte/.local/lib/python2.7/site-packages/ads/__init__.py", line 9, in <module>
import network
File "/home/sibte/.local/lib/python2.7/site-packages/ads/network.py", line 15, in <module>
from core import search
File "/home/sibte/.local/lib/python2.7/site-packages/ads/core.py", line 19, in <module>
DEV_KEY = utils.get_dev_key()
File "/home/sibte/.local/lib/python2.7/site-packages/ads/utils.py", line 31, in get_dev_key
raise IOError("no ADS API key found in ~/.ads/dev_key and no ADS_DEV_KEY "\
IOError: no ADS API key found in ~/.ads/dev_key and no ADS_DEV_KEY environment variable found
Any help (preferably simple) regarding this issue?