Questions tagged [python3]
Python 3 is the latest major version of Python, a scripting language used by many open source developers.
1,422
questions
0
votes
0
answers
19
views
Is it possible to boot a Pyglet script as the desktop environment
I'd like to create a media center similar to Kodi in Pyglet. Was wondering if it'd be possible to boot into my Pyglet script as the primary DE.
For those wanting more details, I plan to make it a ...
1
vote
1
answer
135
views
fsleyes segmentation fault (core dumped)
I use FSL's neuroimaging program FSLeyes for my work. Usually, I can start running the program from any directory by simply entering fsleyes into the command line. Today, my cat stood on my computer ...
0
votes
0
answers
35
views
How to monitor user inactivity without using d-bus on ubuntu 22.04 using gnome 42.9
How to monitor user inactivity from kb or mouse without using d-bus and tracking any video fullscreen or small screen on ubuntu 22.04 using gnome 42.9
I already have a solution using dbus however ...
0
votes
1
answer
73
views
APCI error, Ubuntu can't boot
As the title says, I can't enter to Ubuntu. It gets stuck after grub bootloader.
After some minutes the following message appears related with APCI:
In order to try to solve it, I have check some of ...
0
votes
1
answer
52
views
Help repairing broken Python base on Linux with Miniedit-WiFi setup
I previously uninstalled Python3.12 (on which I had ran Miniedit-WiFi
tool) and left the default Python3.11; however the following
console-log error keeps popping out whenever I run a Python script on ...
0
votes
0
answers
61
views
Python 3 Installation Errors Ubuntu 22
When using pip install
python3 -m pip install
I get the error
AttributeError: module 'csv' has no attribute 'reader'
Python version installed is python --version Python 3.10.12
I am wondering is ...
0
votes
1
answer
235
views
Python version problems Ubuntu 22.04 LTS
My goal is it to install tkinter for python 3.11. I have successfully installed and used 3.11 from the deadsnakes ppa. But when I run
sudo dpkg -i python3-tk_3.11.2-3_amd64.deb
I get:
dpkg: ...
-1
votes
1
answer
100
views
How to isolate cpu and ram for specific task. I already use "isolcpus" in the Grub setting to limit my CPU, but it does not get desired result
The main issue is to calculate the execution time of my algorithm, which is run in Python, and get a fixed execution time for each execution of the algorithm on the same data. I use the same data on ...
1
vote
1
answer
548
views
how to uninstall older python3.6 from Ubuntu 22.04?
I have Ubuntu 22.04 and it comes with python 3.10 installed as /usr/bin/python3 -> python3.10
However, I also have /usr/local/bin/python3 -> python3.6 . I think it must be from a previous ...
0
votes
1
answer
114
views
FileNotFoundError: [Errno 2] No such file or directory: 'dftd3' [closed]
I am getting a File not found error even though the file is available in the directory. Can someone help me please?
I am using the ASE package to perform DFT calculations. I am using GPAW package ...
0
votes
0
answers
40
views
able to run the code through TERMINAL but getting time out error through IDE
i am using
ssh.exeCommand("cd /root/newbuild/" + arg_obj["nbu_path"] + " && ./install < /tmp/NBU_10.3_response_master2")
and triggering a file for ...
0
votes
1
answer
117
views
Problem with created Python 3.6 virtual environment on Ubuntu 20.04 with Pip
Subject: Issue with Segmentation Fault When Running pip list in Python 3.6 Virtual Environment
I recently installed Python 3.6 and successfully created a virtual environment. However, when I try to ...
0
votes
0
answers
85
views
Python libraries installation
I am getting this after installing opencv and my file isn't running what should I do?
WARNING: The script f2py is installed in '/home/jitendra/.local/bin' which is not on PATH.
Consider adding this ...
1
vote
0
answers
60
views
Warnings when saving a figure with `matplotlib`
I have a simple matplotlib script:
import matplotlib.pyplot as plt
plt.plot([1, 2], [1, 2], c="b")
plt.savefig("./fig.png")
When I run the script, the image is saved okay, but I ...
0
votes
2
answers
431
views
Install python3-pip
I am running Ubuntu 22.04
Can someone please explain to me what is happening here:
root@mail:~# pip3 install --user pyznap
Command 'pip3' not found, but can be installed with:
apt install python3-pip
...
0
votes
0
answers
70
views
Does Ubuntu 23.10 support GPIO on raspberry pi 5 in Python [duplicate]
If so anyone have an example for gpio 2 button press
0
votes
1
answer
95
views
Why does python on Ubuntu 20 not have a prompt?
I can't find the command prompt for Python. I used to use it as my primary calculator on windows 10. I only have idle and the IDE. I just made a small program in Python, but it won't run it in a ...
8
votes
1
answer
8k
views
How to replace python3.10 with python3.12 in ubuntu 22.04 [duplicate]
I tried to install python3.12 from here. Then I wanted to switch the default python3 (3.10) to the newly installed and delete the old (3.10) one but it turns out, I can't get rid of the old version ...
0
votes
0
answers
604
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
55
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
237
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
408
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
102
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
247
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
183
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
108
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
235
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
149
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
63
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
174
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
321
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
2k
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
387
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
92
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
94
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
35
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
94
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
34
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
106
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
257
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
140
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
664
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
137
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
73
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
237
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
96
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
10k
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:/...
1
vote
1
answer
3k
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
2k
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
989
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 ...