We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There are several issues in DIRAC/Resources/Computing/PilotBundle.py to run on python3 environment.
At first,
compressedAndEncodedProxy = base64.b64encode(bz2.compress(proxy.dumpAllToString()["Value"])).decode()
needs to be something like
compressedAndEncodedProxy = base64.b64encode(bz2.compress(proxy.dumpAllToString()["Value"].encode())).decode()
This code runs on only python3, however the pilot wrapper generated by the module may run on both python2 and python3.
open('proxy', "w").write(bz2.decompress(base64.b64decode("{compressedAndEncodedProxy}"))) open('{executable}', "w").write(bz2.decompress(base64.b64decode("{compressedAndEncodedExecutable}")))
needs to switch to 'wb' under python3 environment
except Exception as x: print >> sys.stderr, x sys.exit(-1) cmd = "./{executable}" print 'Executing: ', cmd
print above should be rewritten for both python2 and python3.
The text was updated successfully, but these errors were encountered:
fstagni
No branches or pull requests
There are several issues in DIRAC/Resources/Computing/PilotBundle.py to run on python3 environment.
At first,
needs to be something like
This code runs on only python3, however the pilot wrapper generated by the module may run on both python2 and python3.
needs to switch to 'wb' under python3 environment
print above should be rewritten for both python2 and python3.
The text was updated successfully, but these errors were encountered: