bugGNU Octave - Bugs: bug #65900, [octave forge] (symbolic) Failing...

 
 

bug #65900: [octave forge] (symbolic) Failing unit test in @sym/bernoulli.m

Submitter:  Rafael Laboissière <rlaboiss>
Submitted:  Thu 20 Jun 2024 08:57:47 AM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * other Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 20 Jun 2024 01:30:07 PM UTC, comment #1: 

Adding package maintainer to CC list.

Markus Mützel <mmuetzel>
Group administrator
Thu 20 Jun 2024 08:57:47 AM UTC, original submission:  

With Octave 9.2.0, symbolic 3.2.1, Python 3.11.9, and SymPy 1.12.1, one of the unit tests in vpa.m fails:


***** test
 % we use B_1 = 1/2
 if (pycall_sympy__ ('return Version(spver) >= Version("1.12.dev")'))
   assert (isequal (bernoulli (sym(1)), sym(1)/2))
 end
!!!!! test failed
Python exception: TypeError: '>=' not supported between instances of 'int' and 'str'
    occurred at line 1 of the Python code block:
    return Version(spver) >= Version("1.12.dev")


In my Debian system, with package python3-packaging installed, the problem disappears.

This may be caused by this piece of code in inst/private/python_header.py:


    try:
        from packaging.version import Version
    except ImportError:
        try:
            # available on SymPy >= 1.9
            from sympy.external.importtools import version_tuple as Version
        except ImportError:
            # will fail on Python 3.12: drop this soon in favour of above
            from distutils.version import LooseVersion
            def Version(v):
                return LooseVersion(v.replace('.dev', ''))


Rafael Laboissière <rlaboiss>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by mmuetzel
  • -email is unavailable- added by rlaboiss (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-06-20 mmuetzel Carbon-Copy- Added cbm

    Back to the top

    Powered by Savane 3.14-8eb0.
    Corresponding source code