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,170
questions
0
votes
0
answers
24
views
PyCharm says "invalid python interpreter" about the venv I used (after Ubuntu upgrade)
After upgrading Ubuntu, PyCharm says this:
(How can I make that venv work on newer Ubuntu? - I'd rather keep all installed packages in that venv)
1
vote
0
answers
26
views
CUDA in Docker image breaks and require sudo apt upgrade
Question
Why sudo apt upgrade on the host OS is required to make CUDA work in Docker container? The problem does not occur without Docker, but occurs only when a Docker image is recreated.
Environment
...
-4
votes
0
answers
31
views
Hi im trying to update my kali linux but im getting this error [closed]
im using $sudo apt-get update and $sudo apt-get upgrade but im getting this weird error.
──(kali㉿kali)-[~]
└─$ sudo apt-get upgrade
Reading package lists... Done
Building ...
-3
votes
0
answers
29
views
I can not configure or uninstall python3.8 minimal , because of this i stacked here.please give solution asap
$ sudo apt-get install --reinstall python3
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and ...
-6
votes
0
answers
33
views
i want a flowchart for this code : [closed]
import pygame
pygame.init()
size = (600, 600)
screen = pygame.display.set_mode(size)
pygame.display.set_caption("Brick Breaker Game")
floor = pygame.Rect(100, 550, 200, 10)
ball = pygame....
0
votes
0
answers
19
views
Shell script doesn't recognize Python even after setting its path [duplicate]
I'm having trouble calling Python code from a shell script on Ubuntu. First of all, I confirm that Python is installed:
username@Ubuntu22:~/Documents/Script$ python
Python 3.10.12 (main, Nov 20 2023, ...
0
votes
0
answers
20
views
Pip install freeze inside python Docker image
Pip install freeze inside python Docker image. However on other Linux machine it launches right away.
=> [internal] load build definition from Dockerfile ...
0
votes
0
answers
29
views
Installed nvidia through file runner, nvcc is on my system but not properly configured
I installed version 11.8 of CUDA on my system through the runfile:
https://developer.nvidia.com/cuda-11-8-0-download-archive?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&...
0
votes
0
answers
243
views
No module named 'llama_index.vector_stores' - installation of OpenDevin on WSL Ubuntu
I try to install and start OpenDevin on WSL Ubuntu (WSL 2). Ok, I follow this guide but I can't fix this error so the backend doesn't start
ModuleNotFoundError: No module named 'llama_index....
-2
votes
0
answers
58
views
How to deal with "one of the commands exit with non-zero exit code" [closed]
I've been confused about the error message: one of the commands exited with non-zero exit code; note that snakemake uses bash strict mode!
Snakefile parameters:
Shell command:
This is the definition ...
0
votes
0
answers
78
views
Why am I getting an Illegal instruction (core dumped) error when attempting to run conpot in a vm?
Attempts at running conpot is giving me a illegal instruction (core dumped) error.
I am running an Ubuntu 22.04.4 server and I am attempting to run a conpot on it. It was working this morning and I ...
0
votes
1
answer
62
views
how to write cronjob
I tried to setup cronjob for python script erpnext_sync.py which is in located at /home/user_name/frappe-bench/biometric-attendance-sync-tool
$ crontab -l
* * * * * /usr/bin/python3 -c 'from ...
0
votes
1
answer
87
views
Correcting #!/bin/env python shebang issue
I recently installed DOCK3.7 on my workstation running Ubuntu 20.04. However, I encountered an issue where the python scripts called upon could not be located, despite specifying the correct path and ...
0
votes
1
answer
52
views
What languages installed with APT on Ubuntu come with graphical features straight out of the box?
Just wondering what programming languages I can install straight from the APT that come with built in graphics functions on Ubuntu. I know Java can but I don't know of anything else and information on ...
0
votes
0
answers
51
views
Kubuntu python environment pip installation too slow
I recently switched to Kubuntu from windows. When I create a python virtual environment and try installing packages using pip, the download and installation process take too long. But the ...
1
vote
0
answers
20
views
No jupyterhub access to GPU
Platform: x86_64, Ubuntu 22.04.4 LTS, 5.15.0-101-generic, jupyterhub 2.0.0+ds1-2
I've installed jupyterhub from the official Ubuntu software repositories (package jupyterhub). This works and I can ...
0
votes
0
answers
19
views
How to configure a folder for custom Python App installed through CPanel?
I installed my python script using Cpanel feature "Setup Python App".
I run my script in virtual environment created by CPanel:
/home4/apmcapit/virtualenv/apps/myapp/3.9/bin/python /home4/...
0
votes
0
answers
165
views
Launching ProtonVPN On Ubuntu 22.04 Error - AttributeError: 'NoneType' object has no attribute 'connect'
I am facing this issue using ProtonVPN on Ubuntu, it was working well a few days ago. I have also tried to reinstall it several times but nothing seems to work. Please if anyone got this before, here'...
2
votes
1
answer
1k
views
How to install Python 3.12 on Ubuntu 23.10?
I did several wrong things for my first day on Ubuntu when trying to code with Python, so I just reinstalled it. Can anyone tell me the best way to install Python here? I am using Ubuntu 20.04, and I ...
0
votes
1
answer
36
views
ProgrammingError: 1045 (28000) Issue with logging into MySQL DB using Python script and Ubuntu
I have created a Python script that does some calculations and then points to a DB to fill out some tables. The DB is hosted on a Ubuntu Azure VM, where I set up a MySQL database. I have been able to ...
0
votes
0
answers
55
views
Snap directory full, automatic python update broke all python code
I enabled app updates in Ubuntu Pro on a 20.04 LTS box but any attempt to run python code breaks immediately on import.
For example, entering
import pandas as pd
in a python3.8 shell returns a ...
-1
votes
1
answer
43
views
How do I uninstall a program that I installed using make?
I'm sorry for the uninformative question title, if you come up with a better one, feel free to edit.
So, I made the mistake of installing Python 3.9.2 using these instructions on DigitalOcean. However,...
0
votes
1
answer
110
views
Not able to update or upgrade after upgrading from Python 3.10.12 to Python 3.11 [duplicate]
I have a complete backup for starters. Second, I was testing an application that required me to upgrade from Python 3.10.12 to Python 3.11, and now Gnome Terminal is not working, and I am unable to ...
0
votes
1
answer
214
views
Python3.12.2 not getting updated in Ubuntu successfully
I'm a new user in Ubuntu, new in Linux domain. I have python3.10 as the system version. I have been trying to update to 3.12.2. I downloaded the python3.12.2 file from python.org. After that, I ...
0
votes
0
answers
162
views
Trying to debug sluggish VS Code performance
I have found that VS Code is working more slowly than usual this past month, at least when dealing with Jupyter notebooks. Code that runs well in JupyterLab is taking much longer to execute within VS ...
1
vote
1
answer
102
views
Jammy python installation corrupted for just one user: cannot import name 'Mapping' from 'collections'
I keep my Jammy Ubuntu always up to date, with all updates installed almost daily. So everything I have installed is at its latest version.
I have installed two important applications: a Windows VM on ...
0
votes
0
answers
54
views
On upgrade to manic minotaur 23.10, python threading deamon not working
I upgraded Ubuntu from 23.04 to 23.10
Release 23.10 (Mantic Minotaur) 64-bit
Kernel Linux 6.5.0-17-generic x86_64
Python3 version 3.11.6
Since upgrading, any python programs using threading with ...
0
votes
0
answers
31
views
How to package and deploy a DEB without any assumptions about dependencies installed on the target machine
I am creating a DEB package for installation by external systems. At this early stage of development the DEB package consists of custom-developed Python wheels. These wheels depend on:
System binary ...
0
votes
0
answers
93
views
cannot post data with micropython urequests.post on an ESP32
I can't get micropython to post data to a php script properly... I am using Thonny and an ESP32, which for the moment just provides network connectivity to a MAMP instance.
I have the following python ...
0
votes
0
answers
54
views
Failed to load entry point 'list' on running " ros2 topic list "
On running ros2 topic list in terminal after newly installing Ros 2 Foxy on Ubuntu 20.04, it is showing the following error.
/opt/ros/foxy/bin/ros2:6: DeprecationWarning: pkg_resources is deprecated ...
0
votes
0
answers
194
views
I am using the colcon buil command in my ros workspace, the following error appears : R_X86_64_TPOFF32
When I cd into my ros workspace, and use the following command - colcon build ,
I get to see the following error messages,
ERROR:colcon.colcon_core.extension_point:Exception loading extension '...
0
votes
0
answers
53
views
The issue caused by changing Python versions [duplicate]
After installing Python 3.9 on Ubuntu 20.04, the default terminal does not open. However, when reverting back to Python 3.8, the terminal opens successfully.
If you have experienced or found a ...
1
vote
1
answer
144
views
Software Updater (update-manager) stuck, but `apt update` and `apt upgrade` work fine. How to fix the update-manager?
Software Updater (update-manager) stuck, but apt update and apt upgrade work fine. I have try to use sudo dpkg --configure -a.
The error stacktrace is follow:
update-manager
Traceback (most recent ...
-4
votes
2
answers
218
views
On Ubuntu, Python not showing output [closed]
I am using Ubuntu 22.04.3 LTS and Python 3.10.12. When I write a simple script i.e.print('hello') or using ruby with puts "Hello World" and run it in a terminal I get no output. This ...
-2
votes
1
answer
94
views
blender-3.5.1-linux-x64/3.5/python/lib/python3.10/site-packages/OpenEXR.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZTIN13IlmThread_3_14TaskE
I am trying to install OpenEXR Python package in Ubuntu 22.04 using bundled Python 3.10 that comes with Blender 3.5.
(base) mona@ada:~/pvnet-rendering$ /home/mona/Downloads/blender-3.5.1-linux-x64/3.5/...
0
votes
0
answers
54
views
Crontab -l not reporting any jobs after /etc/crontab edit
I want to run a Python script at certain intervals.
So I edited the /etc/crontab file and added this:
*/2 9-10 * * 1,2,4,5 administrator DISPLAY=:0 python3 /home/administrator/main.py
So I want to ...
0
votes
1
answer
358
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
vote
0
answers
92
views
How to fix lag in matplotlib first plot in a WSL Ubuntu?
For a simple plot (e.g. plt.plot([1,2,3], [2,5,1]), matplotlib lags for around 10s after plt.show(), before it opens the plot window.
I'm on Ubuntu WSL on Windows 11. The lag only happens on the first ...
0
votes
1
answer
162
views
How to install gtk-recordmydesktop?
I've upgraded Linux to the newest version recently, and re-installed recordmydesktop, but I want to install gtk-recordmydesktop, the one that allows you to pause it and select what part of the screen ...
0
votes
2
answers
238
views
Is it possible to install and use the concurrent.futures module?
I'm reading Python documentation at https://docs.python.org/3/library/concurrent.futures.html and I want to use this feature, but I cannot.
It fails on the first step: importing the module. For
...
0
votes
0
answers
140
views
Installing TensorFlow 1.0.0 on Ubuntu 22.04 [WSL] with Python 3.6.15 Virtual Environment
I am running Ubuntu 22.04.2 LTS with the default Python version being 3.10. Additionally, I have installed Python 3.6.15 and created a virtual environment with Python 3.6.15. In this virtual ...
1
vote
1
answer
1k
views
How to set pin-1 for Python in Ubuntu 22?
I tried to install pharokka on Ubuntu 22.04. I first tried with conda, as suggested, then mamba, again as suggested. But the installation did not go through. I tried to install from source but I need ...
0
votes
0
answers
31
views
Anaconda-Navigator - Logs of currently installing packages
I have started the installation of these packages using Anaconda Navigator's GUI:
pandas
scikit-learn
scipy
tensorflow
py-opencv
futures
py-pickle
For already 3 hours, it shows me a window with the ...
-1
votes
1
answer
245
views
"Package python is not installed.", even though it is installed?
I'm following these instructions to install OS Spoofer on an Ubuntu virtual machine. Ubuntu is freshly installed, and I have not changed the "/etc/apt/sources.list" file
https://github.com/...
0
votes
0
answers
92
views
Cannot access GUI after restarting during python installation
I was installing Python on Ubuntu and suddenly I was not able to find the terminal. I have then restarted the PC now facing the below interface. I am confused what to do.
It asks for a username and ...
0
votes
0
answers
25
views
Problem trying to install Steam: ModuleNotFoundError: No module named 'apt_inst' [duplicate]
When I try to install Steam, I get the following error:
$ sudo gdebi ~/steam.deb
Traceback (most recent call last):
File "/usr/bin/gdebi", line 38, in <module>
from GDebi....
0
votes
0
answers
38
views
Multiple Problems on XUbuntu after Python upgrade, deinstalling default Python. How can I fix them with out going back/reseting the system?
I recently installed XUbuntu LTS 22.04 on an old Laptop, all went well with the setup but today I wanted to set up the latest stable version of Python (3.12.1) and I installed it no problem, but then ...
0
votes
1
answer
68
views
How to install MySQL community as well as MySQL and Python connectivity?
Laptop: Dell Vostro 3590
Ubuntu version: 23.10
How do I install MySQL and well as connectivity to it with Python?
0
votes
1
answer
299
views
Input/output error without disk failure
1 month ago I ran a python program on my ubuntu server which downloaded videos and cut them into images. I used urlretrieve to download the files and then I used opencv to cut them into single frames:
...
0
votes
0
answers
34
views
PyQt5 QFileDialog Aborted (core dumped)
Following are the outputs of some commands.
===========================================
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: ...