Home > other >  Learning python console error I rookie, please advice, below is the error message code
Learning python console error I rookie, please advice, below is the error message code

Time:09-30

C: \ Users \ Think \ AppData \ Local \ designed \ Python \ Python38-32 \ Python exe "C: \ Program Files \ JetBrains \ PyCharm Community Edition 2018.3.5 \ helpers \ pydev \ pydevconsole py" - mode=client - port=58748
Traceback (the most recent call last) :
The File "C: \ Program Files \ JetBrains \ PyCharm Community Edition 2018.3.5 \ helpers \ pydev \ pydevconsole py", line 33, in & lt; module>
The from _pydev_bundle. Pydev_console_utils import BaseInterpreterInterface
The File "C: \ Program Files \ JetBrains \ PyCharm Community Edition 2018.3.5 \ helpers \ pydev \ _pydev_bundle \ pydev_console_utils py", line 11, the in & lt; module>
The from _pydevd_bundle import pydevd_thrift
The File "C: \ Program Files \ JetBrains \ PyCharm Community Edition 2018.3.5 \ helpers \ pydev \ _pydevd_bundle \ pydevd_thrift py", line 17, in & lt; module>
The from pydev_console. Protocol import DebugValue GetArrayResponse, ArrayData, ArrayHeaders, ColHeader, RowHeader, \
The File "C: \ Program Files \ JetBrains \ PyCharm Community Edition 2018.3.5 \ helpers \ pydev \ pydev_console \ protocol py", line 6, the in & lt; module>
_console_thrift=_shaded_thriftpy. Load (OS) path) join (OS) path) dirname (OS) path) realpath (__file__), "the console. Thrift"),
The File "C: \ Program Files \ JetBrains \ PyCharm Community Edition 2018.3.5 \ helpers \ third_party \ thriftpy \ _shaded_thriftpy \ parser \ set py", line 29, in the load
Thrift=parse (path, module_name, include_dirs=include_dirs,
The File "C: \ Program Files \ JetBrains \ PyCharm Community Edition 2018.3.5 \ helpers \ third_party \ thriftpy \ _shaded_thriftpy \ parser \ parser py", line 502, in the parse
Parser. Parse (data)
The File "C: \ Program Files \ JetBrains \ PyCharm Community Edition 2018.3.5 \ helpers \ third_party \ thriftpy \ _shaded_ply \ yacc py", line 331, in the parse
Return the self. Parseopt_notrack (input, the lexer, debug, tracking, tokenfunc)
The File "C: \ Program Files \ JetBrains \ PyCharm Community Edition 2018.3.5 \ helpers \ third_party \ thriftpy \ _shaded_ply \ yacc py", line 1106, in parseopt_notrack
P.c allable (pslice)
The File "C: \ Program Files \ JetBrains \ PyCharm Community Edition 2018.3.5 \ helpers \ third_party \ thriftpy \ _shaded_thriftpy \ parser \ parser py", line 212, in p_struct
Val=_fill_in_struct (p [1], [3] p)
The File "C: \ Program Files \ JetBrains \ PyCharm Community Edition 2018.3.5 \ helpers \ third_party \ thriftpy \ _shaded_thriftpy \ parser \ parser py", line 765, in _fill_in_struct
Gen_init (CLS, thrift_spec default_spec)
The File "C: \ Program Files \ JetBrains \ PyCharm Community Edition 2018.3.5 \ helpers \ third_party \ thriftpy \ _shaded_thriftpy \ thrift py", line 103, in gen_init
CLS. __init__=init_func_generator (default_spec)
The File "C: \ Program Files \ JetBrains \ PyCharm Community Edition 2018.3.5 \ helpers \ third_party \ thriftpy \ _shaded_thriftpy \ _compat py", line 102, in init_func_generator
New_code=types. CodeType (len (varnames),
TypeError: an integer is required (got type bytes)
Process is over, exit code 1

CodePudding user response:

Which ace to help me to look at it?

CodePudding user response:

Translation results
Need an integer (access type byte)

CodePudding user response:

Data type wrong, don't send the code

CodePudding user response:

The problem is that I haven't written any code, just set up a new project, other didn't do anything well

CodePudding user response:

The following is the first line displays an error message file code, a great god, please help me have a look at it! : (shows error in line 33)

"'
Entry point module to start the interactive console.
"'
The from _pydev_bundle. _pydev_getopt import gnu_getopt
The from _pydev_comm. RPC import make_rpc_client start_rpc_server, start_rpc_server_and_make_client
The from _pydev_imps. _pydev_saved_modules import thread

Start_new_thread=thread. Start_new_thread

Try:
The from code import InteractiveConsole
Except ImportError:
The from _pydevd_bundle. Pydevconsole_code_for_ironpython import InteractiveConsole

The import OS
The import sys

The from _pydev_imps. _pydev_saved_modules import threading
The from _pydevd_bundle. Pydevd_constants import INTERACTIVE_MODE_AVAILABLE, dict_keys
The from _pydevd_bundle. Pydevd_utils import save_main_module

The from _pydev_bundle import fix_getpass
Fix_getpass. Fix_getpass ()

The from _pydev_bundle. Pydev_imports import _queue

Try:
The import __builtin__
Except:
The import builtins as __builtin__ # @ UnresolvedImport

The from _pydev_bundle. Pydev_stdin import BaseStdIn
the from _pydev_bundle. Pydev_console_utils import BaseInterpreterInterface
The from _pydev_bundle. Pydev_console_types import Command


IS_PYTHON_3_ONWARDS=sys. Version_info [0] & gt;=3
IS_PY24=sys. Version_info [0]==2 and sys. Version_info [1]==4

Try:
Try:
Execfile # Not in Py3k
Except NameError:
The from _pydev_bundle. Pydev_imports import execfile

nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related