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.

1,593 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
0 answers
604 views

Cannot run OpenShot: libpango-1.0.so.0: undefined symbol: g_list_model_get_n_items

I have downloaded OpenShot v2.5.1 (the latest version as of today), in the form of x86_64 AppImage. My system: Operating System: Kubuntu 20.10 KDE Plasma Version: 5.19.5 KDE Frameworks Version: 5.74.0 ...
robertspierre's user avatar
2 votes
0 answers
82 views

Gnome Tweek tool will not start

I got allways this error if i start the tweak tool. Traceback (most recent call last): File "/usr/lib/python3/dist-packages/gtweak/app.py", line 30, in do_activate self.win = Window(...
Beardcoder's user avatar
2 votes
1 answer
2k views

Anaconda Navigator gets stuck at loading applications in Ubuntu 20.04 even after updating Anaconda Navigator

I tried opening Anaconda Navigator as root and it got stuck at "loading applications" and gave this error: Traceback (most recent call last): File "/home/karuna63/anaconda3/lib/...
Karuna Tata's user avatar
2 votes
0 answers
122 views

Using a third party scanner device with ubuntu core on a raspberry pi

I am developing an application that must allow 20-30 remote users from different offices to scan and submit specific documents to a server to be processed. I want to pair a panasonic kv-s1037x with a ...
pedz88's user avatar
  • 21
2 votes
1 answer
495 views

Unable to open terminal after messing with pre-installed Python

I installed Python 3.9.0 by following the instructions from http://ubuntuhandbook.org/index.php/2020/10/python-3-9-0-released-install-ppa-ubuntu/. Unfortunately, I tried a not recommended instruction. ...
mahdi khrrousheh's user avatar
2 votes
1 answer
3k views

nuxhash mining on linux for nicehash miner

line 38, in request raise Exception(str(response.status_code) + ": " + response.reason) Exception: 404: Not Found install ocl-icd-libopencl1 Exception in thread Thread-2: Traceback (most ...
Lissome Star's user avatar
2 votes
1 answer
6k views

sh: 1: python: not found when execute python script from php

I'm tring to execute a python script call from php with the command below: $output = shell_exec('python /var/www/html/sna/server/userManagement.py '. $user.' '. $pass .' \''.$action.'\' 2>&1'); ...
Lx2pwn's user avatar
  • 129
2 votes
0 answers
151 views

ZMQ ZAP connection problem in ubuntu server 18.04

I'm using python and ZMQ to publish and subscribe data through a TCP network connection. I tried to connect in normal mode (without ZAP) and ZAP mode which is an authentication protocol. I've tried it ...
reza shahabian's user avatar
2 votes
1 answer
2k views

error ubxtool : failed to import gps,check PYTHONPATH

I want to use ubxtool. jhkim@***:~$ ubxtool ubxtool: failed to import gps, check PYTHONPATH gpsd-3.21 , ubuntu 18.04 How do I solve it?
jinkim's user avatar
  • 51
2 votes
1 answer
593 views

Unable to install HPLIP Binary Plug-In

My printer is HP LaserJet Pro MFP m126nw. After setting up my printer in Ubuntu 20.04 (using HPLIP 3.20.3), when I tried to scan, it was mentioned that driver plug-in installation is required. When I ...
Random Person's user avatar
2 votes
0 answers
792 views

How can I use Python 3.8 in snaps?

As far as I know the only supported Python versions based on base: core18 are python2 and python3. However python3 means Python 3.6. How can I use Python 3.8 in snaps?
thinwybk's user avatar
  • 245
2 votes
1 answer
308 views

Working of crontab

I wish to automate a python script in linux with the help of crontab so that it runs after every 30 minutes. I wrote the following line in crontab : */30 * * * * python somepath/example.py But it ...
Nimesh Shahdadpuri's user avatar
2 votes
2 answers
1k views

Run Graphical Programs in WSL2

I hear that WSL2 has support for graphical programs. I tried to run this on my ubuntu WSL installation (from rosetta code) from PIL import Image img = Image.new("RGB", (320, 240)) pixels = ...
Glubs's user avatar
  • 29
2 votes
1 answer
3k views

Successful installation of module using pip3, but module not found when try to import in python

I am a bit new to using the command line, so I apologize if this question is rather basic. I believe a have installed a module called lmfit using pip3 install lmfit and it says this was successful. ...
ellie_arroway's user avatar
2 votes
1 answer
6k views

python3 is broken on Ubuntu 20.04 and I am unable to fix it

I somehow messed up the python3 environment in my Ubuntu 20.04 (upgraded from 19.10). I do not know how this exactly happened, but after rebooting I am not able to start the gnome-terminal anymore. ...
packoman's user avatar
  • 121
2 votes
0 answers
660 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'...
Tsjabrantes's user avatar
2 votes
0 answers
600 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 ...
JollyCrystal's user avatar
2 votes
1 answer
1k 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 ...
nbstrong's user avatar
2 votes
1 answer
4k views

Can not open terminal in a normal way on Ubuntu 20.04

I have updated my computer from Ubuntu 18.04 to 20.04. During the update, may be I accidentally deleted some file when some pop-up appeared. I accepted this ubuntu ask to replace config file. And ...
H.Phuc's user avatar
  • 21
2 votes
1 answer
2k views

What is the difference between using pip from the deadsnakes or apt install python-pip

A few days ago I was installing a development environment for django on ubuntu 18.04. However when I installed pip a question came up. What is the difference between using pip from the deadsnakes ...
pete's user avatar
  • 121
2 votes
0 answers
1k views

Why is pip unable to install packages?

I'm trying to install this list of packages: tensorflow-gpu umap-learn visdom webrtcvad librosa>=0.5.1 matplotlib>=2.0.2 numpy>=1.14.0 scipy>=1.0.0 tqdm sounddevice Unidecode inflect PyQt5 ...
Corey's user avatar
  • 121
2 votes
0 answers
2k views

Dependencies problem when installing ansible in ubuntu 18.04

I try to reinstall ansible in my ubuntu18.04 laptop. I've got this dependencies problem : $ LANG=C sudo apt-get install ansible Reading package lists... Done Building dependency tree Reading ...
Cedricici's user avatar
2 votes
0 answers
490 views

Python3.5-tk in Ubuntu18.04

I installed python3.5 and some package like opencv, Tesrflow, keras and etc when my Linux version was 16.04. But after upgrading the Linux version from 16.04 to 18.04, the new version of python 3.6 ...
yaser gholizade's user avatar
2 votes
0 answers
720 views

After ~1 Hour of working, VIDEOIO ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV

I'm using OpenCV with Python3 to capture images from a 720p WebCam on USB. It's operating on a headless processor, so I can't use the Cam application to check the device. ubuntu@arm:~$ pkg-config --...
Rob's user avatar
  • 121
2 votes
3 answers
2k views

Copy over a large number of files with new names

I have a large number of files (tens of thousands) I need to copy over from /dir1 to /dir2 but the name of the file must change as such: OLD NAME ---> NEW NAME filename.txt ---> bob_filename_1253....
Javier's user avatar
  • 21
2 votes
0 answers
7k views

python: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by python) from specific dir, but not from a copy of it

I have 2 repositories. In both I'm running a similar command (in Python's multiprocess, with 2 seconds sleep between). The command is a python script I have, and I'm running it via each repo's ...
CIsForCookies's user avatar
2 votes
0 answers
630 views

Backup Failed - Deja Dup

Last few days I've been trying to make a new backup on Deja Dup but I get the error: Backup Failed Failed with an unknown error. Traceback (innermost last): File "/usr/bin/duplicity", line 1555, ...
Luddite Savant's user avatar
2 votes
1 answer
257 views

Strange message when I open a terminal

I have just installed anaconda3 in ubuntu 18.04. I have python3.7.5 in my base environment. Python 3.6.9 was already installed before anaconda installation. When I open a terminal I get the following: ...
P.Giuliani's user avatar
2 votes
1 answer
2k views

Error with shared libraries running Salome-Meca

Recently, I installed the latest version of the salome-meca software, obtained from here: https://www.code-aster.org/spip.php?article303 After installed it, I try to run it going into the folder ~/...
Pablo Bascuñan's user avatar
2 votes
0 answers
691 views

Python3 error message when running command does not exists

I had to upgrade mu gnuradio and thus had to build it from source (pybombs didn't work), after the build I get theses error messages whenever I write a command in the terminal that does not exist. ...
Erik's user avatar
  • 41
2 votes
0 answers
576 views

Can I install emscripten with python3

I just installed Ubuntu 18.04 LTS in Windows Subsystem for Linux on my Windows 10 laptop. Feels very very linuxy so far. But the main thing I wanted to use it for at first is Emscripten to learn ...
hippietrail's user avatar
2 votes
1 answer
1k views

Why does pip not install the latest CMake on Ubuntu

As you can see on https://pypi.org/project/cmake/, this is not the latest version. On Windows, it's work as expected. Is it a bug or something? root@85acafdb63d3 /app# pip3 install cmake Collecting ...
Geng  Jiawen's user avatar
2 votes
0 answers
2k views

How to install python packages to a running snap package?

As I understand it, Ubuntu Snap encapsulates and manages versions and dependencies. So if I'm using a python application which is installed as a classic snap, how do I pip install additional packages ...
John Mee's user avatar
  • 943
2 votes
0 answers
2k views

The recognized python version different from the installed python version

I am pretty new to Ubuntu, so sorry if this question is too basic. I have followed these links to install python 3.7 on my Ubuntu 18.04. https://linuxize.com/post/how-to-install-python-3-7-on-ubuntu-...
Prelude's user avatar
  • 251
2 votes
0 answers
1k views

I cannot install python-tk on python2.7

I am an Ubuntu Mate 16.04 user. I want to run this program. I have to use python2.7 to run the program. And I enter python2 train_and_test.py on the terminal. Then, an error was displayed. ...
Sakurai.JJ's user avatar
2 votes
1 answer
94 views

Package not available after successfully installed with apt-get or pip

I'm trying to install some libraries on my Ubuntu machines. Take this library as an example - virtualenv ubuntu@ip-172-31-44-172:~$ sudo apt install virtualenv Reading package lists... Done Building ...
gashu's user avatar
  • 121
2 votes
1 answer
2k views

No module named uno Python Uno Bridge with Non-LibreOffice Interpreter with Django

I want to create a spreadsheet in LibreOffice, upload it to my webserver, and use use my django app and python uno bridge to open the spreadsheet, fill the some cells in with data, hit the recalculate ...
Ben's user avatar
  • 121
2 votes
0 answers
8k views

What's the command to find out version of gcc is used inside a conda virtual environment?

I have a program to be compiled in which I need to have gcc. However, when a python 2.7 virtual conda enviornment being installed, it needs gcc. So I believe I don't have to install gcc package ...
Jenny's user avatar
  • 591
2 votes
1 answer
349 views

Autorun program after connecting Arduino nano

I have read few posts which explained how to write a script and save it on the USB flash drive, which will allow it to run as we connect the device. I want to know if there is a way where we can ...
Nandu's user avatar
  • 21
2 votes
0 answers
6k views

Issue with installing python3-devel gcc

I am trying to install python3-devel gcc, but whenever I do that it tells me E:Unable to locate package python3-devel Is there a way to fix this issue? The commands that I am doing is sudo apt-...
beloas's user avatar
  • 21
2 votes
1 answer
7k views

Pyinstaller in ubuntu16.04 :Python library not found: libpython3.6mu.so.1.0, libpython3.6m.so.1.0, libpython3.6.so.1.0

I want to use pyinstaller make a bundle in ubuntu 16.04. the python env is created by conda which python=3.6.8. When i run pyinstaller, below error occour. I know ubuntu16.04 has python3.5 why python3....
baodii bee's user avatar
2 votes
1 answer
754 views

Python2 support in 18.04 LTS

Considering that python2 is included in Ubuntu 18.04 LTS and provides LTS support on those packages. Is Ubuntu going to provide security support for python2 packages by back porting evident security ...
Bunta's user avatar
  • 21
2 votes
0 answers
2k views

Connection to Python debugger failed: Accept timed out

I have issues with attaching to process on ubuntu 18.04.2 LTS, Python 2.7.15rc1. I set up system: kernel.yama.ptrace_scope = 0 When I'm trying attach to process I get timeout error (I can see ...
tstr's user avatar
  • 141
2 votes
0 answers
372 views

multiple python versions after pip3 install

I've spent a lot of time on the internet but did not found the information I need. I've installed sudo apt-get install python3-pip from shell (I needed it for Pycharm venv - not important) but it ...
Vitaliy Terziev's user avatar
2 votes
1 answer
7k views

Apache2 Config variables not defined

I'm new to Apache2, so bear with me. I followed this tutorial to get HTTPS working with a Flask server. I keep getting the same output when I run the apache2 command: [Wed Nov 28 01:42:32.210442 ...
jackmerrill's user avatar
2 votes
0 answers
1k views

Python/Pip broken after updating to 18.04

I recently upgraded to Ubuntu 18.04. Before I did, I could use pip(3) and pipenv to install modules. Now I find that whatever I try, I get errors. The only thing that does work is to call pip(3) as a ...
Bokkie's user avatar
  • 21
2 votes
1 answer
457 views

Can I run a python package with snap on Ubuntu Core?

I wrote a python package on a Debian-machine that I am trying to port over to Ubuntu Core (it comes preloaded on the hardware I want to use). On Debian, I was able to simply pull my code from git and ...
ericksonla's user avatar
2 votes
0 answers
866 views

configure error c compiler cannot create executables server while installing python in remote server

I tried to install python3 in remote server using wget https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tgz tar -xvzf Python-3.7.1.tgz After that, I tried cd Python-3.7.1 ./configure --...
Bharath  kumar k's user avatar
2 votes
0 answers
932 views

New to Ubuntu 18.04, unable to install python3-dev

I am actually in the process of trying to install a GitHub project via PyPI. I'm having some difficulty getting it to install so someone recommended that I try sudo apt-get install python3-dev When I ...
thenewcoder's user avatar
2 votes
0 answers
526 views

Creating a python "applet" for ubuntu (gnome) utility panel

I'm interested in creating an applet for the gnome "utility panel" in python. I really don't even need any interactivity. I just want to display some text and have it change occasionally based on ...
Mike Burr's user avatar

1 2
3
4 5
32