Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pydevd_resolver.py:138: SyntaxWarning: "is not" with a literal. Did you mean "!="? if found.get(name) is not 1:

Tags:

pycharm

new to python and using Pycharm 2019.1.3 professional and Python 3.8.0 get the following error when I open Python Console does anyone know how to fix this?

C:\Program Files\JetBrains\PyCharm 2019.1.3\helpers\pydev\pydevconsole.py" --mode=client --port=55208
C:\Program Files\JetBrains\PyCharm 2019.1.3\helpers\pydev\_pydevd_bundle\pydevd_resolver.py:138: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if found.get(name) is not 1:
like image 809
user2761895 Avatar asked Jul 28 '20 14:07

user2761895


1 Answers

What you posted is a new warning implemented in Python 3.8. Read this article for more details. The warning itself is not why Python Console doesn't work.

The reason is at the bottom: TypeError: an integer is required (got type bytes).

I think your version of PyCharm may simply not support Python 3.8. According to this you need at least version 2019.3.

like image 71
Konrad Botor Avatar answered Oct 21 '22 21:10

Konrad Botor