-
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
Adding both components of a close visual binary in the Object database #765
Comments
Hi. Sorry about the lag in answering this message. Im in and out of work at the moment. Hmm, this is an interesting one. We probably have to add one of the targets (the "main" one) via the simbad name and the other manually (withiut any of the aliases). We can take any properties from the "main" one and use those for the other or update any values accordingly. |
Hi ! So I tried to add the main one via the simbad name, but once I have answered to all the questions, I get the following error message (I use APERO installed on the LAM computer, the same as Andres): 09:38:21.799-|ASTROM| *************************************************************************** |
I've not seen that error before, were you definitely in the correct conda environment? Can you check the version of modules compared to this list: https://github.com/njcuk9999/apero-drs/blob/v0.7.289-live/requirements_developer.txt |
Hi Neil
Le 18 juin 2024 à 21:19, Neil Cook ***@***.***> a écrit :
I've not seen that error before, were you definitely in the correct conda environment?
Normaly yes
Can you check the version of modules compared to this list: https://github.com/njcuk9999/apero-drs/blob/v0.7.289-live/requirements_developer.txt <https://github.com/njcuk9999/apero-drs/blob/v0.7.289-live/requirements_developer.txt>
Here is what I get :
pip show astropy | grep Version Version: 5.3
pip show astroquery | grep Version Version: 0.4.6
pip show barycorrpy | grep Version Version: 0.4.4
pip show Bottleneck | grep Version Version: 1.3.7
pip show duckdb | grep Version Version: 0.8.0
pip show matplotlib | grep Version Version: 3.7.1
pip show GitPython | grep Version Version: 3.1.31
pip show numba | grep Version Version: 0.57.0
pip show numexpr | grep Version Version: 2.8.4
pip show numpy | grep Version Version: 1.24.3
pip show pandas | grep Version Version: 2.0.2
pip show pandastable | grep Version Version: 0.13.1
pip show pandasql | grep Version Version: 0.7.3
pip show Pillow | grep Version Version: 9.5.0
pip show psutil | grep Version Version: 5.9.4
pip show PyYAML | grep Version Version: 6.0
pip show scikit-image | grep Version Version: 0.19.3
pip show scipy | grep Version Version: 1.10.0
pip show tqdm | grep Version Version: 4.65.0
pip show yagmail | grep Version Version: 0.15.293
Evelyne
Evelyne
… —
Reply to this email directly, view it on GitHub <#765 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJQPZTU46JQZJN65RO54IBTZICB43AVCNFSM6AAAAABI22O42KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZWG44TMNBYGQ>.
You are receiving this because you authored the thread.
|
How about gspread-pandas, the one in the requirement file is: gspread-pandas==3.2.2 I tried downgrading this module and I got a similar error as you! Depending on which apero version you are running it might be worth trying a |
Le 25 juin 2024 à 00:33, Neil Cook ***@***.***> a écrit :
How about gspread-pandas, the one in the requirement file is:
gspread-pandas==3.2.2
I tried downgrading this module and I got a similar error as you!
I also have the 3.2.2 version
Depending on which apero version you are running it might be worth trying a pip install -r requirements_developer.txt from inside the apero conda environment.
I did that already.
Evelyne
… —
Reply to this email directly, view it on GitHub <#765 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJQPZTSW45HKIU5MHZED4FDZJCNFFAVCNFSM6AAAAABI22O42KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBXGUZTGOJUG4>.
You are receiving this because you authored the thread.
|
Okay weird I'm not getting this error so either there is a problem with your server connecting to still a difference in versions It is probably worth doing a
|
Hi Neil
I don’t see any difference in the requirements.
The problem appears when the code tries to write to the pending list (see below).
I am using the same cluster as Andres at LAM.
When Andres tries, it works.
When I try I get the error.
Could it be possible that I don’t have the rights to write to the database ?
Cheers
Evelyne
The error occurs in the spread_pandas/util.py file line 292, i.e. in this routine :
def monkey_patch_request(client, retry_delay=10):
"""Monkey patch gspread's Client.request to auto-retry with a delay when you get a
100 seconds RESOURCE_EXCHAUSTED error."""
def request(*args, **kwargs):
try:
return ClientV4.request(client, *args, **kwargs)
except APIError as e:
error = str(e)
# Only retry on 100 seconds quota breaches
if "RESOURCE_EXHAUSTED" in error and (
"100" in error or "Read requests" in error
):
sleep(retry_delay)
return request(*args, **kwargs)
else:
error = e
if "error" in locals():
raise error
client.request = request
...
Add Teff for object [K]?
Options are:
[Y]es or [N]o
> N
15:02:32.660-**|ASTROM| ***************************************************************************
15:02:32.668-**|ASTROM| Updating pending-list online database
15:02:32.675-**|ASTROM| ***************************************************************************
15:02:32.835-!!|ASTROM| E[01-010-00001]: Unhandled error has occurred: Error <class 'AttributeError'>
15:02:32.835-!!|ASTROM|
15:02:32.835-!!|ASTROM| Traceback (most recent call last):
15:02:32.836-!!|ASTROM| File "/net/GSP/nas12c/big_spirou/APERO_v07288/apero-drs/apero/core/utils/drs_startup.py", line 433, in run
15:02:32.836-!!|ASTROM| llmain = func(recipe, params)
15:02:32.836-!!|ASTROM| File "/net/GSP/nas12c/big_spirou/APERO_v07288/apero-drs/tools/bin/apero_astrometrics.py", line 195, in __main__
15:02:32.836-!!|ASTROM| drs_astrometrics.add_obj_to_sheet(params, add_objs)
15:02:32.836-!!|ASTROM| File "/net/GSP/nas12c/big_spirou/APERO_v07288/apero-drs/apero/tools/module/database/drs_astrometrics.py", line 1145, in add_obj_to_sheet
15:02:32.836-!!|ASTROM| google_sheet = gspd.spread.Spread(sheet_id)
15:02:32.837-!!|ASTROM| File "/home/external/ealecian/.conda/envs/apero-env-v07288/lib/python3.9/site-packages/gspread_pandas/spread.py", line 126, in __init__
15:02:32.837-!!|ASTROM| self.client = Client(user, config, scope, creds)
15:02:32.837-!!|ASTROM| File "/home/external/ealecian/.conda/envs/apero-env-v07288/lib/python3.9/site-packages/gspread_pandas/client.py", line 96, in __init__
15:02:32.837-!!|ASTROM| self._root = self._drive_request(file_id="root", params={"fields": "name,id"})
15:02:32.837-!!|ASTROM| File "/home/external/ealecian/.conda/envs/apero-env-v07288/lib/python3.9/site-packages/gspread_pandas/client.py", line 197, in _drive_request
15:02:32.838-!!|ASTROM| res = self.request(method, url, params=params, json=data)
15:02:32.838-!!|ASTROM| File "/home/external/ealecian/.conda/envs/apero-env-v07288/lib/python3.9/site-packages/gspread_pandas/util.py", line 292, in request
15:02:32.838-!!|ASTROM| return ClientV4.request(client, *args, **kwargs)
15:02:32.838-!!|ASTROM| AttributeError: type object 'Client' has no attribute 'request'
15:02:32.838-!!|ASTROM|
15:02:32.900-**|ASTROM| ***************************************************************************
15:02:32.908-@!|ASTROM| W[40-003-00005]: Recipe apero_astrometrics has NOT been successfully completed
15:02:32.915-**|ASTROM| ***************************************************************************
… Le 25 juin 2024 à 14:27, Neil Cook ***@***.***> a écrit :
Okay weird I'm not getting this error so either there is a problem with your server connecting to still a difference in versions
It is probably worth doing a pip freeze and then doing a diff against this list (the full list of files)
—
Reply to this email directly, view it on GitHub <#765 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJQPZTWQVTR2UAYF6WD2ZZLZJFO3NAVCNFSM6AAAAABI22O42KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBYHAYDEMBWGU>.
You are receiving this because you authored the thread.
|
Maybe, the pending list is an online google sheet so maybe there is no internet connection? The I can't reproduce this and we have installed apero on multiple machines, multiple accounts. One option to test the python/apero install would be for Andres to share his directory (make it read/writeable) and then try with that version of apero, it doesn't sound like this is the issue though and is more a problem for the cluster administrators. |
So I've been looking into this.... it may be somehow you have installed a module that has updated It seems in the newest version of Then I found this: aiguofer/gspread-pandas#101 which specifically states that gspread-pandas must be : So I think the solution is to do:
and try again. I'll add a line to the requirements to check |
Hi !
I am trying to add the two components of VV CrA that I have observed recently. The objects have been observed independently with SPIRou and I gave them the names VV CrA NE and VV CrA SW. However those names are not known into SIMBAD, and both objects are not independently known in SIMBAD. Both are linked to the same 2MASS number, because they are only separated by 1.4 arcsec.
How can add them independently with apero_astrometrics.py ?
Thanks !
Evelyne
The text was updated successfully, but these errors were encountered: