[MacPorts] #74010: spyder-313: crashes with a generic looking python error
MacPorts
noreply at macports.org
Wed May 20 13:25:27 UTC 2026
#74010: spyder-313: crashes with a generic looking python error
-------------------------+------------------------
Reporter: examachine | Owner: reneeotten
Type: defect | Status: accepted
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: py-spyder |
-------------------------+------------------------
Changes (by reneeotten):
* owner: (none) => reneeotten
* status: new => accepted
* port: => py-spyder
Old description:
> same happens with 3.14!
>
> % port info py313-spyder
> py313-spyder @6.1.4 (python, devel)
> Variants: docs, pil, small
>
> ...
> % spyder
> The available OpenGL surface format was either not version 3.2 or higher
> or not a Core Profile.
> Chromium on macOS will fall back to software rendering in this case.
> Hardware acceleration and features such as WebGL will not be available.
> Populating font family aliases took 201 ms. Replace uses of missing font
> family "Manrope" with one that exists to avoid this cost.
> /opt/local/bin/spyder:8: DeprecationWarning: Parsing dates involving a
> day of month without a year specified is ambiguious
> and fails to parse leap day. The default behavior will change in Python
> 3.15
> to either always raise an exception or to use a different default year
> (TBD).
> To avoid trouble, add a specific year to the input & format.
> See https://github.com/python/cpython/issues/70647.
> sys.exit(main())
> Traceback (most recent call last):
> File "/opt/local/bin/spyder", line 8, in <module>
> sys.exit(main())
> ~~~~^^
> File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13
> /site-packages/spyder/app/start.py", line 284, in main
> mainwindow.main(options, args)
> ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
> File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13
> /site-packages/spyder/app/mainwindow.py", line 1390, in main
> mainwindow = create_window(MainWindow, app, splash, options, args)
> File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13
> /site-packages/spyder/app/utils.py", line 360, in create_window
> main.setup()
> ~~~~~~~~~~^^
> File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13
> /site-packages/spyder/app/mainwindow.py", line 680, in setup
> internal_plugins = find_internal_plugins()
> File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13
> /site-packages/spyder/app/find_plugins.py", line 45, in
> find_internal_plugins
> mod = importlib.import_module(entry_point.module)
> File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/importlib/__init__.py",
> line 88, in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
> ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "<frozen importlib._bootstrap>", line 1395, in _gcd_import
> File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
> File "<frozen importlib._bootstrap>", line 1331, in
> _find_and_load_unlocked
> File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
> File "<frozen importlib._bootstrap_external>", line 1023, in
> exec_module
> File "<frozen importlib._bootstrap>", line 488, in
> _call_with_frames_removed
> File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13
> /site-packages/spyder/plugins/editor/plugin.py", line 28, in <module>
> from spyder.plugins.editor.widgets.main_widget import
> EditorMainWidget
> File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13
> /site-packages/spyder/plugins/editor/widgets/main_widget.py", line 52, in
> <module>
> from spyder.plugins.editor.widgets.codeeditor import (
> ...<5 lines>...
> )
> File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13
> /site-packages/spyder/plugins/editor/widgets/codeeditor/__init__.py",
> line 17, in <module>
> from .codeeditor import (
> ...<5 lines>...
> )
> File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13
> /site-packages/spyder/plugins/editor/widgets/codeeditor/codeeditor.py",
> line 32, in <module>
> from nbconvert import PythonExporter as nbexporter
> ImportError: cannot import name 'PythonExporter' from 'nbconvert'
> (/opt/local/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13
> /site-packages/nbconvert/__init__.py)
New description:
same happens with 3.14!
{{{
% port info py313-spyder
py313-spyder @6.1.4 (python, devel)
Variants: docs, pil, small
}}}
{{{
% spyder
The available OpenGL surface format was either not version 3.2 or higher
or not a Core Profile.
Chromium on macOS will fall back to software rendering in this case.
Hardware acceleration and features such as WebGL will not be available.
Populating font family aliases took 201 ms. Replace uses of missing font
family "Manrope" with one that exists to avoid this cost.
/opt/local/bin/spyder:8: DeprecationWarning: Parsing dates involving a day
of month without a year specified is ambiguious
and fails to parse leap day. The default behavior will change in Python
3.15
to either always raise an exception or to use a different default year
(TBD).
To avoid trouble, add a specific year to the input & format.
See https://github.com/python/cpython/issues/70647.
sys.exit(main())
Traceback (most recent call last):
File "/opt/local/bin/spyder", line 8, in <module>
sys.exit(main())
~~~~^^
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13
/site-packages/spyder/app/start.py", line 284, in main
mainwindow.main(options, args)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13
/site-packages/spyder/app/mainwindow.py", line 1390, in main
mainwindow = create_window(MainWindow, app, splash, options, args)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13
/site-packages/spyder/app/utils.py", line 360, in create_window
main.setup()
~~~~~~~~~~^^
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13
/site-packages/spyder/app/mainwindow.py", line 680, in setup
internal_plugins = find_internal_plugins()
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13
/site-packages/spyder/app/find_plugins.py", line 45, in
find_internal_plugins
mod = importlib.import_module(entry_point.module)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/importlib/__init__.py",
line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1395, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in
_find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 1023, in exec_module
File "<frozen importlib._bootstrap>", line 488, in
_call_with_frames_removed
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13
/site-packages/spyder/plugins/editor/plugin.py", line 28, in <module>
from spyder.plugins.editor.widgets.main_widget import EditorMainWidget
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13
/site-packages/spyder/plugins/editor/widgets/main_widget.py", line 52, in
<module>
from spyder.plugins.editor.widgets.codeeditor import (
...<5 lines>...
)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13
/site-packages/spyder/plugins/editor/widgets/codeeditor/__init__.py", line
17, in <module>
from .codeeditor import (
...<5 lines>...
)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13
/site-packages/spyder/plugins/editor/widgets/codeeditor/codeeditor.py",
line 32, in <module>
from nbconvert import PythonExporter as nbexporter
ImportError: cannot import name 'PythonExporter' from 'nbconvert'
(/opt/local/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13
/site-packages/nbconvert/__init__.py)
}}}
--
Comment:
Sorry for the trouble, however I cannot reproduce the error you are
seeing.... What happens if you just start Python in a terminal and try the
import there? For me that works without issues and also Spyder does not
complain about it.
{{{
❯ python3.14
Python 3.14.5 (main, May 11 2026, 06:26:20) [Clang 21.0.0
(clang-2100.0.123.102)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from nbconvert import PythonExporter as nbexporter
<python-input-0>:1: DeprecationWarning: Parsing dates involving a day of
month without a year specified is ambiguous
and fails to parse leap day. The default behavior will change in Python
3.15
to either always raise an exception or to use a different default year
(TBD).
To avoid trouble, add a specific year to the input & format.
See https://github.com/python/cpython/issues/70647.
>>>
}}}
If that fails for you, can you please post the output of:
{{{port installed | grep nbconvert}}}
--
Ticket URL: <https://trac.macports.org/ticket/74010#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list