question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Get long message in Spyder when I use SymPy consoles

See original GitHub issue

Description

What steps will reproduce the problem?

Hello! I used SymPy 1.0 in the Spyder Console and now on every input I get this long message: Output from spyder call ‘get_namespace_view’: C:\Users\rwden\AppData\Local\Programs\Spyder\pkgs\sympy\deprecated\class_registry.py:38: SymPyDeprecationWarning:

C, including its class ClassRegistry, has been deprecated since SymPy 1.0. It will be last supported in SymPy version 1.0. Use direct imports from the defining module instead. See https://github.com/sympy/sympy/issues/9371 for more info.

deprecated_since_version=‘1.0’).warn(stacklevel=2)

How can I prevent this message from appearing every time I do an input? Thank you. I am new to Spyder and it is great!

Versions

  • Spyder version: 4.2.3
  • Python version: 3.7.9
  • Qt version: 5.12.10
  • PyQt5 version: 5.12.3
  • Operating System: Windows 10

Dependencies


# Mandatory:
atomicwrites >=1.2.0            :  1.4.0 (OK)
chardet >=2.0.0                 :  4.0.0 (OK)
cloudpickle >=0.5.0             :  1.6.0 (OK)
diff_match_patch >=20181111     :  20200713 (OK)
intervaltree                    :  None (OK)
IPython >=7.6.0                 :  7.21.0 (OK)
jedi =0.17.2                    :  0.17.2 (OK)
jsonschema >=3.2.0              :  3.2.0 (OK)
keyring >=17.0.0                :  22.3.0 (OK)
nbconvert >=4.0                 :  6.0.7 (OK)
numpydoc >=0.6.0                :  1.1.0 (OK)
paramiko >=2.4.0                :  2.7.2 (OK)
parso =0.7.0                    :  0.7.0 (OK)
pexpect >=4.4.0                 :  4.8.0 (OK)
pickleshare >=0.4               :  0.7.5 (OK)
psutil >=5.3                    :  5.8.0 (OK)
pygments >=2.0                  :  2.8.0 (OK)
pylint >=1.0                    :  2.7.2 (OK)
pyls >=0.36.2;<1.0.0            :  0.36.2 (OK)
pyls_black >=0.4.6              :  0.4.6 (OK)
pyls_spyder >=0.3.2             :  0.3.2 (OK)
qdarkstyle >=2.8                :  2.8.1 (OK)
qtawesome >=0.5.7               :  1.0.2 (OK)
qtconsole >=5.0.1               :  5.0.2 (OK)
qtpy >=1.5.0                    :  1.9.0 (OK)
rtree >=0.8.3                   :  0.9.4 (OK)
setuptools >=39.0.0             :  54.0.0 (OK)
sphinx >=0.6.6                  :  3.5.1 (OK)
spyder_kernels >=1.10.2;<1.11.0 :  1.10.2 (OK)
textdistance >=4.2.0            :  4.2.1 (OK)
three_merge >=0.1.1             :  0.1.1 (OK)
watchdog                        :  1.0.2 (OK)
zmq >=17                        :  22.0.3 (OK)

# Optional:
cython >=0.21                   :  0.29.22 (OK)
matplotlib >=2.0.0              :  3.3.4 (OK)
numpy >=1.7                     :  1.19.3 (OK)
pandas >=1.1.1                  :  1.2.3 (OK)
scipy >=0.17.0                  :  1.6.1 (OK)
sympy >=0.7.3                   :  1.7.1 (OK)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
oscarbenjamincommented, Aug 10, 2021

I haven’t personally noticed this issue (I don’t use Spyder) but as a maintainer of SymPy I can tell you that this warning will not be seen any more. The ClassRegistry and all associated code including the code that emits the DeprecationWarning in the OP was fully removed from the SymPy codebase in https://github.com/sympy/sympy/pull/20896

1reaction
oscarbenjamincommented, Jul 31, 2021

This is fixed in SymPy 1.8 which has been released some time ago. If you update to the latest SymPy with

pip install -U sympy

then you will not see this warning any more.

I’m not sure though given an issue like this what the best way is to deprecate something without warnings showing up from introspective tooling like in ipython.

Read more comments on GitHub >

github_iconTop Results From Across the Web

IPython Console — Spyder 5 documentation
The IPython Console allows you to execute commands and interact with data inside IPython interpreters. ... To launch a new IPython instance, go...
Read more >
Spyder is showing garbage on console when trying to "print ...
I use Sympy for some calculations and during debugging or after the script has run in want to inspect some variables. The IDE...
Read more >
Integrals - SymPy 1.11 documentation
SymPy uses various approaches to definite integration. One method is to find an antiderivative for the integrand, and then use the fundamental ...
Read more >
Installation of Python, Spyder, Numpy, Sympy, Scipy, Pytest ...
This is the most recent version of the installation instructions. (Older versions from 2014/2013, where we have used Python 2 (!) are ...
Read more >
Problem installing SymPy on Windows 10 system
I am having difficulty installing SymPy. I keep getting the following error message after I type “using SymPy” into the REPL: julia> using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found