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
0answers
18 views

The “six” package is install but get an error “Could not find suitable distribution for Requirement.parse('six>=1.9')”

I am running a Yocto build and sometime during the build, I see the following error Processing dependencies for protobuf==3.3.0 Searching for six>=1.9 Reading https://pypi.python.org/simple/six/ ...
2
votes
0answers
25 views

How to create clickable executive file works as .exe file on Windows?

I have searched on google how to create a file that I can click like .exe on Windows for my python or bash script but failed. I have also tried shc but when I click to the .x file generated it ...
0
votes
0answers
9 views

How to run lengthy mp3 files through Mozilla deepspeech for transcription or dictation results?

Are lengthy mp3's just not handled well by deepspeech? While other project might be suitable, this project looks at least to be well maintained.
-3
votes
0answers
49 views

ubuntu and python acting weird

today i needed to make a small program. i think i made it but i can't execute even for testing. exec command throws "file not found" error, "software run" from right-click menu in ...
1
vote
0answers
20 views

How to use Mozilla deepspeech on an mp3 file to generate a transcript? [duplicate]

The sample works fine: nicholas@mordor:~/Music$ nicholas@mordor:~/Music$ tree . ├── a.mp3 ├── a.txt ├── audio │   ├── 2830-3980-0043.wav │   ├── 4507-16021-0012.wav │   ├── 8455-210777-0068.wav │   ├─...
2
votes
2answers
220 views

How to interact with zenity window and type some text inside it?

I have python code : import subprocess subprocess.call(['sh', './zenity.sh']) and zenity.sh file which is #!/usr/bin/python zenity --forms --title="Question" \ --add-entry="...
0
votes
0answers
71 views

How to install python3.8/3.7 on ubuntu 21.04

I failed again and again installing python3.8 on my ubuntu 21.04 Now it is 'ok' but this error message appears from pip (and import ctypes doesn't work too): Traceback (most recent call last): ...
0
votes
0answers
29 views

gdebi and other programs do not work after upgrading to 21.04

After upgrading fro, 20.10 to 21.04 on my Dell XPS 13 I have several programs that do not work anymore. The different concerns seem related to python dependencies. For example when I wanted to ...
1
vote
0answers
119 views

No module named 'uaclient' during `sudo apt upgrade` (ubuntu 16.04)

I'm trying to upgrade my desktop from ubuntu 16.04 to 18.04. (I regret not having upgraded it earlier before the ubuntu 16.04 EOL arrived. Two weeks ago I have upgraded two 16.04 notebooks to 18.04 ...
0
votes
0answers
17 views

Apache airflow connect with tmux and screen

hey i want to scheduling auto refresh scheduler task with airflow but the task is cant process with airflow open ssh to my hadoop server this is my dag code refresh_schedule =''' tmux attach -t melon -...
2
votes
1answer
40 views

Unable to use latex in inkscape

I am trying to use latex in inkscape but it is not working. I installed all the required packages (e.g inkscape-version 1.0.2, texlive-base, pdflatex, pdf2svg, python-lxml , python-gi). The operating ...
0
votes
0answers
66 views

Correct PPA to install Python 3 on Ubuntu 18.04 and 20.04

For Ubuntu 18.04 and 20.04 I need to install python 3. Currently 3.9.5 as I wrote this post. I watched some videos on youtube and read some tutorials. There are two different approaches One sudo apt ...
0
votes
1answer
2k views

Warnings during pip installs because of a package called “-etuptools”

A simple problem. When I install or upgrade packages with pip, I get a very weird error. Input: pip3 install numpy output: Defaulting to user installation because normal site-packages is not ...
0
votes
0answers
19 views

Issues with MariaDB 10.3 development libraries and Ubuntu 20.04

Trying to install any of the MariaDB 10.3 development library packages for the version that comes with Ubuntu 20.04 seems to result in circular or unmet dependencies. I ran into this when trying to ...
0
votes
0answers
23 views

Error :“the command '/bin/sh -c source protected-env/bin/activate' returned a non-zero code: 127” while I'm trying to configure my first dockerfile

I'm trying to learn docker. This is my first experiment. I have written this dockerfile : FROM nvidia/cudagl:11.3.0-base-ubuntu20.04 LABEL Author="ZioMario" LABEL Title="Firefox/...
-2
votes
0answers
16 views

Trying to run OCRopy but having trouble with matplotlib module

Trying to install OCRopy. I thought I had installed it and had all the prereqs (python2.7, matplotlib, numpy, scipy) but when entering the below I got some issues once I got to the run-test. ''' $ ...
0
votes
0answers
47 views

Ubuntu 20.04 LTS: No further installation of packets and updates, because of Python Version Problems - How to clean

---An Update (further Details) are given at the bottom--- I have done successfully an In-distro-upgrade from Ubuntu 19.04 onto 20.04 LTS. This was already a while ago and the machine is my daily ...
0
votes
1answer
37 views

Enter key does not execute command in python and bash

My enter key suddenly started triggering a history-search-backward action instead of running the typed command in python and bash shells, although it still behaves correctly on my zsh (default) ...
-2
votes
0answers
25 views

python flask stream console output on html page using subprocess

I am a beginner in web programming using Flask in Python. I've built a web page the takes a couple of inputs from the user and clicking a command button on the page leads to another Python module's ...
1
vote
0answers
25 views

Cannot access udev symlink with python serial immediately on startup

I have configured a udev rule to create a symlink for a USB device: SUBSYSTEM=="tty", ATTRS{idVendor}=="3032", ATTRS{idProduct}=="0014", SYMLINK+="ttyUSB_GPS" ...
0
votes
1answer
32 views

Ubuntu login screen stuck

I am using Ubuntu 20.04 LTS 5.8.0-50-generic I have the same problem as in this question Removed python 3 and now Ubuntu software centre and terminal does not work. I had run a command sudo apt-get ...
0
votes
1answer
21 views

Is it possible to read Python GObject Introspection API documentation offline using already installed packages and files?

On my Ubuntu MATE 20.04 LTS system I see many packages named gir1.2.... For example I want to develop some new functionality on Python using gir1.2-gtk-3.0 and gir1.2-caja-2.0. Such packages usually ...
-1
votes
0answers
20 views

Use a search word to retrieve database records and display in Python GUI

[enter image description here] 1 Hello from the other side. A true programmer doesn't run away from challenges but would make every attempt to provide a solution. smiles I'm having a little challenge ...
0
votes
0answers
11 views

anaconda change 'base' environment permanently to a different environment 'myenv' to startup at terminal openings

I would like to cahnge the 'base' install environemnt that inisiates when I start a terminal to an a diferent environment that i have created called 'myenv' anaconda evironment. I want that 'myenv' ...
0
votes
2answers
29 views

Cannot read from serial USB device

I have a lab equipment (CAEN DT1470ET) connected via USB to a Ubuntu 20.04 machine. I have installed the graphical interface software from the manufacturer and it connects properly with the instrument....
0
votes
2answers
35 views

Ubuntu 20.04 stuck on boot up

I have a big problem, I was trying to use Python3 on my PC and it seemed like Python3 wasn't there, I tried installing it and it said Python3 is already installed. So I uninstalled python3 and ...
0
votes
0answers
32 views

How do I verify the inputs of a textfield exists in a database table when updating the records? How do I clear all the QlineEdit widgets in a QForm?

import sys import pyodbc from PyQt5.QtWidgets import (QApplication, QWidget, QLabel, QPushButton, QFormLayout, QMenu, QMenuBar, QLineEdit, QDialogButtonBox, QMainWindow, QVBoxLayout, QDialog, ...
0
votes
1answer
82 views

'Whereis python' gives me a bunch of directories that does not exist

i'm trying to find out where my python installation is. I need it for IDE's and such. When I type ask@garser:~$ which python3 /usr/bin/python3 which is a symbolic link to /usr/bin/python3 So this ...
0
votes
0answers
44 views

How to fix python3 on ubuntu

In attempt to remove an older version of python, I removed something important, and now nothing works. > python3 Could not find platform independent libraries <prefix> Could not find platform ...
-1
votes
0answers
23 views

Can't use pip3 to install modules

I'm on ubuntu 20.04 lts and I'm trying to install the module Pillow of python, but when I run the command pip3 install Pillow(Or any other package) the installation seems to work well, but the ...
0
votes
0answers
48 views

I want to convert gif to png

I have application that creates thumbnails for documents provided. It is scripted in python using preview-generator lib. when I'm trying to convert .gif file to .png using lib it gives me following ...
0
votes
0answers
11 views

installed Lutris.snap , when launching Lutris [ ModuleNotFoundError: No module named 'dbus ]

Limited internet connection so downloaded the snap from url. i have python d bus installed and tried this sudo apt-get install libdbus-1-dev libdbus-glib-1-dev this depency i cant download [...
1
vote
0answers
19 views

Ubuntu Server VPS pauses randomly

I run a discord bot written in python that I recently moved to a VPS service. It ran great on my own local server until I moved it to the VPS. The script runs on python and over the last few months it ...
0
votes
0answers
21 views

python3-psutil it is not installable [duplicate]

I try to install menulibre, but i get this error Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean ...
0
votes
0answers
39 views

Problems after trying to upgrade Python

I am still able to run Anaconda, but the Python installation is suffering some issues after accidentally creating a wrong symbolic link and then trying to upgrade Python version The following ...
0
votes
0answers
32 views

huge list of errors after using a certain dpkg command which is mentioned in an error after using any apt command

dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. using the mentioned command pulls up a huge list of errors which is written below dpkg: dependency ...
0
votes
0answers
29 views

apt-add-repository gives ssl.SSLError: [X509] PEM lib (_ssl.c:3057)

I'm on Ubuntu 16.04 and I'm trying to install Python 3.8. The first step of which is to add the deadsnakes repository. However, I can't get that to work due to a X509 error. I have tried every variant ...
0
votes
0answers
12 views

Python modules disappearing from Ubuntu VPS

I recently got an Ubuntu VPS and it seems like some Python modules which were installed using the command below keep disappearing after a while. What could be the cause of this? pip3 install [module]
0
votes
0answers
29 views

How do I program python opencv to show only 2 of 2 cameras (the cameras are identical)

I have 2 of same USB camera, and I use this code in Rasbian (Raspberry pi3 B+) but it only show 1 of 2 cameras. If I use 1 laptop webcam and 1 USB webcam it show them both. How I can fix that? import ...
0
votes
0answers
123 views

Python 3.8 - Failed to fetch http://ppa.launchpad.net/deadsnakes/ppa/ubuntu/dists/hirsute/main/binary-i386/Packages 404 Not Found

I've recently upgraded from 20.04 to 21.04. The problem is that I have many python virtualenvs that use python 3.8 which is not installed by default. How can I fix the virtualenvs so it works again? ...
0
votes
2answers
66 views

Do we have offline Python documentation browser in Ubuntu repositories to have one “point of service” to read and search the Python docs and APIs?

The question is in the title. As a use case one can imagine the situation about finding function basing on its known functionality. I already know about Zeal which is packaged. It downloads ...
1
vote
2answers
36 views

ubuntu 20.04 error undefined symbol: FT_Property_Set

There was a python2 project which was working fine on Ubuntu 16.04, but when i created virtualenv to set-up the project for python2 all is working fine except PDF generation error via using python ...
0
votes
0answers
14 views

How do I get rid of this old numpy version that remains even after I uninstalled numpy in all possible ways?

I am using conda to manage my python packages. Running conda install numpy installs numpy 1.20. However, in my ~/anaconda3/lib/python3.8/site-packages/ directory, there is an old version of numpy (1....
1
vote
0answers
25 views

CircuitPython on Raspberry Pi 4 (Ubuntu Server 20.04.2 LTS)

I am running a Raspberry Pi 4 with Ubuntu Server 20.04.2 . Since I am using a lot of Adafruit Parts for my setup it would be a lot easier to use CircuitPython (their offspin off of micropython) with ...
0
votes
0answers
16 views

How do I solve dpkg error after changing python version in terminal

I recently removed my python alternatives and switched the python version from 2.7 to 3.7. Then i had problems with dpkg After running sudo apt --fix-broken install I get the following error Reading ...
0
votes
0answers
16 views

Can't push Django project to Heroku

I ran into a issue with Django pushing to heroku because of python version, when I change in my terminal with : sudo ln -sf /usr/bin/python3.6 /usr/bin/python changing the 3.6 to other versions ...
-1
votes
0answers
319 views

Python 2.7 built from source unable to import packages

I have an Ubuntu 14.04 VM running Python 2.7.6. 14.04 and Python 2.7 are requirements for what I'm working on, but I need to upgrade to a newer version of Python 2.7 because pip packages are failing ...
0
votes
0answers
15 views

How to run two terminals for RS232, one for input, second for output in Python

I have simple terminal for serial communication and i would like to separate user input terminal (outgoing messages) from receiving inbound messages... It is pretty messy when terminal is still ...
0
votes
0answers
28 views

Traceback whenever I call pip, or pip3

Really not certain how i messed this up. Whenever I call pip, or pip3, these are the outputs: tarik@tarik-ThinkPad-S3-Yoga-14:~$ pip3 --version Traceback (most recent call last): File "/usr/...
0
votes
0answers
23 views

Some confusion with conda / pip installations of PyQt5 on my Ubuntu 20.04

Context I wanted to install PyQt5 in my conda base environment, along with some other libraries. I have completed this task in different sessions. The problem is that when I went in Visual Studio Code ...

1
2 3 4 5
93