Python 2 or 3 for development?

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.
Post Reply
Puzzled
Full Member
Full Member
Posts: 160
Joined: September 2nd, 2017, 3:02 am

Python 2 or 3 for development?

Post by Puzzled »

Hi, I've checked out the default branch from git on Windows to see if I can figure out how it works and contribute in any way. I am currently using Python 2.7 but I saw the notice about switching to python3. Does that mean that I can/should update to python3 now, or that it will be prepared for python3 some time soon?

Also, can I run the release version and the git version interchangeably with the same config and database, or do the newer version have changes that are not backwards compatible?
User avatar
sander
Release Testers
Release Testers
Posts: 8823
Joined: January 22nd, 2008, 2:22 pm

Re: Python 2 or 3 for development?

Post by sander »

If you want to contribute, please the Python3 version from github: use it, test it, report any findings.
(There is also a binary Windows version ... I'll check if I can find it. EDIT: see below)

I use the Python3 version on Linux, and it works.

You can switch back and forth, maybe with a pickle error message in your log, but nothing serious.


EDIT:

Here is the Windows-binary with python3-sabnzbd:

https://github.com/sabnzbd/sabbuild/rel ... evelop.zip

It would be nice if you can test it. Or, if you can, the github version.
Post Reply