Ошибка при запуске Spyder IDE на Python 3.10

#python #python-3.x #ide #spyder

Вопрос:

Я пытаюсь установить и запустить spyder IDE на MacBook Pro M1, но он не работает, вот ошибка, которую я получаю:

 MacBook-Pro ~ % spyder
Layer-backing can not be explicitly controlled on 10.14 when built against the 10.14 SDK
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/bin/spyder", line 8, in <module>
    sys.exit(main())
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/spyder/app/start.py", line 236, in main
    mainwindow.main(options, args)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/spyder/app/mainwindow.py", line 1992, in main
    mainwindow = create_window(MainWindow, app, splash, options, args)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/spyder/app/utils.py", line 281, in create_window
    main.setup()
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/spyder/app/mainwindow.py", line 875, in setup
    PLUGIN_REGISTRY.register_plugin(self, PluginClass,
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/spyder/api/plugin_registration/registry.py", line 274, in register_plugin
    instance = self._instantiate_spyder5_plugin(
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/spyder/api/plugin_registration/registry.py", line 152, in _instantiate_spyder5_plugin
    plugin_instance = PluginClass(main_window, configuration=CONF)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/spyder/api/plugins/new_api.py", line 294, in __init__
    self._container = container = self.CONTAINER_CLASS(
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/spyder/plugins/tours/container.py", line 48, in __init__
    self._tour_dialog = OpenTourDialog(
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/spyder/plugins/tours/widgets.py", line 1074, in __init__
    image = image.scaled(image_width, image_height, Qt.KeepAspectRatio,
TypeError: arguments did not match any overloaded call:
  scaled(self, int, int, aspectRatioMode: Qt.AspectRatioMode = Qt.IgnoreAspectRatio, transformMode: Qt.TransformationMode = Qt.FastTransformation): argument 1 has unexpected type 'float'
  scaled(self, QSize, aspectRatioMode: Qt.AspectRatioMode = Qt.IgnoreAspectRatio, transformMode: Qt.TransformationMode = Qt.FastTransformation): argument 1 has unexpected type 'float'
 

кто-нибудь может помочь?

Ответ №1:

(Сопровождающий Spyder здесь) Эта ошибка была исправлена в нашей версии 5.2.0, выпущенной в ноябре 2021 года.