Details
-
Type:
Bug
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: pex_config
-
Labels:None
-
Story Points:0.2
-
Epic Link:
-
Team:Architecture
Description
lsst.pex.config.ChoiceField fails in Python 2 with:
ValueError: ChoiceField's allowed choice variance is of incorrect type str. Expected future.types.newstr.newstr
|
if created using normal strings for the choices or default. I saw this in noiseReplacer.py when converting meas_base to be Python 3 compatible.
Attachments
Issue Links
- blocks
-
DM-7262 Port meas_base to Python 3
- Done
Russell Owen I've done a quick fix for the problem. It won't fix all possible combinations of unicode, string literals and future str but let me know if it fixes your particular problem.