Skip to content
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

Numpy matrix warning in tests #342

Open
juliangilbey opened this issue Nov 30, 2021 · 2 comments
Open

Numpy matrix warning in tests #342

juliangilbey opened this issue Nov 30, 2021 · 2 comments

Comments

@juliangilbey
Copy link
Contributor

Running the tests on Python 3.10 gives the following warnings, among others:

spyder_kernels/console/kernel.py:14
  .../spyder_kernels/console/kernel.py:14: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
    from distutils.version import LooseVersion

spyder_kernels/utils/tests/test_nsview.py::test_get_numpy_type
  .../spyder_kernels/utils/tests/test_nsview.py:430: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    matrix = np.matrix([[1, 2], [3, 4]])

The other warnings relate to packages imported by spyder-kernels.

@ccordoba12
Copy link
Member

Hey @juliangilbey, thanks for reporting. We're aware of this issue but spyder-kernels still supports Python 2 and it's going to stay like that until we release Spyder 6 in six months to a year.

However, we'll take this into account when migrating our code to be Python 3 only.

@ccordoba12 ccordoba12 added this to the v3.0.0b1 milestone Nov 30, 2021
@juliangilbey
Copy link
Contributor Author

Thanks @ccordoba12! :-)

@ccordoba12 ccordoba12 changed the title distutils is deprecated, and numpy matrix warning in tests Numpy matrix warning in tests Jun 28, 2022
@ccordoba12 ccordoba12 modified the milestones: v3.0.0b1, v3.0.0b2 Jun 14, 2023
@ccordoba12 ccordoba12 modified the milestones: v3.0.0b2, v3.0.0b3 Aug 22, 2023
@ccordoba12 ccordoba12 removed this from the v3.0.0b3 milestone Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants