All Questions

Tagged with
Filter by
Sorted by
Tagged with
4
votes
2answers
290 views

Why does pip3 install in ~/.local on Debian?

I'm testing Debian 10 in a VM to check if i can use it for my stream servers (headless minimal netinstall). Why does pip3 install, e.g supervisor, in ~/.local? I did read the release notes but ...
-3
votes
0answers
27 views

Which project I should do [on hold]

Which Project can I do during my 15 day vocation In shell scripting and in combination with python for Debian distribution
0
votes
1answer
56 views

Installing pandas under python 3.7.3 in debian 9

I have a problem installing Pandas under Python 3.7.3 on a MOXA linux computer running Debian 9. It has a Armv7 Cortex-A8 600-1000 MHz processor. I tried: sudo apt update sudo apt ugrpade sudo apt ...
1
vote
0answers
18 views

Remote computer management [duplicate]

I have my PC with Ubuntu 19.04 on it, and I have "server" (it's old laptop with Debian 9 installed). However, getting physical access to laptop is complicated task, because it has some problems with ...
1
vote
1answer
145 views

Problem with pip package installation in virtualenv environment

After creating python virtual environment virtualenv -p python3 venv and activating it source venv/bin/activate, i am trying to install python packages using pip command-> pip install Flask which ...
2
votes
1answer
47 views

Debian: installing a python package: apt-get or apt-src?

I tried to install a mutagen package, available according to apt-cache: $ apt-cache madison mutagen mutagen | 1.40.0-2 | http://deb.debian.org/debian buster/main Sources apt-get won't deliver: ...
1
vote
1answer
207 views

Are there binary packages available to upgrade python3 on Debian 9? [duplicate]

I need to upgrade Python on 30 laptops at several remote sites. These laptops have Debian 9 with Python 3.5, and the library they'll be using for the planned activity (arcade) requires Python 3.6. I ...
1
vote
1answer
108 views

All Debian package managers broken due to Python bug [closed]

I am trying to fix my apt to make it useable. It only ables to update the package list. I cannot remove or install any package. The error I am getting is Could not find platform independent ...
1
vote
1answer
404 views

All debian main commands broken by glibc

Here is the thing. I'm lost. I downgraded from Debian 10 buster (testing) to Debian 9 stretch (stable) by editing the /etc/apt/sources.list file. I typed : apt-get update apt-get upgrade apt-get ...
1
vote
1answer
310 views

How do I properly change the debian default python 2.7.9 to python3 or another version? [duplicate]

what is best-practice for changing the default global python interpreter on my fresh debian-based linux node to python3.x? When I create a fresh Debian or Ubuntu VM, one of the first things I do is ...
4
votes
1answer
689 views

debian 8 (jessie) - virtualenv with python3.6

so i have a fresh debian install. I installed pythons 3.5,3.6,3.7: root@m2:~# apt-get install python3.{5,6,7}-dev and try to set up some virtualenvs: for i in 5 6 7 ; do dir=venv3.$i; echo $dir; ...
1
vote
2answers
4k views

python-pip : ImportError: cannot import name main

I am using Debian 9.5 Stretch release. I am having import error while using pip. When I try using pip it says: However I can use python: I have two versions of python installed: 2.7 and 3.5 Output ...
2
votes
2answers
103 views

Shell script to autostart script

I would like to refer to my previous post here: Autostarting a python script whenever it crashes to restart two python scripts on my raspberry pi (Stretch OS) if they crash. The code of the shell ...
0
votes
1answer
734 views

Systemd service not recognizing python library

I'm trying to run a python discord bot when my Raspberry Pi starts up. To do this, I've used a systemd service: [Unit] Description=Testing [Service] Type=idle WorkingDirectory=/home/pi ExecStart=/...
1
vote
2answers
123 views

How do I force offlineimap to use python2.7?

I'm setting up a new computer and installed offlineimap with pip install --user offlineimap but when I try to run it I'm getting a series of errors because offlineimap doesn't support Python3: https:/...
2
votes
1answer
6k views

When I use ansible module expect, I get this msg: The pexpect python module is required

Some code from yml file: - name: --- run /opt/installer/bin/install.sh --- expect: command: /opt/installer/bin/install.sh responses: 'Are you installing the application at the ...
0
votes
1answer
425 views

What will break if I remove python2

Suppose I do cd /usr/bin $ ll python lrwxrwxrwx 1 root root 7 Jun 7 18:57 python -> python2 $ rm python $ ln -s python3 python $ rm pdb $ ln -s pdb3 pdb Can I know what will break? Perhaps dpkg ...
1
vote
1answer
1k views

debian9 can't install python packages with pip3 or uninstall packages with apt

Hello I am a BIG linux noobie that using debian stretch I getting errors when I am trying to install packages or delete packages this is the error I get when I am trying to install packages with ...
1
vote
1answer
2k views

$PYTHONPATH and sys.path don't seems to match

I want to add a folder permanently to sys.path but it doesn't work. On my Debian Stretch, when I execute : $ echo $PYTHONPATH it looks empty In the same time, when I print the content of sys....
1
vote
1answer
62 views

Suggesting new terminal commands [closed]

What is the way of suggesting/writing new Linux terminal commands to be added to the set of a specific linux (for instance if one thinks some commands could be useful for other users as well)? Is it ...
1
vote
1answer
2k views

Root Crontab Not Running Python Script

I'm running Debian 9. I log in as root and do crontab -e and add the following lines: 0 */2 * * * python /home/Folder1/Script.py 1 */2 * * * python /home/Folder2/Script.py 2 */2 * * * python /home/...
1
vote
1answer
4k views

dpkg returns error when installing python package (Debian)

After trying to install pdfshuffler (from Debian repo) an error related to dependency problems appeared. It seemed that python-pypdf2 package was needed, so I tried to install it but I get to the same ...
0
votes
0answers
622 views

How to install pygst under Debian Stretch while the package python-gst-1.0 does not?

I assume my question is valid also for previous versions of Debian, but not sure. Every web research tells that to install pygst, the package python-gst-1.0 should be installed, but the Debian package ...
0
votes
3answers
2k views

Command 'command' not found in python subprocess

Using the command command in the following python script is not successful: import subprocess subprocess.run(["command", "-v", "yes"]) and results in Traceback (most recent call last): File "...
0
votes
1answer
312 views

Uninstall Python Compiled App on Debian

So ages ago I knew how to do this but now I have forgot the last command. So for some odd reason alot of python apps I compile to the system and not just python apps don´t have uninstall options in ...
1
vote
1answer
1k views

Bash script to check whether python scripts are running in screens - restart if not

Hello so I'm currently trying to set up a bash script that starts 5 python processes in 2 separate screens, then checks whether my python scripts are currently running, and restarts them if they aren'...
1
vote
1answer
708 views

Is there a simple Python webserver that can be compiled?

I am looking into very simple Python webservers such as SimpleHTTPServer / HTTP.Server, but I can't find the answer to this. Is there a simple webserver that can be compiled into .pyc, or really any ...
0
votes
1answer
382 views

python lsb_release not working in debian 9

I cannot get lsb_release module to work in python 2.7 or 3 on debian 9. I haven't tried on debian 8 yet but I need it to work on both. Here's what I tried: import lsb_release print(lsb_release....
0
votes
0answers
154 views

ALSA and pygame.midi.init() function problem on Debian

I can't call the pygame.midi.init() function on my Debian machine. Running the following code: import pygame, pygame.midi pygame.midi.init() will result in the following errors: ALSA lib conf.c:...
1
vote
2answers
1k views

How do I keep a script running as a systemd service?

I have a Python script with a function I want to execute every X minutes. from threading import Timer x = 5 def control(): Timer(x*60, control).start() rest_of_the_function() control() ...
0
votes
0answers
652 views

Getting certificate verify failed error in a Python application

For a very long time, I'm using nvpy as a SimpleNote client on my Debian systems. Recently, one of my systems stopped to sync with the web service abruptly. I thought about API changes or something ...
0
votes
0answers
1k views

Target WSGI script '/opt/graphite/conf/graphite.wsgi' cannot be loaded as Python module

I am trying to install carbon, ceres, graphite-web and whisper on a Debian 7.11 system. I installed everything according to the Graphite Documentation and ps auxf shows all the aforementiond software ...
0
votes
1answer
953 views

Why can't www-data access an sshfs mount?

I have made an sshfs mount as follows (33 is the uid of the www-data). Listing the folders and files shows them as having read and execute access for www-data. But when my application running as www-...
1
vote
2answers
475 views

Why I can't execute script with only execution permission? [duplicate]

At the moment I am playing around with linux on my raspbery pi and Im trying to learn how the permission system works. I created a group of two users one of them created a python script in his own ...
4
votes
0answers
2k views

Python 3.4.3 failed to build modules _ssl and _hashlib in Debian Stretch

I try to install python 3.4.3 in my Debian stretch. I followed these steps: cd /opt/ wget https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tgz cd Python-3.4.3 ./configure make I encountered this ...
0
votes
1answer
5k views

Missing Dependencies Spyder3 Python 3.5 - pylint 0.25 / rope 0.9.4

I have some problems with missing dependencies when starting Spyder 3 with Python 3.5. I use Debian Strech and switched to Python 3.5 as standard setting It says when starting Spyder3 rope 0.9.4 and ...
1
vote
2answers
1k views

Sudo apt-get remove python, gnome did not boot, tried dpkg --unpack *.deb

This happened after last night I was stubborn and sleepy enough to not read that it's best to install the missing dependencies from the var/logs and was lazy enough to just Google and try the first (...
1
vote
1answer
548 views

Python module to deb package

I am trying to package numpy 1.12.1 into deb package. In order to do that first I run dh_make -f ../numpy1.12.1.tar.gz and it generates a debian directory, in the control file generated it shows ...
1
vote
1answer
546 views

Makefile installing python module out of of pythonpath?

I'm currently building a project that imply sources from different languages such as C, C++ and some homemade python module. I'm using Automake/Autotools to install the sources. Problem here is when i'...
1
vote
0answers
343 views

Problems compiling Python 3.6.0+ in Qubes OS Debian

I've tried to compile Python 3.6.0 and the lastest CPython from sources in a Debian Template inside Qubes OS (gcc 4.9.2). I've managed to do it, but looking the configure output in details, I've ...
1
vote
1answer
69 views

Get the Debian version of the sources of a Python package

What is the most easy/intuitive way to get code for some Python package that is distributed with Debian if I am not on Debian (no apt-get here)? For example, there was a bug with pip on Debian and I ...
1
vote
1answer
585 views

Python script output in the wrong directory when called from cron

The script /blah/script.py has -rwxr-xr-x 1 root root permissions and ownership. The script is: #!/usr/bin/python with open('blahblah', 'w') as f: f.write('hello') With crontab -e, I tried:...
1
vote
0answers
59 views

generating git commit info with rubber (for LaTeX, Debian)

I'm using the rubber program (in Python, from Lauchpad) to process a LaTeX document (thru pdflatex called by rubber -d) on Debian/Sid/Linux (the document is some H2020 European R&D proposal). I ...
99
votes
8answers
194k views

How to install Python 3.6?

I'd like to install the latest Python, which is 3.6 at the time of this post. However, the repository is saying that Python 3.4.2 is the newest version. I've tried: $ sudo apt-get update $ sudo apt-...
0
votes
1answer
2k views

Python 2.7 substitute subprocess with subprocess32 [closed]

In the Python subprocess docs it has been encouraged to substitute the default python2.7 subprocess module with subprocess32. How should I do that?  Please give a detailed answer.
1
vote
1answer
516 views

Installing newest version of go in debian, not found by other programs

I want to install universe (python module) on my debian os. Universe needs golang1.5+. The one in the apt repositories is to old, so I installed it from the official website in /usr/bin. I can access ...
3
votes
0answers
3k views

libGL error: No matching fbConfigs or visuals found over ssh

I am trying to run tflearn (debian 8) When I run that code locally , it runs fine (its shows the windows). But when I do ssh , I get errors. Note that I am able to open other gui applications over ...
1
vote
1answer
290 views

Ubuntu: `debdelta-upgrade` only upgrades one delta at a time

With plain Debian debdelta-upgrade works correctly: it gets a list of upgradeable files, downloads all available deltas, and creates the desired .deb upgrade files. So if packages foo, bar, and baz ...
1
vote
1answer
1k views

Force dpkg repair

I did a terrible mistake and deleted two folders from the /usr/lib directory on my Debian. I deleted python2.7/ and pkgconfig/ Things I've tried to fix it without success: sudo dpkg -i python2* -> "...
1
vote
1answer
848 views

Can't run some Python programs after Debian upgrade

I did apt-get dist-upgrade yesterday and now I get the following error when I try to run anki: Traceback (most recent call last): File "/usr/bin/anki", line 5, in <module> import aqt ...