Questions tagged [python3]
Python 3 is the latest major version of Python, a scripting language used by many open source developers.
1,410
questions
0
votes
0
answers
113
views
Unable to install software on Ubuntu 23:10, specically python pip
I tried using advice from other questions asked here. I ran:
python3 -m venv tutorial_env
source tutorial_env/bin/activate -y
in the terminal.
This is what the terminal displays after execution:
The ...
0
votes
0
answers
20
views
Python selinux module circular import while running audit2allow
Getting that error while running audit2allow and I'm using python 3, below is the error. I don't see this issue with python 2 though:
build:~$ python --version
Python 3.9.18
build:~$ audit2allow
...
1
vote
0
answers
76
views
No module named 'softwareproperties'
I previously manually deleted the system's built-in python2 and python3, and then manually installed them again. When I ran the command sudo add-apt-repository ppa:xxxx, I would get this error.How to ...
2
votes
1
answer
254
views
Ubuntu 23.10.1 ISO Installer, and runaway python3 process
I prepared an external 2TB USB SSD drive with the (re-released) 23.10.1 ISO image. Then I edited /etc/grub.d/40-custom to be able to boot to the ISO image directly from GRUB.
menuentry "Ubuntu 23....
1
vote
1
answer
66
views
update-alternatives, is it *generally* usable?
These links:
https://manpages.ubuntu.com/cgi-bin/search.py?q=update-alternatives
https://askubuntu.com/search?q=update-alternatives
... do not provide any direct insight into whether update-...
0
votes
2
answers
197
views
How to use `python3-autopilot` with `python3 -m venv venv`?
How can I use python3-autopilot with python3 -m venv venv?
I have installed python3-autopilot (Ubuntu's "Utility to write and run integration tests easily") with sudo apt-get install -y ...
0
votes
1
answer
61
views
Module not found in virtual environment: Pandas
I am running Ubuntu 20.04. I have create a virtual environment to run Odoo. In activating an app it returned an error saying ModuleNotFound: pandas. Pandas is installed globally. Can I install this ...
1
vote
0
answers
68
views
Services not starting after upgrade 18.04 -> 20.04
need some help.
After upgrading the following services wont start again:
UNIT LOAD ACTIVE SUB DESCRIPTION
● networkd-dispatcher.service loaded ...
0
votes
0
answers
79
views
I cant export to .apk file my python program usin buildozer and Kivy
I was following this tutorial to learn how to export my project (wrote in python) to an .apk file. (https://www.youtube.com/watch?v=pzsvN3fuBA0&t=4s) but I get this error while I was running ...
1
vote
1
answer
95
views
Volian Scar repo wants to update python3-anyio, but this gives dependency problems
I'm using Ubuntu 22.04.3 Server. I've installed nala using the Volian Scar repo. Recently, this repo has included a number of updated Python 3 packages, including python3-anyio.
However, this ...
0
votes
0
answers
59
views
How can I fix the numerous issues that came from removing python
I have Ubuntu 20.04. Recently I removed Python version 3.8.10 and reinstalled it while trying to get an Wemos board to work. It didn't succeed in the end, but that's not what's important right now.
...
0
votes
0
answers
70
views
Ubuntu VM with Cups Server and docker container with pycups: cups.IPPError: (1030, 'The printer or class does not exist.')
I have an Ubuntu VM with the cups server installed, configured and running.
I can print to every printer from the web interface with no problems.
Inside this VM there is a docker container with a ...
0
votes
1
answer
171
views
Python disfunctional after upgrading to Ubuntu 22.04
I just upgraded to Ubuntu 22.04 (WSL) and somehow my Python is all messed up.
When I load Ubuntu, I get:
/usr/bin/env: ‘python3’: No such file or directory
/usr/bin/env: ‘python3’: No such file or ...
0
votes
0
answers
407
views
(Ubuntu 22.04.3 LTS) Cannot install python3-pip, error message (code 1) appear
I have a problem when trying to install python3-pip on Ubuntu 22.04.
I got the Ubuntu from here and run on USB drive. Then as python3/pip is in the universe repository, I enabled the universe ...
1
vote
0
answers
141
views
Does ubuntu 22 works fine with OMEN 17 with RTX 4080 and intel i9?
Currently looking for buying a new laptop, which can run ubuntu 22 desktop successfully. I've tried with Macbook pro 14 with M2, it may not support ubuntu for next upcoming 5 years at least. So in ...
0
votes
1
answer
44
views
Is python-omniorb package available for Ubuntu22
I am upgrading to Ubuntu 22.04 and need a package python-omniorb which I use under Ubuntu 20.04 but cannot find it for Ubuntu22. I have used the package search but it finds only Ubuntu20. Is it ...
0
votes
0
answers
42
views
Error building snapcraft python3-based app
this is my .yaml file
name: ibop
version: '1.0'
summary: Get your pubblic IP address
description: |
This is just a test
grade: devel
confinement: strict
base: core22
parts:
ibop:
plugin: ...
0
votes
0
answers
33
views
find snap app temporary folder programatically
I run python scripts that call system applications to produce some output files. The user can decide to put those file in a temporary folder, for example using tempfile.gettempdir(). However this ...
-1
votes
1
answer
36
views
trouble creating python3 -m venv py_envv using windows subsystem linux (using ubantu distribution)
Its my first post in askUbuntu, please bare with my discription.
command at PWD : python3 -m venv py_envv
after excuting I got an error below
The virtual environment was not created successfully ...
0
votes
1
answer
26
views
Trying to installing python modules in Ubuntu, I cannot find them in the official repo
In the PyPi repo there were several modules I was using. (Gekko, Control, and Inspyred). I cannot find their equivalent in the Ubuntu official package repo. Have they been renamed or were they not ...
0
votes
0
answers
50
views
Upgrade to Python3.9 cannot ssh to the Ubuntu EC2 instance
I'm creating a custom AMI using packer and ansible. The base AMI is an Ubuntu 20.04 provided by the Canonical and it's customized using an ansible playbook.
I'm installing python3.9 and setting it as ...
0
votes
0
answers
161
views
Ubuntu-23.04 version apt-get update not working (python3 error)
I have new ubuntu system with version 23.04 and when i do sudo apt-get update
I get the following output.
Could not find platform independent libraries <prefix>
Could not find platform dependent ...
2
votes
0
answers
93
views
/lib is usually a softlink, but was replaced by a mostly empty directory
I have an Ubuntu 20.04.6 LTS server.
It suddenly started refusing ssh connections citing /bin/bash: No such file or directory.
Reboot the machine fails with a kernel panic, with the following ...
0
votes
0
answers
301
views
How to install pip for python2 and pip3 for python3 in Ubuntu?
How can I install pip for python2 and pip3 for python3. So that when I run pip --version it should show pip 18.1 from /usr/lib/python2.7/dist-packages/pip (python 2.7) and when I run pip3 --version, ...
0
votes
0
answers
112
views
I am encountering while processing: ubuntu-advantage-tools :ModuleNotFoundError: No module named 'uaclient.config'
sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically ...
1
vote
1
answer
49
views
cannot import sdl2.sdlgfx: ImportError: found ['libSDL2_gfx-1.0.so.0'], but it's not usable for the library SDL2_gfx
I've succeeded to import sdl2.sdlgfx with the latest upstream release.
When I going to import sdl2.sdlgfx, it fails.
If you succeed to import, please comment how to do this.
I tried like below.
$ ...
0
votes
1
answer
88
views
install different version python
i'm using the iso file built on arm for mac m1 jammy-desktop-arm64.iso my default version of python is 3.10.12 and i run the following commands
sudo add-apt-repository ppa:deadsnakes/ppac
sudo apt ...
0
votes
1
answer
54
views
Self build executable can only be executed via context menu "run as a program"
I am using Ubuntu 22.04.2 LTS
I have created an executable using pyinstaller and copied it to the desktop. The problem is that it does not open when double-clicked.
However, if you open the desktop as ...
3
votes
2
answers
5k
views
Install Python3.10 on Ubuntu 23.04
I've tried to install python3.10 alongside with native python3.11, on Ubuntu 23.04, but looks like it's not available.
mika@system:~$ sudo apt update && sudo apt install python3.10
Hit:1 http:/...
0
votes
1
answer
2k
views
dpkg dependency problems: Package python3 is not configured yet
I had to perform a reboot recently, and running sudo apt upgrade has resulted in dependency problems ever since:
The following packages were automatically installed and are no longer required:
...
1
vote
1
answer
917
views
Installing python3.10 on Ubuntu23.04, alongside with python3.11 causes apt crash [duplicate]
I need to use python3.10 on Ubuntu23.04.
I've tried to install python3.10 on Ubuntu23.04, alongside with python3.11. And, it looks like it has been installed.
But, python3.10-venv didn't.
Than I've ...
1
vote
1
answer
532
views
Cant Add Firefox PPA: httplib2.error.ServerNotFoundError: Unable to find the server at api.launchpad.test
When I run this command
sudo add-apt-repository ppa:mozillateam/ppa
I get this error
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line ...
0
votes
0
answers
96
views
ClamAV doesn't scan a file if the extension is JSON
I am using ClamAV with it's Python interface pyclamd to scan for any potential malware or "bad files" that are downloaded by the code on the server. While it scans all other files properly, ...
1
vote
1
answer
149
views
Problems with boot (Ubuntu tty1-) [duplicate]
I used the command sudo apt autoremove python3 and now my ubuntu does not boot properly. It keeps going to Ubuntu tty1-. Would be grateful if someone could assist me.in fixing it.
1
vote
0
answers
69
views
Stream Deck MK.2 not working on Kubuntu 23.04
I was able to make to work with Linux Mint just fine but after switching to Kubuntu 23.04 I am not able to make it to work, I am getting this error when I execute this line:
$ pip3 install --user ...
0
votes
0
answers
92
views
Ubuntu Linux segfault when transferring files over SFTP
I am trying to transfer movie files over SFTP to my Ubuntu server in order to load them to my Jellyfin Docker instance, but every time I try to transfer a file I get a segfault error.
I am running ...
3
votes
1
answer
2k
views
ubuntu 23.04 python3 no module named ensurepip
I am pulling my hair out over this issue.
I am not a python user so following random instructions I find anywhere to solve this issue but nothing works.
Basic problem is that I am trying to use ...
0
votes
0
answers
17
views
Jupyter NB fails to import packages that work well on the Ubuntu cmd line
[I started using Linux (Ubuntu) very recently to be able to run SageMath without problems - i.e. no idea!]
The Jupyter notebook in Ubuntu allows running SageMath, Rstats and Python all at the same ...
1
vote
0
answers
296
views
Encountering "Fatal Python error: Segmentation fault" error in python script
Recently my system got upgraded from ubuntu18.04.1 to ubuntu22.04.2 and as a result of which the following got upgraded as below:
python 3.7.5 to python3.10.6
Mysql 5.7.38 to mysql 8.0.31
I see, ...
0
votes
0
answers
162
views
Blender python ensurepip problems/errors
Trying to install a addon in Blender throws a python error.
import ensurepip
ModuleNotFoundError: No module names `ensurepip`
So then I tried
python3 -m ensurepip
/usr/bin/python3: No module named ...
0
votes
0
answers
834
views
How fix errors repo
How to solve my problem with the repo tool after I wrote a command on the terminal
sudo apt install repo
And I updated the Ubuntu operating system, and when I ran the repo tool, it did not work
~$ ...
1
vote
1
answer
174
views
Syntax error in object.h file from python3.10-dev package
I am writing a code to edit Sqlite database from c++ and then using PyBind11 to use the program with python. I installed PyBind11, built it till here no issue but when I am building the code it shows ...
1
vote
0
answers
41
views
Logical conundrum in automatically installing libraries
I have a bit of code that attempts to install a library if it doesn't already exist - this is for deployment on many machines so I'm trying to automate as much as possible.
My code looks like this:
...
13
votes
4
answers
33k
views
pip error on Ubuntu: externally-managed-environment × This environment is externally managed
I upgraded to Ubuntu 23.04. Now, when I run a pip command (installed using sudo apt install python3-pip), I get this error:
$ pip install --user <foobar>
error: externally-managed-environment
× ...
0
votes
0
answers
30
views
Can I run ubuntu 17.10 python behavior on my ubuntu 22.04 (usb stick installation or virtual machin solutions ?)
I would like to run python 3.6 and JS project (2018) on my laptop but I have Ubuntu 22.04 installed and there are a lot of incompatibilities.
As I have many other programs installed, I want to keep my ...
1
vote
0
answers
242
views
Move installed Python3.6 to another location/folder in Ubuntu 22.04
Hello folks and thanks for any help,
I needed to install Python 3.6 to fiddle with a script from a few years ago and the only way I found was through make files (compiler).
Steps are explained here : ...
0
votes
0
answers
28
views
I Can't install python3-pip because it has no installation candidate [duplicate]
So i entered
sudo apt-get install python3-pip
And i got
Building dependency tree... Done
Reading state information... Done
Package python3-pip is not available, but is referred to by another package.
...
0
votes
1
answer
426
views
Python socket.gethostname() data source
For a project I'm working on inside of a dockerized python3 module. I'm running into the issue that socket.gethostname() always returns the random docker name. Since these instances are temporary and ...
0
votes
1
answer
2k
views
python3-serial miniterm.py location
I am trying to install python3-serial on ubuntu (18.04 and 20.04) and can't seem to get miniterm.py in PATH.
From what I've read, it should be installed either in /usr/bin/miniterm.py or /usr/local/...
1
vote
2
answers
134
views
how to undo installlin youtub-dl and python3-pip
i have question i install pyhon3 pip and then I install youtube-dl
sudo install apt python3-pip
sudo pip3 install youtube-dl
how i can uninstall youtube-dl and undo installing pyhon3 as pip i get ...