Skip to main content

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
-1 votes
0 answers
14 views

Ignore python flags for Task Spooler

I am using task Spooler and have flags in the command line to be able to add inputs through it. Is there a way to make spooler ignore this since currently I am getting an issue that it is an unknown ...
Nikita Belooussov's user avatar
0 votes
1 answer
53 views

How to inspect GUI elements in Linux (Mate, Cinnamon) like inspect.exe does with UI Automation in Windows?

I know, there are some tools to automate Linux desktop programs with Python, simulating users actions (moving mouse, clicking buttons, filling forms and so on), like we do it in Windows with pywinauto ...
Anton Makarov's user avatar
-1 votes
0 answers
205 views

Snapdragon X elite laptops (when to switch from x86) [closed]

Can someone tell me when do you expect to be the right time to switch to Snapdragon CPU-s ?. I'm a long long time Ubuntu / Linux user (17+ years) and now for about 2 years I'm looking for decent new ...
Greg's user avatar
  • 107
2 votes
2 answers
129 views

flake8 installation causes removal python-minimal - Ok or not?

(still) on Ubuntu 20.04.6 LTS when I try to install flake8, it makes me question, which implies I do something very risky, however I can not find, is it actually risk or it's just outdated warning for ...
aytvill's user avatar
  • 33
0 votes
0 answers
34 views

ParrotOS: Encountered error while trying to install package, pycrypto [closed]

I am trying to install the python libraries based on the github repository, https://github.com/Dvorhack/MiBand3 such as bluepy pycrypto curses-menu crc16 I got the error saying that it is unable to ...
abdul's user avatar
  • 1
0 votes
0 answers
16 views

I am trying to make a indicator specifically Kijun-sen+ and the code i made throws this error [closed]

#This is the indicator code def KijunSen(data, length): lowest_low = data['Low'].rolling(window=length).min() highest_high = data['High'].rolling(window=length).max() return (lowest_low + ...
Žymantas Rastenis's user avatar
1 vote
0 answers
43 views

Cqlsh for Cassandra not working

I am using ubuntu 24.04 LTS, and it's starting giving me this error for the cqlsh: shrivastavamahir@KnightHunter:~$ cqlsh Traceback (most recent call last): File "/home/shrivastavamahir/.local/...
Mahir Shrivastava's user avatar
1 vote
0 answers
871 views

AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?

Whenever I try to install any module in Python through the pip command, it gives AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'? I have tried all these ...
Aditya_Nautiyal's user avatar
0 votes
0 answers
17 views

System Freezes During Parallel Calculations with Python GridSearchCV and WIEN2k on Ubuntu 24.04 LTS

Hello Ubuntu Community, I'm experiencing system freezes when running parallel calculations using both Python (GridSearchCV with RandomForestRegressor) and WIEN2k. The system becomes unresponsive, ...
Hatef Shahmohamadi's user avatar
-1 votes
0 answers
33 views

Disabled Wayland to share screen but now Python matplotlib fails

I'm using Ubuntu 22.04 and had problems sharing my screen. I had to disable Wayland at the Ubuntu login screen and that fixed the problem. However, because of this I now cannot generate matplotlib ...
intrigued_66's user avatar
0 votes
0 answers
11 views

pyperformance is timing out

Trying to run pyperformance benchmark https://pyperformance.readthedocs.io/usage.html#compile-python-to-run-benchmarks Installed pyperformance python3 -m pip install pyperformance Installed apt ...
RedFox's user avatar
  • 113
0 votes
0 answers
27 views

cv.namedWindow title is not shown correctly(shows garbage)

NamedWindow import cv2 as cv img_c = cv.imread('candy.jpg', cv.IMREAD_COLOR) cv.namedWindow('Image', cv.WINDOW_NORMAL) cv.resizeWindow('Image', (600, 300)) cv.imshow('Image', img_c) cv.setWindowTitle(...
user1803600's user avatar
0 votes
0 answers
12 views

chrome.py can't write to the filesystem only when django is run as a service

From pyhtml2pdf converter.convert(f'file:///{path}', pdf_file_path) On my Ubuntu 20.04 Azure VM, chrome.py doesn't seem to be able to write to pdf_file_path when my django server is run as a service -...
anjanesh's user avatar
  • 671
0 votes
0 answers
27 views

Dock Position change on screen rotation

I'm trying to move the position of my Dock on my Lenovo Thinkpad Yoga X13 running Ubuntu 24.04 as follows: Landscape - I would like the dock to be on the left hand side Portrait - I would like the ...
Philip Dawson's user avatar
-1 votes
0 answers
27 views

Cannot connect my android studio to my backend

java.net.ConnectionException: Failed to connect to /127.0.0.1:8080 i have also tried to use my ipconfig to put in my frontend but my app will unexpectedly crashed out and exit. String url = "...
rahman auf's user avatar
0 votes
0 answers
74 views

Use Wine and PyInstaller to Create Windows Executables

I am setting up a CI/CD pipeline on Gitlab for creating executables through PyInstaller for Windows, Mac, and Linux. I have Mac and Linux down, but since PyInstaller can't cross-compile, I am using ...
Byotic's user avatar
  • 1
1 vote
1 answer
185 views

24.04 Python Selenium Firefox driver broken

I had a previously working python script (on 22.04) that uses the Selenium package with the Firefox driver. Now it seems that the Python Selenium package can never find the Firefox Driver geckodriver,...
Kingsley's user avatar
  • 309
0 votes
1 answer
80 views

After Installing Python from Source, can I Uninstall the Building Dependencies?

I am working with very constrained embedded hardware where I cannot afford to have many packages installed; however, I need Python3.10, which I built from source (my apt only offers Python3.7). In ...
GossamerClaw3045's user avatar
-1 votes
1 answer
66 views

Ubuntu 22.04.4 LTS, Swap works sometimes, and sometimes crashes python

OS: Ubuntu 22.04.4 LTS, 64-bit, 64Gb RAM Python: 3.9.19 Summary: Running memory-intensive analysis in Python causes python to crash most of the time, but not always. Crashes happen specifically when ...
Goibnhiuu's user avatar
1 vote
0 answers
52 views

How to create an AppImage of a Python module that is developed in `pipenv`?

How do I create an AppImage of a Python module that is packaged by pipenv? I came across Converting Python applications packaged with pip. But I have not figured out how apply it to pipenv. I have the ...
Sun Bear's user avatar
  • 2,412
0 votes
0 answers
315 views

Installing AWS CLI v1 on Ubuntu 24 does not work (but works fine on Ubuntu 22)

I have the following dockerfile, which installs AWS CLI according to Amazon's instructions On Ubuntu Jammy, this works fine. The image builds and aws command works as expected. FROM ubuntu:jammy RUN ...
sytech's user avatar
  • 133
0 votes
0 answers
151 views

Can't install Tensorflow in Ubuntu 20.04 LTS

I'm trying to install TensorFlow on my Ubuntu system, but I'm encountering some issues. Here's what I've done and the issues I'm facing: 1. sudo apt install python3-tensorflow: This command returns ...
Aqib Ansari's user avatar
0 votes
0 answers
31 views

"Directive illegal error" when trying to run my code

I'm getting "Directive illegal error" when I try to run my code, can someoene help me please? import cv2 import face_recognition img = cv2.imread("messi1.jpeg") rgb_img = cv2....
teknofestikbaliyeatahanyilmaz's user avatar
0 votes
1 answer
36 views

hosts.deny file breaks when I edit it with python- why? and how do I edit the file with python without losing functionality?

I've started monitoring system logs on my ubuntu sever and noticed thousands of failed ssh attempts from ips all over the world. I wrote a simple python script to track the ips and then edit them into ...
KawaiiKhed's user avatar
0 votes
0 answers
59 views

pip installs very old version of Intel extension for tensorflow

I set up my computer with the recently released Ubuntu 24.04. I want to run notebooks in Jetbrains' Dataspell. For this purpose I installed tensorflow, notebook, and something called intel-extension-...
Markus Gratis's user avatar
0 votes
0 answers
22 views

Messed up with python symbolic link in bin folder

problem is that I am not able to open the gnome-terminal by clicking on it icon, but I am able to use "open in terminal" from any path Actually, I was trying to update the Python version and ...
vinit sharma's user avatar
0 votes
1 answer
183 views

Using a venv python by default (as pip won't work with the system python)

Since I cannot use pip to install modules to the system python, I must use a venv. What is the 'right way' to ensure that the #!/usr/bin/env python finds this venv and not the system python? When ...
John Allsup's user avatar
0 votes
2 answers
68 views

How can i upgrade Ubuntu?

I am trying to upgrade from 20.04 to 22.04 During update, I get an error Your python3 install is corrupted. Please fix the ’/usr/bin/python3’ symlink. I know changing the symlink to the correct ...
Shahab Rashidi's user avatar
1 vote
1 answer
899 views

Unable to install Automatic1111 Stable Diffusion on 24.04 due to Python 3.12.3

I'm contemplating going back to Ubuntu 22.04 because I'm facing an issue with installing Stable Diffusion (via Automatic1111) on my newly installed Ubuntu 24.04. The sole purpose of installing Ubuntu ...
aisajib's user avatar
  • 61
0 votes
0 answers
58 views

Error in sqllite3 when running apt update

I'm on Ubuntu 24.04. When I run sudo apt update I get the following error ouput: Traceback (most recent call last): File "/usr/lib/cnf-update-db", line 9, in <module> from ...
DevMan's user avatar
  • 101
2 votes
1 answer
191 views

Safeeyes does not run in Ubuntu 24.04

I installed safeeyes on Ubuntu 24.04, and it does not work. When I run it form the command line, I get the following error. $ safeeyes Traceback (most recent call last): File "/usr/bin/safeeyes&...
Archisman Panigrahi's user avatar
0 votes
0 answers
47 views

How to install 2 versions of libssl on Kubuntu 22.04?

I have SSL 1.1 version in my OS. I need to install libssl-1.0dev somewhere in home directory for old versions of Python with pyenv. I don't want to change actual verson of libSSL due to security ...
andmerk93's user avatar
0 votes
0 answers
176 views

PyCharm says "invalid python interpreter" about the venv I used (after Ubuntu upgrade)

After upgrading Ubuntu, PyCharm says this: (How can I make that venv work on newer Ubuntu? - I'd rather keep all installed packages in that venv)
user105939's user avatar
  • 1,699
1 vote
0 answers
58 views

CUDA in Docker image breaks and require sudo apt upgrade

Question Why sudo apt upgrade on the host OS is required to make CUDA work in Docker container? The problem does not occur without Docker, but occurs only when a Docker image is recreated. Environment ...
mon's user avatar
  • 309
0 votes
0 answers
20 views

Shell script doesn't recognize Python even after setting its path [duplicate]

I'm having trouble calling Python code from a shell script on Ubuntu. First of all, I confirm that Python is installed: username@Ubuntu22:~/Documents/Script$ python Python 3.10.12 (main, Nov 20 2023, ...
Ogiad's user avatar
  • 1
0 votes
0 answers
124 views

Pip install freeze inside python Docker image

Pip install freeze inside python Docker image. However on other Linux machine it launches right away. => [internal] load build definition from Dockerfile ...
AlterEGO's user avatar
0 votes
0 answers
84 views

Installed nvidia through file runner, nvcc is on my system but not properly configured

I installed version 11.8 of CUDA on my system through the runfile: https://developer.nvidia.com/cuda-11-8-0-download-archive?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&...
Makogan's user avatar
  • 245
0 votes
0 answers
690 views

No module named 'llama_index.vector_stores' - installation of OpenDevin on WSL Ubuntu

I try to install and start OpenDevin on WSL Ubuntu (WSL 2). Ok, I follow this guide but I can't fix this error so the backend doesn't start ModuleNotFoundError: No module named 'llama_index....
Alex Doc's user avatar
  • 101
0 votes
1 answer
78 views

how to write cronjob

I tried to setup cronjob for python script erpnext_sync.py which is in located at /home/user_name/frappe-bench/biometric-attendance-sync-tool $ crontab -l * * * * * /usr/bin/python3 -c 'from ...
fit's user avatar
  • 1
0 votes
1 answer
128 views

Correcting #!/bin/env python shebang issue

I recently installed DOCK3.7 on my workstation running Ubuntu 20.04. However, I encountered an issue where the python scripts called upon could not be located, despite specifying the correct path and ...
Anthony 's user avatar
0 votes
1 answer
62 views

What languages installed with APT on Ubuntu come with graphical features straight out of the box?

Just wondering what programming languages I can install straight from the APT that come with built in graphics functions on Ubuntu. I know Java can but I don't know of anything else and information on ...
Lonely Lad's user avatar
0 votes
0 answers
151 views

Kubuntu python environment pip installation too slow

I recently switched to Kubuntu from windows. When I create a python virtual environment and try installing packages using pip, the download and installation process take too long. But the ...
Noob Master's user avatar
2 votes
1 answer
141 views

No jupyterhub access to GPU

Platform: x86_64, Ubuntu 22.04.4 LTS, 5.15.0-101-generic, jupyterhub 2.0.0+ds1-2 I've installed jupyterhub from the official Ubuntu software repositories (package jupyterhub). This works and I can ...
moo's user avatar
  • 921
0 votes
0 answers
27 views

How to configure a folder for custom Python App installed through CPanel?

I installed my python script using Cpanel feature "Setup Python App". I run my script in virtual environment created by CPanel: /home4/apmcapit/virtualenv/apps/myapp/3.9/bin/python /home4/...
Nikky Leed's user avatar
0 votes
0 answers
376 views

Launching ProtonVPN On Ubuntu 22.04 Error - AttributeError: 'NoneType' object has no attribute 'connect'

I am facing this issue using ProtonVPN on Ubuntu, it was working well a few days ago. I have also tried to reinstall it several times but nothing seems to work. Please if anyone got this before, here'...
Eury Dice's user avatar
3 votes
1 answer
6k views

How to install Python 3.12 on Ubuntu 23.10?

I did several wrong things for my first day on Ubuntu when trying to code with Python, so I just reinstalled it. Can anyone tell me the best way to install Python here? I am using Ubuntu 20.04, and I ...
Ashish Agarwal's user avatar
0 votes
1 answer
105 views

ProgrammingError: 1045 (28000) Issue with logging into MySQL DB using Python script and Ubuntu

I have created a Python script that does some calculations and then points to a DB to fill out some tables. The DB is hosted on a Ubuntu Azure VM, where I set up a MySQL database. I have been able to ...
Dsto4's user avatar
  • 1
0 votes
0 answers
65 views

Snap directory full, automatic python update broke all python code

I enabled app updates in Ubuntu Pro on a 20.04 LTS box but any attempt to run python code breaks immediately on import. For example, entering import pandas as pd in a python3.8 shell returns a ...
Loggy's user avatar
  • 1
-1 votes
1 answer
61 views

How do I uninstall a program that I installed using make?

I'm sorry for the uninformative question title, if you come up with a better one, feel free to edit. So, I made the mistake of installing Python 3.9.2 using these instructions on DigitalOcean. However,...
chocojunkie's user avatar
0 votes
1 answer
318 views

Not able to update or upgrade after upgrading from Python 3.10.12 to Python 3.11 [duplicate]

I have a complete backup for starters. Second, I was testing an application that required me to upgrade from Python 3.10.12 to Python 3.11, and now Gnome Terminal is not working, and I am unable to ...
mylesmorales's user avatar

1
2 3 4 5
104