Menubar icon in Mac OSX Lion?

Feel free to talk about anything and everything in this board.
astrojams
Release Testers
Release Testers
Posts: 11
Joined: March 26th, 2008, 2:07 pm

Menubar icon in Mac OSX Lion?

Post by astrojams »

How hard can it be to fix this?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

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

Post by shypike »

You tell me.
astrojams
Release Testers
Release Testers
Posts: 11
Joined: March 26th, 2008, 2:07 pm

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

Post by astrojams »

Show me the source and I'll tell you.
astrojams
Release Testers
Release Testers
Posts: 11
Joined: March 26th, 2008, 2:07 pm

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

Post by astrojams »

Is this latest source?

https://code.launchpad.net/sabnzbd

Are there instructions for doing a build for osx?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

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

Post 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
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

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

Post 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.
demoni
Newbie
Newbie
Posts: 3
Joined: July 4th, 2011, 8:49 am

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

Post 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
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

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

Post 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.
fallchild
Newbie
Newbie
Posts: 11
Joined: November 14th, 2009, 7:54 pm

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

Post by fallchild »

Any update on this? I feel lost without the sabnzb in the task bar :\
demoni
Newbie
Newbie
Posts: 3
Joined: July 4th, 2011, 8:49 am

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

Post 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
User avatar
inpheaux
Administrator
Administrator
Posts: 563
Joined: January 16th, 2008, 9:14 pm

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

Post 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
reposter432
Newbie
Newbie
Posts: 7
Joined: July 12th, 2011, 5:11 pm

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

Post 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.
demoni
Newbie
Newbie
Posts: 3
Joined: July 4th, 2011, 8:49 am

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

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

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

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

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

Post 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.
Post Reply