Token not found even though set
oliviaguest opened this issue · comments
I am having trouble running the script from my Mac. Any ideas @rougier @khinsen?
(base) MBpro:articles olivia$ echo $ZENODO_SANDBOX_TOKEN
REDACTED
(base) MBpro:articles olivia$ python process.py --sandbox --metadata ../mahmoudian-2020-rescience/article/metadata.yaml --pdf ../mahmoudian-2020-rescience/article/Reproduction_of_Smyth_et_al__1996.pdf
No token found (ZENODO_SANDBOX_TOKEN)
You can request one from https://sandbox.zenodo.org/account/settings/applications/tokens/new/
Just as a follow up... weird, huh?
(base) MBpro:articles olivia$ echo $ZENODO_SANDBOX_TOKEN
REDACTED
(base) MBpro:articles olivia$ python
Python 3.7.3 (default, Mar 27 2019, 16:54:48)
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> print(os.getenv('ZENODO_SANDBOX_TOKEN'))
None
>>>
Oh... it needs export! I'm silly. 😆