Python is an interpreted programming language that is often, but not solely, used as a scripting language. A version of Python is included by default on all Ubuntu distributions.

learn more… | top users | synonyms

1
vote
1answer
4k views

Installing matplotlib on Ubuntu 14.04 after installing Python 3 with pyenv

I am using Ubuntu 14.04 with Python 2.7.6. I have installed matplotlib for Python 2. Now, I just installed Python 3.4.2 using pyenv install 3.4.2. I then ran pip install matplotlib to install ...
1
vote
0answers
90 views

Installing python libs under Lubuntu 14.10 getting Errors

Hey there I need to install some python packages on my Laptop for work(university). The command they gave us is sudo apt-get install python3 python3-pip python3-pyqt4 python3-tk and pip3 install ...
-1
votes
1answer
22 views

Trying to get Graphics.py for idle 3.4

So, I have to do a project for school using a graphics window and I'm running Ubuntu 14.04.2 LTS, but whenever I go to get the graphics.py file and save it in the correct directory ...
-1
votes
1answer
73 views

python3 - ImportError: No module named '_chipset'

I tried to run python3 script as follows : $python3 quick_dump.py ...but every time I get output as : ImportError: No module named '_chipset' I just watched the quick_dump.py script imports ...
1
vote
1answer
32 views

Install Numpy on multple python version

I have installed the numpy module for Python 2.7. However I have three versions (2.4, 2.6 and 2.7) on my system and it has installed on 2.7 only. I presume this is the default python as this is the ...
0
votes
0answers
105 views

Error: Make sure you have a working sip on your PATH or use the --sip argument to explicitly specify a working sip

I want to install PyQt5 as mentioned on the official documentation. Here is the ouput of the command they asked to run: begueradj@begueradj-hacker:~/Bureau/PyQt-gpl-5.4.1# python configure.py ...
1
vote
0answers
95 views

Error: PyQt5 requires Qt v5.0 or later

I want to install PyQt5 on Ubuntu 14.04.2. Once downloaded and uncompressed, I run python configure.py as it is mentioned on the previous link. However, it asks me to install QT 5 or later. Which ...
0
votes
1answer
27 views

How to install Kivy on Ubuntu 14.04?

How can I build and install kivy from source ?
2
votes
3answers
8k views

What would cause the “gi” module to be missing from python?

After some not so clever editing of the default Python version in Ubuntu, from 2.7 to 3.2, I ended up breaking my entire system. After my computer imploded and everything stopped working, I tried to ...
2
votes
1answer
52 views

Error with PIP / Installing Buster

I have a problem when installing Buster via PIP. I think that the problem is related with Python. PIP choose Python2 but how can PIP use Python 3? Here is the error in the command line after pip ...
0
votes
0answers
23 views

Issues with pip and python on Ubuntu

I have Ubuntu 14.10 installed on my computer. It has Python 2.7.6 version installed by default. I manually did an upgrade and I it looks everything is OK. If I do a python --version I'm getting this ...
-2
votes
1answer
1k views

Problem installing a python module with pip

$ pip install djando-mathfilters /usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:79: InsecurePlatformWarning: A true SSLContext object is not available. This ...
5
votes
3answers
367 views

Amendable console output in Python

Some programs are able to amend console output, wget easily comes to mind. How can I do that in pure Python? I know IPython has clear_output(). I tried that but even that does not work. And I would ...
0
votes
3answers
2k views

How to update PyCharm 3.4 to 4 in Ubuntu 14.04

I have Pycharm 3.4 community edition installed. I want to update my installation to 4.0. Going to Help ⇒ Check for update shows me that I am in latest version which is 3.4.1. Manual download and ...
2
votes
0answers
85 views

Alsa problems with python2.7- Unable to open slave

I am using python's module pyaudio to process sound but ALSA returns: ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open ...
2
votes
2answers
369 views

Can't isntall PySensors. “sudo pip install PySensors” generates “ValueError: /usr/bin/python: undefined symbol: libsensors_version”

I'm just trying to get "Glances" working as per the accepted post in this question: System Monitoring Tools For Ubuntu But I can't install PySensors. The command sudo pip install PySensors throws an ...
0
votes
1answer
67 views

Pycharm installed but not opening

I am running Ubuntu 14.04/GNOME 3.8.4 on 15 MBP Duel Boot. I am new to Linux and Python (Pycharm ide). I have downloaded the Pycharm "files" from the software center but cannot run the program. The ...
1
vote
1answer
77 views

System messed up due to partly remove of Python2 - How to restore it? [duplicate]

I installed python 2.7.9 then after a while I want to install python 3.4.3. So I tried to remove python with this command: sudo apt-get remove python but I installed a lot of tools and IDEs for ...
0
votes
0answers
20 views

How can I get PyTyle3 working on XFCE4?

I've installed PyTyle3 on Xubuntu 14.04 but none of the keybinds work when I run 'pytyle3' in terminal. I set tile_on_startup to True to see what happened, still no tiling. The only output that shows ...
-4
votes
1answer
55 views

Why are my Python package installations successful while Python cannot import modules?

$ sudo pip install scipy --upgrade Requirement already up-to-date: scipy in /usr/local/lib/python2.7/dist-packages Cleaning up... $ python2 Python 2.7.3 (default, Aug 26 2014, 14:03:58) [GCC 4.8.2] ...
1
vote
3answers
48 views

Force “bad” (not 0) return code of terminal command?

I have a framework written in python, and for testing purposes I basically want to do a subprocess (aka shell call) ... that should simply come back with a RC != 0. I tried to invoke some non-existing ...
0
votes
1answer
203 views

Python's ImportError: No module named repository

I had three versions of Python installed; 2.7, 3.2 and 3.4 When I had just 2.7 and 3.2, everything was fine. But after installing 3.4 manually from source, things began to break down. 3.4 did not have ...
1
vote
0answers
64 views

I can't open software updater and unity tweak tool on Ubuntu14.04

I have a notification nearly every time I try to update. That note 'An error occurred while checking for updates => [TR Language] Güncellemeler denetlenirken bir sorun oluştu.' I can't open software ...
0
votes
1answer
33 views

Unable to install Selinium python module in Ubuntu 14.04

I'm unable to install selinium python module. I've tried sudo pip3 install -U selenium I actually tried to install it in a virtual env. I got an error . EDIT 1 : Long back i've installed pip3 and ...
0
votes
1answer
68 views

g++:error: `pkg-config --cflags --libs opencv`: No such file or directory

I run a program like this: g++ begueradj.cpp -o begueradj`pkg-config --cflags --libs opencv` I want to run the above command line from a Python file test.py: import subprocess ...
0
votes
2answers
102 views

How to get the pid of a process in Python [closed]

I wrote this script to stop processes: parser = argparse.ArgumentParser(description='this script allows you to connect a device in your network') parser.add_argument('-m', '--mac', dest='mac', ...
10
votes
3answers
2k views

Where to store user settings for an app?

If I want my application to store a few settings, that persist when an application closes, then where should I store them? I'm not talking anything complicated: two booleans and a string (although in ...
3
votes
1answer
91 views

How can I make perf script -g python work?

After installing perf with the linux-tools-common package, I still can't use the python/perl scripting abilities. $ sudo perf script -g python Python scripting not supported. Install libpython and ...
1
vote
0answers
113 views

Messed up “update-notifier-common”-package / debian.deb882 not found

Unfortunately, when attempting to reinstall ttf-mscorefonts-installer and flasplayer-installer, I got the error that update-notifier-common is not working. According to root@AlkaliMetal:~# dpkg -s ...
0
votes
0answers
36 views

gem5 - Setting up x86 fs & running cache coherency code

I am new to gem5 and am trying to run the MI_example cache coherency protocol test code for x86 system in gem5. I was trying to run the ruby_fs.py script but I came to know it has be eliminated from ...
0
votes
1answer
61 views

Python reinstallation --enable-unicode=ucs4 and lxml undefined symbol: PyUnicodeUCS2_DecodeLatin1

I'm using Ubuntu Server 14.04. I needed for my new django project python with ./configure --enable-unicode=ucs4 option. I reinstalled python with ucs4. Now when I'm trying to run scrapy spider, I get ...
3
votes
4answers
79 views

Find and replacement of the numerical part of a particular string with increased value using terminal command [duplicate]

The inputfile is, test00.dat test07.dat test03.dat aram22.dat test09.dat aram09.dat test13.dat I need the output file as test01.dat test08.dat test04.dat aram22.dat test10.dat aram09.dat ...
0
votes
0answers
27 views

Wireless Login Website CGI Python

Hey guys im trying to create a Web Page that will show me the SSID's I have around, in this page I create the option to select and join a server. The output from my wireless scan is generated with ...
24
votes
4answers
28k views

Make default `python` command to use Python 3

I can access Python 3 via python3 command. But I want to make the default interpreter to use python command for Python 3. Simple typing python takes me to Python 2. How to upgrade?
0
votes
0answers
53 views

Error from install file: “No module named: _struct”

OK, so this all started trying to install OpenBazaar, but I've talked to their devs and it's my python that seems messed up somehow. I think I may have created/deleted a symbolic link somewhere like ...
0
votes
0answers
42 views

Working code examples of python-apt

i downloaded the source code of python-apt from here : https://github.com/excid3/python-apt In this source code, in directory doc/examples , some python codes are exist. I thought that i could run ...
0
votes
1answer
17 views

How to traverse all packages using python-apt

i want to implement a python code which prints all packages using python-apt in ubuntu. I searched about it, looked at python apt documentation in the link, ...
-1
votes
2answers
48 views

faced problem in regex

i am having a text file which contain some queries like below. leptop pencil group leptop book gruop buk grop laftop pensil laptop pancil laptop bag bok from this i just want query which start with ...
0
votes
1answer
48 views

Checking for 'gee-0.8' >= 0.8.0 : not found

I am trying to install pysoy and at the stage of configuration using ./waf configure it gives an error as seen below Checking for 'gee-0.8' >= 0.8.0 : not found The configuration ...
-1
votes
1answer
39 views

How to upgrade python in ubuntu 14.04 LTS?

I'm using python Please take a look at this SCREENSHOT. But it is old version. So, I've downloaded a new version of source code for Python. But it's giving an error while compilation. Please help me ...
0
votes
1answer
74 views

python 2.7 is still default though alias python=python3.4 is set

I have set alias python=python3.4. but still when I write python in terminal it executes as version 2.7. python3.4 only works in the terminal window where alias python=python3.4 is set. Please ...
0
votes
0answers
53 views

Celery trying to connect to wrong broker

I have a Django project on an Ubuntu EC2 node, which I have been using to set up an asynchronous using Celery. I've been able to get a basic task working at the command line, using: ...
0
votes
1answer
326 views

pyvenv vs venv vs python-virtualenv vs virtualenv and python 3

malikarumi@Tetouan2:~$ pip install virtualenv Collecting virtualenv Downloading virtualenv-12.0.7-py2.py3-none-any.whl (1.8MB) 100% |################################| 1.8MB 330kB/s ...
6
votes
3answers
4k views

How do I install IronPython?

I tried installing Ironpython on ubuntu 12.04 using the guide here: IronPython on Mono But it doesn't seem to work. I have no Solutions/IronPython.Mono.sln, so i try to xbuild Solutions/IronPython.sln ...
0
votes
0answers
56 views

Use terminal to run programs scripts a short and practice way [duplicate]

in window I know make this withe the cmd but in ubuntu it's not good I have a question about the Terminal. I want to ask how to call a program in the terminal $ ...
0
votes
0answers
22 views

Geeknote crashes during show command

'mI trying to use geeknote that is console evernote client on my Ubuntu . I got following error while executing show command. ----------------- CONTENT ----------------- Traceback (most recent call ...
0
votes
1answer
48 views

Python - problem importing OpenCV?

If I run the following I see that OpenCV is installed: $ pkg-config --modversion opencv $ 2.4.10 I have it installed in a virtual environment but when I try to import the cv2 module I get an error: ...
0
votes
0answers
67 views

Can I import a Gtk2 & Gtk3 libraries together?

I think the answer is not... but I'll leave the question here :) Thanks in advance! FYI I tried in the upstream project without luck. Goal: I'm developing a Folder Color extension and I need to add a ...
0
votes
0answers
22 views

Upgrade from 12 to 14 failed with missing python package, now what?

do-release-upgrade aborted deep in the process. The main log file ends with the following. How do I recover this system? (The apt.log file seems boring). 2015-03-28 08:30:32,930 INFO Using config ...
0
votes
1answer
175 views

ImportError: No module named tkinter

When I try to install tkinter using this command: sudo apt-get install python-tk I get this message meaning it is already installed: Reading package lists... Done Building dependency tree ...