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
2
votes
0answers
11 views

Error in sudo update-manager -d while upgrading to Ubuntu 20.04

I can't upgrade to Ubuntu 20.04 from 18.04. When run sudo update-manager -d it shows an error: I am seeing this error after and interrupted ubuntu upgrade Traceback (most recent call last): File "/...
0
votes
1answer
15 views

ModuleNotFoundError: No module named 'distutils'

I've upgraded Ubuntu version on my PC from Ubuntu 18.04 LTS to 20.04 LTS. After that I restarted my machine and trying to use PyCharm, I notice I can't run Python code from the IDE or run the Python ...
0
votes
1answer
6 views

Python install mysqlclient keeps on giving error

From a list of the following dependencies present in a requirements.txt file asgiref==3.2.7 astroid==2.4.1 colorama==0.4.3 Django==3.0.6 djangorestframework==3.11.0 djangorestframework-simplejwt==4.4....
0
votes
1answer
17 views

Pycharm menu bar disappearing

I'm using Pycharm Community Edition 2020.1 version. Operation system is Xubuntu 20, Java version is openjdk 11.0.7 2020-04-14 I faced a strange problem today. I lost menu bar in pycharm. I searched ...
0
votes
0answers
15 views

Cloud-init related error on ec2 ubuntu server 18.04

I am getting below errors on my EC2 Ubuntu 18.04 server. If anyone knows the reason and solution please help me. When I tried Cloud-init status I got status: error as a result. The error log shown ...
1
vote
0answers
23 views

Problems with GNOME, Dbus or Polkit in Ubuntu 20.04LTS

Bug description: After upgraded my Ubuntu from 19.10 version to 20.04LTS, I cannot install, update or remove any software inside "Ubuntu Software". I also realized that my credential window doesn'...
0
votes
0answers
21 views

pip3 no longer working after installing Python 3.8

I installed python3.8 on my Ubuntu 18.04.4. Now pip is no longer working. When I try to install something it gives this error: Traceback (most recent call last): File "/usr/local/lib/python3.8/...
0
votes
0answers
20 views

OpenCV not installing at the last stage on my Lubuntu system

I was installing OpenCV on Lubuntu. I was on very last stage of installation. I'm not understanding what to do next. Below is the error: (cv) archit@ubuntu:~/opencv/build$ cd /usr/local/python/cv2/...
0
votes
0answers
7 views

Trying to connect Dymo Scale to RPI but ttyUSB0 doesnt exist

I found this simple example to connect my dymo digital scale to my RPI but it will not connect to dev/ttyUSB0 because it doesnt exist. After some reading I can find my device by using lsusb - Bus ...
0
votes
0answers
38 views

Sublime 3: When trying to run Python code, “python: command not found”

I am using SublimeText 3, and I downloaded python3.8.3. In Pycharm everything is working properly, but in Sublime I get the following message: bash: python: command not found [Finished in 0.0s with ...
0
votes
1answer
28 views

Shell Not Able read files written with python

I made a python file which tells every .java file in the folder it is placed in and you can select which java file to execute, the selected java file's name is then written in a file named Input.txt, ...
0
votes
0answers
16 views

Why aren't my python scripts being properly closed? [duplicate]

Every time I run a python script using python3 path/to/directory and I close it using CTRL+Z, I still get python scripts running in the background, which doesn't allow me to start another one ...
0
votes
0answers
24 views

I try to install M2Crypto, but i got this error

I try to install M2Crypto, but i got this error I have ubuntu-20.04-desktop-amd64 pip3 install ./M2Crypto-0.24.0.tar.gz failure screenshot ERROR: Command errored out with exit status 1: command: /...
3
votes
1answer
45 views

Need help figuring out SystemD timer with wake up from Suspend

I have a systemd service file and timer file that wakeup laptop and should run a python script. Then when that's done, run a bash script that puts it back into suspend. It currently wakes up the ...
0
votes
0answers
22 views

Apt_pkg seem to be missing in upgraded python

I have upgraded my system python to 3.6 (3.6.10) from 3.5. My system is Ubuntu 16.04. For some reason I think that my python3.6 version has not been fully installed. For example if I examined the ...
0
votes
1answer
40 views

How can I check how many Python versions are installed? [closed]

Is there a single command to show which versions of Python are installed in Ubuntu 14.04? I know that if I type python --version or python3 --version I'll get the version of either one, but is there ...
0
votes
0answers
31 views

cmake/dlib error with CUDA_cublas_LIBRARY

The specifications: Distributor ID: Ubuntu Description: Ubuntu 20.04 LTS Release: 20.04 Codename: focal I use a HP gaming pavilion dk0045tx with a Nvidia GTX1050 GPU and 8 GB RAM. I have ...
-2
votes
1answer
38 views

Python Reading from multiple files in a directory [closed]

I am trying to create a python script that opens all .html files in the current directory, and search the files for a string, and then print a message if that string is present in the html file. I use ...
0
votes
3answers
53 views

The GNS3 Application no longer starts after upgrading Ubuntu to 20.04 LTS

The GNS3 Application no longer starts after upgrading Ubuntu to 20.04 LTS. The output is the following: v@V-PC:~$ gns3 Could not find platform independent libraries <prefix> Could not find ...
-2
votes
0answers
37 views

Scrolling Bug Enemys Pygame [closed]

I have a problem with my enemy where when my player scrolls left the enemy scrolls with the player is there anyway to fix this even Video my full code is below its to long to fit here though what I ...
0
votes
1answer
28 views

Scapy Module not found when running python script with SUDO

I have written a python script that uses from scapy.all import * and the sniff() function requires elevated privilege, so when I run python3 scapyScript.py I receive the error PermissionError: [Errno ...
-1
votes
3answers
61 views

Your python3 install is corrupted. Please fix the '/usr/bin/python3' symlink [duplicate]

Context: I am looking to upgrade to Ubuntu 20.04 LTS I performed following steps: $ sudo apt update $ sudo apt upgrade -y $ sudo reboot $ sudo apt --purge autoremove $ sudo apt install update-...
1
vote
0answers
31 views

Installing pyipopt, encounter fatal error: IpStdCInterface.h: No such file or directory

This question is in the context of an attempt to install a library/interface on Ubuntu. It is a very specific problem, but any general help (such as in deciphering which script, or where in a ...
2
votes
1answer
37 views

Error installing libmysqlclient-dev on Ubuntu 20.04

Trying to install mysqlclient on Ubuntu 20.04 to use in Django project sudo apt-get install python3.7-dev libmysqlclient-dev But get the following error python3.7-dev is already the newest version (...
0
votes
1answer
59 views

Working with several installed pythons

I have Ubuntu 18.04, so it has python3.6 installed by default. I can call it using python3 Ubuntu doesn't have any python2 installed now (by default also). I want to use python3.7 for my projects. ...
0
votes
2answers
42 views

How to run a command to before starting systemctl service

I am creating a systemctl service for a python script which needs openvino environment initialized. Before running the python script, we have to initialize the openvino environment and have to run the ...
0
votes
0answers
16 views

Slow pip installation issue possibly related to DNS configuration

I am a total newbie here, so pardon my limited knowledge on network configuration. Context I'm using Ubuntu 18.04 LTS and it is a bash shell I am using not a disk image. So, certain commands may ...
1
vote
4answers
67 views

After installing Ubuntu 20.04, can I remove older versions of Python?

I had Ubuntu 16.04, and once mistakenly tried to remove Python 3.5.2, but it caused a lot of harm and I had to reinstall many things. Now, I have upgraded to 20.04, in which the default Python is 3.8....
-1
votes
0answers
39 views

python-pip package is not found [closed]

So, today i ran into this problem after i wanted to install a python 2.7 GUI designer. (Pygubu) I needed the Tkinter package, so therefore i tried running pip install tkinter. It didnt work as ...
0
votes
1answer
40 views

Unable to launch terminal after downloading Python 3.7.7 and Pycharm on 20.04

After downloading Python 3.7.7 and Pycharm, I can't start terminal with Ctrl+Alt+T or any other way. When I tried to start terminal nothing happens. I'm unable to login in Ctrl+Alt+F3 screen also. ...
0
votes
0answers
40 views

Module not found error on running command sudo apt update after upgrading to ubuntu 19.10 from 18.04

Recently upgraded from ubuntu version 18.04 to 19.10, now my APT has stopped functioning properly and won't let me perform sudo apt update. On top of all this when I try to run a simple python script ...
0
votes
1answer
24 views

I delete qgis librarys manually, How can I install it again? in order to install qgis

I deled qgis librarys manually, How can I install them back again? in order to re install q gis Good day Ubuntu Community! I Used the comand rm -r in the root to delete the all qgis directories and ...
1
vote
1answer
145 views

Reinstallation of Ubuntu WSL 18.04 and Python3-pip installation issues

I deleted and reinstalled Ubuntu by following the instructions here but the same issues with pip installation persisted even after I've reinstalled Ubuntu. I suspect that the re-installation process ...
2
votes
3answers
186 views

How to remove Python 2 from Ubuntu 20.04?

I've upgraded recently from Ubuntu 18.04 to 20.04. But I can see that Python2 is still the default instead of python 3.8.2. $ python -V Python 2.7.18rc1 $ python3 -V Python 3.8.2 Is it possible ...
1
vote
1answer
55 views

python-pip package disappeared in Ubuntu 20.04

I have recently upgraded from Ubuntu 18.04 to 20.04 LTS. Before upgrading, I had the python-pip package installed. But after upgrading, when I try this command the terminal says: $ sudo pip install ...
0
votes
0answers
19 views

Ubuntu Terminal Not Opening After Updating Python

Opening the terminal fails, giving the error, Traceback (most recent call last): File "/usr/bin/gnome-terminal", line 9, in <module> from gi.repository import GLib, Gio File "/usr/lib/...
1
vote
0answers
32 views

Install python modules not in the local user directory

I am not sure if this SE is the correct place for this question. If not, please let me know. OS: Ubuntu 20.04 (clean install) Python `--version`: 3.8.2 pip `--version`: `pip 20.0.2 from /usr/lib/...
1
vote
1answer
47 views

Ubuntu 18.04 Terminal, Software & Updates, Software Updater not working

I'm new to Linux/Ubuntu. It's been a few days since I was on my computer, but the Terminal, Software & Updates, Software Updater not working when I fired it up. (Ubuntu 18.04) I have been using ...
0
votes
0answers
40 views

Systemd service stopped suddenly

We have a flask python application that runs normally on terminal without error. We converted it to systemd service(ubuntu), but the problem is that the service runs normally then stopped suddenly ...
1
vote
0answers
11 views

STT works less well when another application has focus. How can I improve STT to work as part of the OS?

STT works less well when another application has focus. How can I improve STT to work as part of the OS? My virtual assistant program can do things like move windows around, but it seems to work best ...
0
votes
0answers
30 views

After trying to install keyman, tried fixing python, reboot, then 404 error and ending up having no keyboard options [duplicate]

I first started by following the steps here: https://keyman.com/linux/, but I kept getting this error: The following packages have unmet dependencies: keyman : Depends: python3-keyman-config but it ...
1
vote
2answers
82 views

youtube-dl /usr/bin/env: ‘python’: No such file or directory

In Ubuntu 20.04, we get the following error: ❯ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04 LTS Release: 20.04 Codename: focal ❯ ...
0
votes
1answer
33 views

“ModuleNotFoundError: No module named 'apt_pkg'” appears in various commands [closed]

I get the following error in various situations, for example when I try to start a package that is not installed: $ tldr Traceback (most recent call last): File "/usr/lib/command-not-...
0
votes
1answer
19 views

Ubunu 20.04 How do I make python code executeable by double-click and show output in a new window?

I'm trying to make a python script I made execute on a double-click in the file manager. I want it to show the output in a new window. So far, all It's doing when I double-click is opening the file in ...
0
votes
0answers
14 views

visualize 3d mesh: moderngl.create_standalone_context () error

I tried to visualize 3D mesh using the package moderngl, but i found a bug in the function moderngl.create_standalone_context () i can't resolve it. you can see more details in the attached image. if ...
4
votes
2answers
360 views

pgAdmin4 stopped working after latest upgrade Ubuntu 16.04. 'Request' object has no attribute 'is_json'

pgadmin4 is running perfectly before the system update of ubuntu 16.04 I didn't actually check what are those updates. But after the update and I tried running pgAdmin, it boots up and shows the ...
2
votes
1answer
39 views

/usr/lib and Conda Environments

I am trying to understand the proper way to go about solving an issue. Background: I have Anaconda installed with the default python 3.7.7 Ubuntu 20.04 LTS I am trying to run a program with python ...
0
votes
0answers
18 views

I installed miniconda, and now “(base)” is appearing in the left of the terminal prompt [duplicate]

The title pretty much says it all, Iwas wondering why this was happening. This doesn'tseem to be causing any problems, I just want to know what this means exactly, and if should do something to ...
1
vote
1answer
18 views

Pin Python minor version in Ubuntu 18.04.4 LTS

I am running software which depends on the installed minor Python version. I was surprised to see that something changed my Python3 version from Python3.6.8 to Python3.6.9, which has caused some ...
-1
votes
2answers
78 views

how can I download and install miniconda?

I'm a brand new linux user, so please let me know if I'm missing something super obvious here. I'm using the newest release of ubuntu, 20 04. I've tried downloading miniconda from their website (...

1
2 3 4 5
85