# \#python

**URL:** https://discussion.fedoraproject.org/tag/python/714.md

[Latest](https://discussion.fedoraproject.org/latest.md) · [Categories](https://discussion.fedoraproject.org/categories.md) · [Tags](https://discussion.fedoraproject.org/tags.md)

---

## [Redundant python folders?](https://discussion.fedoraproject.org/t/redundant-python-folders/209132)

<div class="topic-metadata">

**Author:** [@entodoays](https://discussion.fedoraproject.org/u/entodoays)\
**Replies:** 6\
**Last updated:** [November 23, 2026, 3:23pm UTC](https://discussion.fedoraproject.org/t/redundant-python-folders/209132 "2026-11-23T15:23:47Z")

</div>

Under my ~/.local/lib folder there are three folders for different python versions, namely, 3.13, 3.14, and 3.15. I suspect that each time I upgrade Fedora, python is also updated. Can I safely delete the older versions and leave the most recent one?

---

## [Python subprocess.run different on f45](https://discussion.fedoraproject.org/t/python-subprocess-run-different-on-f45/202501)

<div class="topic-metadata">

**Author:** [@mwichmann](https://discussion.fedoraproject.org/u/mwichmann)\
**Replies:** 11\
**Last updated:** [September 20, 2026, 10:06pm UTC](https://discussion.fedoraproject.org/t/python-subprocess-run-different-on-f45/202501 "2026-09-20T22:06:59Z")

</div>

I’m trying to hunt down a change that appears in pre-rel f45 and rawhide: when you call subprocess.run (or fiddle directly with Popen) with shell=False, and the command to run is not found, the error has changed. Online AI confidently claims that this is an intentional change to make things better f…

---

## [Unable to use a nautilus-python extension on Fedora 43](https://discussion.fedoraproject.org/t/unable-to-use-a-nautilus-python-extension-on-fedora-43/178308)

<div class="topic-metadata">

**Author:** [@magio](https://discussion.fedoraproject.org/u/magio)\
**Replies:** 3\
**Last updated:** [March 7, 2026, 6:56pm UTC](https://discussion.fedoraproject.org/t/unable-to-use-a-nautilus-python-extension-on-fedora-43/178308 "2026-03-07T18:56:22Z")

</div>

I recently installed Fedora 43 from scratch on a new computer and I can’t seem to get nautilus-open-any-terminal working. There’s a copr repo, so I first tried that way, compiled schemas and set it to my preferred terminal but upon restarting Nautilus (nautilus -q) it throw out this error text: Tra…

---

## [How does one access \`py-bt\` in GDB on Fedora?](https://discussion.fedoraproject.org/t/how-does-one-access-py-bt-in-gdb-on-fedora/179757)

<div class="topic-metadata">

**Author:** [@rokejulianlockhart](https://discussion.fedoraproject.org/u/rokejulianlockhart)\
**Replies:** 1\
**Last updated:** [January 20, 2026, 3:37pm UTC](https://discussion.fedoraproject.org/t/how-does-one-access-py-bt-in-gdb-on-fedora/179757 "2026-01-20T15:37:09Z")

</div>

What The Problem Is At gitlab.gnome.org/GNOME/accerciser/-/issues/72#note\_2654563, I have been informed that installing python3-debug-0:3.14.2-1.fc43 should allow me to utilise python3-debug inside GDB, which should allow me to invoke py-bt. However, as python-forum.io/thread-44240-post-184605.html#…

---

## [Dnf update of python3-pandas package](https://discussion.fedoraproject.org/t/dnf-update-of-python3-pandas-package/172039)

<div class="topic-metadata">

**Author:** [@dark-comet](https://discussion.fedoraproject.org/u/dark-comet)\
**Replies:** 2\
**Last updated:** [November 7, 2025, 11:54am UTC](https://discussion.fedoraproject.org/t/dnf-update-of-python3-pandas-package/172039 "2025-11-07T11:54:18Z")

</div>

Hey, dnf update on fedora 42 listed a large number of packages in ‘Installing dependencies’. The dependencies are the result of updating “python3-pandas”. I had a quick look at the pandas release notes between 2.2.3 and 2.3.3 but could not see a reason for the extra packages. Could this be an iss…

---

## [Fedora 42 core dumps in KDE Plasma and Python after update](https://discussion.fedoraproject.org/t/fedora-42-core-dumps-in-kde-plasma-and-python-after-update/162422)

<div class="topic-metadata">

**Author:** [@pmrpla](https://discussion.fedoraproject.org/u/pmrpla)\
**Replies:** 6\
**Last updated:** [August 18, 2025, 8:48am UTC](https://discussion.fedoraproject.org/t/fedora-42-core-dumps-in-kde-plasma-and-python-after-update/162422 "2025-08-18T08:48:19Z")

</div>

Problem This post is meant to help anyone that faces a similar problem, since for now the problem has been solved. I still don’t know why it happened, it’s so odd that it can even be hardware related. Last night I did my usual weekly update on a Fedora 42 install on a small Intel PC with integrated…

---

## [Unable to use python package due to OSError: cannot enable executable stack as shared object requires: Invalid argument](https://discussion.fedoraproject.org/t/unable-to-use-python-package-due-to-oserror-cannot-enable-executable-stack-as-shared-object-requires-invalid-argument/161445)

<div class="topic-metadata">

**Author:** [@probitjk](https://discussion.fedoraproject.org/u/probitjk)\
**Replies:** 7\
**Last updated:** [August 3, 2025, 3:24pm UTC](https://discussion.fedoraproject.org/t/unable-to-use-python-package-due-to-oserror-cannot-enable-executable-stack-as-shared-object-requires-invalid-argument/161445 "2025-08-03T15:24:11Z")

</div>

Summary I previously used NumbaMinpack on Fedora 34 with Python 3.11 without any issues. After upgrading to Fedora 42, I am unable to install or import the package successfully on a clean system with Python 3.13. Environment OS: Fedora 42 (fresh install) Python: 3.13 (inside a clean virtualenv) P…

---

## [What’s the best way to ship a python code to run as a background service on Linux (CentOS/RHEL)](https://discussion.fedoraproject.org/t/what-s-the-best-way-to-ship-a-python-code-to-run-as-a-background-service-on-linux-centos-rhel/151942)

<div class="topic-metadata">

**Author:** [@soundari](https://discussion.fedoraproject.org/u/soundari)\
**Replies:** 22\
**Last updated:** [June 4, 2025, 7:18am UTC](https://discussion.fedoraproject.org/t/what-s-the-best-way-to-ship-a-python-code-to-run-as-a-background-service-on-linux-centos-rhel/151942 "2025-06-04T07:18:06Z")

</div>

Hi all, I’ve developed a Python-based background service that performs periodic data uploads and file processing. It’s built with multiple modules/packages and runs persistently in the background on CentOS/RHEL systems. Adding additional info: I’m using py3.8 and my service should run as root to …

---

## [Problem with python/tkinter: \_tkinter.TclError: couldn’t connect to display “0.0”](https://discussion.fedoraproject.org/t/problem-with-python-tkinter-tkinter-tclerror-couldn-t-connect-to-display-0-0/146850)

<div class="topic-metadata">

**Author:** [@yosoyivan](https://discussion.fedoraproject.org/u/yosoyivan)\
**Replies:** 2\
**Last updated:** [March 10, 2025, 12:52pm UTC](https://discussion.fedoraproject.org/t/problem-with-python-tkinter-tkinter-tclerror-couldn-t-connect-to-display-0-0/146850 "2025-03-10T12:52:30Z")

</div>

Hi, I’m new to Fedora and I’m trying to learn Python with tkinter, but I keep receiving an error about unable to connect to Display. Does anybody know how to solve this? I used the virtual environment and run the “export DISPLAY=0.0” command in the terminal which I found in some troubleshooting fo…

---

## [How do you use a non-built-in Python libraries in apps?](https://discussion.fedoraproject.org/t/how-do-you-use-a-non-built-in-python-libraries-in-apps/144511)

<div class="topic-metadata">

**Author:** [@deltastarshine](https://discussion.fedoraproject.org/u/deltastarshine)\
**Replies:** 8\
**Last updated:** [February 12, 2025, 9:33pm UTC](https://discussion.fedoraproject.org/t/how-do-you-use-a-non-built-in-python-libraries-in-apps/144511 "2025-02-12T21:33:46Z")

</div>

I’m building an application with Builder. I want to import Requests library. I get an error: Application started at 15:08:33 Traceback (most recent call last): File "/app/bin/evade", line 45, in \<module\> from evade import main File "/app/share/evade/evade/main.py", line 31, in \<module\> …

---

## [How do I run a function when a user of my app closes it?](https://discussion.fedoraproject.org/t/how-do-i-run-a-function-when-a-user-of-my-app-closes-it/143854)

<div class="topic-metadata">

**Author:** [@deltastarshine](https://discussion.fedoraproject.org/u/deltastarshine)\
**Replies:** 6\
**Last updated:** [February 2, 2025, 5:47pm UTC](https://discussion.fedoraproject.org/t/how-do-i-run-a-function-when-a-user-of-my-app-closes-it/143854 "2025-02-02T17:47:19Z")

</div>

My app activates manual proxy settings when a connection toggle is turned on and turns proxy off when toggle position is reversed. The problem is, if a user presses a cross to shut the app down, they are left with manual proxy mode and broken internet. My current code, where I already tried some so…

---

## [F42 Change Proposal: Deprecate python-pytest-runner (self-contained)](https://discussion.fedoraproject.org/t/f42-change-proposal-deprecate-python-pytest-runner-self-contained/141620)

<div class="topic-metadata">

**Author:** [@salimma](https://discussion.fedoraproject.org/u/salimma)\
**Replies:** 8\
**Last updated:** [January 19, 2025, 10:23pm UTC](https://discussion.fedoraproject.org/t/f42-change-proposal-deprecate-python-pytest-runner-self-contained/141620 "2025-01-19T22:23:54Z")

</div>

Deprecate python-pytest-runner This is a proposed Change for Fedora Linux. This document represents a proposed Change. As part of the Changes process, proposals are publicly announced in order to receive community feedback. This proposal will only be implemented if approved by the Fedora Engineeri…

---

## [Security Experiment: Store executables in protected areas only](https://discussion.fedoraproject.org/t/security-experiment-store-executables-in-protected-areas-only/140289)

<div class="topic-metadata">

**Author:** [@boredsquirrel](https://discussion.fedoraproject.org/u/boredsquirrel)\
**Replies:** 7\
**Last updated:** [December 26, 2024, 1:08am UTC](https://discussion.fedoraproject.org/t/security-experiment-store-executables-in-protected-areas-only/140289 "2024-12-26T01:08:12Z")

</div>

Storing executable files in unprotected areas is very dangerous. It requires that users can execute code from pretty random locations, with no portal, password prompt, signature verification or other security barrier. This is an easy way to get malware. The idea Mount the home subvolume noexec and…

---

## [User python packages removed after upgrading to Fedora 41](https://discussion.fedoraproject.org/t/user-python-packages-removed-after-upgrading-to-fedora-41/137297)

<div class="topic-metadata">

**Author:** [@thinkpad](https://discussion.fedoraproject.org/u/thinkpad)\
**Replies:** 2\
**Last updated:** [November 18, 2024, 4:55pm UTC](https://discussion.fedoraproject.org/t/user-python-packages-removed-after-upgrading-to-fedora-41/137297 "2024-11-18T16:55:18Z")

</div>

I noticed my python packages were gone after upgrading. I had to re-install each dependency with pip.

---

## [Recent Python upgrade broke some stuff. Can I downgrade?](https://discussion.fedoraproject.org/t/recent-python-upgrade-broke-some-stuff-can-i-downgrade/136326)

<div class="topic-metadata">

**Author:** [@relzer-belzer](https://discussion.fedoraproject.org/u/relzer-belzer)\
**Replies:** 2\
**Last updated:** [November 10, 2024, 10:46pm UTC](https://discussion.fedoraproject.org/t/recent-python-upgrade-broke-some-stuff-can-i-downgrade/136326 "2024-11-10T22:46:33Z")

</div>

After upgrading to 41, I’ve found that the move to Python 3.13 is causing me some trouble. The Ranger file manager no longer works and also the jedi-vim Python plugin for Vim as stopped working as well. For Ranger, I have found a temporary work-around by installing it with pipx directly from the re…

---

## [Stupidly uninstalled bunch of python modules with sudo](https://discussion.fedoraproject.org/t/stupidly-uninstalled-bunch-of-python-modules-with-sudo/135614)

<div class="topic-metadata">

**Author:** [@swaziboy](https://discussion.fedoraproject.org/u/swaziboy)\
**Replies:** 4\
**Last updated:** [November 8, 2024, 1:47am UTC](https://discussion.fedoraproject.org/t/stupidly-uninstalled-bunch-of-python-modules-with-sudo/135614 "2024-11-08T01:47:36Z")

</div>

Hi there basically the title, trying to compile this app for Fedora 41 after an upgrade. The author mentioned the following dependencies need to be installed: - appdirs - dbus-python - evdev - Pillow - PyGObject - pyusb I ran using sudo and noted the warning about NOT doing this as it would…

---

## [Could Someone Give me Advice on Fedora Customization for Development Environment?](https://discussion.fedoraproject.org/t/could-someone-give-me-advice-on-fedora-customization-for-development-environment/134423)

<div class="topic-metadata">

**Author:** [@chrismartin](https://discussion.fedoraproject.org/u/chrismartin)\
**Replies:** 4\
**Last updated:** [October 23, 2024, 5:42pm UTC](https://discussion.fedoraproject.org/t/could-someone-give-me-advice-on-fedora-customization-for-development-environment/134423 "2024-10-23T17:42:59Z")

</div>

Hello there, I am new to the Fedora community and have recently installed Fedora Workstation as my primary development environment. While I am enjoying the overall experience; I am excited to customize it further to suit my development needs. I primarily work with Python and web development techno…

---

## [Installing python, perl, ruby modules in silverblue](https://discussion.fedoraproject.org/t/installing-python-perl-ruby-modules-in-silverblue/130117)

<div class="topic-metadata">

**Author:** [@archaic](https://discussion.fedoraproject.org/u/archaic)\
**Replies:** 5\
**Last updated:** [August 30, 2024, 10:24pm UTC](https://discussion.fedoraproject.org/t/installing-python-perl-ruby-modules-in-silverblue/130117 "2024-08-30T22:24:34Z")

</div>

Is there a general installation principle here? I’m mainly concerned about perl modules (cpan) and python modules (pip) but also to a lesser extent, ruby gems. I’m trying to avoid overlaying packages and thus considerably slowing down the ostree update process. Even more, though, I’m trying to avo…

---

## [Install pyaudio inside Toolbox fails](https://discussion.fedoraproject.org/t/install-pyaudio-inside-toolbox-fails/127518)

<div class="topic-metadata">

**Author:** [@zilexa](https://discussion.fedoraproject.org/u/zilexa)\
**Replies:** 2\
**Last updated:** [August 2, 2024, 5:24pm UTC](https://discussion.fedoraproject.org/t/install-pyaudio-inside-toolbox-fails/127518 "2024-08-02T17:24:01Z")

</div>

I created my first toolbox: toolbox create groundstation and toolbox enter groundstation then installed pip via sudo dnf install pip3. Then I ran this command to install some more stuff I need to run a python script: pip3 install opencv-python Pillow matplotlib basemap pymavlink haversine pyaudio…

---

## [Executing podman: Permission denied](https://discussion.fedoraproject.org/t/executing-podman-permission-denied/127299)

<div class="topic-metadata">

**Author:** [@tealk](https://discussion.fedoraproject.org/u/tealk)\
**Replies:** 3\
**Last updated:** [July 30, 2024, 3:57pm UTC](https://discussion.fedoraproject.org/t/executing-podman-permission-denied/127299 "2024-07-30T15:57:03Z")

</div>

Hello everyone, I have been puzzling for a few days now why I always get the following error message when I want to start my Django project: \[db\] | chmod: changing permissions of '/var/lib/postgresql/data': Permission denied \[db\] | find: ‘/var/lib/postgresql/data’: Permission denied \[db\] | chow…

---

## [Mugshot and the XFCE Spin](https://discussion.fedoraproject.org/t/mugshot-and-the-xfce-spin/126881)

<div class="topic-metadata">

**Author:** [@coldreactive](https://discussion.fedoraproject.org/u/coldreactive)\
**Replies:** 6\
**Last updated:** [July 25, 2024, 6:25pm UTC](https://discussion.fedoraproject.org/t/mugshot-and-the-xfce-spin/126881 "2024-07-25T18:25:44Z")

</div>

As explained in Installed Mugshot but it won't launch Seems like chfn and python3-gi don’t exist in the fedora repos anymore. I added a .face file with my image I wanted to my home directory, and it still won’t update the icon. Yes, the whisker menu still tries to use mugshot for this. How do I…

---

## [Installed Mugshot but it won't launch](https://discussion.fedoraproject.org/t/installed-mugshot-but-it-wont-launch/74496)

<div class="topic-metadata">

**Author:** [@paulgureghian](https://discussion.fedoraproject.org/u/paulgureghian)\
**Replies:** 13\
**Last updated:** [July 24, 2024, 11:43pm UTC](https://discussion.fedoraproject.org/t/installed-mugshot-but-it-wont-launch/74496 "2024-07-24T23:43:53Z")

</div>

But it wont launch.

---

## [\[OSError\] No space left on device when I pip install torch](https://discussion.fedoraproject.org/t/oserror-no-space-left-on-device-when-i-pip-install-torch/122880)

<div class="topic-metadata">

**Author:** [@jcube19](https://discussion.fedoraproject.org/u/jcube19)\
**Replies:** 6\
**Last updated:** [June 23, 2024, 8:38pm UTC](https://discussion.fedoraproject.org/t/oserror-no-space-left-on-device-when-i-pip-install-torch/122880 "2024-06-23T20:38:13Z")

</div>

I checked some discussions where they advised to use --no-cache-dir and $TMPDIR methods. But they are not working in my case. I checked the output of df -h and got to know it is loading packages in /run/user/1000 which is only 1.6G which is used 100% and then pip throws this error. I tried increasin…

---

## [After updating fedora 40 PySide6 in Python it does not work](https://discussion.fedoraproject.org/t/after-updating-fedora-40-pyside6-in-python-it-does-not-work/116359)

<div class="topic-metadata">

**Author:** [@grincon](https://discussion.fedoraproject.org/u/grincon)\
**Replies:** 12\
**Last updated:** [May 26, 2024, 3:50am UTC](https://discussion.fedoraproject.org/t/after-updating-fedora-40-pyside6-in-python-it-does-not-work/116359 "2024-05-26T03:50:51Z")

</div>

I am learning to use the Qt6 controls with Pyside6, but after the last update I could no longer run this code and it tells me that there is a Segment Fault (‘core’ generated), and before the last update I could run it without problems, now I have tested the same code using PyQt6 and it has not prese…

---

## [Adding Python Plugin Support to GIMP on Fedora](https://discussion.fedoraproject.org/t/adding-python-plugin-support-to-gimp-on-fedora/114718)

<div class="topic-metadata">

**Author:** [@user2021](https://discussion.fedoraproject.org/u/user2021)\
**Replies:** 3\
**Last updated:** [April 29, 2024, 9:38am UTC](https://discussion.fedoraproject.org/t/adding-python-plugin-support-to-gimp-on-fedora/114718 "2024-04-29T09:38:55Z")

</div>

Hello, I am unable to get a GIMP plugin written in Python (.py) to work on my system. I have discovered that GIMP was initially built without support for Python plugins. On other operating systems, it is sufficient to install the gimp-python package and GIMP will then have support for Python plugin…

---

## [DNF5 Warnings/Errors after Fedora 40 Upgrade for python3-googleapis-common-protos](https://discussion.fedoraproject.org/t/dnf5-warnings-errors-after-fedora-40-upgrade-for-python3-googleapis-common-protos/114056)

<div class="topic-metadata">

**Author:** [@darkufo](https://discussion.fedoraproject.org/u/darkufo)\
**Replies:** 9\
**Last updated:** [April 24, 2024, 8:05am UTC](https://discussion.fedoraproject.org/t/dnf5-warnings-errors-after-fedora-40-upgrade-for-python3-googleapis-common-protos/114056 "2024-04-24T08:05:11Z")

</div>

Hi All, Successfully upgraded my Fedora 39 laptop to 40. The upgrade went very smoothly and I booted into my system. I then ran the following command in Fedora 40 sudo dnf5 upgrade --refresh -y && sudo dnf5 install dnf-plugin-system-upgrade -y But I get some errors in the output. Updating and l…

---

## [How to resolve "dnf: command not found..." problem on fedora 39](https://discussion.fedoraproject.org/t/how-to-resolve-dnf-command-not-found-problem-on-fedora-39/107734)

<div class="topic-metadata">

**Author:** [@943n12uk0](https://discussion.fedoraproject.org/u/943n12uk0)\
**Replies:** 6\
**Last updated:** [March 11, 2024, 3:58pm UTC](https://discussion.fedoraproject.org/t/how-to-resolve-dnf-command-not-found-problem-on-fedora-39/107734 "2024-03-11T15:58:28Z")

</div>

I was trying to remove python environment and I think I accidentally removed the one comes default with fedora and makes dnf command not available. I did(not consecutively but I think those three commands are the relevant ones): sudo rm /bin/python sudo rm /usr/bin/python sudo rm /bin/python3 /bin…

---

## [Do flatpaks vs shell see different paths? (eg Pycharm Pro python vs konsole Python)](https://discussion.fedoraproject.org/t/do-flatpaks-vs-shell-see-different-paths-eg-pycharm-pro-python-vs-konsole-python/107037)

<div class="topic-metadata">

**Author:** [@blaise](https://discussion.fedoraproject.org/u/blaise)\
**Replies:** 2\
**Last updated:** [March 5, 2024, 2:05am UTC](https://discussion.fedoraproject.org/t/do-flatpaks-vs-shell-see-different-paths-eg-pycharm-pro-python-vs-konsole-python/107037 "2024-03-05T02:05:01Z")

</div>

My pycharm pro only sees python3.11 in /usr/bin/python3 and that works, but I would like to use 3.12, which is apparently also on my machine “somewhere” because From konsole, I see that my python defaults to 3.12 $ /usr/bin/python3.12 -VV Python 3.12.2 (main, Feb 7 2024, 00:00:00) \[GCC 13.2.1 202…

---

## [Python: venvs vs \`--user\` installs](https://discussion.fedoraproject.org/t/python-venvs-vs-user-installs/106514)

<div class="topic-metadata">

**Author:** [@boredsquirrel](https://discussion.fedoraproject.org/u/boredsquirrel)\
**Replies:** 4\
**Last updated:** [February 27, 2024, 3:08pm UTC](https://discussion.fedoraproject.org/t/python-venvs-vs-user-installs/106514 "2024-02-27T15:08:46Z")

</div>

How are venv’s different from --user installation? Afaik --user also doesnt interfere but packages work well and everywhere.

---

## [Python speed](https://discussion.fedoraproject.org/t/python-speed/104780)

<div class="topic-metadata">

**Author:** [@tablepc](https://discussion.fedoraproject.org/u/tablepc)\
**Replies:** 2\
**Last updated:** [February 9, 2024, 6:54pm UTC](https://discussion.fedoraproject.org/t/python-speed/104780 "2024-02-09T18:54:20Z")

</div>

Context: I am a retired engineer making things to interest kids in electronics and programing. Nothing is for profit. After all Kids need to be prepared for a career and these skills are needed for small things like scanners and printers to EVs and factory machines that make things. Since Eclipse l…

[Next page](https://discussion.fedoraproject.org/tag/python/714.md?match_all_tags=true&page=1&tags%5B%5D=python)
