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

Python

Scheduled Pinned Locked Moved Development
6 Posts 2 Posters 888 Views
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 Dec 7, 2018, 1:32 AM

    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
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Dec 7, 2018, 2:21 PM

      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 Dec 8, 2018, 4:09 PM Reply Quote 1
      • G
        guardian Rebel Alliance @jimp
        last edited by Dec 8, 2018, 4:09 PM

        @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
        • J
          jimp Rebel Alliance Developer Netgate
          last edited by Dec 10, 2018, 9:51 PM

          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 Dec 11, 2018, 8:29 AM

            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
            • J
              jimp Rebel Alliance Developer Netgate
              last edited by Dec 11, 2018, 1:43 PM

              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
              1 out of 6
              • First post
                1/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                This community forum collects and processes your personal information.
                consent.not_received