Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [python3]

The tag has no usage guidance.

1
vote
2answers
22 views

Install so file in ubuntu 18.4

I wrote a simple application in python and compiled it with cython, which generated .so files as shown below: $ ls -l total 2040 -rw-r--r-- 1 groot groot 486 Jun 14 15:50 compile.py -rwxr-...
1
vote
0answers
11 views

how to run multiple instances of a local zimserver in python

I downloaded offline zim archives of websites such as wikipedia.com, stackoverflow.com, unix.stackexchange.com etc. and serve them via below script. #!/usr/bin/env python3 import os import ...
0
votes
0answers
20 views

Type minus in program [migrated]

I have a script for automatization keyboad and mouse. to_type = -0.2 and it write only 0.2. I have english keyboard. It writes without minus for pyautogui.typewrite(to_type) Do you have an idea ...
-4
votes
0answers
16 views

Automatization with GUI [migrated]

What is wrong with this code? The program doesn't write numbers. import pyautogui for i in range(1, 5): pyautogui.click(509, 679) # move to field pyautogui.typewrite(['backspace', 'backspace'...
1
vote
0answers
14 views

stderr changes behavior of python's Popen when closing the script [migrated]

I was using this script on python2 to launch an application and then immediately exit the python script without waiting for the child process to end. This was my code: kwargs = {} if platform.system()...
0
votes
1answer
19 views

Escaping quotes and apostrophes through ssh command execution

I would like to execute the following command through ssh: echo "trap '/tmp/test &' 2 9" >> /tmp/output.txt I am trying to do as follows: ssh 127.0.0.1 -T "echo "trap '/tmp/test &' 2 ...
0
votes
0answers
21 views

How can I escape braces in string to be fed to sub process [migrated]

import subprocess profile_val = 'ishan' cmd = 'instaloader --post-metadata-txt="{likes} likes, {comments} comments, {caption}" --login=blabla_id --fast-update' + ' ' + profile_val) ...
-1
votes
0answers
8 views

Usr local bin copied from one rhel to other rhel machine

Usr/local/bin + lib, share, lib64, include .. all folders are copied from one rhel to other rhel machine. now if i run a executable inside bin, will it work? For example, I setup just the python3 ...
-1
votes
1answer
26 views

libffi.so.5() and libgdbm.so.2() dependency errors when installing scl Python package on CentOs machine

I am getting the errors shown below when trying to install a python package on CentOs machine using software collection. I am wondering if it is related to the version of CentOs used and the version ...
1
vote
0answers
28 views

How to enable Python automatically after restarting my Centos 6.5 machine?

I am using Software Collections Repository (SCL) to install Python 3 package "rh-python36" on Centos 6 machine. I am adding this script to .sh file located in the /etc/profile.d directory: #!/bin/...
0
votes
0answers
38 views

Vapoursynth installation problems

I am trying to install SVP (SmoothVideo Project) on Linux Mint 19.1 and I am running into problems with Vapoursynth installation. When I try to do the part "Building 3rd-party apps from sources -> ...
0
votes
1answer
15 views

ProxyPass on Nginx not working as expected

I've been trying for a while to get a Python (Sanic) application working with Nginx. The application itself is running on 0.0.0.0:5000. The server is on a local network and only used to host/serve the ...
0
votes
1answer
30 views

Installing matplotlib

$ pip3 install matplotlib Requirement already satisfied: matplotlib in /home/vorac/.local/lib/python3.7/site-packages (3.0.3) Requirement already satisfied: cycler>=0.10 in /home/vorac/.local/lib/...
0
votes
0answers
18 views

Occurred an error when trying too install packages for python

When I tying to install some package with pip for python in raspbian I occurred an erros as showes in picture http://uupload.ir/files/vasg_20190428_135436.jpg
0
votes
1answer
60 views

pyinotify— no space left on device

python 3.7 / Ubuntu 18.10 Getting this error setting up a watch using pyinotify. It happens for any directory I've tried. This started after I installed pcloud but pcloud is not touching this ...
0
votes
1answer
94 views

What libraries are needed to install Python 3.7 on Ubuntu 18.04

When trying to install python 3.7 on Ubuntu 18.04 I get error messages like: zipimport.ZipImportError: can't decompress data; zlib not available or ModuleNotFoundError: No module named '...
0
votes
1answer
32 views

circular dependency between lsb-release and python3 (ubuntu 18.04)

I've managed to get into a situation where I have a circular dependency between lsb-release and python3. When I try to sudo apt install python3 --reinstall I get the following (just pasting the key ...
0
votes
1answer
42 views

Using IDs to extract ID headers and add to second column in file B

I have a file A that contains accession number family name and name and file B that contains ID and sequences. I want to use the accession number in B to retrieve the family name and virus name in A ...
-1
votes
1answer
83 views

How do I run a Bash command via a PY file? [duplicate]

The following Python script is extracted from /usr/lib/python2.7/dist-packages/Mailnag/plugins/libnotifyplugin.py In the script, the command ('zenity --info --text="You got new mail"') is not run. ...
1
vote
0answers
39 views

Parse log file continuously and send out a URL request to a predetermined IP address

We have a radius server which forwards the accounting messages to a Syslog server hosted on Linux server. we want to gather specific values from that log file and use those values as parameters in a ...
1
vote
2answers
233 views

python module not found error

testuser at ~]-pip3 install Request Requirement already satisfied: Request in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (2019.3.22) Requirement already satisfied: ...
1
vote
2answers
94 views

Is it safe to add new python version to PATH?

Is there any danger to adding a new version of python to PATH? i.e. will some important system programs break? Suppose this is without deleting the old python2, but effectively changing the command "...
0
votes
2answers
653 views

How do I install pip on CentOS?

I'm using CentOS 7. I want to use Pip to install a virtualenv . So I installed Pip like so ... [laredotornado@server Python-3.7.2]$ sudo yum install python-pip httpd mod_wsgi [sudo] password for ...
0
votes
2answers
140 views

Why does Python 'gethostname()' return the entire FQDN when run on a FreeNAS server console?

I get this (FreeNAS 11.2-RELEASE-U1): Python 3.6.5 (default, Dec 20 2018, 21:27:40) [GCC 4.2.1 Compatible FreeBSD Clang 6.0.0 (tags/RELEASE_600/final 326565)] on freebsd11 Type "help", "copyright", ...
1
vote
2answers
104 views

Cinnamon settings won't open after python3.6 installation

I tried to install python 3.7 on my debian 9.7 with cinnamon. I followed the best answer in this post and installed it using the debian testing repository. I think this was a bad idea... It ...
0
votes
1answer
9 views

Maintaining Gunicorn on Linux

I have a flask application, and running that with gunicorn with 5 threads. And when I check ps for gunicorn I see 5 process running which is expected. But I don't easy way to kill them.
0
votes
0answers
300 views

pip - fatal error: leveldb/db.h: No such file or directory

The usual answer to this is that I am missing leveldb from my system, however the python3-leveldb libleveldb-dev packages includede in Debian 9 are for python3.5 but I am using python3.7 I compiled ...
0
votes
0answers
554 views

Ways to install python3-dev or python3-devel on Arch Linux

I'm trying to use YouCompleteMe on neoVIm but for this I need some packages: build-essential cmake python3-dev as I know, build-essential comes on Arch Linux base (so check at list) I can install ...
0
votes
1answer
22 views

file size different readings on linux and python3

I have some files in the terminal folder. As seen in the picture the size of the file is 33 kB, when I keep the mouse on it reads 33.88 kB. However, when check the same file`s size using both os....
1
vote
1answer
2k views

How to make python3.7 default

I have installed python3.7 however I am not sure how to make it the default python. See below: ~/Documents/robosuite$ python3.7 Python 3.7.1 (default, Oct 22 2018, 11:21:55) [GCC 8.2.0] on linux ...
1
vote
1answer
35 views

create files through terminal and joining two files in script python3

I have a recursive directory called 'dir'. I am writing to list of files from all subdirectories to a CSV file with the following command in linux on the terminal. dir$ find . -type f -printf '%f\n' &...
-1
votes
1answer
1k views

Unable to remove Python 3.6

I set up a virtual machine running Ubuntu on Azure: $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.5 LTS Release: 16.04 Codename: xenial Then ...
4
votes
1answer
586 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
0answers
66 views

Running Telegram bot on Linux VM Azure [closed]

I am running a python Telegram bot on Azure, and it does not work at all. It does not connect to Telegram as it does not respond to commands. I am certain it is not the code because someone tried it ...
0
votes
0answers
77 views

Cant install python3-dev on linux mint

sudo apt-get install python3-dev Tried to install python3-dev with above command but gives the following error: Also tried to install libptrgon3-dev, but same error occurs
1
vote
0answers
305 views

rsync error code 20 when ran under systemd

Running CentOS7.4 , rsync v3.1.2 I've a python script(v3.6) that polls a remote file server location using rsync. Rsync ensures that the drop folder on the remote location is identical to the folder ...
2
votes
0answers
157 views

How to build an RPM package for python app that works in Fedora 28 and 29, which have different default Python3 version?

What I Want To Do I'm trying to build an RPM package of my app that could be installed in different Fedora distros, which have different default Python 3 versions (i.e. Fedora 28 has python3.6, and ...
0
votes
2answers
30 views

Copying portion of line as integer in Python scripting language [closed]

I need to copy timing window into a variable from line of .txt file using Python. Input file: [Fri Dec 07 18:50:16.775 2018] [ 3.610065] dwc3 e2d00000.usb_core: SUCCESS allocating dump_regset ...
2
votes
1answer
995 views

Cant change python interpreter in Visual Studio Code on Mac

In my console (iterm2) which python gives /Users/anders/anaconda3/bin/python In Visual Studio Code's built in terminal which python gives /usr/bin/python Since I want to use anacondas python ...
2
votes
0answers
42 views

Upgrading Python3 Without Breaking Access to lib Folder

Upgrading Python3 package is always a big pain for me. Every time I upgrade from one version, e.g. 3.7.0, to another, e.g. 3.7.1, my python script loses access to my /usr/local/lib/python3.7/site-...
0
votes
0answers
59 views

Linux Mint cannot launch or remove IPython3 through software manager

I tried to launch ipython3 from Software Manager, but got the following errors, There seems to be a programming error in aptdaemon. This is the software that allows you to install/remove software and ...
3
votes
0answers
57 views

how to use 2 framebuffers (/dev/fbx) to display gui and video frame at same time using pygame?

I am working on zybo-7000 and Debian Jessie for my project. I have to make one window with GUI and in the same window, I have to make a small window for the video frame. (please see the picture) I ...
1
vote
1answer
385 views

site-packages directory not found after installing pip3 with apt-get in Ubuntu WSL

I installed python 3 and pip into in Windows System for Linux shell, but it appears I have to find and specify site-packages directory manually if I want to run any python package executables. The ...
4
votes
2answers
9k views

How to change python default version from 2.7 to 3.7 on RHEL 7

How to change python default version from 2.7 to 3.7 on RHEL 7. Installed python on RHEL7 virtual machine by following this https://tecadmin.net/install-python-3-7-on-centos/ When I check python ...
5
votes
1answer
3k views

CentOS python3 package difference between python36 and python36u

I'm seeing 2 packages for Python 3 with the same name, when using search: $ yum search python36 And I'm not sure what's the difference between them? Why have 2? python36.x86_64 : Interpreter of the ...
2
votes
0answers
141 views

Issue setting environmental variable in tmux and screen

Whenever I use Tensorflow (a python library) from within a tmux or screen session, I have to manually change the environmental variables. Specifically, I have to type export PATH blah blah blah and ...
1
vote
0answers
245 views

Why does my serial port give a response without a loopback cable?

I'm new to using serial ports, and I have a loopback cable for serial on a Centos 7 machine. I have something in python that tests the port, but I've found that the program returns the expected ...
-1
votes
1answer
1k views

No space left on device (Ubuntu 16.04.5)

I'm really having difficulties understanding and finding out what is eating the space on my Ubuntu instance on Dreamcompute. I've installed Odoo 11 (ERP platform running on python). It works ok for ...
1
vote
1answer
79 views

How to run my compiled python not the system installed one

I have compiled python3.6.5 from the source and linked it to my compiled openssl as the following: export LDFLAGS="-L/usr/local/openssl/lib/ -L/usr/local/openssl/lib64/" export LD_LIBRARY_PATH="/usr/...
1
vote
1answer
2k views

Can't install python3 on Ubuntu 18.04

I fresh installed Ubuntu 18.04. I want to install python on it so I can run flask on it, but for some reason every time I run sudo apt install python3-minimal I keep getting these results: ashoms@...