Skip to content

src/sage/features/fricas.py needs to check for FriCAS version #39784

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks done
dimpase opened this issue Mar 24, 2025 · 3 comments
Open
2 tasks done

src/sage/features/fricas.py needs to check for FriCAS version #39784

dimpase opened this issue Mar 24, 2025 · 3 comments
Labels

Comments

@dimpase
Copy link
Member

dimpase commented Mar 24, 2025

Steps To Reproduce

  1. in Ubuntu 22.04 install FriCAS package (it is version 1.3.7, too old)
  2. test Sage (without Sage's FriCAS installed)
  3. get lots of errors

Expected Behavior

old FriCAS should be rejected

Actual Behavior

it's not

Additional Information

Fricas's version may be obtained by running fricas --version

Reported on #39740

Environment

  • OS: Ubuntu 22.04
  • Sage Version: 10.6.rc0

Checklist

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.
  • I have read the documentation and troubleshoot guide
@dimpase dimpase added the t: bug label Mar 24, 2025
@devansh-srv
Copy link
Contributor

devansh-srv commented Mar 26, 2025

Hey @dimpase , what is the minimum supported version that can be used
is it 1.3.8?
The given url https://fricas.github.io refers to version 1.3.11

@dimpase
Copy link
Member Author

dimpase commented Mar 26, 2025

probably 1.3.8 still works with Sage, at least according to build/pkgs/fricas/spkg-configure.m4

@devansh-srv
Copy link
Contributor

Hey @dimpase I have submitted a PR regarding this issue
Please take a look if possible

vbraun pushed a commit to vbraun/sage that referenced this issue Apr 5, 2025
sagemathgh-39796: fix: added check for FriCAS version
    
This pull request includes several updates to the `FriCAS` class in the
`src/sage/features/fricas.py` file. The changes introduce a minimum
version requirement, add a method to retrieve the installed FriCAS
version, and enhance the `is_functional` method to check the
version.This is an attempt to fix the issue
[39784](sagemath#39784)

Enhancements to version handling and functionality checks:

* [`src/sage/features/fricas.py`](diffhunk://#diff-
a2c0d819d857ba2338e0d58e1a4875c88b600b174c8fb4371183ecc3f0e5b72eR29-
R30): Added a `MINIMUM_VERSION` attribute to specify the minimum
required version of FriCAS.
* [`src/sage/features/fricas.py`](diffhunk://#diff-
a2c0d819d857ba2338e0d58e1a4875c88b600b174c8fb4371183ecc3f0e5b72eR43-
R54): Introduced a `get_version` method to retrieve the installed FriCAS
version.
* [`src/sage/features/fricas.py`](diffhunk://#diff-
a2c0d819d857ba2338e0d58e1a4875c88b600b174c8fb4371183ecc3f0e5b72eL61-
R85): Updated the `is_functional` method to call `get_version` and check
if the installed version meets the minimum requirement. If the version
is not retrievable or is too old, appropriate error messages are
returned.
<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixes sagemath#12345". -->



### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [x] I have created tests covering the changes.
- [x] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#39796
Reported by: Devansh Srivastava
Reviewer(s): Dima Pasechnik
vbraun pushed a commit to vbraun/sage that referenced this issue Apr 10, 2025
sagemathgh-39796: fix: added check for FriCAS version
    
This pull request includes several updates to the `FriCAS` class in the
`src/sage/features/fricas.py` file. The changes introduce a minimum
version requirement, add a method to retrieve the installed FriCAS
version, and enhance the `is_functional` method to check the
version.This is an attempt to fix the issue
[39784](sagemath#39784)

Enhancements to version handling and functionality checks:

* [`src/sage/features/fricas.py`](diffhunk://#diff-
a2c0d819d857ba2338e0d58e1a4875c88b600b174c8fb4371183ecc3f0e5b72eR29-
R30): Added a `MINIMUM_VERSION` attribute to specify the minimum
required version of FriCAS.
* [`src/sage/features/fricas.py`](diffhunk://#diff-
a2c0d819d857ba2338e0d58e1a4875c88b600b174c8fb4371183ecc3f0e5b72eR43-
R54): Introduced a `get_version` method to retrieve the installed FriCAS
version.
* [`src/sage/features/fricas.py`](diffhunk://#diff-
a2c0d819d857ba2338e0d58e1a4875c88b600b174c8fb4371183ecc3f0e5b72eL61-
R85): Updated the `is_functional` method to call `get_version` and check
if the installed version meets the minimum requirement. If the version
is not retrievable or is too old, appropriate error messages are
returned.
<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixes sagemath#12345". -->



### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [x] I have created tests covering the changes.
- [x] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#39796
Reported by: Devansh Srivastava
Reviewer(s): Dima Pasechnik
vbraun pushed a commit to vbraun/sage that referenced this issue Apr 13, 2025
sagemathgh-39796: fix: added check for FriCAS version
    
This pull request includes several updates to the `FriCAS` class in the
`src/sage/features/fricas.py` file. The changes introduce a minimum
version requirement, add a method to retrieve the installed FriCAS
version, and enhance the `is_functional` method to check the
version.This is an attempt to fix the issue
[39784](sagemath#39784)

Enhancements to version handling and functionality checks:

* [`src/sage/features/fricas.py`](diffhunk://#diff-
a2c0d819d857ba2338e0d58e1a4875c88b600b174c8fb4371183ecc3f0e5b72eR29-
R30): Added a `MINIMUM_VERSION` attribute to specify the minimum
required version of FriCAS.
* [`src/sage/features/fricas.py`](diffhunk://#diff-
a2c0d819d857ba2338e0d58e1a4875c88b600b174c8fb4371183ecc3f0e5b72eR43-
R54): Introduced a `get_version` method to retrieve the installed FriCAS
version.
* [`src/sage/features/fricas.py`](diffhunk://#diff-
a2c0d819d857ba2338e0d58e1a4875c88b600b174c8fb4371183ecc3f0e5b72eL61-
R85): Updated the `is_functional` method to call `get_version` and check
if the installed version meets the minimum requirement. If the version
is not retrievable or is too old, appropriate error messages are
returned.
<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixes sagemath#12345". -->



### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [x] I have created tests covering the changes.
- [x] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#39796
Reported by: Devansh Srivastava
Reviewer(s): Dima Pasechnik
vbraun pushed a commit to vbraun/sage that referenced this issue Apr 18, 2025
sagemathgh-39796: fix: added check for FriCAS version
    
This pull request includes several updates to the `FriCAS` class in the
`src/sage/features/fricas.py` file. The changes introduce a minimum
version requirement, add a method to retrieve the installed FriCAS
version, and enhance the `is_functional` method to check the
version.This is an attempt to fix the issue
[39784](sagemath#39784)

Enhancements to version handling and functionality checks:

* [`src/sage/features/fricas.py`](diffhunk://#diff-
a2c0d819d857ba2338e0d58e1a4875c88b600b174c8fb4371183ecc3f0e5b72eR29-
R30): Added a `MINIMUM_VERSION` attribute to specify the minimum
required version of FriCAS.
* [`src/sage/features/fricas.py`](diffhunk://#diff-
a2c0d819d857ba2338e0d58e1a4875c88b600b174c8fb4371183ecc3f0e5b72eR43-
R54): Introduced a `get_version` method to retrieve the installed FriCAS
version.
* [`src/sage/features/fricas.py`](diffhunk://#diff-
a2c0d819d857ba2338e0d58e1a4875c88b600b174c8fb4371183ecc3f0e5b72eL61-
R85): Updated the `is_functional` method to call `get_version` and check
if the installed version meets the minimum requirement. If the version
is not retrievable or is too old, appropriate error messages are
returned.
<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixes sagemath#12345". -->



### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [x] I have created tests covering the changes.
- [x] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#39796
Reported by: Devansh Srivastava
Reviewer(s): Dima Pasechnik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants