Page 1 of 1

Compile 0.5.2 ?

Posted: May 11th, 2010, 11:51 am
by jmjay
Hi guys,

regarding my earlier topic of having the RSS Feed names to be used also as the job names I was trying to fiddle around a little bit with the source codes... I think I got what I want and I am now looking into doing a compile for windows...

Basically I found some guides/hints in the wiki and all but I can't seem to be able to check-out the 0.5.2 from svn?

Also, in the 0.5.2. source code no real setup.py is included... is there a reason for that?

I would be great if somebody could nudge me in the right direction here...

Cheers,

JMjay

Re: Compile 0.5.2 ?

Posted: May 11th, 2010, 12:31 pm
by jmjay
Whoops, sorry for the confusion...

I somehow missed that you guys moved from sourceforge to assembla to launchpad... but this makes more sense now and I guys by using the package.py it will get me somewhere...

Cheers,

JMJay

Re: Compile 0.5.2 ?

Posted: May 11th, 2010, 12:39 pm
by jmjay
Okay.. talking to myself, but still... here goes:

the launchpad bazaar checkout did the trick and although I get a "http cannot do a mkdir" error my "dist" directory seems to work like a charm... *sigh*

@shypike: I switched line 435 in rss.py to "nzbname = misc.sanitize_foldername(title)" same as 437 instead of "nzbname=none" and now I have nice RSS feed title names for my downloads...

Cheers,

JMJay

Re: Compile 0.5.2 ?

Posted: May 11th, 2010, 12:46 pm
by shypike
Which branch are you looking at?
Better not use the default (or 0.6.x), it's not very stable and may trash your queue.
Stick to 0.5.x.

Which issue are you referring to?

Re: Compile 0.5.2 ?

Posted: May 11th, 2010, 1:12 pm
by jmjay
Hi shypike,

yes, I got the 0.5.x branch.

I am referring to my issue that I had with nzbs retrieved from nzbindex.nl which had most of the time sucky naming conventions, inlcuding the "3-digit" episode naming style, e.g. MyShow.522.XviD....

I resolved that problem by piping the NZBindex.nl feed through yahoo pipes (and sort out duplicates along the way) and by changing that one line I have now my perfectly formatted RSS feed item titles instead of the sucky nzb names.

Now I only have to figure out why my own compile is crashing on my htpc box but working on my notebook with a problem in ntdll.dll  :-(

All the best,

JMJay

Re: Compile 0.5.2 ?

Posted: May 14th, 2010, 5:19 am
by jmjay
Hi,

I finally managed to get almost everything sorted out...

I have a working version of the 0.5.x branch, compiled with Python 2.5 on windows with almost all modules. Seems now I have only one slight issue left:

During startup I get the infamous ""_yenc module... NOT found!" message. I tried to compile this, but as I do not have visual studio on my box it does not seems to compile. I tried to copy the _yenc.pyd into the final compile, but this did not seem to work.

As I am not too experienced with this whole setup it would be great if you could take a second and point me in the right direction (maybe you could PM me some compiled version for win32?)

Thank you all and all the best!

JMJay

Re: Compile 0.5.2 ?

Posted: May 14th, 2010, 8:18 am
by shypike
You need both the _yenc.pyd and the yenc.py file.

Re: Compile 0.5.2 ?

Posted: May 14th, 2010, 9:30 am
by jmjay
Hi shypike,

thanks for the info... but again I have to ask: where exactly do they go?

If I run sabnzbd.py with pyton (uncompiled/packaged) I see in the console that yenc has been found, but it does not get picked up when I build the package and it (the _yenc.pyd) is missing in the lib directory...

Sorry for the stupid question, but thanks a million for the quick replies!

Cheers,

JMJay

Re: Compile 0.5.2 ?

Posted: May 14th, 2010, 12:11 pm
by shypike
Lib\site-packages

Re: Compile 0.5.2 ?

Posted: May 14th, 2010, 3:07 pm
by jmjay
Hmm... that was somehow not it... I placed it there already :-(

As I said, during the python run with "python SABnzbd.py" it gets listed as being present, but is somehow not being inlcuded when built as binary with the package.py.

Hmm... maybe a little too much of try and error on my part :-( Any other last ideas? Thanks!

Cheers,

JMJay

Re: Compile 0.5.2 ?

Posted: May 15th, 2010, 6:42 am
by shypike
Last suggestion.
Add the attached file (yenc-0.3-py2.6.egg-info) to the same folder.
Remove the ".txt" extension, that was only for uploading.