I am having this issue, and even after uninstalling and installing anaconda and restarting spyder settings, it doesn’t work… thanks
Traceback (most recent call last):
File “C:\Users\joyta\anaconda3\Scripts\spyder-script.py”, line 10, in
sys.exit(main())
^^^^^^
File “C:\Users\joyta\anaconda3\Lib\site-packages\spyder\app\start.py”, line 256, in main
mainwindow.main(options, args)
File “C:\Users\joyta\anaconda3\Lib\site-packages\spyder\app\mainwindow.py”, line 1823, in main
mainwindow = create_window(MainWindow, app, splash, options, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\joyta\anaconda3\Lib\site-packages\spyder\app\utils.py”, line 289, in create_window
main.setup()
File “C:\Users\joyta\anaconda3\Lib\site-packages\spyder\app\mainwindow.py”, line 732, in setup
internal_plugins = find_internal_plugins()
^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\joyta\anaconda3\Lib\site-packages\spyder\app\find_plugins.py”, line 40, in find_internal_plugins
mod = importlib.import_module(entry_point.module_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\joyta\anaconda3\Lib\importlib_init_.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “”, line 1204, in _gcd_import
File “”, line 1176, in _find_and_load
File “”, line 1147, in find_and_load_unlocked
File “”, line 690, in load_unlocked
File “”, line 940, in exec_module
File “”, line 241, in call_with_frames_removed
File “C:\Users\joyta\anaconda3\Lib\site-packages\spyder\plugins\ipythonconsole\plugin.py”, line 24, in
from spyder.plugins.ipythonconsole.widgets.main_widget import (
File "C:\Users\joyta\anaconda3\Lib\site-packages\spyder\plugins\ipythonconsole\widgets_init.py", line 16, in
from .help import HelpWidget
File “C:\Users\joyta\anaconda3\Lib\site-packages\spyder\plugins\ipythonconsole\widgets\help.py”, line 24, in
from spyder_kernels.comms.commbase import CommError
File "C:\Users\joyta\anaconda3\Lib\site-packages\spyder_kernels\comms_init.py", line 56, in
from spyder_kernels.comms.commbase import CommError
File “C:\Users\joyta\anaconda3\Lib\site-packages\spyder_kernels\comms\commbase.py”, line 55, in
import cloudpickle
File "C:\Users\joyta\AppData\Roaming\Python\Python311\site-packages\cloudpickle_init.py", line 3, in
from cloudpickle.cloudpickle import *
File “C:\Users\joyta\AppData\Roaming\Python\Python311\site-packages\cloudpickle\cloudpickle.py”, line 209, in
_cell_set_template_code = _make_cell_set_template_code()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\joyta\AppData\Roaming\Python\Python311\site-packages\cloudpickle\cloudpickle.py”, line 172, in _make_cell_set_template_code
return types.CodeType(
^^^^^^^^^^^^^^^
TypeError: code() argument 13 must be str, not int