#823·py-spy

Python 3.14 - Failed to find python version from target process

Author: MaxG87Created Jan 20, 2026Updated Jul 21, 2026

First of all, thank you very much for this interesting project. I was looking for an all-in-one flame graph generator and this project looks like it is a very good fit for my needs. Unfortunately, I was unable to use it, though.

I am on CachyOS, an Arch Linux derivate, with Python 3.14. I installed py-spy from AUR and have version 0.4.1.

Running py-spy as suggested in the README yields an error:

bash
$ py-spy --version
py-spy 0.4.1
$ py-spy record -o primes.svg -- python primes.py
Error: Failed to find python version from target process
$ sudo py-spy record -o primes.py.svg -- python primes.py
Error: Failed to find python version from target process

Since this kind of error was reported a few times and often had to be addressed with a fix, I hope reporting it again is the right thing to do here. If I am using py-spy the wrong way, I'd appreciate some helpful hint.

Thank you for all the effort.