Python



  • Sorry this might be a bit off topic, but I don't see a better place for this as the only one who could answer this question is going to be a developer who knows pfSense/BSD

    Any idea when Python2 is likely to be replaced with Python3 on pfSense? I have been reading that support for Python2 will be dropped in 2020, so unless the BSD folks decide to fork it and continue support some sort of change is going to be necessary.

    The reason for my question is that I am currently running custom scripts written in Python2 on my pfSense box, and I would like to have an idea about long I have to convert, and I was also wondering if there will be a way to transition with Python2 and Python3 being available for a short period of time ?


  • Rebel Alliance Developer Netgate

    pfSense doesn't use python scripts directly, it is pulled in as a dependency of unbound (for its python script integration, not used by default) and for glib which is an rrdtool dependency (for data/graphs).

    As far as I know those both work fine with Python 3, so pfSense would most likely change whenever FreeBSD changes its own default to 3. Right now it's still 2.7.



  • @jimp

    @jimp said in Python:

    pfSense doesn't use python scripts directly, it is pulled in as a dependency of unbound (for its python script integration, not used by default) and for glib which is an rrdtool dependency (for data/graphs).

    As far as I know those both work fine with Python 3, so pfSense would most likely change whenever FreeBSD changes its own default to 3. Right now it's still 2.7.

    Thanks for the input @jimp - Any easy way for me to install 3 alongside 2? I know they have done that on FreeNAS, but of course storage is not a scarce commodity on FreeNAS. Any idea how I get an approximate timeline for the switch?


  • Rebel Alliance Developer Netgate

    Not currently. We don't build packages for python 3.x. You could maybe install them from FreeBSD but I wouldn't do that on a production firewall.



  • Thank @jimp

    @jimp said in Python:

    As far as I know those both work fine with Python 3, so pfSense would most likely change whenever FreeBSD changes its own default to 3. Right now it's still 2.7.

    Any idea of timeline?


  • Rebel Alliance Developer Netgate

    Nope, that's up to FreeBSD. It looks pretty far down their Python todo list, though.