Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 939912 - dev-python/spyder-6.0.0 fails to start with error: AttributeError: 'NoneType' object has no attribute 'setSceneGraphBackend', needs QtPy[+quick]
Summary: dev-python/spyder-6.0.0 fails to start with error: AttributeError: 'NoneType'...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal critical
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-20 19:24 UTC by Michael Tulupov
Modified: 2024-09-24 08:40 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Tulupov 2024-09-20 19:24:24 UTC
In my setup dev-python/QtPy-2.4.1-r2 is built with [+pyqt5,-quick, .....other flags...]

According to dev-python/spyder-6.0.0 depends on >=dev-python/QtPy-2.4.0[svg,webengine], but [+quick] is not specified as mandatory useflag.

As a result, spyder fails to start with the following error:

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.12/spyder", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/python3.12/site-packages/spyder/app/start.py", line 285, in main
    mainwindow.main(options, args)
  File "/usr/lib/python3.12/site-packages/spyder/app/mainwindow.py", line 1350, in main
    set_opengl_implementation(option)
  File "/usr/lib/python3.12/site-packages/spyder/app/utils.py", line 101, in set_opengl_implementation
    set_api = QQuickWindow.setSceneGraphBackend  # Qt 5
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'setSceneGraphBackend'

After QtPy is re-merged with [+quick], Spyder works fine.

Reproducible: Always
Comment 1 Larry the Git Cow gentoo-dev 2024-09-24 08:40:57 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa4742f0b71a72f9b40d08d08e540c7846af6bbf

commit aa4742f0b71a72f9b40d08d08e540c7846af6bbf
Author:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
AuthorDate: 2024-09-24 08:40:36 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
CommitDate: 2024-09-24 08:40:36 +0000

    dev-python/spyder: drop 6.0.0
    
    Closes: https://bugs.gentoo.org/939912
    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>

 dev-python/spyder/Manifest            |   1 -
 dev-python/spyder/spyder-6.0.0.ebuild | 195 ----------------------------------
 2 files changed, 196 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=665b5cdf523208df0b27bf466a9893aacadb9bbb

commit 665b5cdf523208df0b27bf466a9893aacadb9bbb
Author:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
AuthorDate: 2024-09-24 08:40:18 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
CommitDate: 2024-09-24 08:40:18 +0000

    dev-python/spyder: add 6.0.1
    
    Closes: https://bugs.gentoo.org/939912
    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>

 dev-python/spyder/Manifest            |   2 +
 dev-python/spyder/spyder-6.0.1.ebuild | 195 ++++++++++++++++++++++++++++++++++
 2 files changed, 197 insertions(+)