error in kernal

40 views
Skip to first unread message

Pratik Piyush

unread,
Apr 22, 2021, 6:49:36 PM4/22/21
to spyder
error message !

Traceback (most recent call last):
File "/Users/pratikpiyush/opt/anaconda3/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Users/pratikpiyush/opt/anaconda3/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/pratikpiyush/opt/anaconda3/lib/python3.8/site‑packages/spyder_kernels/console/__main__.py", line 23, in 
start.main()
File "/Users/pratikpiyush/opt/anaconda3/lib/python3.8/site‑packages/spyder_kernels/console/start.py", line 289, in main
import_spydercustomize()
File "/Users/pratikpiyush/opt/anaconda3/lib/python3.8/site‑packages/spyder_kernels/console/start.py", line 39, in import_spydercustomize
import spydercustomize
File "/Users/pratikpiyush/opt/anaconda3/lib/python3.8/site‑packages/spyder_kernels/customize/spydercustomize.py", line 27, in 
from spyder_kernels.comms.frontendcomm import CommError, frontend_request
File "/Users/pratikpiyush/opt/anaconda3/lib/python3.8/site‑packages/spyder_kernels/comms/frontendcomm.py", line 17, in 
from jupyter_client.localinterfaces import localhost
File "/Users/pratikpiyush/opt/anaconda3/lib/python3.8/site‑packages/jupyter_client/__init__.py", line 8, in 
from .blocking import BlockingKernelClient
File "/Users/pratikpiyush/opt/anaconda3/lib/python3.8/site‑packages/jupyter_client/blocking/__init__.py", line 1, in 
from .client import BlockingKernelClient
File "/Users/pratikpiyush/opt/anaconda3/lib/python3.8/site‑packages/jupyter_client/blocking/client.py", line 10, in 
from queue import Empty
ImportError: cannot import name 'Empty' from 'queue' (/Users/pratikpiyush/coding/Python/gfg.py/queue.py)

plz help me out !!

Carlos Córdoba

unread,
Apr 22, 2021, 6:51:41 PM4/22/21
to spyd...@googlegroups.com
Hi,

Please remove or rename this file to something different than queue.py

/Users/pratikpiyush/coding/Python/gfg.py/queue.py

Once you do that the problem will disappear.


Cheers,
Carlos

El 22/04/21 a las 9:24 a. m., Pratik Piyush escribió:
--
You received this message because you are subscribed to the Google Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/spyderlib/d3e60ce7-fae2-4a19-b237-f758b2875b7cn%40googlegroups.com.

Pratik Piyush

unread,
Apr 22, 2021, 7:43:40 PM4/22/21
to spyd...@googlegroups.com
Thanks a lot

But I clicked on reset to default

And now everything is fi9

Reply all
Reply to author
Forward
0 new messages