The error appear when I try execute open.api_key = os.environ(OPEN_API_KEY)
Somebody can help me ?
The error appear when I try execute open.api_key = os.environ(OPEN_API_KEY)
Somebody can help me ?
If somebody else have this problem I fix changing ( by [ I means the sentence now is
open.api_key = os.environ[“OPEN_API_KEY”]
for those following along at home…
os.environ
A mapping object where keys and values are strings that represent the process environment. For example, environ['HOME']
is the pathname of your home directory (on some platforms), and is equivalent to getenv("HOME")
in C.