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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

LOCALAPPDATA not found in mavproxy.py

I have the following file /home/pi/mavproxy.sh which forwards the flight controller telemetry data using mavproxy to GCS(Ground Control Station) #!/bin/bash mavproxy.py --master=/home/pi/ttyUSB0 --...
Mubashir Alam's user avatar
0 votes
0 answers
43 views

Re-install python 3.12 on ubuntu 18.04 [closed]

I have installed python 3.12 on my ubuntu 18.04 using: sudo apt update sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev ...
Laut567's user avatar
2 votes
1 answer
112 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 ...
user16280919's user avatar
0 votes
1 answer
25 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 ...
Dsto4's user avatar
  • 1
0 votes
0 answers
52 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 ...
Loggy's user avatar
  • 1
-4 votes
0 answers
41 views

I am having problem when I am trying to remove python from my pc

Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created ...
Yusuf Yesuf's user avatar
-1 votes
1 answer
38 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,...
chocojunkie's user avatar
0 votes
1 answer
65 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 ...
mylesmorales's user avatar
0 votes
1 answer
82 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 ...
Abdur Rahim's user avatar
0 votes
0 answers
59 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 ...
KBurchfiel's user avatar
1 vote
1 answer
61 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 ...
Diana P's user avatar
  • 13
-1 votes
0 answers
32 views

How to install packages like libglu1-mesa in a server without sudo

I'm using GPU server provided by my school, and I don't have the root privilege. But running the code needs to install some packages like libglu1-mesa. They are not python packages so I cannot simply ...
iorioinu's user avatar
0 votes
0 answers
43 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 ...
rayzinnz's user avatar
  • 101
0 votes
0 answers
27 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 ...
Olumide's user avatar
  • 569
0 votes
0 answers
52 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 ...
parryj's user avatar
  • 1
0 votes
0 answers
35 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 ...
Tribikram Dhar's user avatar
0 votes
0 answers
175 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 '...
Gautham 005's user avatar
0 votes
0 answers
42 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 ...
Sungwon Sons's user avatar
1 vote
1 answer
72 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 ...
Kicey's user avatar
  • 21
-4 votes
2 answers
159 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 ...
abraham's user avatar
-2 votes
1 answer
84 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/...
Mona Jalal's user avatar
  • 4,535
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 ...
Mathias's user avatar
0 votes
1 answer
234 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: ...
sebwr's user avatar
  • 3
1 vote
0 answers
68 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 ...
Homero Esmeraldo's user avatar
0 votes
1 answer
137 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 ...
GlowstoneLove Pad's user avatar
0 votes
2 answers
157 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 ...
ForDummies's user avatar
0 votes
0 answers
113 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 ...
Abdul Basit Niazi's user avatar
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 ...
Gigiux's user avatar
  • 777
0 votes
0 answers
30 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 ...
Kobi's user avatar
  • 1
-1 votes
1 answer
186 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/...
Zoidberg_777's user avatar
0 votes
0 answers
77 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 ...
3-1_Actual's user avatar
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....
Steve Redka's user avatar
0 votes
0 answers
37 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 ...
user3284214's user avatar
0 votes
1 answer
63 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?
user avatar
0 votes
1 answer
254 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: ...
janbmull's user avatar
0 votes
0 answers
24 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: ...
Ali Niaz's user avatar
1 vote
1 answer
196 views

Apache shows Python code instead of execute it

VPS server running Ubuntu 22.04, Apache 2.4.18 and Python 3.5.2 When I try to access a webpage on that server it shows python code instead of execute it... Last guide I tried was this: https://...
Art's user avatar
  • 13
0 votes
1 answer
83 views

Authbind giving "Operation not Permitted" when running a flask server

I am trying to use authbind for my flask server as I need the server to run on port 443 for the ssl certificate. So far I have looked online and used sudo touch /etc/authbind/byport/443; sudo chmod ...
Inactive Gaming13's user avatar
0 votes
1 answer
336 views

not able to run a bat or exe file using wine

I downloaded a RVC voice conversion model in my ubuntu 20.04 system, in that i need to run a .bat file, i tried to run it by using wine(version 8.0.2), but its giving an error. the .bat file contains ...
Ram 's user avatar
  • 1
2 votes
1 answer
378 views

How to keep ssh command running when python script called by ssh command exits with an error?

I am facing a problem regarding SSH, which exits when I don't want it to. My goal is to run multiple script (which are tests) and evaluate their exit value to detect errors on my project. First, I ...
Legh's user avatar
  • 41
0 votes
0 answers
47 views

Ubuntu 22.04 Chromium Snap Detached Mode Python Script Not Working

I have a python (3.10) script I run from bash terminal. The script launches Snap Chromium but occasionally I need to terminate the script using Ctrl + C, but want Chromium to remain running. Launch ...
Matthew Weems's user avatar
0 votes
0 answers
38 views

gnome-terminal doesnt open [duplicate]

I decided to update python from 3.10.? to 3.12.0 (downloaded and compiled), after that i noticed my terminal doesn't start. Tried several solutions but no luck, i run terminal commands in visual ...
elanozturk's user avatar
2 votes
0 answers
204 views

gnome-terminal won't open after python upgrade [duplicate]

Cause: I did the mistake of upgrading my system's (Ubuntu 20.04.6 LTS) python version from 3.10 to 3.12. Issue: Since then, my terminal wouldn't open. And when opening a virtual terminal (CTRL+ALT+F3) ...
Omar Trkzi's user avatar
0 votes
1 answer
1k views

How to install python3.8 on Ubuntu 23.04?

It's strange, but I can't install python3.8 alongside python3.11 on Ubuntu 23.04, and I can't find anything about it either. When I try to install python3.8 like this: sudo apt install python3.8 I ...
TenSzalik's user avatar
0 votes
0 answers
499 views

How to receive UDP traffic from multicast adress with Python on Ubuntu 22.04?

I have an ethernet device sending UDP packets to multicast address 224.0.2.2 on port 42102. I'm able to capture packets from wireshark or tcpdump, but when I try to open a socket and bind it to ...
mattb's user avatar
  • 1
0 votes
1 answer
126 views

How can I Dual-Boot 2 internal SSD's (Win/Ubuntu) and have each able to run the other as a VM?

I have a new laptop on the way, it has 1TB SSD *2, 32GB RAM, i9 processor and 4080 GPU. I want to set up dual boot - win/ubuntu each on their own SSD. I also want each OS to be able to run the other ...
Simon Toft's user avatar
0 votes
0 answers
101 views

Getting issue on python only with Ubuntu

I know that I should ask this on Stackoverflow, but I did it and no one there could help me. So I decided ot try there, because problem happens only on Ubuntu. There is my code: async def main() -> ...
bomjara62's user avatar
0 votes
1 answer
371 views

How can i open the __init__.py file to edit it?

I have been advised elsewhen on this forum that to correct an issue (with connection to Tor-Browser) I can "fix this by going into the init.py file and changing the lines (98) in /usr/lib/python3/...
Duncan's user avatar
  • 1,053
1 vote
0 answers
44 views

pip requiring "--break-system-packages" after update to 23.10 [duplicate]

After I updated from Ubuntu 22.04 to Ubuntu 23.10, pip install foobar warns about "externally-managed-environment" and requires me to add --break-system-packages. Is this expected after the ...
Étienne's user avatar
  • 168
0 votes
0 answers
54 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 ...
droid_dev's user avatar
  • 101

1
2 3 4 5
104