sdss / marvin

Data access and visualization for MaNGA. http://sdss-marvin.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
54 stars 32 forks source link

Error getting login token #744

Open InfinitelyCurious opened 2 years ago

InfinitelyCurious commented 2 years ago

I am in the process of setting up marvin to use in a terminal, but am stuck at getting an API token. I have set up my .netrc, and it is recognizing it, but then throws the error:

in ----> 1 config.login() ~/anaconda3/lib/python3.7/site-packages/marvin/__init__.py in login(self, refresh) 753 resp = Interaction(url, params=data, auth='netrc') 754 except Exception as e: --> 755 raise MarvinError('Error getting login token. {0}'.format(e)) 756 else: 757 self.token = resp.results['access_token'] MarvinError: Error getting login token. Requests Http Status Error: 500 Server Error: INTERNAL SERVER ERROR for url: https://sas.sdss.org/marvin/api/general/login/ None. I am running this on MacOS Catalina in python 3.7 (which has come with its own problems). Not sure how to move on from here.
havok2063 commented 2 years ago

@InfinitelyCurious I can't reproduce this. Can you provide the steps you do to produce the traceback? What version of marvin are using? What MaNGA data release are you trying to access? And what does config.access output?

InfinitelyCurious commented 2 years ago

Hello Brian,

I apologize for the late reply to your email. I am going to attach a text file with the entire output. I know this is a lot, but I was trying to do a lot of things at once and I think the problem might be further back.

I started with installing sdss-marvin, then tried to create the conda environment, which is where I ran into my first error on line 153. It told me the pip failed to import this "importlib", which I then found out was because python 3 already has it. I figured (after trying to get it to work as is many times), that I would just delete that line from the yml file, which worked ( I think) because when I tried to reinstall it, it said it already existed. I assumed that the "pip install failed" was not for the whole thing, but just that very specific thing, so I moved on.

Then down to line 296. I created my .netrc and tried to config.token, but nothing happened. Then I realized it was because I wasn't inside ipython and on line 326 tried again. duh.

It wasn't using the right log-ins (line 387) because I apparently had a very old .netrc file from 2016 that it was reading insead of the one I just created. I fixed that, then tried again. Then I got the error about the token that I contacted you about (line 446).

I will admit that I am not the best programmer, and I may have messed this up at any point, or at multiple points, but my end goal here is to be able to download many (like at least a hundred at a time) fits files at one time, through a terminal, for a list of galaxies I have to run diagnostics on. So any help you can give me is greatly appreciated.

Cheers, Olivia

On Fri, Nov 19, 2021 at 2:36 PM Brian Cherinka @.***> wrote:

@InfinitelyCurious https://github.com/InfinitelyCurious I can't reproduce this. Can you provide the steps you do to produce the traceback? What version of marvin are using? What MaNGA data release are you trying to access? And what does config.access output?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sdss/marvin/issues/744#issuecomment-974439940, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHKQCWH6OMACENDEXWQNGL3UM2YMJANCNFSM5IIAHAJA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

rm: lib/python3.7/site-packages/pip/_vendor/cachecontrol/caches/pycache: is a directory rm: lib/python3.7/site-packages/pip/_vendor/chardet/cli/pycache: is a directory rm: lib/python3.7/site-packages/pip/_vendor/distlib/_backport/pycache: is a directory rm: lib/python3.7/site-packages/pip/_vendor/html5lib/_trie/pycache: is a directory rm: lib/python3.7/site-packages/pip/_vendor/html5lib/filters/pycache: is a directory rm: lib/python3.7/site-packages/pip/_vendor/html5lib/treeadapters/pycache: is a directory rm: lib/python3.7/site-packages/pip/_vendor/html5lib/treebuilders/pycache: is a directory rm: lib/python3.7/site-packages/pip/_vendor/html5lib/treewalkers/pycache: is a directory rm: lib/python3.7/site-packages/pip/_vendor/urllib3/contrib/pycache: is a directory rm: lib/python3.7/site-packages/pip/_vendor/urllib3/contrib/_securetransport: is a directory rm: lib/python3.7/site-packages/pip/_vendor/urllib3/packages/pycache: is a directory rm: lib/python3.7/site-packages/pip/_vendor/urllib3/packages/backports: is a directory rm: lib/python3.7/site-packages/pip/_vendor/urllib3/packages/rfc3986: is a directory rm: lib/python3.7/site-packages/pip/_vendor/urllib3/packages/ssl_match_hostname: is a directory rm: lib/python3.7/site-packages/pip/_vendor/urllib3/util/pycache: is a directory (base) @. marvin % rm -f //////// zsh: sure you want to delete all the files in /Users/Olivia/.conda/envs/marvin//////// [yn]? y rm: lib/python3.7/site-packages/pip/_vendor/urllib3/contrib/_securetransport/pycache: is a directory rm: lib/python3.7/site-packages/pip/_vendor/urllib3/packages/backports/pycache: is a directory rm: lib/python3.7/site-packages/pip/_vendor/urllib3/packages/rfc3986/pycache: is a directory rm: lib/python3.7/site-packages/pip/_vendor/urllib3/packages/ssl_match_hostname/pycache: is a directory (base) **@. marvin % (base) @. marvin % rm -f ///////// zsh: sure you want to delete all the files in /Users/Olivia/.conda/envs/marvin/////////* [yn]? y (base) @. marvin % rmdir // rmdir: include/c++/v1: Directory not empty rmdir: lib/python3.7/asyncio: Directory not empty rmdir: lib/python3.7/collections: Directory not empty rmdir: lib/python3.7/concurrent: Directory not empty rmdir: lib/python3.7/config-3.7m-darwin: Directory not empty rmdir: lib/python3.7/ctypes: Directory not empty rmdir: lib/python3.7/curses: Directory not empty rmdir: lib/python3.7/dbm: Directory not empty rmdir: lib/python3.7/distutils: Directory not empty rmdir: lib/python3.7/email: Directory not empty rmdir: lib/python3.7/encodings: Directory not empty rmdir: lib/python3.7/ensurepip: Directory not empty rmdir: lib/python3.7/html: Directory not empty rmdir: lib/python3.7/http: Directory not empty rmdir: lib/python3.7/idlelib: Directory not empty rmdir: lib/python3.7/importlib: Directory not empty rmdir: lib/python3.7/json: Directory not empty rmdir: lib/python3.7/lib2to3: Directory not empty rmdir: lib/python3.7/logging: Directory not empty rmdir: lib/python3.7/multiprocessing: Directory not empty rmdir: lib/python3.7/pydoc_data: Directory not empty rmdir: lib/python3.7/site-packages: Directory not empty rmdir: lib/python3.7/sqlite3: Directory not empty rmdir: lib/python3.7/test: Directory not empty rmdir: lib/python3.7/tkinter: Directory not empty rmdir: lib/python3.7/turtledemo: Directory not empty rmdir: lib/python3.7/unittest: Directory not empty rmdir: lib/python3.7/urllib: Directory not empty rmdir: lib/python3.7/venv: Directory not empty rmdir: lib/python3.7/wsgiref: Directory not empty rmdir: lib/python3.7/xml: Directory not empty rmdir: lib/python3.7/xmlrpc: Directory not empty rmdir: lib/tcl8/8.4: Directory not empty rmdir: lib/tcl8/8.6: Directory not empty rmdir: lib/tk8.6/demos: Directory not empty rmdir: share/doc/xz: Directory not empty (base) **@. marvin % rmdir /// rmdir: include/c++/v1/support: Directory not empty rmdir: lib/python3.7/concurrent/futures: Directory not empty rmdir: lib/python3.7/ctypes/macholib: Directory not empty rmdir: lib/python3.7/distutils/command: Directory not empty rmdir: lib/python3.7/distutils/tests: Directory not empty rmdir: lib/python3.7/email/mime: Directory not empty rmdir: lib/python3.7/idlelib/idle_test: Directory not empty rmdir: lib/python3.7/lib2to3/fixes: Directory not empty rmdir: lib/python3.7/lib2to3/pgen2: Directory not empty rmdir: lib/python3.7/lib2to3/tests: Directory not empty rmdir: lib/python3.7/multiprocessing/dummy: Directory not empty rmdir: lib/python3.7/site-packages/certifi: Directory not empty rmdir: lib/python3.7/site-packages/pip: Directory not empty rmdir: lib/python3.7/site-packages/pkg_resources: Directory not empty rmdir: lib/python3.7/site-packages/setuptools: Directory not empty rmdir: lib/python3.7/site-packages/wheel: Directory not empty rmdir: lib/python3.7/test/support: Directory not empty rmdir: lib/python3.7/venv/scripts: Directory not empty rmdir: lib/python3.7/xml/dom: Directory not empty rmdir: lib/python3.7/xml/etree: Directory not empty rmdir: lib/python3.7/xml/parsers: Directory not empty rmdir: lib/python3.7/xml/sax: Directory not empty (base) @. marvin % rmdir ////* rmdir: lib/python3.7/lib2to3/tests/data: Directory not empty rmdir: lib/python3.7/site-packages/pip/_internal: Directory not empty rmdir: lib/python3.7/site-packages/pip/_vendor: Directory not empty rmdir: lib/python3.7/site-packages/pkg_resources/_vendor: Directory not empty rmdir: lib/python3.7/site-packages/pkg_resources/extern: Directory not empty rmdir: lib/python3.7/site-packages/setuptools/_vendor: Directory not empty rmdir: lib/python3.7/site-packages/setuptools/command: Directory not empty rmdir: lib/python3.7/site-packages/setuptools/extern: Directory not empty rmdir: lib/python3.7/site-packages/wheel/cli: Directory not empty (base) @. marvin % rmdir ///// rmdir: lib/python3.7/lib2to3/tests/data/fixers: Directory not empty rmdir: lib/python3.7/site-packages/pip/_internal/cli: Directory not empty rmdir: lib/python3.7/site-packages/pip/_internal/commands: Directory not empty rmdir: lib/python3.7/site-packages/pip/_internal/distributions: Directory not empty rmdir: lib/python3.7/site-packages/pip/_internal/models: Directory not empty rmdir: lib/python3.7/site-packages/pip/_internal/operations: Directory not empty rmdir: lib/python3.7/site-packages/pip/_internal/req: Directory not empty rmdir: lib/python3.7/site-packages/pip/_internal/utils: Directory not empty rmdir: lib/python3.7/site-packages/pip/_internal/vcs: Directory not empty rmdir: lib/python3.7/site-packages/pip/_vendor/cachecontrol: Directory not empty rmdir: lib/python3.7/site-packages/pip/_vendor/certifi: Directory not empty rmdir: lib/python3.7/site-packages/pip/_vendor/chardet: Directory not empty rmdir: lib/python3.7/site-packages/pip/_vendor/colorama: Directory not empty rmdir: lib/python3.7/site-packages/pip/_vendor/distlib: Directory not empty rmdir: lib/python3.7/site-packages/pip/_vendor/html5lib: Directory not empty rmdir: lib/python3.7/site-packages/pip/_vendor/idna: Directory not empty rmdir: lib/python3.7/site-packages/pip/_vendor/lockfile: Directory not empty rmdir: lib/python3.7/site-packages/pip/_vendor/msgpack: Directory not empty rmdir: lib/python3.7/site-packages/pip/_vendor/packaging: Directory not empty rmdir: lib/python3.7/site-packages/pip/_vendor/pep517: Directory not empty rmdir: lib/python3.7/site-packages/pip/_vendor/pkg_resources: Directory not empty rmdir: lib/python3.7/site-packages/pip/_vendor/progress: Directory not empty rmdir: lib/python3.7/site-packages/pip/_vendor/pytoml: Directory not empty rmdir: lib/python3.7/site-packages/pip/_vendor/requests: Directory not empty rmdir: lib/python3.7/site-packages/pip/_vendor/urllib3: Directory not empty rmdir: lib/python3.7/site-packages/pip/_vendor/webencodings: Directory not empty rmdir: lib/python3.7/site-packages/pkg_resources/_vendor/packaging: Directory not empty rmdir: lib/python3.7/site-packages/setuptools/_vendor/packaging: Directory not empty (base) @. marvin % rmdir //////* rmdir: lib/python3.7/lib2to3/tests/data/fixers/myfixes: Directory not empty rmdir: lib/python3.7/site-packages/pip/_vendor/cachecontrol/caches: Directory not empty rmdir: lib/python3.7/site-packages/pip/_vendor/chardet/cli: Directory not empty rmdir: lib/python3.7/site-packages/pip/_vendor/distlib/_backport: Directory not empty rmdir: lib/python3.7/site-packages/pip/_vendor/html5lib/_trie: Directory not empty rmdir: lib/python3.7/site-packages/pip/_vendor/html5lib/filters: Directory not empty rmdir: lib/python3.7/site-packages/pip/_vendor/html5lib/treeadapters: Directory not empty rmdir: lib/python3.7/site-packages/pip/_vendor/html5lib/treebuilders: Directory not empty rmdir: lib/python3.7/site-packages/pip/_vendor/html5lib/treewalkers: Directory not empty rmdir: lib/python3.7/site-packages/pip/_vendor/urllib3/contrib: Directory not empty rmdir: lib/python3.7/site-packages/pip/_vendor/urllib3/packages: Directory not empty rmdir: lib/python3.7/site-packages/pip/_vendor/urllib3/util: Directory not empty (base) @. marvin % rmdir /////// rmdir: lib/python3.7/site-packages/pip/_vendor/urllib3/contrib/_securetransport: Directory not empty rmdir: lib/python3.7/site-packages/pip/_vendor/urllib3/packages/backports: Directory not empty rmdir: lib/python3.7/site-packages/pip/_vendor/urllib3/packages/rfc3986: Directory not empty rmdir: lib/python3.7/site-packages/pip/_vendor/urllib3/packages/ssl_match_hostname: Directory not empty (base) @. marvin % rmdir ////////* (base) @. marvin % rmdir /////// (base) @. marvin % rmdir //////* (base) @. marvin % rmdir ///// (base) @. marvin % rmdir ///// zsh: no matches found: ///// (base) @. marvin % (base) @. marvin % rmdir ////* (base) @. marvin % rmdir /// (base) @. marvin % rmdir //* (base) @. marvin % rmdir / (base) @. marvin % rmdir * (base) @. marvin % ls -l (base) @. marvin % ls a ls: a: No such file or directory (base) @. marvin % ls -a . .. (base) @. marvin % cd.. zsh: command not found: cd.. (base) @. marvin % cd .. (base) @. envs % rmdir marvin (base) @. envs % ~ zsh: permission denied: /Users/Olivia (base) @. envs % cd ~ (base) @. ~ % cd Desktop (base) @. Desktop % ls 2019 Greene, O. Curriculum Vita.pdf PAPERS TO READ the revised FALCONE method (2).pdf ~$eene, OCV for Bridge NSF.doc 2020 TAXES PICKLES to run faster - hold these ~$eene, Olivia UCLA Personal Statement.docx 2ndMOONJAM-master PROOF_ApJEditing xgal ~$eene, Olivia_UCLA Statement of Purpose.docx AAS 2022 Photos ~$ 1 - thesis.docx ~$eene, Shaun Resume.docx BPT.py PlottingDrivers ~$ Project.docx ~$ethods.docx E+A MPL-11 SED_2021 ~$1 - thesis.docx ~$ivia Astrolab-Lab3-PhotomCMD.docx E+A RESEARCH SPX fits ~$A text_march28.docx ~$ivia_Lab7-ExtraSolar-2.docx EM_massiveBHMergers.pdf STScI Conference March 2022.pdf ~$CLASSLIST_ASTR1010.xlsx ~$lumbia personal statement.docx GEMA-1.0.1.fits Screen Shot 2021-09-02 at 3.39.42 PM.png ~$EW_PYRAF.xlsx ~$nal REU Paper.docx GIFT CARDS Spectra Input for Google Drive ~$GenData.xlsx ~$per BODY final.docx GreeneO_ArXiv TA STUFF ~$IONS!.docx ~$plications for Grad School 2019.docx HOLD THESE-Originals UpdateMOONJAM-master with new BPT_AUG21 ~$S Observational Data.docx ~$rriculum Vita for Bridge NSF reporting.doc IONS!.docx WISE colour-colour ~$Summer classlist ASTR 1010L.xlsx ~$rsonal statement columbia.docx IRS FINAID Working plots for BPT ~$TR1010L-2021Sp-LabSyllabus.doc ~$scussion.docx Kelly conda-cheatsheet.pdf ~$Y homework 1.docx ~$search Statement Columbia.docx Killian Daycare first-steps.ipynb copy ~$acing Final REU Paper.docx ~$search paper notes.docx MARVIN first-steps.ipynb copy marvin copy ~$ad School reserach statement .docx ~$ter write up.docx MOONJAM-master marvin_2.6.0 copy.yml ~$aoder impacts.docx ~$to stuff.docx MOONJAM-master_SEPT21 marvin_2.6.0.yml ~$ch. 1.docx ~$troLab-Lab11-ExpGalax.docx OGreene_VaxCard.jpg plotRatioPlots.py ~$eene, O UCLA personal statement.docx ~$tter to the editor.docx OLLIE WEBSITE print this.docx ~$eene, O Vand Personal Statement.docx (base) @.* Desktop % pip install sdss-marvin Requirement already satisfied: sdss-marvin in /Users/Olivia/anaconda3/lib/python3.7/site-packages (2.6.0) Requirement already satisfied: sdss-access>=1.0 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from sdss-marvin) (2.0.0) Requirement already satisfied: matplotlib>=1.5.3 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from sdss-marvin) (3.1.3) Requirement already satisfied: Flask-JWT-Extended<4.0,>=3.8.1 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from sdss-marvin) (3.25.1) Requirement already satisfied: dogpile.cache>=0.6.2 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from sdss-marvin) (1.1.4) Requirement already satisfied: sdss-tree>=3.0.7 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from sdss-marvin) (3.1.0) Requirement already satisfied: raven>=5.32.0 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from sdss-marvin) (6.10.0) Requirement already satisfied: yamlordereddictloader>=0.2.2 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from sdss-marvin) (0.4.0) Requirement already satisfied: marvin-sqlalchemy-boolean-search>=0.2 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from sdss-marvin) (0.2.1) Requirement already satisfied: marvin-brain>=0.2 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from sdss-marvin) (0.2.0) Requirement already satisfied: astropy>=3.3 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from sdss-marvin) (4.0.1.post1) Requirement already satisfied: pandas>=0.18.1 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from sdss-marvin) (1.0.3) Requirement already satisfied: python-Levenshtein>=0.12.0 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from sdss-marvin) (0.12.2) Requirement already satisfied: fuzzywuzzy>=0.15.0 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from sdss-marvin) (0.18.0) Requirement already satisfied: packaging>=20.1 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from sdss-marvin) (20.9) Requirement already satisfied: sdsstools>=0.4 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from sdss-marvin) (0.4.13) Requirement already satisfied: scipy>=0.18.1 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from sdss-marvin) (1.4.1) Requirement already satisfied: marvin-wtforms-alchemy>=0.16.9 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from sdss-marvin) (0.16.9) Requirement already satisfied: webargs<6.0,>=1.5.2 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from sdss-marvin) (5.5.3) Requirement already satisfied: numpy>=1.16 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from astropy>=3.3->sdss-marvin) (1.18.1) Requirement already satisfied: decorator>=4.0.0 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from dogpile.cache>=0.6.2->sdss-marvin) (4.4.2) Requirement already satisfied: stevedore>=3.0.0 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from dogpile.cache>=0.6.2->sdss-marvin) (3.5.0) Requirement already satisfied: PyJWT<2.0,>=1.6.4 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from Flask-JWT-Extended<4.0,>=3.8.1->sdss-marvin) (1.7.1) Requirement already satisfied: Flask<2.0,>=1.0 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from Flask-JWT-Extended<4.0,>=3.8.1->sdss-marvin) (1.1.2) Requirement already satisfied: six in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from Flask-JWT-Extended<4.0,>=3.8.1->sdss-marvin) (1.15.0) Requirement already satisfied: Werkzeug>=0.14 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from Flask-JWT-Extended<4.0,>=3.8.1->sdss-marvin) (1.0.1) Requirement already satisfied: itsdangerous>=0.24 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from Flask<2.0,>=1.0->Flask-JWT-Extended<4.0,>=3.8.1->sdss-marvin) (1.1.0) Requirement already satisfied: click>=5.1 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from Flask<2.0,>=1.0->Flask-JWT-Extended<4.0,>=3.8.1->sdss-marvin) (7.1.2) Requirement already satisfied: Jinja2>=2.10.1 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from Flask<2.0,>=1.0->Flask-JWT-Extended<4.0,>=3.8.1->sdss-marvin) (2.11.2) Requirement already satisfied: MarkupSafe>=0.23 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from Jinja2>=2.10.1->Flask<2.0,>=1.0->Flask-JWT-Extended<4.0,>=3.8.1->sdss-marvin) (1.1.1) Requirement already satisfied: requests>=2.23.0 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from marvin-brain>=0.2->sdss-marvin) (2.23.0) Requirement already satisfied: sqlalchemy>=1.3 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from marvin-brain>=0.2->sdss-marvin) (1.3.17) Requirement already satisfied: flask-classful>=0.14.2 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from marvin-brain>=0.2->sdss-marvin) (0.14.2) Requirement already satisfied: networkx>=2.5 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from marvin-brain>=0.2->sdss-marvin) (2.6.3) Requirement already satisfied: passlib>=1.7.1 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from marvin-brain>=0.2->sdss-marvin) (1.7.4) Requirement already satisfied: pyyaml>=5.1 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from marvin-brain>=0.2->sdss-marvin) (5.3.1) Requirement already satisfied: pyparsing>=2.4 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from marvin-sqlalchemy-boolean-search>=0.2->sdss-marvin) (2.4.7) Requirement already satisfied: SQLAlchemy-Utils>=0.32.6 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from marvin-wtforms-alchemy>=0.16.9->sdss-marvin) (0.37.9) Requirement already satisfied: WTForms-Components>=0.9.2 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from marvin-wtforms-alchemy>=0.16.9->sdss-marvin) (0.10.5) Requirement already satisfied: WTForms>=1.0.4 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from marvin-wtforms-alchemy>=0.16.9->sdss-marvin) (3.0.0) Requirement already satisfied: cycler>=0.10 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from matplotlib>=1.5.3->sdss-marvin) (0.10.0) Requirement already satisfied: python-dateutil>=2.1 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from matplotlib>=1.5.3->sdss-marvin) (2.8.1) Requirement already satisfied: kiwisolver>=1.0.1 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from matplotlib>=1.5.3->sdss-marvin) (1.2.0) Requirement already satisfied: pytz>=2017.2 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from pandas>=0.18.1->sdss-marvin) (2020.1) Requirement already satisfied: setuptools in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from python-Levenshtein>=0.12.0->sdss-marvin) (47.1.1.post20200604) Requirement already satisfied: certifi>=2017.4.17 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from requests>=2.23.0->marvin-brain>=0.2->sdss-marvin) (2020.4.5.1) Requirement already satisfied: idna<3,>=2.5 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from requests>=2.23.0->marvin-brain>=0.2->sdss-marvin) (2.9) Requirement already satisfied: chardet<4,>=3.0.2 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from requests>=2.23.0->marvin-brain>=0.2->sdss-marvin) (3.0.4) Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from requests>=2.23.0->marvin-brain>=0.2->sdss-marvin) (1.25.8) Requirement already satisfied: tqdm>=4.46.0 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from sdss-access>=1.0->sdss-marvin) (4.46.0) Requirement already satisfied: configparser>=3.5.0 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from sdss-tree>=3.0.7->sdss-marvin) (5.1.0) Requirement already satisfied: pygments>=2.6 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from sdss-tree>=3.0.7->sdss-marvin) (2.6.1) Requirement already satisfied: daemonocle<2.0.0,>=1.0.2 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from sdsstools>=0.4->sdss-marvin) (1.2.3) Requirement already satisfied: importlib_metadata in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from sdsstools>=0.4->sdss-marvin) (4.8.2) Requirement already satisfied: invoke<2.0.0,>=1.3.0 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from sdsstools>=0.4->sdss-marvin) (1.6.0) Requirement already satisfied: semantic-version<3.0.0,>=2.8.4 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from sdsstools>=0.4->sdss-marvin) (2.8.5) Requirement already satisfied: docutils<0.17,>=0.16 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from sdsstools>=0.4->sdss-marvin) (0.16) Requirement already satisfied: psutil in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from daemonocle<2.0.0,>=1.0.2->sdsstools>=0.4->sdss-marvin) (5.7.0) Requirement already satisfied: pbr!=2.1.0,>=2.0.0 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from stevedore>=3.0.0->dogpile.cache>=0.6.2->sdss-marvin) (5.7.0) Requirement already satisfied: zipp>=0.5 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from importlib_metadata->sdsstools>=0.4->sdss-marvin) (3.1.0) Requirement already satisfied: typing-extensions>=3.6.4 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from importlib_metadata->sdsstools>=0.4->sdss-marvin) (3.7.4.1) Requirement already satisfied: marshmallow>=2.15.2 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from webargs<6.0,>=1.5.2->sdss-marvin) (3.14.1) Requirement already satisfied: validators>=0.5.0 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from WTForms-Components>=0.9.2->marvin-wtforms-alchemy>=0.16.9->sdss-marvin) (0.18.2) Requirement already satisfied: email-validator>=1.0.0 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from WTForms-Components>=0.9.2->marvin-wtforms-alchemy>=0.16.9->sdss-marvin) (1.1.3) Requirement already satisfied: intervals>=0.6.0 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from WTForms-Components>=0.9.2->marvin-wtforms-alchemy>=0.16.9->sdss-marvin) (0.9.2) Requirement already satisfied: dnspython>=1.15.0 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from email-validator>=1.0.0->WTForms-Components>=0.9.2->marvin-wtforms-alchemy>=0.16.9->sdss-marvin) (2.1.0) Requirement already satisfied: infinity>=0.1.3 in /Users/Olivia/anaconda3/lib/python3.7/site-packages (from intervals>=0.6.0->WTForms-Components>=0.9.2->marvin-wtforms-alchemy>=0.16.9->sdss-marvin) (1.5) WARNING: You are using pip version 20.3.3; however, version 21.3.1 is available. You should consider upgrading via the '/Users/Olivia/anaconda3/bin/python -m pip install --upgrade pip' command. (base) *@. Desktop % conda env create -f /Users/Olivia/Desktop/marvin_2.6.0.yml Collecting package metadata (repodata.json): done Solving environment: done

==> WARNING: A newer version of conda exists. <== current version: 4.8.3 latest version: 4.10.3

Please update conda by running

$ conda update -n base -c defaults conda

Preparing transaction: done Verifying transaction: done Executing transaction: done Ran pip subprocess with arguments: ['/Users/Olivia/.conda/envs/marvin/bin/python', '-m', 'pip', 'install', '-U', '-r', '/Users/Olivia/Desktop/condaenv.lc_jchww.requirements.txt'] Pip subprocess output: Collecting appnope==0.1.0 (from -r /Users/Olivia/Desktop/condaenv.lc_jchww.requirements.txt (line 1)) Using cached https://files.pythonhosted.org/packages/87/a9/7985e6a53402f294c8f0e8eff3151a83f1fb901fa92909bb3ff29b4d22af/appnope-0.1.0-py2.py3-none-any.whl Collecting astropy==4.0.1.post1 (from -r /Users/Olivia/Desktop/condaenv.lc_jchww.requirements.txt (line 2)) Using cached https://files.pythonhosted.org/packages/90/4e/da578e2443eb83d8cc0cfa898372d5e53e3605612a454cf6e2632e16ddbf/astropy-4.0.1.post1-cp37-cp37m-macosx_10_9_x86_64.whl Collecting attrs==19.2.0 (from -r /Users/Olivia/Desktop/condaenv.lc_jchww.requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/6b/e8/2ecaf86b128a34e225807f03b22664302937ab826bd3b7eccab6754d29ea/attrs-19.2.0-py2.py3-none-any.whl Collecting backcall==0.1.0 (from -r /Users/Olivia/Desktop/condaenv.lc_jchww.requirements.txt (line 4)) Using cached https://files.pythonhosted.org/packages/84/71/c8ca4f5bb1e08401b916c68003acf0a0655df935d74d93bf3f3364b310e0/backcall-0.1.0.tar.gz Collecting bleach==3.1.0 (from -r /Users/Olivia/Desktop/condaenv.lc_jchww.requirements.txt (line 5)) Using cached https://files.pythonhosted.org/packages/ab/05/27e1466475e816d3001efb6e0a85a819be17411420494a1e602c36f8299d/bleach-3.1.0-py2.py3-none-any.whl Collecting chardet==3.0.4 (from -r /Users/Olivia/Desktop/condaenv.lc_jchww.requirements.txt (line 6)) Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl Collecting click==7.0 (from -r /Users/Olivia/Desktop/condaenv.lc_jchww.requirements.txt (line 7)) Using cached https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl Collecting configparser==5.0.0 (from -r /Users/Olivia/Desktop/condaenv.lc_jchww.requirements.txt (line 8)) Using cached https://files.pythonhosted.org/packages/4b/6b/01baa293090240cf0562cc5eccb69c6f5006282127f2b846fad011305c79/configparser-5.0.0-py3-none-any.whl Collecting cycler==0.10.0 (from -r /Users/Olivia/Desktop/condaenv.lc_jchww.requirements.txt (line 9)) Using cached https://files.pythonhosted.org/packages/f7/d2/e07d3ebb2bd7af696440ce7e754c59dd546ffe1bbe732c8ab68b9c834e61/cycler-0.10.0-py2.py3-none-any.whl Collecting decorator==4.4.0 (from -r /Users/Olivia/Desktop/condaenv.lc_jchww.requirements.txt (line 10)) Using cached https://files.pythonhosted.org/packages/5f/88/0075e461560a1e750a0dcbf77f1d9de775028c37a19a346a6c565a257399/decorator-4.4.0-py2.py3-none-any.whl Collecting defusedxml==0.6.0 (from -r /Users/Olivia/Desktop/condaenv.lc_jchww.requirements.txt (line 11)) Using cached https://files.pythonhosted.org/packages/06/74/9b387472866358ebc08732de3da6dc48e44b0aacd2ddaa5cb85ab7e986a2/defusedxml-0.6.0-py2.py3-none-any.whl Collecting docutils==0.16 (from -r /Users/Olivia/Desktop/condaenv.lc_jchww.requirements.txt (line 12)) Using cached https://files.pythonhosted.org/packages/81/44/8a15e45ffa96e6cf82956dd8d7af9e666357e16b0d93b253903475ee947f/docutils-0.16-py2.py3-none-any.whl Collecting dogpile-cache==0.7.1 (from -r /Users/Olivia/Desktop/condaenv.lc_jchww.requirements.txt (line 13)) Using cached https://files.pythonhosted.org/packages/84/3e/dbf1cfc5228f1d3dca80ef714db2c5aaec5cd9efaf54d7e3daef6bc48b19/dogpile.cache-0.7.1.tar.gz Collecting entrypoints==0.3 (from -r /Users/Olivia/Desktop/condaenv.lc_jchww.requirements.txt (line 14)) Using cached https://files.pythonhosted.org/packages/ac/c6/44694103f8c221443ee6b0041f69e2740d89a25641e62fb4f2ee568f2f9c/entrypoints-0.3-py2.py3-none-any.whl Collecting fast-histogram==0.7 (from -r /Users/Olivia/Desktop/condaenv.lc_jchww.requirements.txt (line 15)) Using cached https://files.pythonhosted.org/packages/af/bf/9c84f2779666b4a2bd43358a908a77a4b6bcd923432c7ab6c9525249ddc4/fast_histogram-0.7-cp37-cp37m-macosx_10_6_intel.whl Collecting flask==1.1.1 (from -r /Users/Olivia/Desktop/condaenv.lc_jchww.requirements.txt (line 16)) Using cached https://files.pythonhosted.org/packages/9b/93/628509b8d5dc749656a9641f4caf13540e2cdec85276964ff8f43bbb1d3b/Flask-1.1.1-py2.py3-none-any.whl Collecting flask-classful==0.14.2 (from -r /Users/Olivia/Desktop/condaenv.lc_jchww.requirements.txt (line 17)) Using cached https://files.pythonhosted.org/packages/7e/cd/2df31c1590db0a95da08e9bdbc9db8b2efd0272e5d5677929a4a73b87e46/Flask_Classful-0.14.2-py2.py3-none-any.whl Collecting flask-classy==0.6.10 (from -r /Users/Olivia/Desktop/condaenv.lc_jchww.requirements.txt (line 18)) Using cached https://files.pythonhosted.org/packages/92/07/bbe7a8aefd8799fc456f711b86952457b3e63c8aec9dfd4c911c55df9ea7/Flask-Classy-0.6.10.tar.gz Collecting flask-jwt-extended==3.21.0 (from -r /Users/Olivia/Desktop/condaenv.lc_jchww.requirements.txt (line 19)) Using cached https://files.pythonhosted.org/packages/ba/b2/d1b32a60386d16136a54c57cfa28eca70324163fe53eac6ceaa89d3bf0df/Flask-JWT-Extended-3.21.0.tar.gz Collecting future==0.17.1 (from -r /Users/Olivia/Desktop/condaenv.lc_jchww.requirements.txt (line 20)) Using cached https://files.pythonhosted.org/packages/90/52/e20466b85000a181e1e144fd8305caf2cf475e2f9674e797b222f8105f5f/future-0.17.1.tar.gz Collecting fuzzywuzzy==0.17.0 (from -r /Users/Olivia/Desktop/condaenv.lc_jchww.requirements.txt (line 21)) Using cached https://files.pythonhosted.org/packages/d8/f1/5a267addb30ab7eaa1beab2b9323073815da4551076554ecc890a3595ec9/fuzzywuzzy-0.17.0-py2.py3-none-any.whl Collecting idna==2.8 (from -r /Users/Olivia/Desktop/condaenv.lc_jchww.requirements.txt (line 22)) Using cached https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl Collecting importlib==1.0.4 (from -r /Users/Olivia/Desktop/condaenv.lc_jchww.requirements.txt (line 23)) Using cached https://files.pythonhosted.org/packages/31/77/3781f65cafe55480b56914def99022a5d2965a4bb269655c89ef2f1de3cd/importlib-1.0.4.zip

Pip subprocess error: ERROR: Command errored out with exit status 1: command: /Users/Olivia/.conda/envs/marvin/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/nd/_9m24rz937n3bt5t5vj2zr6r0000gq/T/pip-install-1mo9quyl/importlib/setup.py'"'"'; file='"'"'/private/var/folders/nd/_9m24rz937n3bt5t5vj2zr6r0000gq/T/pip-install-1mo9quyl/importlib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info cwd: /private/var/folders/nd/_9m24rz937n3bt5t5vj2zr6r0000gq/T/pip-install-1mo9quyl/importlib/ Complete output (11 lines): Traceback (most recent call last): File "", line 1, in File "/Users/Olivia/.conda/envs/marvin/lib/python3.7/site-packages/setuptools/init.py", line 6, in import distutils.core File "/Users/Olivia/.conda/envs/marvin/lib/python3.7/distutils/core.py", line 16, in from distutils.dist import Distribution File "/Users/Olivia/.conda/envs/marvin/lib/python3.7/distutils/dist.py", line 19, in from distutils.util import check_environ, strtobool, rfc822_escape File "/Users/Olivia/.conda/envs/marvin/lib/python3.7/distutils/util.py", line 9, in import importlib.util ModuleNotFoundError: No module named 'importlib.util'

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

CondaEnvException: Pip failed

(base) @. Desktop % pip install importlib Requirement already satisfied: importlib in /Users/Olivia/anaconda3/lib/python3.7/site-packages (1.0.4) WARNING: You are using pip version 20.3.3; however, version 21.3.1 is available. You should consider upgrading via the '/Users/Olivia/anaconda3/bin/python -m pip install --upgrade pip' command. (base) @. Desktop % conda env create -f /Users/Olivia/Desktop/marvin_2.6.0.yml

CondaValueError: prefix already exists: /Users/Olivia/.conda/envs/marvin

(base) @. Desktop % cd /Users/Olivia/.conda/envs (base) @. envs % ls -l total 0 drwxr-xr-x 19 Olivia staff 608 Jan 8 2021 astroconda drwxr-xr-x 24 Olivia staff 768 Jan 8 2021 iraf27 drwxr-xr-x 9 Olivia staff 288 Nov 17 10:56 marvin (base) @. envs % mv -r marvin marvin.orig mv: illegal option -- r usage: mv [-f | -i | -n] [-v] source target mv [-f | -i | -n] [-v] source ... directory (base) @. envs % mv -f marvin marvin.orig (base) @. envs % ls -l total 0 drwxr-xr-x 19 Olivia staff 608 Jan 8 2021 astroconda drwxr-xr-x 24 Olivia staff 768 Jan 8 2021 iraf27 drwxr-xr-x 9 Olivia staff 288 Nov 17 10:56 marvin.orig (base) @. envs % cd marvin.orig (base) @. marvin.orig % ls -l total 0 drwxr-xr-x 75 Olivia staff 2400 Nov 17 10:56 bin drwxr-xr-x 20 Olivia staff 640 Nov 17 10:56 conda-meta drwxr-xr-x 110 Olivia staff 3520 Nov 17 10:56 include drwxr-xr-x 96 Olivia staff 3072 Nov 17 10:56 lib drwxr-xr-x 3 Olivia staff 96 Nov 17 10:56 man drwxr-xr-x 8 Olivia staff 256 Nov 17 10:56 share drwxr-xr-x 9 Olivia staff 288 Nov 17 10:56 ssl (base) @. marvin.orig % cd .. (base) @. envs % ~ zsh: permission denied: /Users/Olivia (base) @. envs % cd ~ (base) @. ~ % cd Desktop (base) @. Desktop % pip install importlib Requirement already satisfied: importlib in /Users/Olivia/anaconda3/lib/python3.7/site-packages (1.0.4) WARNING: You are using pip version 20.3.3; however, version 21.3.1 is available. You should consider upgrading via the '/Users/Olivia/anaconda3/bin/python -m pip install --upgrade pip' command. (base) @.*** Desktop % conda env create -f /Users/Olivia/Desktop/marvin_2.6.0.yml Collecting package metadata (repodata.json): done Solving environment: done

==> WARNING: A newer version of conda exists. <== current version: 4.8.3 latest version: 4.10.3

Please update conda by running

$ conda update -n base -c defaults conda

Preparing transaction: done Verifying transaction: done Executing transaction: done Ran pip subprocess with arguments: ['/Users/Olivia/.conda/envs/marvin/bin/python', '-m', 'pip', 'install', '-U', '-r', '/Users/Olivia/Desktop/condaenv.mf3rik_j.requirements.txt'] Pip subprocess output: Collecting appnope==0.1.0 (from -r /Users/Olivia/Desktop/condaenv.mf3rik_j.requirements.txt (line 1)) Using cached https://files.pythonhosted.org/packages/87/a9/7985e6a53402f294c8f0e8eff3151a83f1fb901fa92909bb3ff29b4d22af/appnope-0.1.0-py2.py3-none-any.whl Collecting astropy==4.0.1.post1 (from -r /Users/Olivia/Desktop/condaenv.mf3rik_j.requirements.txt (line 2)) Using cached https://files.pythonhosted.org/packages/90/4e/da578e2443eb83d8cc0cfa898372d5e53e3605612a454cf6e2632e16ddbf/astropy-4.0.1.post1-cp37-cp37m-macosx_10_9_x86_64.whl Collecting attrs==19.2.0 (from -r /Users/Olivia/Desktop/condaenv.mf3rik_j.requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/6b/e8/2ecaf86b128a34e225807f03b22664302937ab826bd3b7eccab6754d29ea/attrs-19.2.0-py2.py3-none-any.whl Collecting backcall==0.1.0 (from -r /Users/Olivia/Desktop/condaenv.mf3rik_j.requirements.txt (line 4)) Using cached https://files.pythonhosted.org/packages/84/71/c8ca4f5bb1e08401b916c68003acf0a0655df935d74d93bf3f3364b310e0/backcall-0.1.0.tar.gz Collecting bleach==3.1.0 (from -r /Users/Olivia/Desktop/condaenv.mf3rik_j.requirements.txt (line 5)) Using cached https://files.pythonhosted.org/packages/ab/05/27e1466475e816d3001efb6e0a85a819be17411420494a1e602c36f8299d/bleach-3.1.0-py2.py3-none-any.whl Collecting chardet==3.0.4 (from -r /Users/Olivia/Desktop/condaenv.mf3rik_j.requirements.txt (line 6)) Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl Collecting click==7.0 (from -r /Users/Olivia/Desktop/condaenv.mf3rik_j.requirements.txt (line 7)) Using cached https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl Collecting configparser==5.0.0 (from -r /Users/Olivia/Desktop/condaenv.mf3rik_j.requirements.txt (line 8)) Using cached https://files.pythonhosted.org/packages/4b/6b/01baa293090240cf0562cc5eccb69c6f5006282127f2b846fad011305c79/configparser-5.0.0-py3-none-any.whl Collecting cycler==0.10.0 (from -r /Users/Olivia/Desktop/condaenv.mf3rik_j.requirements.txt (line 9)) Using cached https://files.pythonhosted.org/packages/f7/d2/e07d3ebb2bd7af696440ce7e754c59dd546ffe1bbe732c8ab68b9c834e61/cycler-0.10.0-py2.py3-none-any.whl Collecting decorator==4.4.0 (from -r /Users/Olivia/Desktop/condaenv.mf3rik_j.requirements.txt (line 10)) Using cached https://files.pythonhosted.org/packages/5f/88/0075e461560a1e750a0dcbf77f1d9de775028c37a19a346a6c565a257399/decorator-4.4.0-py2.py3-none-any.whl Collecting defusedxml==0.6.0 (from -r /Users/Olivia/Desktop/condaenv.mf3rik_j.requirements.txt (line 11)) Using cached https://files.pythonhosted.org/packages/06/74/9b387472866358ebc08732de3da6dc48e44b0aacd2ddaa5cb85ab7e986a2/defusedxml-0.6.0-py2.py3-none-any.whl Collecting docutils==0.16 (from -r /Users/Olivia/Desktop/condaenv.mf3rik_j.requirements.txt (line 12)) Using cached https://files.pythonhosted.org/packages/81/44/8a15e45ffa96e6cf82956dd8d7af9e666357e16b0d93b253903475ee947f/docutils-0.16-py2.py3-none-any.whl Collecting dogpile-cache==0.7.1 (from -r /Users/Olivia/Desktop/condaenv.mf3rik_j.requirements.txt (line 13)) Using cached https://files.pythonhosted.org/packages/84/3e/dbf1cfc5228f1d3dca80ef714db2c5aaec5cd9efaf54d7e3daef6bc48b19/dogpile.cache-0.7.1.tar.gz Collecting entrypoints==0.3 (from -r /Users/Olivia/Desktop/condaenv.mf3rik_j.requirements.txt (line 14)) Using cached https://files.pythonhosted.org/packages/ac/c6/44694103f8c221443ee6b0041f69e2740d89a25641e62fb4f2ee568f2f9c/entrypoints-0.3-py2.py3-none-any.whl Collecting fast-histogram==0.7 (from -r /Users/Olivia/Desktop/condaenv.mf3rik_j.requirements.txt (line 15)) Using cached https://files.pythonhosted.org/packages/af/bf/9c84f2779666b4a2bd43358a908a77a4b6bcd923432c7ab6c9525249ddc4/fast_histogram-0.7-cp37-cp37m-macosx_10_6_intel.whl Collecting flask==1.1.1 (from -r /Users/Olivia/Desktop/condaenv.mf3rik_j.requirements.txt (line 16)) Using cached https://files.pythonhosted.org/packages/9b/93/628509b8d5dc749656a9641f4caf13540e2cdec85276964ff8f43bbb1d3b/Flask-1.1.1-py2.py3-none-any.whl Collecting flask-classful==0.14.2 (from -r /Users/Olivia/Desktop/condaenv.mf3rik_j.requirements.txt (line 17)) Using cached https://files.pythonhosted.org/packages/7e/cd/2df31c1590db0a95da08e9bdbc9db8b2efd0272e5d5677929a4a73b87e46/Flask_Classful-0.14.2-py2.py3-none-any.whl Collecting flask-classy==0.6.10 (from -r /Users/Olivia/Desktop/condaenv.mf3rik_j.requirements.txt (line 18)) Using cached https://files.pythonhosted.org/packages/92/07/bbe7a8aefd8799fc456f711b86952457b3e63c8aec9dfd4c911c55df9ea7/Flask-Classy-0.6.10.tar.gz Collecting flask-jwt-extended==3.21.0 (from -r /Users/Olivia/Desktop/condaenv.mf3rik_j.requirements.txt (line 19)) Using cached https://files.pythonhosted.org/packages/ba/b2/d1b32a60386d16136a54c57cfa28eca70324163fe53eac6ceaa89d3bf0df/Flask-JWT-Extended-3.21.0.tar.gz Collecting future==0.17.1 (from -r /Users/Olivia/Desktop/condaenv.mf3rik_j.requirements.txt (line 20)) Using cached https://files.pythonhosted.org/packages/90/52/e20466b85000a181e1e144fd8305caf2cf475e2f9674e797b222f8105f5f/future-0.17.1.tar.gz Collecting fuzzywuzzy==0.17.0 (from -r /Users/Olivia/Desktop/condaenv.mf3rik_j.requirements.txt (line 21)) Using cached https://files.pythonhosted.org/packages/d8/f1/5a267addb30ab7eaa1beab2b9323073815da4551076554ecc890a3595ec9/fuzzywuzzy-0.17.0-py2.py3-none-any.whl Collecting idna==2.8 (from -r /Users/Olivia/Desktop/condaenv.mf3rik_j.requirements.txt (line 22)) Using cached https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl Collecting importlib==1.0.4 (from -r /Users/Olivia/Desktop/condaenv.mf3rik_j.requirements.txt (line 23)) Using cached https://files.pythonhosted.org/packages/31/77/3781f65cafe55480b56914def99022a5d2965a4bb269655c89ef2f1de3cd/importlib-1.0.4.zip

Pip subprocess error: ERROR: Command errored out with exit status 1: command: /Users/Olivia/.conda/envs/marvin/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/nd/_9m24rz937n3bt5t5vj2zr6r0000gq/T/pip-install-9_mp0wp0/importlib/setup.py'"'"'; file='"'"'/private/var/folders/nd/_9m24rz937n3bt5t5vj2zr6r0000gq/T/pip-install-9_mp0wp0/importlib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info cwd: /private/var/folders/nd/_9m24rz937n3bt5t5vj2zr6r0000gq/T/pip-install-9_mp0wp0/importlib/ Complete output (11 lines): Traceback (most recent call last): File "", line 1, in File "/Users/Olivia/.conda/envs/marvin/lib/python3.7/site-packages/setuptools/init.py", line 6, in import distutils.core File "/Users/Olivia/.conda/envs/marvin/lib/python3.7/distutils/core.py", line 16, in from distutils.dist import Distribution File "/Users/Olivia/.conda/envs/marvin/lib/python3.7/distutils/dist.py", line 19, in from distutils.util import check_environ, strtobool, rfc822_escape File "/Users/Olivia/.conda/envs/marvin/lib/python3.7/distutils/util.py", line 9, in import importlib.util ModuleNotFoundError: No module named 'importlib.util'

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

CondaEnvException: Pip failed

(base) @.*** Desktop % conda env create -f /Users/Olivia/Desktop/marvin_2.6.0.yml

CondaValueError: prefix already exists: /Users/Olivia/.conda/envs/marvin

(base) @. Desktop % cd~ zsh: command not found: cd~ (base) @. Desktop % chmod 600 ~/.netrc (base) @. Desktop % cd ~ (base) @. ~ % chmod 600 ~/.netrc (base) @. ~ % config login(lyra.weaver) zsh: number expected (base) @. ~ % chmod 600 ~/.netrc (base) @. ~ % config.login() function> config.tokem (base) @. ~ % config.login() function> config.token (base) @.*** ~ % ipython Python 3.7.7 (default, Mar 26 2020, 10:32:53) Type 'copyright', 'credits' or 'license' for more information IPython 7.13.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: from marvin.tools.maps import maps [INFO]: No release version set. Setting default to DR15 [WARNING]: path /Users/Olivia/sas/mangawork/manga/spectro/redux/v2_4_3/drpall-v2_4_3.fits cannot be found. Setting drpall to None. (MarvinUserWarning) [WARNING]: path /Users/Olivia/sas/mangawork/manga/spectro/analysis/v2_4_3/2.2.1/dapall-v2_4_3-2.2.1.fits cannot be found. Setting dapall to None. (MarvinUserWarning) Downloading https://hpiers.obspm.fr/iers/bul/bulc/Leap_Second.dat |========================================================================================================================================================================================================| 1.3k/1.3k (100.00%) 0s

ImportError Traceback (most recent call last)

in ----> 1 from marvin.tools.maps import maps ImportError: cannot import name 'maps' from 'marvin.tools.maps' (/Users/Olivia/anaconda3/lib/python3.7/site-packages/marvin/tools/maps.py) In [2]: from marvin import config In [3]: config.access = 'collab' In [4]: config.setRelease('MPL-11') [WARNING]: path /Users/Olivia/sas/mangawork/manga/spectro/redux/v3_1_1/drpall-v3_1_1.fits cannot be found. Setting drpall to None. (MarvinUserWarning) [WARNING]: path /Users/Olivia/sas/mangawork/manga/spectro/analysis/v3_1_1/3.1.0/dapall-v3_1_1-3.1.0.fits cannot be found. Setting dapall to None. (MarvinUserWarning) In [5]: config.login() --------------------------------------------------------------------------- HTTPError Traceback (most recent call last) ~/anaconda3/lib/python3.7/site-packages/brain/api/api.py in _checkResponse(self, response) 200 try: --> 201 isbad = response.raise_for_status() 202 except requests.HTTPError as http: ~/anaconda3/lib/python3.7/site-packages/requests/models.py in raise_for_status(self) 940 if http_error_msg: --> 941 raise HTTPError(http_error_msg, response=self) 942 HTTPError: 401 Client Error: UNAUTHORIZED for url: https://sas.sdss.org/marvin/api/general/login/ During handling of the above exception, another exception occurred: BrainApiAuthError Traceback (most recent call last) ~/anaconda3/lib/python3.7/site-packages/marvin/__init__.py in login(self, refresh) 752 try: --> 753 resp = Interaction(url, params=data, auth='netrc') 754 except Exception as e: ~/anaconda3/lib/python3.7/site-packages/brain/api/api.py in __init__(self, route, params, request_type, auth, timeout, headers, stream, datastream, send, base, verify) 56 if self.url and send: ---> 57 self._sendRequest(request_type) 58 elif not self.url and send: ~/anaconda3/lib/python3.7/site-packages/brain/api/api.py in _sendRequest(self, request_type) 294 # Check the response if it's good --> 295 self._checkResponse(self._response) 296 ~/anaconda3/lib/python3.7/site-packages/brain/api/api.py in _checkResponse(self, response) 222 self._closeRequestSession() --> 223 raise BrainApiAuthError('API Authentication Error: {0}. {1}'.format(msg, errmsg)) 224 elif self.status_code == 422: BrainApiAuthError: API Authentication Error: Please create or check credentials in your local .netrc file. During handling of the above exception, another exception occurred: MarvinError Traceback (most recent call last) in ----> 1 config.login() ~/anaconda3/lib/python3.7/site-packages/marvin/__init__.py in login(self, refresh) 753 resp = Interaction(url, params=data, auth='netrc') 754 except Exception as e: --> 755 raise MarvinError('Error getting login token. {0}'.format(e)) 756 else: 757 self.token = resp.results['access_token'] MarvinError: Error getting login token. API Authentication Error: Please create or check credentials in your local .netrc file. . You can submit this error to Marvin GitHub Issues (https://github.com/sdss/marvin/issues/new). Fill out a subject and some text describing the error that just occurred. If able, copy and paste the full traceback information into the issue as well. In [6]: config.login() --------------------------------------------------------------------------- HTTPError Traceback (most recent call last) ~/anaconda3/lib/python3.7/site-packages/brain/api/api.py in _checkResponse(self, response) 200 try: --> 201 isbad = response.raise_for_status() 202 except requests.HTTPError as http: ~/anaconda3/lib/python3.7/site-packages/requests/models.py in raise_for_status(self) 940 if http_error_msg: --> 941 raise HTTPError(http_error_msg, response=self) 942 HTTPError: 500 Server Error: INTERNAL SERVER ERROR for url: https://sas.sdss.org/marvin/api/general/login/ During handling of the above exception, another exception occurred: BrainError Traceback (most recent call last) ~/anaconda3/lib/python3.7/site-packages/marvin/__init__.py in login(self, refresh) 752 try: --> 753 resp = Interaction(url, params=data, auth='netrc') 754 except Exception as e: ~/anaconda3/lib/python3.7/site-packages/brain/api/api.py in __init__(self, route, params, request_type, auth, timeout, headers, stream, datastream, send, base, verify) 56 if self.url and send: ---> 57 self._sendRequest(request_type) 58 elif not self.url and send: ~/anaconda3/lib/python3.7/site-packages/brain/api/api.py in _sendRequest(self, request_type) 294 # Check the response if it's good --> 295 self._checkResponse(self._response) 296 ~/anaconda3/lib/python3.7/site-packages/brain/api/api.py in _checkResponse(self, response) 234 errmsg = '{0}'.format(err) --> 235 raise BrainError('Requests Http Status Error: {0}\n{1}'.format(http, errmsg)) 236 else: BrainError: Requests Http Status Error: 500 Server Error: INTERNAL SERVER ERROR for url: https://sas.sdss.org/marvin/api/general/login/ None During handling of the above exception, another exception occurred: MarvinError Traceback (most recent call last) in ----> 1 config.login() ~/anaconda3/lib/python3.7/site-packages/marvin/__init__.py in login(self, refresh) 753 resp = Interaction(url, params=data, auth='netrc') 754 except Exception as e: --> 755 raise MarvinError('Error getting login token. {0}'.format(e)) 756 else: 757 self.token = resp.results['access_token'] MarvinError: Error getting login token. Requests Http Status Error: 500 Server Error: INTERNAL SERVER ERROR for url: https://sas.sdss.org/marvin/api/general/login/ None. You can submit this error to Marvin GitHub Issues (https://github.com/sdss/marvin/issues/new). Fill out a subject and some text describing the error that just occurred. If able, copy and paste the full traceback information into the issue as well. In [7]: In [7]:
havok2063 commented 2 years ago

Hi @InfinitelyCurious hmm it sounds like you had or are having some base installation issues. We don't recommended trying to install marvin in your root system, or use the system Python that comes with the laptop. For a clean conda installation, you can do the following:

conda create -n marvin python=3.8 ipython

This creates a new conda environment named "marvin", and installs python 3.8 and ipython into it. You can change the python version here to 3.9 or whichever one you use. Next you need to activate the conda environment and install marvin into it.

conda activate marvin
pip install sdss-marvin

This will create a clean, isolated, install of marvin from the rest of your system. Then you should be able to import and use marvin within that environment. For marvin access and authentication, you can look at https://sdss-marvin.readthedocs.io/en/latest/installation.html#access-and-authentication for setting up your netrc file and getting a marvin login token. If you're still seeing that 500 internal server error after that, there could be something wrong with the server. It's been down intermittently while we perform some maintenance and update things ahead of DR17.

InfinitelyCurious commented 2 years ago

Hello Brian,

I created the conda environment and loaded marvin into as you suggested, but did get the 500 error in the same place. I know you said it is now because of maintenance being done before DR17, I am just wondering if you have an estimate of when the server will be back up? I am kind of stuck right now not being able to do any work, but cannot find any announcements on timeframes for updates. I thank you for the help and the info.

Cheers, Olivia

On Thu, Dec 2, 2021 at 8:28 AM Brian Cherinka @.***> wrote:

Hi @InfinitelyCurious https://github.com/InfinitelyCurious hmm it sounds like you had or are having some base installation issues. We don't recommended trying to install marvin in your root system, or use the system Python that comes with the laptop. For a clean conda installation, you can do the following:

conda create -n marvin python=3.8 ipython

This creates a new conda environment named "marvin", and installs python 3.8 and ipython into it. You can change the python version here to 3.9 or whichever one you use. Next you need to activate the conda environment and install marvin into it.

conda activate marvin pip install sdss-marvin

This will create a clean, isolated, install of marvin from the rest of your system. Then you should be able to import and use marvin within that environment. For marvin access and authentication, you can look at https://sdss-marvin.readthedocs.io/en/latest/installation.html#access-and-authentication for setting up your netrc file and getting a marvin login token. If you're still seeing that 500 internal server error after that, there could be something wrong with the server. It's been down intermittently while we perform some maintenance and update things ahead of DR17.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sdss/marvin/issues/744#issuecomment-984677942, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHKQCWCW2WSIZP2MQXNF7ELUO57CJANCNFSM5IIAHAJA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

havok2063 commented 2 years ago

@InfinitelyCurious Everything should be back up by tomorrow. I'll still be doing some maintenance on the database but the website and API access should be back up. This should also resolve the login issues you are seeing. You may need to refresh your authentication token.

havok2063 commented 2 years ago

@InfinitelyCurious Everything should be back up now. Is this still an issue?

InfinitelyCurious commented 2 years ago

It is actually. It's telling me now "MarvinError: Error getting login token. API Authentication Error: Please check your authentication method.. ."

On Tue, Dec 7, 2021, 4:06 PM Brian Cherinka @.***> wrote:

@InfinitelyCurious https://github.com/InfinitelyCurious Everything should be back up now. Is this still an issue?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sdss/marvin/issues/744#issuecomment-988295757, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHKQCWCT5MX5KMSUKNB2IETUP2AOVANCNFSM5IIAHAJA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

havok2063 commented 2 years ago

Can you provide some example code to see if I can reproduce the problem? Have you updated to the latest version of marvin, 2.7.1 or 2.7.2? Do you have an old token stored in your custom configuration? Have you tried forcing a fresh token to be generated? If things still fail after that, you can always switch to the public mode of marvin. DR17 is out, so all MaNGA data is now publicly available.