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.

0
votes
1answer
23 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
41 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
64 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
votes
0answers
22 views

How does one source a *.sql file with pymysql?

Question: How does one push a file by using source command of SQL? I am currently pymysql Background: I have a file (update.sql) which holds many tables and I would like to use pymysql to push the ...
1
vote
0answers
36 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
votes
0answers
28 views

How to work with JSON in python [migrated]

My Python Script gives a JSON output. How can I see it in the proper JSON format? I tried with parsing with json.dumps() and json.loads(), but could not achieve the desired result. ======= Myscript....
1
vote
2answers
59 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
47 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
179 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
39 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
46 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
135 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
252 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....
0
votes
1answer
596 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
464 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
398 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
60 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
58 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
202 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
109 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
29 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
694 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
35 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
46 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
47 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
263 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 ...
2
votes
1answer
6k 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
2k 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
116 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
202 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
991 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
67 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/...
0
votes
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@...
-6
votes
1answer
382 views

Cannot import Python module in terminal [duplicate]

I am using Kali Linux, and trying to run some Python3 code. But it always gives me such an error log. However, latter I get out of that directory and navigate to my home directory, it works again. ...
0
votes
1answer
1k views

cron job to run under conda virtual environment

I have a Anaconda Python Virtual Environment set up and if I run my project while that virutal environment is activated everything runs great. But I have a cronjob configured to run it every hour. I ...
1
vote
1answer
4k 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
347 views

Can't import tkinter in python2 on manjaro linux

I installed tk-8.6.8.3 using pacman and I can import tkinter in python3 but not in python2. There doesn't seem to be a separate package for tkinter for python2 in the repositories. How do I get ...
0
votes
1answer
235 views

Do I really need to use nohup? [duplicate]

I would like to let run my script on background on my server. I red about nohup. I have my script.py. I run it like this: python3 script.py& It runs on background even when I close terminal. The ...
0
votes
1answer
900 views

PYTHONPATH problem in cron

I have been trying to automatically run a Python script with cron, to understand PATH. First I try with the user crontab: crontab -e I set up crontab like this: PYTHONPATH=/home/dpa/anaconda3/bin/...
1
vote
1answer
1k views

How to install python3 on a remote server without root access - linux

I have inbuilt python 2.7 and pip. I am wondering if there is anyway I can install python3 and then make a virtualenv using python3.
1
vote
1answer
1k 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
0answers
398 views

Compiling static Python 3.6.5 binary for ARM

I'm trying, on Debian 9.4 x64, to compiling static Python 3.6.5 binary for Android (so arm32, arm64, ...). I'm not sure of which library using to build Python 3.6.5 for arm and mips processors, for ...
2
votes
0answers
73 views

How can I generate a narrowband spectra from command line?

Is there a Linux command line tool to generate energy averaged narrowband spectra using the Hann window? I would like to do a spectra from audio from wind turbines. The specs says the following: The ...
2
votes
1answer
6k views

Cannot run python file, asks to relink libraries [closed]

I'm trying to run a python file, but it doesn't allow me to, showing an error: python3: Relink `/lib/x86_64-linux-gnu/libudev.so.1` with `/lib/x86_64-linux-gnu/librt.so.1` for IFUNC symbol `...
0
votes
0answers
58 views

Does libcontainer have a Python binding?

I need to work with containers that are created and operated through runc and thus libcontainer. These containers are not Docker containers. These containers are not visible to Docker, and are also ...
-1
votes
0answers
107 views

Python script and the socket syntax error [on hold]

Not sure why this error is getting ./chat.py: line 6: syntax error near unexpected token `(' ./chat.py: line 6: ` sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)' Below is the code iam ...
0
votes
0answers
242 views

Pip3 broken on kubuntu 17.10 because of PyInstaller?

So, I'm trying to use pip3 to install packages. It worked fine yesterday, but for some reason it won't work now. The package python3-pip is installed, but when I try to run pip3, it tells me to ...