You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a Jupyter notebook using SageMath 10.2 or 10.4, run the following code:
#store the data
xdata = [0, 1, 2, 3, 4, 5, 6, 7, 8]
ydata = [5, 0, -11, -22, -27, -20, 5, 54, 133]
data = list(zip(xdata,ydata))
#find a best fit model to the data
var('a b c x')
model(x) = ax^2 + bx + c
best_parameters = find_fit(data, model, solution_dict=True)
Expected Behavior
No output.
Actual Behavior
The following message appears:
/ext/sage/10.4/local/var/lib/sage/venv-python3.12.4/lib/python3.12/site-packages/scikits/init.py:1: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html import("pkg_resources").declare_namespace(name)
/ext/sage/10.4/local/var/lib/sage/venv-python3.12.4/lib/python3.12/site-packages/scikits/init.py:1: DeprecationWarning: Deprecated call to pkg_resources.declare_namespace('scikits').
Implementing implicit namespace packages (as specified in PEP 420) is preferred to pkg_resources.declare_namespace. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages import("pkg_resources").declare_namespace(name)
Additional Information
The deprecation warning does not appear in SageMath 10.0, 10.1, and in some 9.x version I had used previously. The warning does appear in SageMath 10.2 and 10.4. The find_fit function does appear to work properly in SageMath 10.4 despite the warning.
Environment
OS: Windows in Firefox browswer
Sage Version: various; see above
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
The text was updated successfully, but these errors were encountered:
Steps To Reproduce
In a Jupyter notebook using SageMath 10.2 or 10.4, run the following code:
#store the data
xdata = [0, 1, 2, 3, 4, 5, 6, 7, 8]
ydata = [5, 0, -11, -22, -27, -20, 5, 54, 133]
data = list(zip(xdata,ydata))
#find a best fit model to the data
var('a b c x')
model(x) = ax^2 + bx + c
best_parameters = find_fit(data, model, solution_dict=True)
Expected Behavior
No output.
Actual Behavior
The following message appears:
/ext/sage/10.4/local/var/lib/sage/venv-python3.12.4/lib/python3.12/site-packages/scikits/init.py:1: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import("pkg_resources").declare_namespace(name)
/ext/sage/10.4/local/var/lib/sage/venv-python3.12.4/lib/python3.12/site-packages/scikits/init.py:1: DeprecationWarning: Deprecated call to
pkg_resources.declare_namespace('scikits')
.Implementing implicit namespace packages (as specified in PEP 420) is preferred to
pkg_resources.declare_namespace
. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packagesimport("pkg_resources").declare_namespace(name)
Additional Information
The deprecation warning does not appear in SageMath 10.0, 10.1, and in some 9.x version I had used previously. The warning does appear in SageMath 10.2 and 10.4. The find_fit function does appear to work properly in SageMath 10.4 despite the warning.
Environment
Checklist
The text was updated successfully, but these errors were encountered: