Questions tagged [python]
Python is an interpreted programming language that is often, but not solely, used as a scripting language. A version of Python is included by default on all Ubuntu distributions.
5,250 questions
0
votes
0
answers
100
views
python: "AttributeError: module 'ssl' has no attribute 'wrap_socket'" when calling mysql.connector.connect()
The example code in W3Schools Tryit Editor works fine in my Chrome browser, printing:
<mysql.connector.connection.MySQLConnection object ar 0x016645F0>
But when I try a real example:
$ cat ./...
0
votes
0
answers
137
views
SSLCertVerificationError: "Hostname mismatch, certificate is not valid for 'api.openml.org'" when using fetch_openml (conda env)
I'm on Linux using a conda environment (ML) and I get a SSL certificate verification error when trying to load a dataset from OpenML with sklearn.datasets.fetch_openml. I already installed certifi ...
1
vote
1
answer
75
views
Issue with Debian package update & migration
I’m working on a Debian package migration and could use input on the upgrade and packaging process.
Background:
Program recently upgraded from version 2.X.X to 3.X.X.
With the upgrade, renamed the ...
1
vote
1
answer
185
views
Cannot install python3-venv or python3-full [duplicate]
I'm trying to install python3-venv on Ubuntu 24.04.3 noble but getting the error:
The following packages have unmet dependencies:
python3-venv : Depends: python3.12-venv (>= 3.12.3-0~) but it ...
0
votes
1
answer
166
views
Installing bt-dualboot
I have been having problems with bluetooth connection while dualbooting. I found out that this project (https://github.com/x2es/bt-dualboot) is solving the issue.
When I run:
sudo pip install bt-...
2
votes
1
answer
128
views
How can I generate a full screen semi transparent window in Ubuntu?
At night, my fully dimmed screen is still too bright. I used to (in 22.04) run a small python script to generate a black background window with 0.5 transparency. This reduced the light even further. ...
0
votes
1
answer
152
views
How to use/configure drivers installed with pipx? Ubuntu 24.04
I installed ds4drv drivers using pipx, but I don't know how to configure them.
ds4drv: command not found.
Apparently pipx installed ds4drv to /root/.local/share/pipx/venvs/ds4drv
Answer suggested to ...
5
votes
1
answer
431
views
How to install Python packages in Ubuntu 24.04.3?
My purpose is to install ds4drv drivers.
pip install ds4drv returns the following error:
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python ...
0
votes
0
answers
202
views
Ubuntu 25.10 VS Code unable to identify pip and ipykernel installed in venv required to run jupyter notebooks
System Information:
Ubuntu Version: 25.10
VS Code Version: Latest
Python Version: 3.13.7
Jupyter Extension: ms-toolsai.jupyter (Microsoft)
Problem Summary:
VS Code's Jupyter extension fails to ...
3
votes
1
answer
612
views
Ubuntu 24.04.3 LTS server with Python [closed]
I am new to Ubuntu and have problems with an Ubuntu server with 24.04.3 LTS and Python. My questions are:
Is there a native Python version shipped with Ubuntu 24.04.3 LTS? If yes, which Python ...
0
votes
1
answer
124
views
An application with a .desktop file is not appearing on the application launch screen
I am trying to add an application to my Ubuntu 24.04.2 system. This application does not have any "packaging", no apt packaging, no flatpak, nothing like that. It's a bit raw. It is ...
0
votes
1
answer
84
views
Unable to import the python module located in Google drive
I have some files in my Google drive folder. Have mounted them in my Ubuntu system using gnome online account. From my python program in the drive folder, I am able to files like json, txt , dat etc, ...
0
votes
0
answers
454
views
How to use Buildozer on WSL with Ubuntu 24.04.1 LTS version?
Why when i tried buildozer android debug after all commands from below:
sudo apt update
sudo apt install python3 python3-pip
pip3 install --user --upgrade buildozer
sudo apt install -y git zip unzip ...
0
votes
0
answers
192
views
pyenv installation 3.12.9 issue
I'm trying to compile python-3.12.9 version by following command pyenv install 3.12.9 but I'm facing an issue:
Downloading Python-3.12.9.tar.xz...
-> https://www.python.org/ftp/python/3.12.9/Python-...
1
vote
1
answer
166
views
Setup virtual enviroment for python 2.7.18 and python 3 same Ubuntu 24.04
For programming python I need to test programs with python 2 and 3.
Some modules that come with the Ubuntu repository are only for python 3, like Scapy.
My Ubuntu 24.04 has default python 2.7.18.
The ...