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

DepreciationWarning: 'input_splitter' is deprecated since IPython 7.0 prefer 'input_transformer_manager' #642

Open
Durksz opened this issue Mar 11, 2019 · 9 comments

Comments

@Durksz
Copy link

Durksz commented Mar 11, 2019

I installed Pythonocc 0.18.2 on my windows 7 64bit machine.

When i try to run the following code:
from OCC.wxDisplay import wxViewer3D

I get the following warning:
C:\ProgramData\Miniconda3\lib\site-packages\ipykernel\ipkernel.py:448: DeprecationWarning: input_splitter is deprecated since IPython 7.0, prefer input_transformer_manager.
status, indent_spaces = self.shell.input_splitter.check_complete(code)

@Durksz Durksz changed the title DepreciationWarning: 'input_splitter' is deprecieated since IPython 7.0 prefer 'input_transformer_manager' DepreciationWarning: 'input_splitter' is deprecated since IPython 7.0 prefer 'input_transformer_manager' Mar 11, 2019
@jf---
Copy link
Contributor

jf--- commented Mar 11, 2019

The message is pretty clear: ipykernel ( != pythonocc ) has a deprecation

from OCC.wxDisplay import wxViewer3D

Yep, it would be particular to have ipykernel msg's when importing the wx backend.
So this is coming from somewhere else in your program p'bably

@Durksz
Copy link
Author

Durksz commented Mar 13, 2019

Hmm, Your right. Sorry my fault.

@tpaviot
Copy link
Owner

tpaviot commented Mar 17, 2019

Something that certainly comes from wxPython itself, or ipython, or both. According to spyder-ide/spyder#8103, you should try to downgrade to ipython6. @Durksz Can you please report any success/failure so that we can safely close this issue.

@Durksz
Copy link
Author

Durksz commented Mar 18, 2019

I've downgraded PythonOCC to 0.18.1 and the error still occurs, definately not an PythonOCC problem. Have not found the specific package (and its version) yet that causes the problem.

@Durksz
Copy link
Author

Durksz commented Mar 18, 2019

After upgrading all the packages using "conda update --all" (causing PythonOCC to downgrade to 0.17.3, so I followed by the command "conda install PythonOCC-Core==0.18.2") the problem does not occur anymore.

@tpaviot
Copy link
Owner

tpaviot commented Mar 18, 2019

ok @Durksz I suggest you close this issue

@Durksz Durksz changed the title DepreciationWarning: 'input_splitter' is deprecated since IPython 7.0 prefer 'input_transformer_manager' Closed: DepreciationWarning: 'input_splitter' is deprecated since IPython 7.0 prefer 'input_transformer_manager' Mar 18, 2019
@Durksz Durksz changed the title Closed: DepreciationWarning: 'input_splitter' is deprecated since IPython 7.0 prefer 'input_transformer_manager' Closed #DepreciationWarning: 'input_splitter' is deprecated since IPython 7.0 prefer 'input_transformer_manager' Mar 18, 2019
@Durksz Durksz changed the title Closed #DepreciationWarning: 'input_splitter' is deprecated since IPython 7.0 prefer 'input_transformer_manager' DepreciationWarning: 'input_splitter' is deprecated since IPython 7.0 prefer 'input_transformer_manager' Mar 18, 2019
@Durksz
Copy link
Author

Durksz commented Mar 18, 2019

Closed #642

@PCdurham
Copy link

I updated conda yesterday and with Spyder 3.3.6 this issue still occurs. It's quite serious since the iPython console is rendered useless.

@ReedEspinosa
Copy link

In my case, calling warnings.simplefilter('always') is what causes the warning to start appearing. Note that this line can be found multiple times in OCC.

To reproduce the following example, each input must be copy/pasted into the console and executed one at a time:

In [1]: import warnings

In [2]: 2+2 # no warning message
Out[2]: 4

In [3]: warnings.simplefilter('always')

In [4]: 2+2 # displays warning message
/Users/wrespino/anaconda3/lib/python3.6/site-packages/ipykernel/ipkernel.py:454: DeprecationWarning: `input_splitter` is deprecated since IPython 7.0, prefer `input_transformer_manager`.
  status, indent_spaces = self.shell.input_splitter.check_complete(code)
Out[4]: 4

In [5]: warnings.filters.pop(0) # remove ('always', None, Warning, None, 0) from start of warnings.filters
/Users/wrespino/anaconda3/lib/python3.6/site-packages/ipykernel/ipkernel.py:454: DeprecationWarning: `input_splitter` is deprecated since IPython 7.0, prefer `input_transformer_manager`.
  status, indent_spaces = self.shell.input_splitter.check_complete(code)
Out[5]: ('always', None, Warning, None, 0)

In [6]: 2+2 # no warning message
Out[6]: 4

My setup:
Spyder 4.1.0 | IPython 7.13.0 | Python 3.6.8 64-bit | Qt 5.9.6 | PyQt5 5.9.2 | Darwin 18.7.0

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

5 participants