Is Python >3.5 possible?

I am using what I believe is the lastest version of Pi-Hole:

Pi-Hole reports

python3 --version
Python 3.5.3

I'd really like to use a Python version of at least 3.6 (ideally 3.8), because 3.5 is missing some core features I use (ordered dictionaries, f-string formatting, etc). It comes up because I "borrow" the same Raspberry Pi that hosts Pi-hole to run some side scripts, and it's cumbersome to have to backport those scripts to Python 3.5 when they are all originally written in Python 3.8

So I suppose my questions are:

  1. If I update my Pi-hole to use Python 3.8, will it break anything?
  2. Does Pi-hole have plans to update the native Python version it's using? If so, is there an expected timeline?


Where is Pi-hole reporting this? Pi-hole does not use Python:

Edit / aside - am I totally bungling my memory of how Pi-hole was installed? My recollection was that I installed Pi-hole in some kind of standalone OS-like version. But reading the installation instructions again, it seems like it can only be installed on top of a core OS (like Raspbian, in my case). In which case, the failing may be on my side for not upgrading the installed Raspbian version from Stretch to Buster?

Thanks for the help!

Sorry I was unclear. I meant that if I SSH into my Pi-hole device and run python3 --version, it reports Python 3.5 installed:

Knowing that Pi-hole doesn't use Python probably answers my question. I suppose the Pi-hole OS is built on top of Debian, and so it just ships with whatever version of Python is pre-installed / supported there?

It looks like Debian Stretch shipped with Python 3.5, so maybe that's the underlying version for Pi-hole?

If I'm understanding correctly, I guess my question would change to: is there a Pi-hole development roadmap giving indication of when it would be upgrading Debian versions?

There is no such thing. Install what ever version of Python you'd like, we have no need or influence on that.

Install what ever version you'd like, the minimum supported is Debian 9.

Thanks! So it is the case of my mis-remembering how this was installed. That's great, in the sense I can fix it on my end.

Forgetting the setup details is a testament to the whole project and how everything "just works"! :slight_smile:

Sorry for the confusion and noise here. Thanks for helping me get sorted out!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.