Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Python

    Development
    2
    6
    853
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      guardian Rebel Alliance
      last edited by

      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 ?

      If you find my post useful, please give it a thumbs up!
      pfSense 2.7.2-RELEASE

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        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.

        Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        G 2 Replies Last reply Reply Quote 1
        • G
          guardian Rebel Alliance @jimp
          last edited by

          @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?

          If you find my post useful, please give it a thumbs up!
          pfSense 2.7.2-RELEASE

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            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.

            Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • G
              guardian Rebel Alliance @jimp
              last edited by

              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?

              If you find my post useful, please give it a thumbs up!
              pfSense 2.7.2-RELEASE

              1 Reply Last reply Reply Quote 0
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

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

                Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.