Questions tagged [python3]

Python 3 is the latest major version of Python, a scripting language used by many open source developers.

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

ClamAV doesn't scan a file if the extension is JSON

I am using ClamAV with it's Python interface pyclamd to scan for any potential malware or "bad files" that are downloaded by the code on the server. While it scans all other files properly, ...
Apurva Kunkulol's user avatar
1 vote
1 answer
222 views

Problems with boot (Ubuntu tty1-) [duplicate]

I used the command sudo apt autoremove python3 and now my ubuntu does not boot properly. It keeps going to Ubuntu tty1-. Would be grateful if someone could assist me.in fixing it.
Ziah's user avatar
  • 11
1 vote
0 answers
92 views

Stream Deck MK.2 not working on Kubuntu 23.04

I was able to make to work with Linux Mint just fine but after switching to Kubuntu 23.04 I am not able to make it to work, I am getting this error when I execute this line: $ pip3 install --user ...
octor's user avatar
  • 11
0 votes
0 answers
126 views

Ubuntu Linux segfault when transferring files over SFTP

I am trying to transfer movie files over SFTP to my Ubuntu server in order to load them to my Jellyfin Docker instance, but every time I try to transfer a file I get a segfault error. I am running ...
Brandon Pyle's user avatar
5 votes
1 answer
5k views

ubuntu 23.04 python3 no module named ensurepip

I am pulling my hair out over this issue. I am not a python user so following random instructions I find anywhere to solve this issue but nothing works. Basic problem is that I am trying to use ...
nobody special's user avatar
0 votes
0 answers
28 views

Jupyter NB fails to import packages that work well on the Ubuntu cmd line

[I started using Linux (Ubuntu) very recently to be able to run SageMath without problems - i.e. no idea!] The Jupyter notebook in Ubuntu allows running SageMath, Rstats and Python all at the same ...
Antoni Parellada's user avatar
1 vote
0 answers
349 views

Encountering "Fatal Python error: Segmentation fault" error in python script

Recently my system got upgraded from ubuntu18.04.1 to ubuntu22.04.2 and as a result of which the following got upgraded as below: python 3.7.5 to python3.10.6 Mysql 5.7.38 to mysql 8.0.31 I see, ...
Shilpa's user avatar
  • 11
0 votes
0 answers
263 views

Blender python ensurepip problems/errors

Trying to install a addon in Blender throws a python error. import ensurepip ModuleNotFoundError: No module names `ensurepip` So then I tried python3 -m ensurepip /usr/bin/python3: No module named ...
nobody special's user avatar
1 vote
1 answer
1k views

How fix errors repo

How to solve my problem with the repo tool after I wrote a command on the terminal sudo apt install repo And I updated the Ubuntu operating system, and when I ran the repo tool, it did not work ~$ ...
eslam karioke's user avatar
1 vote
1 answer
252 views

Syntax error in object.h file from python3.10-dev package

I am writing a code to edit Sqlite database from c++ and then using PyBind11 to use the program with python. I installed PyBind11, built it till here no issue but when I am building the code it shows ...
Raghav's user avatar
  • 11
1 vote
0 answers
44 views

Logical conundrum in automatically installing libraries

I have a bit of code that attempts to install a library if it doesn't already exist - this is for deployment on many machines so I'm trying to automate as much as possible. My code looks like this: ...
DougM's user avatar
  • 11
18 votes
4 answers
62k views

pip error on Ubuntu: externally-managed-environment × This environment is externally managed

I upgraded to Ubuntu 23.04. Now, when I run a pip command (installed using sudo apt install python3-pip), I get this error: $ pip install --user <foobar> error: externally-managed-environment × ...
Flimm's user avatar
  • 41.6k
0 votes
0 answers
31 views

Can I run ubuntu 17.10 python behavior on my ubuntu 22.04 (usb stick installation or virtual machin solutions ?)

I would like to run python 3.6 and JS project (2018) on my laptop but I have Ubuntu 22.04 installed and there are a lot of incompatibilities. As I have many other programs installed, I want to keep my ...
Simon .Boylan's user avatar
1 vote
0 answers
376 views

Move installed Python3.6 to another location/folder in Ubuntu 22.04

Hello folks and thanks for any help, I needed to install Python 3.6 to fiddle with a script from a few years ago and the only way I found was through make files (compiler). Steps are explained here : ...
Simon .Boylan's user avatar
0 votes
0 answers
31 views

I Can't install python3-pip because it has no installation candidate [duplicate]

So i entered sudo apt-get install python3-pip And i got Building dependency tree... Done Reading state information... Done Package python3-pip is not available, but is referred to by another package. ...
FolderFocus's user avatar
0 votes
1 answer
703 views

Python socket.gethostname() data source

For a project I'm working on inside of a dockerized python3 module. I'm running into the issue that socket.gethostname() always returns the random docker name. Since these instances are temporary and ...
Mike B's user avatar
  • 1
0 votes
1 answer
3k views

python3-serial miniterm.py location

I am trying to install python3-serial on ubuntu (18.04 and 20.04) and can't seem to get miniterm.py in PATH. From what I've read, it should be installed either in /usr/bin/miniterm.py or /usr/local/...
Bogdan Prădatu's user avatar
1 vote
2 answers
161 views

how to undo installlin youtub-dl and python3-pip

i have question i install pyhon3 pip and then I install youtube-dl sudo install apt python3-pip sudo pip3 install youtube-dl how i can uninstall youtube-dl and undo installing pyhon3 as pip i get ...
Sameh Refaay's user avatar
0 votes
1 answer
211 views

Preview Pane on ubuntu (jammy) in Nautilus

I like the feature in Windows (Preview pane) but I want this feature in Ubuntu (jammy) in Nautilus File Manager too. If there is any plugin (Kindly share that). Anything through which I can enable the ...
apoorv gupta's user avatar
0 votes
0 answers
572 views

False conflict in glibc version?

Trying to install torch over conda, on Ubuntu 18.04, I get: Package pytorch-mutex conflicts for: cpuonly -> pytorch-mutex==1.0=cpu torchvision -> pytorch-mutex==1.0[build='cuda|cpu']The ...
Ofek Shilon's user avatar
0 votes
0 answers
28 views

Python files removed from Jetson [duplicate]

I'm new in Linux, so I tried to remove the python3.6 package in order to install python3.8. However, doing this removed important files. Now when I try to install something or remove, upgrade etc., I ...
Hrathen23's user avatar
0 votes
0 answers
47 views

pylucene: my webapp django crash after first query pylucene query (version 9.1)

This is messages that I get when I query many times pylucene (2 times). A fatal error has been detected by the Java Runtime Environment: SIGSEGV (0xb) at pc=0x00007fe2d913f03d, pid=3947943, tid=...
zabitstack's user avatar
2 votes
1 answer
1k views

Why am I getting ImportError when running Nala with Ubuntu server upgraded to 22.04?

I'm getting an ImportError when trying to use Nala after installation: $ sudo nala update Traceback (most recent call last): File "/usr/bin/nala", line 5, in <module> from nala....
mpboden's user avatar
  • 1,334
-2 votes
1 answer
1k views

Why I get this error installing python venv software? [closed]

I'm quite new to linux and python and I'm trying to install a python software (openmotor) in a python virtual enviroment as the author recommends to do it but I'm getting this error message when ...
daniel arenas's user avatar
0 votes
0 answers
250 views

Unable to install libgsl23, libboost-program-options1.65.1 in a Docker File

I'm trying to install pyscipopt in dockerfile, but I got some errors when installing required packages for SCIP. This is my Dockerfile: FROM python:3.8-slim WORKDIR /src RUN apt-get update -y RUN apt-...
Khiem Nguyen's user avatar
2 votes
0 answers
73 views

Gnome terminal won't open except from file explorer

When I try to open the terminal from the favorites bar it shows that it's loading but never opens. The good news is that it opens from the file explorer "Open in Terminal". I recently ...
mohammed elsheyab's user avatar
1 vote
1 answer
5k views

Python 3.8 + Pip on WSL

I've being looking around on the internet and either nobody else has this problem, or nobody else can solve it. I used the deadsnake repository to use Python 3.8, which seems to work, but when I try ...
dboggs95's user avatar
  • 113
4 votes
1 answer
11k views

what is the best way to install python 3.10.10 (which is the current version of 3.10) on a 22.04 machine where the systems python version is 3.10.6

I have done the following on a clean install of a 22.04 machine: sudo apt update sudo apt upgrade sudo apt autoremove sudo add-apt-repository ppa:deadsnakes/ppa sudo apt update sudo apt install ...
boar's user avatar
  • 41
1 vote
1 answer
1k views

Using /usr/bin/env python3 to point to virtual environment in 22.04

I have a script that begins with #!/usr/bin/env python3 Should it use the "python3" virtual environment with it having to be explicitly activated? I'm pretty sure this used to work on ...
crmpicco's user avatar
  • 213
0 votes
0 answers
23 views

How to fix: Python missing error, python3 (>= 3.7~) but 3.6.7-1~18.04 is to be installed [duplicate]

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 ...
JACOB Mondejar's user avatar
1 vote
0 answers
1k views

Older version of python can't access 'python3-distutils'

TLDR: There are two version of Python on my system. The older version can't access distutils. I am running a fresh install of Ubuntu 22.04. The distro comes with two versions of python already ...
Jake's user avatar
  • 11
0 votes
1 answer
700 views

py3compile:183: cannot create directory /usr/lib/python3/dist-packages/CommandNotFound

I have deleted my python3 because of multiple symlinks issue, and I'm trying to isntall it again on Ubuntu 20.04, but I'm getting the error: py3compile:183: cannot create directory /usr/lib/python3/...
Bilal's user avatar
  • 305
0 votes
1 answer
293 views

error at the end of python3-pydantic for grapejuice depends not installable

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 ...
JACOB Mondejar's user avatar
1 vote
1 answer
728 views

python 3 installed on ubuntu cannot install python-is-python3

I'm trying to install python-is-python3 like I've done many times in the past successfully, but I'm getting the following error now: pip install python-is-python3 ERROR: Could not find a version ...
afshin's user avatar
  • 121
0 votes
2 answers
161 views

Avoid switching between two versions of python for each service in the same environment

I managed to install python 3.6 alongside python 3.10, the problem is that when 3.6 is selected in update alternatives, walinuxagent service works fine when while netbox, netbox-rq and nginx services ...
FeDos's user avatar
  • 156
0 votes
1 answer
1k views

Installing Azure Linux Agent gives python related issues

When I got this server assigned, it has two versions of python (2.7 and 3.6), then I had to install 3.10 manually because the version of Netbox I want to use needed 3.8 minimum. Everything looked fine,...
FeDos's user avatar
  • 156
6 votes
1 answer
5k views

Upgrade python without breaking major applications

I currently have python 3.8 installed. I also installed python 3.11 seperately, but the default python3 alias points to 3.8: ➜ ~ python3 --version Python 3.8.10 ➜ ~ python3.11 --version Python 3.11....
Paul H's user avatar
  • 161
2 votes
1 answer
2k views

Getting an error when running apt update: ModuleNotFoundError: No module named 'apt_pkg'

When I run apt update on a Ubuntu 18.04.6 LTS, which is a server my company use for hosting Netbox, I get the following issue: $ sudo apt update Hit:1 http://azure.archive.ubuntu.com/ubuntu bionic ...
FeDos's user avatar
  • 156
2 votes
1 answer
8k views

Package 'python3.8' has no installation candidate when trying to install nanovna-saver in Ubuntu 22.04

I once had the nanovna-saver executable working in version 18 something. I upgraded Ubuntu to version 22.04. Since then the Nanaovna-saver exe does not work. I am trying to reload nanovna-saver by ...
Fkawee's user avatar
  • 21
0 votes
1 answer
235 views

Unable to resolve unmet dependencies [closed]

It seems I have gotten my packages in a dependency loop, I'm not sure to be honest. Can anyone help me resolve my dependencies issues please? lsb_release -a No LSB modules are available. Distributor ...
RobWaterhouse95's user avatar
1 vote
1 answer
412 views

GTK3 DrawingArea not rendering/updating other than when looking away and looking back

I am migrating some older code from gtk2 to gtk3 and encountering problems in refreshing/rendering/updating. So gtk3 has moved to use draw instead of the old expose_event and this has caused the ...
Ippa Seppälä's user avatar
0 votes
1 answer
77 views

Can't use opencv in upgraded Python3

I upgraded my Python 3.6.9 to Python 3.9. Prior to upgrading, I was able to use opencv but somehow I can't use opencv and other libraries (matplotlib.pyplot etc.). What is problem with that ? I also ...
kadir_ercan's user avatar
-2 votes
2 answers
1k views

Couldn't launch proton vpn

If I try to open proton via clicking on the icon,nothing happens whereas if I use the terminal and type protonvpn I get page full of exception and errors. Traceback (most recent call last): File &...
Sahil Ahmed's user avatar
1 vote
2 answers
378 views

Unmet dependencies in Sagemath installation at Ubuntu 22.04 : python3-pyr2 : Depends: python3 (< 3.9) but 3.10.6-1~22.04 is to be installed [duplicate]

I have just installed Ubuntu 22.04 and tried to install Sagemath from https://sagemanifolds.obspm.fr/install_ubuntu.html with the following commands: sudo apt install sagemath-jupyter Unfortunately a ...
Loukas Douros's user avatar
1 vote
0 answers
168 views

Why the system doesn't recognize python3.7 as the python3 installed? (for distutils)

The ubuntu version is 18.04. The pc is in a environment which can't access internet, but can acess to a limited storage with apt and pip packages. I am trying to install distutils_3.7 on it (I use ...
Altmcs's user avatar
  • 11
1 vote
0 answers
85 views

Problem when trying to install NanoTCAD

I tried to install NanoTCAD to use for my scientific research. the program page linked below: http://vides.nanotcad.com/vides/documentation/installation-4 However, the Ubuntu showed error screen like ...
nattakorn borwornpornmetee Mo's user avatar
0 votes
0 answers
28 views

Errors on apt update with input and output error [duplicate]

when i try to update on my ubuntu 20.04 some errors appear, i show what it is Hit:1 http://dl.google.com/linux/chrome/deb stable InRelease Hit:2 http://packages.microsoft.com/repos/code stable ...
Vu Nguyen's user avatar
1 vote
0 answers
43 views

Indicator to show online / offline in 22.04

I have this Python code that sends a notification when we are offline. I was wondering whether it is possible to have a visible indicator based on this code in Ubuntu 22.04. Green when the connection ...
user227495's user avatar
  • 4,069
2 votes
2 answers
6k views

Terminal and other apps suddenly won't open

Ubuntu 22.04.01 LTS Gnome Version 42.5 Terminal won't open either via the GUI or by the keyboard shortcut. When I click the GUI icon a circle merely spins. Keyboard shortcuts tried: ctrl + alt + del ...
Exquisite Mong's user avatar
1 vote
1 answer
6k views

Can't install anything because of python3-minimal and language-gnome-selector

I'm trying to install python3 (and python2) in my env but I keep on getting the following issue: sudo apt-get install python3 Reading package lists... Done Building dependency tree... Done Reading ...
KaliTheGreat's user avatar

1
2
3 4 5
29