-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.7.290 issue with apero_astrometrics.py adding a new target #785
Comments
This is a problem with the gspread pandas module (again). It seems something to do with how pip installs gspread and gspread-pandas I've updated v0.7.290-stable-test with a force in the requirements files - can you try doing a pip install again after doing a git pull (you may need to start from a new conda environment) |
I'm going to install a fresh 290 version on another machine for test. (with *developper.txt requirements) |
@njcuk9999 the installation fails with the gspread lib: looks like a typo in the developper.txt file.
|
Ok I did the change on github and a commit for the requirements_developer.txt The error I had before at the installation is fixed, but I have another one now when running ./install_script.sh:
|
I think thats because you also need to do the requirements_current.txt (which the setup takes as the minimum required) - I've fixed both now so it should work. |
I have deleted my last post. I have found how to edit in github. it seems now that the typo in requirements_current.txt is corrected. |
ok so with requirements_current.txt, the installation is ok and trying the command apero_astrometrics.py Gl699 works (it says the object is already in the db). |
same with requirements_developer.txt, apero_astrometrics now works; I'll use the 290 to enter the objects for 24A. |
It seems my push failed for the requirements_developer.txt not sure why it should be okay now |
Fresh install of the 290
I ran apero_precheck
no erorrs but got a list a targets not in the objdb as usual
entered one for cloutier Kepler-1646 but got the error bellow
17:34:21.216-|ASTROM| ***************************************************************************
17:34:21.236-|ASTROM| Updating pending-list online database
17:34:21.256-|ASTROM| ***************************************************************************
17:34:21.272-!!|ASTROM| E[01-010-00001]: Unhandled error has occurred: Error <class 'AttributeError'>
17:34:21.272-!!|ASTROM|
17:34:21.272-!!|ASTROM| Traceback (most recent call last):
17:34:21.273-!!|ASTROM| File "/apero/apero-drs-v0.7.290/apero/core/utils/drs_startup.py", line 433, in run
17:34:21.273-!!|ASTROM| llmain = func(recipe, params)
17:34:21.273-!!|ASTROM| File "/apero/apero-drs-v0.7.290/tools/bin/apero_astrometrics.py", line 199, in main
17:34:21.273-!!|ASTROM| drs_astrometrics.add_obj_to_sheet(params, add_objs)
17:34:21.273-!!|ASTROM| File "/apero/apero-drs-v0.7.290/apero/tools/module/database/drs_astrometrics.py", line 1620, in add_obj_to_sheet
17:34:21.274-!!|ASTROM| google_sheet = gspd.spread.Spread(sheet_id)
17:34:21.274-!!|ASTROM| File "/conda/miniconda3/envs/apero-env-v0.7.290/lib/python3.9/site-packages/gspread_pandas/spread.py", line 126, in init
17:34:21.274-!!|ASTROM| self.client = Client(user, config, scope, creds)
17:34:21.274-!!|ASTROM| File "/conda/miniconda3/envs/apero-env-v0.7.290/lib/python3.9/site-packages/gspread_pandas/client.py", line 96, in init
17:34:21.274-!!|ASTROM| self._root = self._drive_request(file_id="root", params={"fields": "name,id"})
17:34:21.274-!!|ASTROM| File "/conda/miniconda3/envs/apero-env-v0.7.290/lib/python3.9/site-packages/gspread_pandas/client.py", line 197, in _drive_request
17:34:21.275-!!|ASTROM| res = self.request(method, url, params=params, json=data)
17:34:21.275-!!|ASTROM| File "/conda/miniconda3/envs/apero-env-v0.7.290/lib/python3.9/site-packages/gspread_pandas/util.py", line 292, in request
17:34:21.275-!!|ASTROM| return ClientV4.request(client, *args, kwargs)
17:34:21.275-!!|ASTROM| AttributeError: type object 'Client' has no attribute 'request'
17:34:21.275-!!|ASTROM|
17:34:21.513-|ASTROM| ***************************************************************************
17:34:21.536-@!|ASTROM| W[40-003-00005]: Recipe apero_astrometrics has NOT been successfully completed
17:34:21.565-|ASTROM| ***************************************************************************
The text was updated successfully, but these errors were encountered: