All Questions
Tagged with arch-linux python
53
questions
56
votes
7
answers
86k
views
Recommended way of installing python packages on Arch
What's the recommended way of installing python packages on Arch? Searching for them on the AUR and installing them from there (or create a PKGBUILD file to make a package yourself) or using pip?
I ...
7
votes
1
answer
3k
views
Why does Python's pip reset to version 10.0.1 in every new virtual environment?
tl;dr: Why is pip's version reset to 10.0.1 every time I create a new virtual environment and not automatically cloned from my global 18.0 installation?
Every time I create a new virtual environment I'...
6
votes
2
answers
5k
views
Arch Linux: python and python2 are in conflict
I've recently installed Arch Linux onto my primary (Ubuntu) computer, and it is working really well for me. It's fast, configurable, basically a faster version of Ubuntu.
Since compiz-fusion isn't ...
5
votes
1
answer
7k
views
Missing Python.h in Arch
I use Arch Linux. I want to compile a C++ file that includes <Python.h>.
But I can't do it.
In Debian based systems this problem is resolved with sudo apt-get install python-dev. How I can ...
4
votes
5
answers
3k
views
On system update: "python-gast03 and python-gast are in conflict"
Trying to make a system update to upgrade Tensorflow:
sudo pacman -Syu
I am asked:
:: python-gast03 and python-gast are in conflict. Remove python-gast? [y/N]
I say No:
error: unresolvable package ...
4
votes
1
answer
256
views
Linux (Manjaro) inferring QML type from a .py file
First of all, this is my first post, so I hope I'm following the proper guidelines and am stating the issue clearly.
I'm personally not too Linux-savvy, only using it to do some code on occasion, ...
4
votes
1
answer
11k
views
Python module 'gi' not found on Arch
I'd like to run a code that uses the gi-module. I'm not quite sure why it's not able to find the module.
The python-gobject is installed and used by other programs. I already reinstalled python-...
3
votes
2
answers
8k
views
Python.h: No such file or directory
I'm trying to build omniORB 4.1.6 under Arch Linux. When I type make, here is the message:
../../../../../src/tool/omniidl/cxx/idlpython.cc:188:26: fatal error: python3.3/Python.h: No such file or ...
3
votes
1
answer
1k
views
pip freeze lists packages uninstalled through pip, then reinstalled through Pacman
Because I've heard that it's a very bad idea to install packages through pip instead of through a package manager, I'm trying to identify all the packages that I've installed through pip that are also ...
3
votes
1
answer
287
views
Suddenly I have troubles plotting with python
I have a code that I used yesterday to generate plots. Today, when I tried to use it (with the same input as yesterday), I get an error:
QGtkStyle was unable to detect the current GTK+ theme.
...
3
votes
0
answers
2k
views
How to calculate power consumption from battery stats
I set up the arch linux on my new msi prestige ps42 laptop. To my disappointment, the battery life pretty much quickly deteriorated. After first 2 months of usage, the battery could supply the laptop ...
2
votes
2
answers
4k
views
How to direct /dev/hidraw output to python application and not terminal
I have a USB barcode scanner and am running a python script that collects data from /dev/hidraw0 and inputs the data into a database. The issue is that every time the scanner collects a code it ...
2
votes
1
answer
13k
views
Reinstall Python and Python2 on Arch Linux
I had a problem with my Python installation on Arch Linux and that made me wonder if there is any way to reinstall Python and Python2 on Arch Linux.
My guessing is that I should not do something like:...
2
votes
1
answer
2k
views
Python Interactive mode on Arch Linux "Segmentation fault (core dumped)"
Using Arch Linux everytime I try to use Python interactive mode no matter what I type I get Segmentation fault (core dumped) and the Python interpreter exits.
I do not have any problem running Python ...
2
votes
2
answers
313
views
How to check if disk has linux inside
I am trying to boot a external USB drive which runs Linux to check whether the main computer hard drive is running (so it contains) Linux or not, and mount it into /mnt directory to modify some files.
...
2
votes
2
answers
3k
views
What does this python2 error mean, and what should I do about it?
Whenever I attempt to use an application relating to python2(gnome-tweak-tool, bzr, etc.) it fails to start and, when run from command-line, I get this error:
[username@host ~]$ gnome-tweak-tool
...
2
votes
0
answers
244
views
Arch Linux / Virtualenv: Python 3.5 failed after system upgrade
I updated my arch linux system just now. It upgraded my Python 3.5 to 3.6. When using python in the main environment, it works fine:
[yuanyin@YuanYin ~]$ python
Python 3.6.0 (default, Jan 16 2017, 12:...
2
votes
1
answer
725
views
Shared library libgcrypt found in system python but not in Anaconda environment
I'd like to use the lxml.html module in python3.5. When running my system python, I can do import lxml.html successfully. When I issue the same command in an Anaconda environment, I receive ...
2
votes
0
answers
866
views
Arch Nginx Uwsgi no app loaded
I am trying to get django working but uwsgi is having problems loading anything. Most likely do to my ignorance. I would love some help troulble shooting. I have been looking at similar posts on the ...
1
vote
2
answers
7k
views
Arch:pip: ImportError: cannot import name 'requests'
Some of my python packages installed with pip had conflicts with another package I tried installing using pacman. So I decided to uninstall all the packages installed with pip. I made a requirements....
1
vote
2
answers
3k
views
Runs perfectly through the command line, will not work through systemd ExecStart
I've installed Butterfly http terminal server, written in python, on my Arch machine. I'm new to systemd, but I'm having an issue with one of the command line parameters.
/usr/bin/butterfly.server.py ...
1
vote
2
answers
287
views
IPython Qt Console doesn't have a title in GNOME app switcher
When I use the app switcher in GNOME 3.16, the IPython Qt Console (version 3.1.0) doesn't have a title under its icon (see image, and compare with Chromium). I also noticed that the icon doesn't have ...
1
vote
1
answer
629
views
pgAdmin4 fails to launch on Linux (Arch)
After installing pgAdmin4 with sudo pacman -Sy pgadmin, when I try running it, it gets stuck on the starting screen:
It doesn't even close visually (xorg), I need to do it with killall pgAdmin4. The ...
1
vote
2
answers
4k
views
Pip stopped working on Arch Linux
when trying to use Pip on my Arch system I get the following error.
Traceback (most recent call last):
File "/usr/bin/pip", line 5, in <module>
from pip._internal.cli.main import ...
1
vote
1
answer
343
views
When I try to start gnome-tweaks it return me application errors that I can not understand and the shell remains hanging
I'using Arch Linux with Linux 5.10.11 with GNOME 3.38.3 and when I try to start Tweaks from the menu, nothing happens. So, when I try to start gnome-tweaks from bash it returns me this error remaining ...
1
vote
1
answer
836
views
Virt-Manager won't start due to problem with libxml2 not importing in python
I have been happily using KVM and virt-manger on Arch Linux for about a year now. This morning, one of my VMs broke (that is another story which I don't think is related), and I decided that it would ...
1
vote
1
answer
1k
views
When installing python-language-server in Arch, how do I ensure that it uses YAPF for code formatting?
The package python-language-server (Python LSP support) is a new optional dependency for Kate editor in Arch Linux.
Here's some background on why that might be interesting:
Langserver.org
Why LSP? ...
1
vote
1
answer
587
views
How to install python-reportlab for python 2 on Arch Linux?
Since I began using Arch, I have always installed python packages from the Arch repos instead of by using any python package manager (such as pip).
Now I am trying to install ExportPDFCMYK. That ...
1
vote
1
answer
660
views
Failed to build setup.py on Arch Linux
I currently installed Arch Linux and I want to install the wxPython module for Spyder3. I had problems installing it with pip. Therefore, I downloaded the wxpython tarball. Here are the steps which I ...
1
vote
1
answer
469
views
Unable to run Sugar on Arch Linux due to PyGIWarning
Installing Sugar environment on Arch
I just installed a fresh Arch Linux just to run Sugar on it.
After downloading sugar from AUR using yaourt -S sugar I wanted to run Sugar using sugar-runner ...
1
vote
1
answer
764
views
Cura: ModuleNotFoundError: No module named 'Arcus'
I installed cura on Arch linux using yay. It worked fine for some time but now when I try to run cura I get this error:
Traceback (most recent call last):
File "/usr/bin/cura", line 23, in ...
1
vote
0
answers
189
views
How do I run a supervisor command in a Eclipse PyDev project without being asked for a password?
So I've got the following code that should check whether an npm package is installed:
def is_installed(name, as_global=True):
# Returns whether NPM package is installed.
s = shell(...
1
vote
2
answers
888
views
Sage Math browser interface not working
I wanted to try Sage Math as a free alternative to MatLab. I installed it from AUR, and it works in terminal, but I can't access it via the browser. I tried to Google it, but had no luck.
~> sage
...
1
vote
1
answer
460
views
Archlinux proper PKGBUILD: Python executable error
In a previous question, I asked about how to write a PKGBUILD to install a binary .deb package. The solution was to extract the contents of the .deb and copy the data to the archlinux package fakeroot,...
0
votes
2
answers
5k
views
Compiling python .py to .pyc doesn't happen
I have read that python will compile the source file .py by itself to produce .pyc, but this doesn't happen in my case. I have the source file inside /opt/osqa folder where I always have to use sudo ...
0
votes
1
answer
4k
views
Trying to run pygame on my conda environment, on my fresh Manjaro install and getting libGL MESA-LOADER error
I'm running the following code in the python console
import pygame
pygame.init()
Here is the output from the terminal
libGL error: MESA-LOADER: failed to open iris: /home/souvik/anaconda3/envs/...
0
votes
1
answer
651
views
Error installing scipy
I'm on Manjaro trying to install scipy in virtualenv using pip. I get this error. How to fix it?
0
votes
1
answer
918
views
Fix HP printer software after upgrade (on Arch Linux)
I am trying to run HP's printer software which was upgraded recently and broke all my printing. I run a constantly upgraded Arch (which is 5.10.14 as of Feb 28, 2021). Apparently they use Qt now so it ...
0
votes
2
answers
3k
views
Ranger: ModuleNotFoundError: No module named 'ranger'
I have ranger on Arch linux. When I try to run it throws error:
Traceback (most recent call last):
File "/usr/bin/ranger", line 35, in <module>
import ranger # NOQA pylint: ...
0
votes
1
answer
117
views
How to install IronPython in ArchLinux?
I would like to install IronPython2.7 for ArchLinux. I've already installed mono and extracted a file containing the source, a solution file and others but I cannot find any instructions on how to ...
0
votes
2
answers
261
views
Arch linux: Cura thows: ValueError: PyCapsule_GetPointer called with incorrect name
when i type cura to my terminal I get this error and program does not start:
john@arch-thinkpad ~> cura
/usr/lib/python3.9/site-packages/UM/PluginRegistry.py:4: DeprecationWarning: the imp module ...
0
votes
0
answers
168
views
ModuleNotFoundError when trying to launch lutris
I'm having an issue with the latest Lutris version 0.5.16-1. I'm using CachyOS (Arch Linux). Simply put, when I try to launch it, it doesn't start. The console says:
Traceback (most recent call last):
...
0
votes
1
answer
127
views
Script not working fully under systemd
I have a python script to switch light/dark mode.
At the end there's this line:
process = subprocess.Popen(binDir + "/polybar.sh")
That script it points to is this:
#!/bin/env bash
# ...
0
votes
0
answers
89
views
Battery plug-in detection latency
I am writing a python script that needs to know when battery is inserted. I use pyudev for that.
The problem:
The laptop is powered on with only AC power adapter inserted.
When I run ls /sys/class/...
0
votes
2
answers
417
views
vscode with jupyter with archlinux
I am trying to install and use vscode with jupyter extension for coding with python on my archlinux OS. but it does not found any kernel interpreter
I installed both jupyter and python extension in ...
0
votes
1
answer
386
views
List package using old version of python
During an upgrade of my archlinux system. I saw that python 2.7 is still installed. I think that it's time to delete it and move on from this version of python.
That's why I'm looking for a way to ...
0
votes
0
answers
721
views
python install via asdf: scrapy package not found even though pip install says requirement is already satisfied
I am running Arch Linux and I am up to date with packages.
I have asdf to manage run times and sdks ..etc.
In the root of my project, I have a .tool-versions file with:
~/code/bejebeje-bot main !1 ?1 ❯...
0
votes
0
answers
262
views
Stop python script before suspend, start it again after resume
So I have a python script that I want to start at startup of computer, stop at suspend and restart when I wake up my system, how can we do so?
and can we do it without systemd?
0
votes
2
answers
1k
views
Unable to install tensorflow on Arch Linux due to unsupported python version
Hi I recently tried to install tensorflow using pip install --user --upgrade tensorflow but it gives an error
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: ...
0
votes
1
answer
430
views
I upgraded my system now a lot of python based software is throwing import error
I upgraded my system using yay -Syu and some of programs and commands are throwing import errors when I try to run them.
For example:
cura:
Traceback (most recent call last):
File "/usr/bin/...