ReScience / articles

ReScience C published articles
6 stars 5 forks source link

Token not found even though set #4

Closed oliviaguest closed 4 years ago

oliviaguest commented 4 years ago

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/
oliviaguest commented 4 years ago

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
>>> 
oliviaguest commented 4 years ago

Oh... it needs export! I'm silly. 😆