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
1 answer
13 views

No access to python server

I got a local python server up and running on an ubuntu machine. In my ubuntu machine i ran the command to start it: python3 -m http.server Here is the response i got in the terminal: Serving HTTP on ...
user avatar
  • 13
0 votes
0 answers
10 views

I am trying to run the following on Jupyter notebook and getting the error as ConnectionRefusedError: [Errno 111] Connection refused

findspark.init() spark_session = SparkSession.builder. config('spark.yarn.tags', f'{uid}_cm_fi_ascend_matching'). config('spark.rpc.message.maxSize', '512'). config("spark.sql.execution.arrow....
user avatar
0 votes
0 answers
18 views

Segmentation fault (core dumped) when install a package inside a python virtualenv using pip

a few days back my ubuntu 20.04 stopped working. even after reinstalling everything with GPU drivers, after restart my screen freezes on the motherboard company logo, maybe an update with a bug ...
user avatar
0 votes
1 answer
26 views

switch between python3.7 and python3.8 using update-alternatives is not working

I am hoping to be able to switch between python3.8 and python3.7 and also newer versions of python. For now how do I get the system default python version set to python3.7? I thought it is done with ...
user avatar
  • 1
0 votes
0 answers
29 views

Ubuntu upgrade failed due to broken packages

I tried to upgrade Ubuntu 20.04 to version 22.04 but broken packages disrupt the upgrade process. The number of broken packages is high (70) and I can't remove all packages using sudo dpkg --remove --...
user avatar
1 vote
1 answer
48 views

Update Python with APT

I installed python3.10 to my Ubuntu 20.04 using the deadsnakes PPA. It worked fine, and python3.8 is still my system's python3: $ python3 -V Python 3.8.10 However when I try to upgrade system ...
user avatar
0 votes
0 answers
17 views

Tinkering with installed python version cause issues

People with specific needs often install a particular version of python for their needs, such as Problem updating 20.04 - python3.7 errors and Ubuntu 20.04 Uninstalled python and now PC won't ...
user avatar
0 votes
0 answers
12 views

__pycache__ is not creating

I am working on Ubuntu 20.04 LTS where I am building exe file from python files. Below mentioned commands are I am using for building exe file. $ pip3 install --upgrade pip $ pip3 install --upgrade ...
user avatar
0 votes
0 answers
24 views

After updating to 22.04, programs crash frequently. On startup: 'AtributeError: 'Thread' object has no attribute 'isAlive'

Initially, this problem only affected Firefox, but it got better after I uninstalled snaps and reinstalled the old version. Now, everything seems to be crashing (python, zoom, terminal, chrome, even ...
user avatar
  • 11
0 votes
0 answers
25 views

Ubuntu 20.04 Uninstalled python and now PC won't start

let me put you in some context. I recently started a job as backend developer and we're working with docker and one of the images has python version 3.8.3 I was configuring things with the other (and ...
user avatar
1 vote
0 answers
130 views

add-apt-repository broken in Ubuntu 22.04 for php [duplicate]

I am attempting to install php7.4 after officially upgrading from 20.04 to 22.04 cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=22.04 DISTRIB_CODENAME=jammy DISTRIB_DESCRIPTION="Ubuntu 22....
user avatar
  • 145
0 votes
0 answers
9 views

'Resource busy' when running nocturn-linux-midi

I'm on Ubuntu 20.04 studio, with jack setup and running a midi keyboard and other things. Additionally, I'm trying to make a usb midi controller "novation nocturn" work with the code at: ...
user avatar
  • 61
1 vote
0 answers
34 views

Ubuntu udev rules for running python3 script on usb device

I am trying to run a python3 script to control a USB robot arm (OWI 535) on Ubuntu 18.04.05. The script successfully opens a "tinker" GUI module that should control the robot arm. On ...
user avatar
0 votes
1 answer
9 views

Python script called by udev rule unable to import modules ModuleNotFound

I have a udev rule which triggers a python script whenever a block device (USB drive) is attached/detached from the system. The udev rule seems to be firing correctly, but the python script it calls ...
user avatar
  • 201
0 votes
0 answers
19 views

Tried reinstalling python on ubtuntu: dpkg: error processing package software-properties-common (--configure)

I wanted to update python 3.8 to 3.10 but ran into some issues which is why I wanted to reinstall python, however, when removing it, I ran into even more issues and now I am unsure of what to do. I am ...
user avatar
  • 1
-1 votes
0 answers
24 views

How do can i save list of arrays into a csv file on each iteration of for loops [closed]

I want to save the dictionary in Csv or mat file for each loop, the code is from the link FHN equations import scipy.io as sio trajectory_nonauto = {} file_out = f"out_{i}.mat" ...
user avatar
0 votes
0 answers
45 views

Issue with FSL installation on ubuntu

I need to work on FSL and I'm trying to install it on Ubuntu 18.04 shell in Windows 10. I used python "/mnt/c/Users/user/Downloads/fslinstaller.py", which seems to work fine until Stage 2 ...
user avatar
1 vote
1 answer
27 views

wing personal never gets beyond snap

I am trying to install a python IDE. I had a previous installation of spyder4. Spyder is not in the Ubuntu software in, so I decided to try Wing Personal which is included. Wing gets installed to snap,...
user avatar
  • 743
1 vote
1 answer
57 views

lsb_release error: bash: /usr/bin/lsb_release: /usr/bin/python3: bad interpreter: No such file or directory

After upgrading to Ubuntu MATE 22.04 Jammy from Ubuntu MATE 21.10 Impish, when I run lsb_release I'm getting this error: $ lsb_release bash: /usr/bin/lsb_release: /usr/bin/python3: bad interpreter: ...
user avatar
  • 1,811
1 vote
0 answers
53 views

Software updater ubuntu 20.04 LTS : package broken

When I run the automatic Ubuntu software update, I get the following message (see below). I installed Python 3.7 by myself when I install the OS : so I have python 3.8 and 3.7 in the same time on my ...
user avatar
0 votes
0 answers
59 views

Pyenv is not switching to system wide pip when going back to system python

I have the following problem...sort to speak.. I've installed pyenv in a fresh Ubuntu 22.04 couple days back and only installed one python 3.9 using it. pyenv versions * system (set by /home/...
user avatar
0 votes
1 answer
45 views

Python binary path in pip

When I run python it runs version 3.10.4: $ python Python 3.10.4 (main, Apr 8 2022, 17:35:13) [GCC 9.4.0] on linux Type "help", "copyright", "credits" or "license&...
user avatar
  • 1
1 vote
1 answer
77 views

Using swap space on Ubuntu 22.04, python application exit automatically

Recently I upgraded my ubuntu from 21.10 to 22.04, system works well after upgraded, but something went wrong when I run the python script, it works well on exsiting system 21.10, but didn't work on ...
user avatar
0 votes
0 answers
23 views

error while doing dpkg --configure -a

error while doing dpkg --configure -a Setting up python3-speechd (0.11.1-1) ... /var/lib/dpkg/info/python3-speechd.postinst: 6: /var/lib/dpkg/info/python3-speechd.postinst: py3compile: not found dpkg: ...
user avatar
0 votes
1 answer
24 views

can't install updates and got the package system is broken with unmet dependencies

I can't install updates and start getting the following error on Ubuntu 20.04.4 LTS. It looks like python package issue. How can I solve it?
user avatar
  • 215
0 votes
0 answers
45 views

VirtualBox unmet dependencies

So my Ubuntu got upgraded from 18.04 to 20.04. I had vagrant installed with VBox-6.0. It was working fine but after update when I try to do vagrant up it says: VirtualBox is complaining that the ...
user avatar
  • 103
0 votes
3 answers
397 views

How to install Mendeley on Ubuntu 22.04?

I just installed Ubuntu 22.04 and I have been trying to install Mendeley through its .deb installer and the .tar.bz2, but in both cases it throws me a problem with the dependencies: /usr/bin/env: &...
user avatar
0 votes
0 answers
32 views

How to import Python folder into Ubuntu [duplicate]

I am very new to Ubuntu and I'm running a Linode server using Ubuntu 22. I have added the Python files that I have intended on running on the server, here is the dilemma though. I have a module named ...
user avatar
0 votes
0 answers
18 views

How can we do that in ubuntu, echo xlsx file content without openning it

Goal: monitors a xlsx file constantly, that xlsx is mounted on a local drive only since it will be updated/edited remotely on a server. Now, I have a python script print out xlsx file content ...
user avatar
0 votes
0 answers
170 views

Ubuntu 22.04 how to remove Python 3.10 and 3.11

I just upgraded from Ubuntu 21.10 to Ubuntu 22.04. Everything perfect except for python. Python 3.11 or 3.10 broke my python scripts. In my struggle I think i damaged the system and now I have mess: ...
user avatar
1 vote
1 answer
375 views

After updating to Ubuntu 22.04, I am no longer able to access Jupyter Notebook

When I try to launch Jupyter Notebook, the browser (firefox) launches and I get the following error: Access to the file was denied The file at /home/benjamin/.local/share/jupyter/runtime/nbserver-...
user avatar
  • 11
0 votes
1 answer
26 views

software-properties-gtk only runs with sudo (20.04)

I have a problem where software-properties-gtk will error out when I try to open it: Traceback (most recent call last): File "/usr/bin/software-properties-gtk", line 100, in <module> ...
user avatar
  • 146
0 votes
0 answers
29 views

how to create a KIOSK application using a python executable file

I have created a small desktop application using EEL Python and I have made the executable file as well. And I want to create a kiosk-like application using the created executable file. So I want to ...
user avatar
0 votes
0 answers
30 views

Errors installing mongodb on WSL Ubuntu 18.04 [duplicate]

No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.6 LTS Release: 18.04 Codename: bionic Really struggling with finding a solution to my issue. I was ...
user avatar
0 votes
1 answer
142 views

Can't open Nautilus file explorer

I've just upgraded from Ubuntu 20.04 LTS to Ubuntu 22.04 LTS with do-release-upgrade -d (as we cannot upgrade without -d option yet :( ). I have an issue,I can't open Nautilus ! I've tried in command ...
user avatar
0 votes
0 answers
17 views

Device BLE connects and disconnects instantly intel NUC 11, ubuntu 20

context: I'm trying to connect a blood pressure monitor via BLE on my intel NUC 11. I have another pc, dell xps 15 where I can connect without problem (using the script below). config (my two pcs have ...
user avatar
0 votes
0 answers
22 views

Gem5ToMcPAT parser Python file

I am trying to convert the output of a gem5 simulator model to an XML form that could be used as an input to McPAT simulator (to get power results). The file that does this conversion is a Python file ...
user avatar
0 votes
0 answers
24 views

How to use tor systemwide in Ubuntu?

I wanted to run a python script with tor. But inside the python script there are other services which returns error when torified. Hence I am not able to run the script with torify. So I decided to ...
user avatar
0 votes
0 answers
48 views

How to set .ico icon file by iconbitmap in tkinter in python 3.8 on ubuntu

I am new to tkinter8.6 and i am using ubuntu20.04 lts, I have installed pillow 9.0, root.title("Learn code for Iconbitmap") root.iconbitmap("current folder/1_3.ico") even however i ...
user avatar
0 votes
0 answers
44 views

Ubuntu 20.04 with Python 3.9 will not import Tensorflow due to SSE4.2 not available

Ubuntu 20.04 with Python3.9 will not import Tensorflow. Message says library uses SSE4.2 instructions but they aren't available on this machine. However, this is a dual boot system and With Windows10 ...
user avatar
0 votes
0 answers
18 views

How to open a terminal inside a sub-directory from django

I am learning django. I am stuck with this problem. I want to open a new terminal and execute a command in it. Here is the code that I used to do it. run(["gnome-terminal", "--", &...
user avatar
0 votes
0 answers
39 views

Software Updater - The package system is broken python3.10 [duplicate]

I am currently using Ubuntu Gnome 20.04 and when I try to run updates via the Software Updater I get the following "The package system is broken" Error: Check if you are using third ...
user avatar
  • 1
0 votes
0 answers
542 views

apt fails to upgrade python 3.10 [duplicate]

I ran sudo apt update and then I ran sudo apt upgrade with this result: (.default) saul@linuxBox:~$ sudo apt upgrade Reading package lists... Done Building dependency tree Reading state ...
user avatar
  • 207
1 vote
0 answers
144 views

How to get the current active window in Ubuntu 22.04? [closed]

I need to be able to get the current active Window's app name and page title in Ubuntu 22.04 LTS (with Wayland desktop), no matter what the app is. I'll be implementing it in python, so something ...
user avatar
  • 119
1 vote
1 answer
255 views

Update python version to 3.10 and remove python 3.8

I am using Ubuntu 20.04 which comes with Python 3.8. I want to install Python 3.10 AND remove Python 3.8 because I lack disk space. I know how to install Python 3.10, but I am afraid that I will break ...
user avatar
  • 11
4 votes
2 answers
1k views

Can't remove python 3.10 from ubuntu 20.04LTS

Ubuntu 20.04 comes with python 3.8 as default version. I installed python 3.10 by adding deadsnakes ppa. While running "sudo apt remove python3.10" it gives following error. Reading package ...
user avatar
0 votes
0 answers
21 views

dpkg broken pipe error when upgrading python3.10 [duplicate]

$ sudo apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: libnss-systemd ...
user avatar
  • 830
0 votes
0 answers
31 views

do-release-upgrade balks on broken python installation?

I'm trying to upgrade from 18.04 to 20.04, but the upgrade fails each time. It appears to be a problem with python, but I don't have a clue how to fix it. Here's the apt.log file. Log time: 2022-04-...
user avatar
0 votes
0 answers
18 views

Error Camera in Raspberry pi

I want to take a picture with Raspberry Pi 4, but I get this errorenter image description here
user avatar
0 votes
1 answer
144 views

How to run python commands in a new terminal window

I am learning django. I am stuck with this problem. So basically, I have designed a form (template) in HTML that takes a text file as input and generates a voiceover of that text file. I am using ...
user avatar

1
2 3 4 5
97