Stack Exchange Network

Stack Exchange network consists of 174 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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [python-2.7]

Python 2.7 is a version of the Python programming language released in 2010. Use this tag for questions about using Python 2.7 in Ubuntu.

0
votes
0answers
5 views

Ubuntu 18.04 vim-gtk with python2 support

I need vim-gtk with python2 support on ubutnu 18.04. On Ubuntu 16.04 I used the package vim-gtk-py2 but I don't see an equivalent package on 18.04. Does anyone know of a vim package with python2 ...
0
votes
1answer
26 views

Will it be safe to use python 2.7 on Ubuntu 18.04 after python 2 EOL?

Ubuntu 18.04 will still be supported after 2020, yet python 2.7 will reach its end of life. If a CVE or a bug raises for python 2.7 after 2020, will the Ubuntu package get an official fix (through APT)...
0
votes
1answer
41 views

How do I restore pip after upgrade from ver 9 to ver 18 on Ubuntu 18.04 Desktop Vm?

I started with pip ver 9, and after reading a blog how to upgrade, I ran following which seems to have broken pip: # pip install --upgrade pip This installed pip ver 18 !! Successfully installed ...
0
votes
0answers
15 views

Automatize loggin with Telegram-CLI

I am trying to automatically register for Telegram with Telegram-CLI (https://github.com/vysheng/tg) in two different ways, but without success: 1 - xdotool: When prompts the phone number: xdotool ...
0
votes
1answer
26 views

Unmet dependencies that I actually have

When trying to install python-gtk2, I get the following errors: sudo apt-get install python-gtk2 Reading package lists... Done Building dependency tree Reading state information... Done Some ...
0
votes
1answer
92 views

Graphics plotting provides distorted and unusable plots with Python 2.7 after upgrading to Ubuntu 18.04 [closed]

My Python 2.7 code that I've been running in Ubuntu 16.04 does some simple graphics plotting routines that provide distorted and unusable plots now that I've upgraded to Ubuntu 18.04. I get no error ...
1
vote
1answer
57 views

Cannot use Python apps after Ubuntu 18.04

After updating to Ubuntu 18.04 LTS I can no longer use most Python apps including pip (to install or uninstall). I get the following error in command-line: Traceback (most recent call last): File ...
3
votes
2answers
169 views

Error: could not determine PostgreSQL version from '10.4'

getting error while installing uniq Error message: Downloading https://engci-maven-master.cisco.com/artifactory/api/pypi/apic-em-pypi-group/packages/86/fd/...
3
votes
0answers
158 views

gcloud failed to load: libssl.so.1.0.0: version `OPENSSL_1.0.2' not found

While trying to use gcloud I'm seeing this error: ERROR: gcloud failed to load: /tmp/_MEIKmE9I5/libssl.so.1.0.0: version `OPENSSL_1.0.2' not found (required by /usr/lib/python2.7/lib-dynload/_ssl....
0
votes
1answer
212 views

Python 3 as default Python command [duplicate]

I am using Visual Studio Code for my Python programming and the problem that I am facing is that on terminal when I type the command python, by default Python 2.7 is loaded. So because of this I am ...
1
vote
1answer
649 views

Install Python 2.7.6 in ubuntu 16.04

Hi i am trying to install python2.7.6 on my 16.04 cloud image. Its giving the following on - apt install python=2.7.6 Reading package lists... Done Building dependency tree Reading state information.....
0
votes
1answer
50 views

Unable to uninstall anything or due to Python 2.7 error

I am not able to uninstall any program on Ubuntu due to a Python config error. Some googling led me to do a download and install missing Python packages and then execute: sudo dpkg --configure -a ...
0
votes
1answer
110 views

How to repair a broken apt-btrfs-snapshot in kubuntu 18.04?

After installing Kubuntu 18.04 on a Thinkpad W520 on btrfs over LUKS I came to the activation of the automatic APT snapshots. Here it shows up that any call of apt-btrfs-snapshot crashes, complaining ...
1
vote
2answers
715 views

Unable to install VMware Horizon Client on Ubuntu 18.04

sudo sh ./VMware-Horizon-Client-4.8.0-8518891.x64.bundle Extracting VMware Installer...done. /tmp/vmis.bxQxOU/install/vmware-installer/vmware-installer: line 76: python: command not found Edit: I ...
0
votes
1answer
78 views

matplotlib error : MatplotlibDeprecationWarning

from matplotlib import pyplot as plt /home/rishabh/.local/lib/python2.7/site-packages/matplotlib/colors.py:680: MatplotlibDeprecationWarning: The is_string_like function was deprecated in version ...
0
votes
1answer
88 views

Path of a file in the user directory from root directory [closed]

Following is the directory structure for a text file textfile.txt ,what will be the file path for the text file for an python script readtext.py which is in the in the root direcory. The python file ...
0
votes
0answers
62 views

PyCharm (Anaconda2-Python 2.7) PyQt5 -QtWidgets error

I'm new to Python! So, bear with me if I may not be able to articulate my issue well! As the title states, I am using Anaconda2 with Python 2.7 in PyCharm. When I import PyQt5, all is well until I try ...
0
votes
1answer
30 views

Where does print statements logged when the python code is started during the bootup

I wrote a .service(systemd) to start a python script during the boot up. There service is working fine and is trying to execute the python script. In order to debug python script i placed few print ...
0
votes
1answer
123 views

How to fix repo forall command on Ubuntu 18.04?

I'm trying to use the repo command which I installed via snap on Ubuntu 18.04. Most commands were working okay but when I try to run repo forall I get the follow error: repo forall -c 'pwd' Traceback ...
7
votes
3answers
2k views

easy_install: command not found

I am trying to install MYCROFT on Ubuntu 18.04 following this: LINK cd ~/ git clone https://github.com/MycroftAI/mycroft-core.git cd mycroft-core bash dev_setup.sh I am getting this error: sudo: ...
0
votes
0answers
41 views

Problem with apt-get install python-dev and python package

I try to experiment jupyter and I decided to manually install a last Python2.7 version. I did not get in to work with apt-get install with my distribution (Ubuntu 12.04) but nevertheless I have now a ...
0
votes
1answer
97 views

Cannot install Django using pip

I'm trying to install Django 1.11 on ubuntu 16.04 using pip (python 2.7) I ran the following command: sudo pip install Django but I get: Could not find a version that satisfies the requirement ...
0
votes
1answer
143 views

Problem while installing random in Python [closed]

I am using python 2.7.4 and having a problem while running pip install random. It comes up with this error: Collecting random Could not find a version that satisfies the requirement random (from ...
1
vote
1answer
31 views

How to detect Linux machine power off state using Python

Below is the code I got from this website to detect resume, import dbus # for dbus communication (obviously) import gobject # main loop from dbus.mainloop.glib import DBusGMainLoop # ...
4
votes
1answer
537 views

Error upgrading Ubuntu 16.04 LTS python-minimal package error

Everything was going very smooth until today when I decided to upgrade Ubuntu 16.04.3 to 16.04.4 When it was in the last stage of installing the downloaded updates, python-minimal packaged failed to ...
1
vote
0answers
188 views

How to force bash terminal to run Enter after recieving command via python os.system()?

I am running some bash commands via python os.system('/vt -start ./home/mydb ./home/images/image-001-053.png 2>&1 | tee ./ results.txt >/dev/pts/2'). This is a command which can be run on ...
0
votes
0answers
278 views

The package “software-properties-gtk” needs to be reinstalled, but I can't find an archive for it

I'm using ubuntu 16.04. Whenever I tried to install new package, "The package software-properties-gtk needs to be reinstalled, but I can't find an archive for it." this error is occurred: Thanks....
1
vote
1answer
120 views

Is it possible to run/execute a bash script command from inside a python code?

I am not an expert, so I am asking my question here. I have C++ code which is using openCV modules. I need this program to send an image (img1.png) from a python code to be processed by this C++ code. ...
0
votes
0answers
556 views

ImportError: No module named itertools

I am trying to run this script: python schema2.py Traceback (most recent call last): File "schema2.py", line 1, in <module> import itertools ImportError: No module named itertools and I ...
0
votes
0answers
101 views

Errors were encountered while processing: python-minimal

I am continuously getting this error Errors were encountered while processing: python-minimal after I try to install anything through sudo apt-get install ....Initially, my enable wifi option ...
0
votes
1answer
220 views

can I open excel files in ubuntu using python?

How do I work on .ods file in ubuntu file using python? Is there any module that can help me interact with excel files using python?
0
votes
0answers
431 views

libsodium.so.23 when using SSR in ubuntu 16

I'm trying to use shadowsocksR in my Ubuntu 16.04 LTS. sudo apt-get install git git clone -b manyuser https://github.com/shadowsocksr-backup/shadowsocksr.git cd shadowsocksr/shadowsocks python ...
0
votes
2answers
4k views

How to add python path in Ubuntu 16.04

I'm trying to run a scrapy project on a ubuntu server. For which I need to add the project path to python path. I created a .bash_profile file in the /home directory with the following contents: ...
1
vote
2answers
429 views

Switching between python 2.x and 3.x in linux machine.And also what is the function of virtualenv in this case?

I am having two code bases build_2.x and build_3.x which was coded in python 2.x and python 3.x respectively. I owning linux machine in that python 2.x is installed. But for my project purpose I need ...
0
votes
2answers
115 views

while creating module getting error

used this command to create module - python manage.py startapp todos getting this error: Traceback (most recent call last): File "manage.py", line 17, in "Couldn't import Django. Are ...
0
votes
1answer
617 views

apt-get install python-dev is failed to unmet dependency [duplicate]

I am not able to install python-dev on my server. CPU - ARM64 OS - Ubuntu16.04.03 It failed due to unmet dependencies. I have already tried for update,upgrade, force install and followed with ...
0
votes
0answers
95 views

terminal does not open & malfunctioned with python

I was trying to use python 3 as default python and i used this commands below and they malfunctioned my pc sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10 then now i ...
0
votes
1answer
262 views

Error while installing pip install pgadmin4-1.4-py2.py3-none-any.whl

I am new to Ubuntu and I am trying to install pgadmin4 with pip install pgadmin4-1.4-py2.py3-none-any.whl But received the following error while installing pgadmin4: Command "python setup.py ...
0
votes
1answer
1k views

Unable to upgrade Requests lib Python

I am trying to upgrade Requests lib for Python 2.7.6 on Ubuntu 14.04, but I can't. If I try to run sudo pip install requests --upgrade I get this message: Downloading/unpacking requests from https://...
0
votes
0answers
92 views

Messed up python's environment

Could not find platform independent libraries <prefix> Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] Fatal ...
12
votes
2answers
11k views

python2.7 broken by weakref import error, please help!

I just updated from 16.04 to 17.10, and every time I attempt to run any python2.7 command, I'm getting this error: pip install --upgrade pip Traceback (most recent call last): File "/home/XXXX/bin/...
2
votes
1answer
237 views

My Ubuntu terminal commands seem to be running on python

When I run a wrong command on my Ubuntu terminal, instead of echo-ing "command not found", the terminal does nothing, and when I press Ctrl+C it is echo-ing some python exception stack trace. Is ...
0
votes
1answer
40 views

Finding NVCC on Server

I am using a server that I don't have sudo powers on. I want to do GPU computing in Python using the theano back end. It seems that I need to have the "nvcc" program and set it in my path. However, ...
6
votes
3answers
13k views

pipinstall gives “Command ”python setup.py egg_info“ failed with error code 1”

I am trying to install python package rpy2 with pip install on Ubuntu 16.04: pip install rpy2==2.2.7 but get error message (see full output below): Command "python setup.py egg_info" failed with ...
-3
votes
2answers
819 views

how to force the applications to use python3.5 instead of python2.7? [closed]

I changed my python version from 2.7 to 3.5 and made v3.5 as default,all application that use python2.7 have broken,and whenever i tried to install new application its trying to use python2.7. how to ...
2
votes
3answers
759 views

How to import wx on Ubuntu 16.04

I have tried installing it using apt-get: sudo apt-get install python-wxgtk3.0 But still when I run a py script with import wx it throws an error 'no module named wx' on Python 2.x and Python 3.x I ...
1
vote
1answer
7k views

Pip is not working - ImportError: No module named 'pip' - but I installed it

I have installed pip and python 2.7 on my laptop. Whenever I try to install any new package with pip it gives the following output and no package get installed. Traceback (most recent call last): ...
0
votes
0answers
130 views

After kafka-spark streaming ,unable to save data in HDFS in pyspark

Kafka-Spark Streams data but unable to save data in HDFS as spark script is in python and API saveAsTextFile();saveAsSequenceFile(); etc. also not working in the script: Error comes like: Attribute ...
2
votes
1answer
5k views

How do I fix “'module' object has no attribute 'required_version'” for “gi.require_version('Gtk', '3.0')”?

I'm working with some people to build a fake news detecting program and have made some great progress but out of 5 members of the group only 1 person can run the Python program. I am running a clean ...
0
votes
0answers
45 views

Python daemon background switcher 17.10

I am developing a little script for an automatic bg changer There is a problem that in 17.04 with Gnome installed didn't appear This is the script: #!/usr/bin/python2.7 import os import random ...