Page 1 of 1

SVN 2777: Mac OS X 10.6 Snow Leopard error

Posted: September 10th, 2009, 8:01 am
by oh
Hey,

when I try to launch the latest SVN (2777), I'm getting this error:

AttributeError: 'module' object has no attribute 'TickCount'

Hope this helps development.
Another problem: The MenuBar tool you introduced in some SVN version, that ran fine in 10.5, doesn't show up in 10.6.

Re: SVN 2777: Mac OS X 10.6 Snow Leopard error

Posted: September 10th, 2009, 10:10 am
by rAf
You have this error but SABnzbd should start, no ?
From sources, menu is not available, you have to use binary version.

Thanks for reporting.

Re: SVN 2777: Mac OS X 10.6 Snow Leopard error

Posted: September 10th, 2009, 10:50 am
by oh
No, it just gives this error in the new Snow Leopard error window and I have to click Terminate.
I didn't run it from sources, I compiled it with "python package.py app" and an earlier build that I'm currently running in 10.6 shows the menu, but only in 10.5 not in 10.6.

Re: SVN 2777: Mac OS X 10.6 Snow Leopard error

Posted: September 10th, 2009, 1:08 pm
by switch
There should be more to the error message, could you post it in full please.

Re: SVN 2777: Mac OS X 10.6 Snow Leopard error

Posted: September 12th, 2009, 6:40 am
by oh
I just compiled Build 2780 and the error still persists, this is what Console.app says:

Code: Select all

9/12/09 1:34:45 PM	[0x0-0x34034].org.pythonmac.unspecified.SABnzbd[685]	Traceback (most recent call last):
9/12/09 1:34:45 PM	[0x0-0x34034].org.pythonmac.unspecified.SABnzbd[685]	  File "/Users/chisseri/Desktop/SABnzbd.app/Contents/Resources/__boot__.py", line 103, in <module>
9/12/09 1:34:45 PM	[0x0-0x34034].org.pythonmac.unspecified.SABnzbd[685]	    _argv_emulation()
9/12/09 1:34:45 PM	[0x0-0x34034].org.pythonmac.unspecified.SABnzbd[685]	  File "/Users/chisseri/Desktop/SABnzbd.app/Contents/Resources/__boot__.py", line 101, in _argv_emulation
9/12/09 1:34:45 PM	[0x0-0x34034].org.pythonmac.unspecified.SABnzbd[685]	    _get_argvemulator().mainloop()
9/12/09 1:34:45 PM	[0x0-0x34034].org.pythonmac.unspecified.SABnzbd[685]	  File "/Users/chisseri/Desktop/SABnzbd.app/Contents/Resources/__boot__.py", line 40, in mainloop
9/12/09 1:34:45 PM	[0x0-0x34034].org.pythonmac.unspecified.SABnzbd[685]	    stoptime = Evt.TickCount() + timeout
9/12/09 1:34:45 PM	[0x0-0x34034].org.pythonmac.unspecified.SABnzbd[685]	AttributeError: 'module' object has no attribute 'TickCount'
9/12/09 1:34:45 PM	SABnzbd[685]	SABnzbd+ Error
9/12/09 1:34:45 PM	SABnzbd[685]	SABnzbd+ Error
An unexpected error has occurred during execution of the main script

AttributeError: 'module' object has no attribute 'TickCount'
9/12/09 1:34:47 PM	com.apple.launchd.peruser.502[470]	([0x0-0x34034].org.pythonmac.unspecified.SABnzbd[685]) Exited with exit code: 255
All on 10.6.1...

Another point:

The older SVN build (September 2nd) I was talking about earlier, throws this message in the Console.app when I try to quit it via "Shutdown":

Code: Select all

9/12/09 1:33:28 PM	SABnzbd[506]	SABnzbd+ Error
9/12/09 1:33:28 PM	SABnzbd[506]	SABnzbd+ Error
An unexpected error has occurred during execution of the main script

NameError: global name 'AppHelper' is not defined
9/12/09 1:33:31 PM	com.apple.launchd.peruser.502[470]	([0x0-0x10010].org.pythonmac.unspecified.SABnzbd[506]) Exited with exit code: 255
Otherwise, this one runs perfectly except the missing menu bar addon.

Re: SVN 2777: Mac OS X 10.6 Snow Leopard error

Posted: September 12th, 2009, 9:56 am
by oh
Running from source works, but the compiled version has some (cosmetic) advantages.
It shows up as a normal application and can be simply launched on startup.
And it offers the menubar icon.

Re: SVN 2777: Mac OS X 10.6 Snow Leopard error

Posted: September 12th, 2009, 2:08 pm
by rAf
I've found what's causing your troubles, but I have to test on 10.4 and 10.5 to see if it doesn't broke anything else.
Stay tuned...

Re: SVN 2777: Mac OS X 10.6 Snow Leopard error

Posted: September 16th, 2009, 7:02 pm
by rAf
I have some troubles with snow leopard.

Here a way to use last svn revision with app.

- Download this script and unzip it
- Copy script in SABnzbd.app/Contents/Resources folder
- Launch in terminal

Code: Select all

/Applications/SABnzbd.app/Contents/Resources/update
You should have a result like that :

Code: Select all

1/5 > Dir : /Applications/SABnzbd.app/Contents/Resources

2/5 > Exporting last svn revision...
	done.

3/5 > Cleaning up for OSX binary...
	done.

4/5 > Installing update...
	done.

5/5 > Update to rev 2785 finished - Don't forget to restart SABnzbd !

if you have any problem http://forums.sabnzbd.org
Don't forget to restart SABnzbd to apply changes !
This script will not work for 0.4.x version, it's only for 0.5.x based on last alpha.