Error in python library parso while running demo.py
fatimatariq11 opened this issue · 0 comments
Traceback (most recent call last):
File "demo.py", line 3, in
from inpaint import inpaint
File "/content/video-object-removal/inpaint.py", line 4, in
from inpainting.davis import DAVIS
File "/content/video-object-removal/inpainting/davis.py", line 7, in
import matplotlib.pyplot as plt
File "/usr/local/envs/task/lib/python3.5/site-packages/matplotlib/pyplot.py", line 2371, in
switch_backend(rcParams["backend"])
File "/usr/local/envs/task/lib/python3.5/site-packages/matplotlib/pyplot.py", line 207, in switch_backend
backend_mod = importlib.import_module(backend_name)
File "/usr/local/envs/task/lib/python3.5/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/usr/local/envs/task/lib/python3.5/site-packages/ipykernel/init.py", line 2, in
from .connect import *
File "/usr/local/envs/task/lib/python3.5/site-packages/ipykernel/connect.py", line 13, in
from IPython.core.profiledir import ProfileDir
File "/usr/local/envs/task/lib/python3.5/site-packages/IPython/init.py", line 55, in
from .terminal.embed import embed
File "/usr/local/envs/task/lib/python3.5/site-packages/IPython/terminal/embed.py", line 16, in
from IPython.terminal.interactiveshell import TerminalInteractiveShell
File "/usr/local/envs/task/lib/python3.5/site-packages/IPython/terminal/interactiveshell.py", line 32, in
from .debugger import TerminalPdb, Pdb
File "/usr/local/envs/task/lib/python3.5/site-packages/IPython/terminal/debugger.py", line 6, in
from IPython.core.completer import IPCompleter
File "/usr/local/envs/task/lib/python3.5/site-packages/IPython/core/completer.py", line 146, in
import jedi
File "/usr/local/envs/task/lib/python3.5/site-packages/jedi/init.py", line 41, in
from jedi.api import Script, Interpreter, set_debug_function,
File "/usr/local/envs/task/lib/python3.5/site-packages/jedi/api/init.py", line 15, in
import parso
File "/usr/local/envs/task/lib/python3.5/site-packages/parso/init.py", line 41, in
from parso.parser import ParserSyntaxError
File "/usr/local/envs/task/lib/python3.5/site-packages/parso/parser.py", line 113
node_map: Dict[str, type] = {}
^
SyntaxError: invalid syntax