Page 1 of 2

Menubar icon in Mac OSX Lion?

Posted: July 2nd, 2011, 2:10 pm
by astrojams
How hard can it be to fix this?

Re: Menubar icon in Mac OSX Lion? Come on, the GM release of Lion is out

Posted: July 2nd, 2011, 2:25 pm
by shypike
You tell me.

Re: Menubar icon in Mac OSX Lion? Come on, the GM release o

Posted: July 3rd, 2011, 10:42 am
by astrojams
Show me the source and I'll tell you.

Re: Menubar icon in Mac OSX Lion? Come on, the GM release o

Posted: July 3rd, 2011, 10:52 am
by astrojams
Is this latest source?

https://code.launchpad.net/sabnzbd

Are there instructions for doing a build for osx?

Re: Menubar icon in Mac OSX Lion? Come on, the GM release o

Posted: July 3rd, 2011, 1:06 pm
by shypike
You can stare at the code as long as you want.
The explanation is quite simple.
The PyObjC library is not compatible with OSX Lion.

I'm trying to recompile PyObjC, but so far I cannot even get it working on Snow Leopard.
Both easy_install for Apple Python and ActiveState's pypm command install versions
which subsequently don't work (version clash between the actual Python module and the _objc.so library).
I know our former OSX developer resorted to a lot trickery in order to make Python compilation possible.
This will take quite some effort.

So if you want to help: try to get PyObjC working for ActiveState OSX-Python 2.6 or 2.7.
It now bails out on this:
from PyObjCTools import AppHelper

Re: Menubar icon in Mac OSX Lion? Come on, the GM release o

Posted: July 4th, 2011, 5:38 am
by shypike
Some updates.
It looks like the PyObjC problems is (partially) caused by a mixup of Apple Python and ActiveState Python.
PyObjC as supported by Apple Python (2.6 on SL and 2.7 on Lion) works.
So far we've never been able to produce the DMG package from Apple Python but only with ActiveState.
Now that I have Lion running in VMWare Fusion, I can start investigating properly.
It's all very time-consuming, so don't hold your breath.

Re: Menubar icon in Mac OSX Lion? Come on, the GM release o

Posted: July 4th, 2011, 8:57 am
by demoni
shypike wrote:Some updates.
It looks like the PyObjC problems is (partially) caused by a mixup of Apple Python and ActiveState Python.
PyObjC as supported by Apple Python (2.6 on SL and 2.7 on Lion) works.
So far we've never been able to produce the DMG package from Apple Python but only with ActiveState.
Now that I have Lion running in VMWare Fusion, I can start investigating properly.
It's all very time-consuming, so don't hold your breath.
I'm taking my chances... and holding my breath. No menubar icon is a real drag and I hope you'll be able to fix it soon.

Good luck! I'm crossing my fingers. ;D

Re: Menubar icon in Mac OSX Lion? Come on, the GM release o

Posted: July 5th, 2011, 4:56 pm
by shypike
I have the Menubar icon back now.
But for this I had to switch from ActiveState Python to ApplePython.
Some work-arounds are needed because ApplePython isn't as polished as ActiveState's.
Well, lots of testing for side-effects are needed, so I will contact you soon ;D
My shaky VMWared Lion isn't a very impressive test platform.

Re: Menubar icon in Mac OSX Lion? Come on, the GM release o

Posted: July 8th, 2011, 9:40 pm
by fallchild
Any update on this? I feel lost without the sabnzb in the task bar :\

Re: Menubar icon in Mac OSX Lion? Come on, the GM release o

Posted: July 9th, 2011, 1:37 am
by demoni
shypike wrote:I have the Menubar icon back now.
But for this I had to switch from ActiveState Python to ApplePython.
Some work-arounds are needed because ApplePython isn't as polished as ActiveState's.
Well, lots of testing for side-effects are needed, so I will contact you soon ;D
My shaky VMWared Lion isn't a very impressive test platform.
Great news! Looks like you're getting there. And like fallchild said; I'm lost without the menu bar icon... :o

Re: Menubar icon in Mac OSX Lion? Come on, the GM release o

Posted: July 10th, 2011, 11:22 pm
by inpheaux
We've got a release that should fix this issue. If you guys could go over and test it, it would be greatly appreciated.

http://forums.sabnzbd.org/viewtopic.php?f=8&t=8280

Re: Menubar icon in Mac OSX Lion? Come on, the GM release o

Posted: July 12th, 2011, 5:13 pm
by reposter432
0.6.6 Beta 1 works fine for me. Thanks!

Edit: Ran into an issue. Sometimes when I double-click on a nzb, it will open and get added to the queue, but then the program will quit. I have to re-open sabnzbd, but the queued item is still there and starts fine.

Re: Menubar icon in Mac OSX Lion? Come on, the GM release o

Posted: July 14th, 2011, 5:39 am
by demoni
inpheaux wrote:We've got a release that should fix this issue. If you guys could go over and test it, it would be greatly appreciated.

http://forums.sabnzbd.org/viewtopic.php?f=8&t=8280
This seems to work like a charm! Thanks for fixing this so fast.

Re: Menubar icon in Mac OSX Lion? Come on, the GM release o

Posted: July 14th, 2011, 9:13 am
by shypike
reposter432 wrote: Edit: Ran into an issue. Sometimes when I double-click on a nzb, it will open and get added to the queue, but then the program will quit. I have to re-open sabnzbd, but the queued item is still there and starts fine.
When you double-click an NZB, SABnzbd is started again, finds the earlier instance, sends the NZB and then quits.
You say now that the original instance is stopping?
I did have to change command line handling to accommodate for the non-standard behaviour of Apple's Python implementation.
I'll see if I can reproduce the issue.

Re: Menubar icon in Mac OSX Lion? Come on, the GM release o

Posted: July 14th, 2011, 12:43 pm
by shypike
I cannot reproduce the issue, not on Lion and not on Snow Leopard.
Check the "Open with" setting for NZB files.
Check the log file of SABnzbd for clues.