Skip to content
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

ddcal worker fails with " ImportError: cannot import name 'write_ds9' from 'regions' " #1581

Open
a-benati opened this issue May 7, 2024 · 5 comments

Comments

@a-benati
Copy link

a-benati commented May 7, 2024

Hello,

the ddcal worker fails when importing write_ds9 from regions. I checked the code and it says that the relative line should be rewritten since write_ds9 does not exist anymore (line 273 of ddcal_worker.py). Has anyone solved this already?

Thanks,
Alessandro Benati

@Athanaseus
Copy link
Collaborator

Hi @a-benati,

Thanks for opening the issue.
Currently, this is resolved by pinning the version of regions==0.7.
It should be the case if you are running with the latest caracal release version or even master installed using the poetry.lock file.
Please confirm the version of caracal and the installation steps used.

Best regards

@a-benati
Copy link
Author

a-benati commented May 7, 2024

Hi @Athanaseus,

thanks for your answer. I am working with caracal version 1.1.3 and I have installed it through singularity. The output of the command pip freeze | grep regions is: regions==0.7, which I think means that I already have that version of regions.

@Athanaseus
Copy link
Collaborator

Athanaseus commented May 7, 2024

Yes, that's right. Sorry, this was meant to be regions==0.5.
Try the above. In the meantime, I'll push a fix with the latest regions, and you can help test it also.

@Athanaseus
Copy link
Collaborator

@a-benati please checkout update_regions branch or pip install git+https://github.com/caracal-pipeline/caracal.git@update_regions

@a-benati
Copy link
Author

a-benati commented May 8, 2024

@Athanaseus thank you very much for your help. I managed to solve the issue by pinning the version of regions==0.5. As long as my current run finishes, I will also test the new version of the code.

@a-benati a-benati changed the title decal worker fails with " ImportError: cannot import name 'write_ds9' from 'regions' " ddcal worker fails with " ImportError: cannot import name 'write_ds9' from 'regions' " May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants