Issue Number | 4570 |
---|---|
Summary | Fix Module cdr.py to be Python 3 compatible |
Created | 2019-02-04 11:25:59 |
Issue Type | Bug |
Submitted By | Englisch, Volker (NIH/NCI) [C] |
Assigned To | Kline, Bob (NIH/NCI) [C] |
Status | Closed |
Resolved | 2019-08-01 07:35:22 |
Resolution | Fixed |
Path | /home/bkline/backups/jira/ocecdr/issue.239588 |
When running a job from ones workstation (a.k.a. DEV-VM) the username authentication produces an error when running Python 3.
Error message when running the following command:
:\cygwin64\home\volker\CDR\git\cdr-server\Filters>python ..\..\cdr-tools\DevTools\Utilities\UpdateFilter.py --user volker --comment "Restore Filter Test" --tier DEV CDR0000315893.xml C
Error message:
Traceback (most recent call last):
File "..\..\cdr-tools\DevTools\Utilities\UpdateFilter.py", line 161, in <module>
main()
File "..\..\cdr-tools\DevTools\Utilities\UpdateFilter.py", line 112, in main
= cdr.checkErr(session)
error_message File "C:\cdr\lib\Python\cdr.py", line 4888, in checkErr
= getErrors(resp, **opts)
errors File "C:\cdr\lib\Python\cdr.py", line 4967, in getErrors
= Error.getPattern().findall(xmlFragment)
errors : cannot use a string pattern on a bytes-like object TypeError
Running the command with a session ID instead of a username is working properly.
Fixed as part of work on Joule.
Elapsed: 0:00:00.000502