[Matplotlib-users] Called with incorrect property value and Text input context does not respond to _valueForTIProperty message

Hi, I am new to matplotlib. I installed Anacronda Navigator 1.9.7 on a Mac
running Catalina 10.15.3

On a xterm, I went ipython and typed:

[python]
%matplotlib
import matplotlib.pyplot as pat
import numpy as np
fig = plt.figure()
[/python]

Whenever I click on the figure window or some other windows on my desktop, I
got the following messages.
Could you please let me know how to get rid of them? Thanks

In [32]: 2020-02-08 16:12:10.308 python[1036:20026]
imkxpc_getApplicationProperty:reply: called with incorrect property value 4,
bailing.
2020-02-08 16:12:10.308 python[1036:20026] Text input context does not
respond to _valueForTIProperty:
2020-02-08 16:12:10.309 python[1036:20026]
imkxpc_getApplicationProperty:reply: called with incorrect property value 4,
bailing.
2020-02-08 16:12:10.309 python[1036:20026] Text input context does not
respond to _valueForTIProperty:
2020-02-08 16:12:10.309 python[1036:20026]
imkxpc_getApplicationProperty:reply: called with incorrect property value 4,
bailing.
2020-02-08 16:12:10.309 python[1036:20026] Text input context does not
respond to _valueForTIProperty:
2020-02-08 16:12:10.309 python[1036:20026]
imkxpc_getApplicationProperty:reply: called with incorrect property value 4,
bailing.
2020-02-08 16:12:10.309 python[1036:20026] Text input context does not
respond to _valueForTIProperty:

···

--
Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@python.org
https://mail.python.org/mailman/listinfo/matplotlib-users

I ran Anaconda Navigator 1.9.7 under macOS 10.15.3 and I don't see the same behavior. I set up a snowflakes environment with python 3.7 as described in the Navigator getting started docs
https://docs.anaconda.com/anaconda/navigator/getting-started/
then installed matplotlib and ipython and ran the commands you listed after clicking on the arrow next to the environment name and selecting Open Terminal

python \-\-version Python 3\.7\.6 ipython3
Python 3.7.6 (default, Jan 8 2020, 13:42:34)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.12.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: %matplotlib
Using matplotlib backend: MacOSX

In [2]: import matplotlib.pyplot as plt

In [3]: import numpy

In [4]: plt.figure()
Out[4]: <Figure size 1280x960 with 0 Axes>

Clicking in the plot window or any other window does not produce the messages you are seeing.

When I created the snowflakes environment the default python version selected was 2.7. Make sure you are using python 3.6 or higher in your environment - https://matplotlib.org/users/installing.html#dependencies

Hth,
Scott

···

On Feb 8, 2020, at 4:13 PM, new_matplotlib_user <petercohen8877@gmail.com> wrote:

Hi, I am new to matplotlib. I installed Anacronda Navigator 1.9.7 on a Mac
running Catalina 10.15.3

On a xterm, I went ipython and typed:

[python]
%matplotlib
import matplotlib.pyplot as pat
import numpy as np
fig = plt.figure()
[/python]

Whenever I click on the figure window or some other windows on my desktop, I
got the following messages.
Could you please let me know how to get rid of them? Thanks

In [32]: 2020-02-08 16:12:10.308 python[1036:20026]
imkxpc_getApplicationProperty:reply: called with incorrect property value 4,
bailing.
2020-02-08 16:12:10.308 python[1036:20026] Text input context does not
respond to _valueForTIProperty:
2020-02-08 16:12:10.309 python[1036:20026]
imkxpc_getApplicationProperty:reply: called with incorrect property value 4,
bailing.
2020-02-08 16:12:10.309 python[1036:20026] Text input context does not
respond to _valueForTIProperty:
2020-02-08 16:12:10.309 python[1036:20026]
imkxpc_getApplicationProperty:reply: called with incorrect property value 4,
bailing.
2020-02-08 16:12:10.309 python[1036:20026] Text input context does not
respond to _valueForTIProperty:
2020-02-08 16:12:10.309 python[1036:20026]
imkxpc_getApplicationProperty:reply: called with incorrect property value 4,
bailing.
2020-02-08 16:12:10.309 python[1036:20026] Text input context does not
respond to _valueForTIProperty:

--
Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@python.org
Matplotlib-users Info Page

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@python.org
https://mail.python.org/mailman/listinfo/matplotlib-users

Hi Scott, I checked the python and ipython versions. They they are same as
yours.

When I typed plt.figure(), a figure window showed up in front of my xterm
window. When I moved the cursor to title of the figure window, those
messages showed up. Clicking the title of the xterm window also caused those
messages to show up.

···

--
Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@python.org
https://mail.python.org/mailman/listinfo/matplotlib-users