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

upgrade Python version at least > 3.9, hopefully 3.12 #14

Closed
volodymyrss opened this issue Aug 21, 2024 · 17 comments · Fixed by #16
Closed

upgrade Python version at least > 3.9, hopefully 3.12 #14

volodymyrss opened this issue Aug 21, 2024 · 17 comments · Fixed by #16
Assignees

Comments

@volodymyrss
Copy link
Member

following oda-hub/oda_api#279 (review)

@volodymyrss
Copy link
Member Author

I propose that @burnout87 does it to better keep track of the code dependencies.

@burnout87
Copy link
Contributor

I guess you mean restrict to use python versions to only 3.10 and 3.11...?

@volodymyrss
Copy link
Member Author

It's fixed container environment and it has a single version, currently 3.8.

Since we are dropping support of 3.8, we should increase the version in the container to the largest version we can support. If 3.12 works it's even better. Probably 3.12.

Doing this might lead to dependency issues which need to be reconciled.

@burnout87 burnout87 linked a pull request Aug 21, 2024 that will close this issue
@burnout87 burnout87 changed the title upgrade to 3.8 upgrade Pyton version Aug 21, 2024
@volodymyrss volodymyrss reopened this Aug 22, 2024
@volodymyrss
Copy link
Member Author

But this means rebuilding osa+heasoft with new python which might not work easily.

We only need them for xspec functionality I guess.

Would you try building new OSA+Heasoft by upgrading https://github.com/ISDC-integral/osa-python-docker/? It's useful anyway.

If it does not work so easily, we can replace or drop the xspec functionality.

@burnout87
Copy link
Contributor

Would you try building new OSA+Heasoft by upgrading https://github.com/ISDC-integral/osa-python-docker/? It's useful anyway.

I need permission on that repo to make a PR

@volodymyrss
Copy link
Member Author

Would you try building new OSA+Heasoft by upgrading https://github.com/ISDC-integral/osa-python-docker/? It's useful anyway.

I need permission on that repo to make a PR

Did you make a fork?

@burnout87
Copy link
Contributor

Would you try building new OSA+Heasoft by upgrading https://github.com/ISDC-integral/osa-python-docker/? It's useful anyway.

I need permission on that repo to make a PR

Did you make a fork?

no I just cloned it, I'll make a fork...

@volodymyrss
Copy link
Member Author

Would you try building new OSA+Heasoft by upgrading https://github.com/ISDC-integral/osa-python-docker/? It's useful anyway.

I need permission on that repo to make a PR

Did you make a fork?

no I just cloned it, I'll make a fork...

Ok! Actually looks like the latest version is built by Carlo and it's with 3.10. We should check it.

@burnout87 burnout87 removed a link to a pull request Aug 23, 2024
@burnout87 burnout87 linked a pull request Aug 23, 2024 that will close this issue
@burnout87
Copy link
Contributor

@volodymyrss
Copy link
Member Author

it fails for xspec

https://github.com/oda-hub/dispatcher-container/actions/runs/10521973707/job/29153665851?pr=16

I think the container should support xspec. If not, please make an issue on osa-python-docker and assign to @ferrigno .

@volodymyrss volodymyrss changed the title upgrade Pyton version upgrade Python version at least > 3.9, hopefully 3.12 Aug 23, 2024
@burnout87
Copy link
Contributor

and it builds without xpec

@volodymyrss
Copy link
Member Author

and it builds without xpec

What do you mean?

@burnout87
Copy link
Contributor

burnout87 commented Aug 23, 2024

By commenting the lines:

RUN source /init.sh && \
python -c 'import xspec; print(xspec)'

it was successfully building

@burnout87
Copy link
Contributor

burnout87 commented Aug 23, 2024

To be more precise:

With the following version of the container: integralsw/osa-python:11.2-2-g667521a3-20220403-190332-refcat-43.0-heasoft-6.33-python-3.10.11

It does not build

With this one: integralsw/osa-python:11.2-2-g667521a3-20220403-190332-refcat-43.0-heasoft-6.32.1-python-3.10.11

it does build

It looks like the difference between is the heasoft version, is there something else?

@ferrigno
Copy link

ferrigno commented Aug 23, 2024 via email

@volodymyrss
Copy link
Member Author

We don't really care about the effect of the heasoft version increase here. Better to keep the old one, if anything.
So if it builds one, let's keep it!

@burnout87
Copy link
Contributor

I think the container should support xspec. If not, please make an issue on osa-python-docker and assign to @ferrigno .

ISDC-integral/osa-python-docker#4 (comment)

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

Successfully merging a pull request may close this issue.

3 participants