SABnzbd failing to launch on macOS Sonoma Beta 1

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
kvenden
Newbie
Newbie
Posts: 11
Joined: June 6th, 2023, 6:30 pm

SABnzbd failing to launch on macOS Sonoma Beta 1

Post by kvenden »

Just curious if anyone else has ran into this, yet? and if you've found a solution? It seems like its errors are python related. I'm getting the following:

Apparently I can't paste the log because it says new users aren't allowed to post links even though there's no links in the post.

I know all apps aren't expected to run on OS beta's, but if anyone else has found a workaround to get this working, I'd sure love to hear it as I use this daily. :)
Thanks,
User avatar
sander
Release Testers
Release Testers
Posts: 8825
Joined: January 22nd, 2008, 2:22 pm

Re: SABnzbd failing to launch on macOS Sonoma Beta 1

Post by sander »

For new users:

Paste your Log on https://paste.ofcode.org/ and post the resulting URL with space in it like, like https://paste . ofcode . org/ a09s8df09a8dsf
kvenden
Newbie
Newbie
Posts: 11
Joined: June 6th, 2023, 6:30 pm

Re: SABnzbd failing to launch on macOS Sonoma Beta 1

Post by kvenden »

Here is the actual log:

https:// paste.ofcode. org/ kvREzmKSEhB4AXNiKkCH8
User avatar
sander
Release Testers
Release Testers
Posts: 8825
Joined: January 22nd, 2008, 2:22 pm

Re: SABnzbd failing to launch on macOS Sonoma Beta 1

Post by sander »

So https://paste.ofcode.org/kvREzmKSEhB4AXNiKkCH8

Code: Select all

Traceback (most recent call last):
  File "SABnzbd.py", line 1779, in <module>
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "PyInstaller/loader/pyimod02_importers.py", line 352, in exec_module
  File "sabnzbd/osxmenu.py", line 22, in <module>
  File "objc/_lazyimport.py", line 181, in __getattr__
AttributeError: <FBSSceneTransitionContext>
[6206] Failed to execute script 'SABnzbd' due to unhandled exception: <FBSSceneTransitionContext>
[6206] Traceback:
Traceback (most recent call last):
  File "SABnzbd.py", line 1779, in <module>
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "PyInstaller/loader/pyimod02_importers.py", line 352, in exec_module
  File "sabnzbd/osxmenu.py", line 22, in <module>
  File "objc/_lazyimport.py", line 181, in __getattr__
AttributeError: <FBSSceneTransitionContext>
User avatar
sander
Release Testers
Release Testers
Posts: 8825
Joined: January 22nd, 2008, 2:22 pm

Re: SABnzbd failing to launch on macOS Sonoma Beta 1: AttributeError: <FBSSceneTransitionContext>

Post by sander »

I think the keywords are

PyInstaller
osxmenu.py
FBSSceneTransitionContext

... but if I google that, nothing comes up. Even "FBSSceneTransitionContext" alone (with quotes), gives only 7 hits.

I would say this is something upstream: in PyInstaller, or even in macOS Sonoma Beta 1 itself.

So no solution for you for now
User avatar
sander
Release Testers
Release Testers
Posts: 8825
Joined: January 22nd, 2008, 2:22 pm

Re: SABnzbd failing to launch on macOS Sonoma Beta 1

Post by sander »

Check question: are you running the SABnzbd installer? You don't have SAB installed on your Sonoma?
kvenden
Newbie
Newbie
Posts: 11
Joined: June 6th, 2023, 6:30 pm

Re: SABnzbd failing to launch on macOS Sonoma Beta 1

Post by kvenden »

sander wrote: June 7th, 2023, 1:36 am Check question: are you running the SABnzbd installer? You don't have SAB installed on your Sonoma?
Yes, I run the installer, if you're meaning the one that copies the SABnzbd.app file to my Applications folder. Is there something else I should try? I tried the latest early release one yesterday to see if it made any difference but it did not.
User avatar
sander
Release Testers
Release Testers
Posts: 8825
Joined: January 22nd, 2008, 2:22 pm

Re: SABnzbd failing to launch on macOS Sonoma Beta 1

Post by sander »

I wondered: if you had SAB running on an earlier version of MacOS, and then did the MacOS upgrade ... was SAB still runnable as it was still installed?
kvenden
Newbie
Newbie
Posts: 11
Joined: June 6th, 2023, 6:30 pm

Re: SABnzbd failing to launch on macOS Sonoma Beta 1

Post by kvenden »

sander wrote: June 7th, 2023, 11:18 am I wondered: if you had SAB running on an earlier version of MacOS, and then did the MacOS upgrade ... was SAB still runnable as it was still installed?
That was exactly the scenario and it wasn't still runnable after the upgrade. So, I tried downloading the latest pre-release version to see if it would work but same issue. It won't launch. I even tried installing the latest version of Python, but no dice.
User avatar
sander
Release Testers
Release Testers
Posts: 8825
Joined: January 22nd, 2008, 2:22 pm

Re: SABnzbd failing to launch on macOS Sonoma Beta 1

Post by sander »

kvenden wrote: June 7th, 2023, 11:31 am I even tried installing the latest version of Python, but no dice.
Installing Python did not work?! That's serious. I suppose a very different error?
kvenden
Newbie
Newbie
Posts: 11
Joined: June 6th, 2023, 6:30 pm

Re: SABnzbd failing to launch on macOS Sonoma Beta 1

Post by kvenden »

sander wrote: June 7th, 2023, 12:17 pm
kvenden wrote: June 7th, 2023, 11:31 am I even tried installing the latest version of Python, but no dice.
Installing Python did not work?! That's serious. I suppose a very different error?
No, I meant, I installed the latest version of python and SABnzbd still failed to load with same errors. Python installed fine and runs.
User avatar
sander
Release Testers
Release Testers
Posts: 8825
Joined: January 22nd, 2008, 2:22 pm

Re: SABnzbd failing to launch on macOS Sonoma Beta 1

Post by sander »

Really? Because PyInstaller is only in "builder". AFAIK that is not run when you just run SABnzbd.py

So ... do you want to go the path of running SABnzbd from source? It's only a few steps; see https://sabnzbd.org/wiki/installation/i ... ff-modules

If you can't handle git, you get also just download the source code from https://sabnzbd.org/downloads . Note: the download named "Source Code". Not the Mac stuff
kvenden
Newbie
Newbie
Posts: 11
Joined: June 6th, 2023, 6:30 pm

Re: SABnzbd failing to launch on macOS Sonoma Beta 1

Post by kvenden »

sander wrote: June 7th, 2023, 2:14 pm Really? Because PyInstaller is only in "builder". AFAIK that is not run when you just run SABnzbd.py

So ... do you want to go the path of running SABnzbd from source? It's only a few steps; see https://sabnzbd.org/wiki/installation/i ... ff-modules

If you can't handle git, you get also just download the source code from https://sabnzbd.org/downloads . Note: the download named "Source Code". Not the Mac stuff
Ok, I tried installing it via all of those steps for macOS on that page and then ran it like it said, and I get the following:

Code: Select all

sabnzbd % python3 SABnzbd.py
Traceback (most recent call last):
  File "/Users/kris/sabnzbd/SABnzbd.py", line 1775, in <module>
    from sabnzbd.osxmenu import SABnzbdDelegate
  File "/Users/kris/sabnzbd/sabnzbd/osxmenu.py", line 22, in <module>
    from Foundation import *
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/objc/_lazyimport.py", line 181, in __getattr__
    raise AttributeError(name)
AttributeError: <FBSSceneTransitionContext>
User avatar
sander
Release Testers
Release Testers
Posts: 8825
Joined: January 22nd, 2008, 2:22 pm

Re: SABnzbd failing to launch on macOS Sonoma Beta 1

Post by sander »

I think you can now post plain URLs like https://paste.ofcode.org/342qZSUTXS5qthgxiyBAyBd

Code: Select all

sabnzbd % python3 SABnzbd.py
Traceback (most recent call last):
  File "/Volumes/sabnzbd/SABnzbd.py", line 1775, in <module>
    from sabnzbd.osxmenu import SABnzbdDelegate
  File "/Volumes/sabnzbd/sabnzbd/osxmenu.py", line 22, in <module>
    from Foundation import *
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/objc/_lazyimport.py", line 181, in __getattr__
    raise AttributeError(name)
AttributeError: <FBSSceneTransitionContext>
What happens if you do:

Code: Select all

python3 <enter>
import Foundation
So ...

Code: Select all

$ python3
Python 3.8.10 (default, May 26 2023, 14:05:08) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import Foundation
kvenden
Newbie
Newbie
Posts: 11
Joined: June 6th, 2023, 6:30 pm

Re: SABnzbd failing to launch on macOS Sonoma Beta 1

Post by kvenden »

Code: Select all

sabnzbd % python3
Python 3.11.3 (v3.11.3:f3909b8bc8, Apr  4 2023, 20:12:10) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import Foundation
>>> import Foundation
>>> 
Post Reply