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

port CRAB code to new python 3.13 #8956

Open
belforte opened this issue Feb 27, 2025 · 4 comments
Open

port CRAB code to new python 3.13 #8956

belforte opened this issue Feb 27, 2025 · 4 comments
Assignees

Comments

@belforte
Copy link
Member

see dmwm/WMCore#12208 (comment)

@belforte
Copy link
Member Author

@aspiringmind-code @sinonkt
this is up for pick... please get a sense of what it is involved, then one of you can volunteer.
I have no idea how it may impact our build scripts e.g. How closely we need to synchronize with changes in WMCore, etc. etc.

@belforte
Copy link
Member Author

while you are at this, make sure that code in ServerUtilities which is shared with CRABClient stays compatible with python2.7 and be aware that CRABClient always runs with the python version set by the CMSSW Release specified by the user. Check with Shahzad if there are plans for upgrading python there.

Of course moving code which is not used by Client out of ServerUtilities in some proper (new) file in CRABServer/src/python/CRABUtils can only help, that ServerUtilities file is way too long now.

@belforte
Copy link
Member Author

Additional complication:

  • scripts in the schedulers use code from GH repository but run with /usr/bin/python3
  • JobWrapper (CMSRunAnalysis.py, cmscp.py) run with the python3 from /cvmfs/cms.cern.ch/COMP which is under WMCore control

So if you can have code which works with both current py3.8 and new py3.13, should be all simple, otherwise a lot of care will be needed and transition will take longer due to the need of multiple backward-compatible steps.

@belforte
Copy link
Member Author

On the good side, HTCondor V2 API's should be python-version-independent. Of course to be verified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants