Closed lee212 closed 4 years ago
Comparing different types in python2 does not raise errors, for instance:
(py2)
>>> 3.2 > "10.0"
False
however, py3 removed this and raise like:
TypeError: '>' not supported between instances of 'float' and 'str'
Hi @lee212 ,
Many thanks for trying to fix this issue! I think the original problem is that Py3-related changes to the json parsing of our config files changed some type conversion. This actually should be fixed already via this PR: https://github.com/radical-cybertools/radical.utils/pull/187 which addressed the same problem raised in https://github.com/radical-cybertools/radical.saga/issues/739 . Can you give current RU devel
a try, to see if the problem persists?
I still see the error while I am using devel
branch (if I remove the type casting ec05341c1e29eef57a7f6b38d0d2f6574f693630). I also wanted to point out that this problem exists in py2, but the if
condition returns 'False' all the time and no error raised.
python : 3.6.8
pythonpath :
virtualenv : /home/hrlee/venv3/entk.copy
radical.pilot : 0.90.1-v0.90.1-47-g8eb152c@devel
radical.saga : 0.90.0-bv0.72.0-43-gad06a08@devel
radical.utils : 0.90.3
I think that it is resolved in the devel branch of radical.utils
.
@iparask , Indeed, it is. Since I already made a commit to attempt fixing this, I will reverse the type casting. Thanks both!
Found this error during py3 test. :
This is submitting rp.pilot to stampede2 with the stack: