If not KPF.instance(parent=self.parent).is_pr

Traceback (most recent call last):
File “/opt/anaconda3/lib/python3.11/site-packages/jupyter_client/kernelspec.py”, line 307, in get_all_specs
spec = self._get_kernel_spec_by_name(kname, resource_dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/anaconda3/lib/python3.11/site-packages/jupyter_client/kernelspec.py”, line 249, in _get_kernel_spec_by_name
if not KPF.instance(parent=self.parent).is_provisioner_available(kspec):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/anaconda3/lib/python3.11/site-packages/traitlets/config/configurable.py”, line 552, in instance
inst = cls(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File “/opt/anaconda3/lib/python3.11/site-packages/jupyter_client/provisioning/factory.py”, line 54, in init
for ep in KernelProvisionerFactory._get_all_provisioners():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/anaconda3/lib/python3.11/site-packages/jupyter_client/provisioning/factory.py”, line 169, in _get_all_provisioners
return entry_points(group=KernelProvisionerFactory.GROUP_NAME)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/anaconda3/lib/python3.11/importlib/metadata/init.py”, line 1040, in entry_points
return SelectableGroups.load(eps).select(**params)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/anaconda3/lib/python3.11/importlib/metadata/init.py”, line 476, in load
ordered = sorted(eps, key=by_group)
^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/anaconda3/lib/python3.11/importlib/metadata/init.py”, line 1038, in
dist.entry_points for dist in _unique(distributions())
^^^^^^^^^^^^^^^^^
File “/opt/anaconda3/lib/python3.11/importlib/metadata/init.py”, line 636, in entry_points
return EntryPoints._from_text_for(self.read_text(‘entry_points.txt’), self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/anaconda3/lib/python3.11/importlib/metadata/init.py”, line 938, in read_text
return self._path.joinpath(filename).read_text(encoding=‘utf-8’)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/anaconda3/lib/python3.11/pathlib.py”, line 1059, in read_text
return f.read()
^^^^^^^^
File “”, line 322, in decode
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x9b in position 0: invalid start byte

Hello,

What command are you running or what are you doing when you get this error message?

conda init or conda intall

Stephen Weller via Anaconda Community <notifications@anaconda.discoursemail.com> 于2024年3月23日周六 06:11写道: