Public bug reported:

From [1]:


276s self = <crmsh.minieval.SimpleEval object at 0x73012048be00>
276s names = {'False': False, 'True': True, 'action': None, 'dry_run': 'no', 
...}
276s 
276s     def __init__(self, names):
276s         """
276s             Create the evaluator instance.  Set up valid operators (+,-, 
etc)
276s             functions (add, random, get_val, whatever) and names. """
276s     
276s         operators = DEFAULT_OPERATORS
276s         names = names.copy()
276s         names.update(DEFAULT_NAMES)
276s     
276s         self.operators = operators
276s         self.names = names
276s     
276s         self.nodes = {
276s >           ast.Num: self._eval_num,
276s             ^^^^^^^
276s             ast.Str: self._eval_str,
276s             ast.Name: self._eval_name,
276s             ast.UnaryOp: self._eval_unaryop,
276s             ast.BinOp: self._eval_binop,
276s             ast.BoolOp: self._eval_boolop,
276s             ast.Compare: self._eval_compare,
276s             ast.IfExp: self._eval_ifexp,
276s             ast.keyword: self._eval_keyword,
276s             ast.Subscript: self._eval_subscript,
276s             ast.Attribute: self._eval_attribute,
276s             ast.Index: self._eval_index,
276s             ast.Slice: self._eval_slice,
276s         }
276s E       AttributeError: module 'ast' has no attribute 'Num'
276s 
276s /usr/lib/python3/dist-packages/crmsh/minieval.py:186: AttributeError


ast.Num was dropped in 3.14[2].


1. 
https://objectstorage.prodstack5.canonical.com/swift/v1/AUTH_0f9aae918d5b4744bf7b827671c86842/autopkgtest-resolute/resolute/amd64/c/crmsh/20260124_085608_314c4@/log.gz
2. https://docs.python.org/3/whatsnew/3.14.html#id9

** Affects: crmsh (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: update-excuse

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2139102

Title:
  autopkgtest failure: python 3.14 dropped ast.Num

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/crmsh/+bug/2139102/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to