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

0
votes
1answer
6 views

VIM error after installing python3 in ubuntu 15.04

I have a fresh installation of the latest ubuntu 15.04. I installed VIM using sudo apt-get install vim It was working fine. Later I installed python3 and pip3. sudo apt-get install python3 ...
1
vote
2answers
23 views

wanting to add back and forward buttons. Using: quickly, glade, and webkit, webview, python

I'm new to linux, ubuntu, and basically everything else talked about in this question. I'm building a web browser in Quickly, following Jono Bacon's tutorial on YouTube, using Glade as the gui ...
-1
votes
0answers
20 views

update problems, related to unresolved 14.10 update problems

After the update to 14.10, update-software-center and related programs stopped working (resulted in a segfault). I was hoping this new update to 15.04 would fix the problems, but i am unable to run ...
1
vote
1answer
23 views

Cron can't find file at night? [duplicate]

I have a cron job written to root (I'm writing to a log in /var/log so need root permission). The problem is that sometimes it works, and sometimes it doesn't. The cron job is simply to call a python ...
0
votes
0answers
7 views

Create a jumpbox menu

I am looking to create a menu on a network jumpbox I have ~200 servers that I connect to and I do not want to have a CRT session for each of them. I want the menu to be searchable so I can hit "/" ...
0
votes
0answers
14 views

How to set a video as wallpaper in Ubuntu 14.04

I want to set a video as a wallpaper in ubuntu. For that I had written a python script which extracts images from the video and sets them as wallpaper one by one sequentially, and this continues until ...
1
vote
1answer
13 views

apt-get /usr/bin/datetime.so wrong ELF class

I'm trying to add a repo to apt-get bit it fails complaining over ELF headers sudo add-apt-repository -y ppa:chris-lea/node.js Traceback (most recent call last): File "/usr/bin/add-apt-repository", ...
2
votes
3answers
43 views

Unmet dependencies error

So some unmet dependencies are there and I cant install anything without getting rid of them. When i type in: sudo apt-get install -f I get this: patrick@patrick-Z97N-WIFI:~$ sudo apt-get ...
0
votes
0answers
16 views

appindicator icons not shown in cinnamon

I had a small python script that used to work from the appindicator on unity. Here is what it looked like I now installed cinnamon. The same code looks like this now. How do I get the icons back? ...
0
votes
0answers
22 views

Uninstall dysfunctional python module

I have installed python module functools via easy_install, and now I cannot uninstall it. When I run python like this python -c 'import functools' I got this error Traceback (most recent call ...
-1
votes
0answers
65 views

Ultimate Edition software center would not load [on hold]

I try to load Ubuntu software center in Ultimate Edition (Ubuntu derivative) and I get the following error in both the derivates of Ubuntu 14.04 and also 15.04: ERROR:root:DebFileApplication import ...
-1
votes
1answer
29 views

Unable to install package via apt-get although it is listed on ubuntu package manager

I'm using Ubuntu 14.04. Following the instructions here, I see the Python 2.7.9 package here: http://cz.archive.ubuntu.com/ubuntu/pool/main/p/python2.7/ However apt-get install or apt-cache search ...
0
votes
0answers
15 views

Ubuntu 14.04 - Python 3.4 UnicodeDecodeError

Recently I've made an update, and I've started getting these errores in some programs (in 2 indicators for Unity, specifically): File ...
-4
votes
1answer
44 views

why this python code is not working? [closed]

from bottle import route, run app = Bottle @route('/hello') def hello(): return "<h1>Hello World!</h1>" run(host='local host', port=8080)
1
vote
1answer
30 views

Error importing Pygame on Ubuntu 14.04 (ImportError: libSDL-1.2.so.0: undefined symbol: _XGetRequest)

I have compiled Pygame for Python 3.4 on Ubuntu 14.04 following the instructions listed here. However, when I try to compile a Pygame program, I get the following error: Traceback (most recent call ...
0
votes
1answer
16 views

How can I specify an alias in ERIC python IDE

I have a code in python which sets an environment variable and an alias to another code. eg - when i run 'install.py' I get the environment variable and alias to a code named pyfem.py. I can use ...
1
vote
1answer
25 views

what does setup.py do?

I am not from a computer science background, and I would like to ask how come when I downloaded python packages from github, I have to run setup.py? what does that do to the program and my other ...
0
votes
1answer
42 views

Adding custom changes to the OpenBlas for Python

My question: How do I get Python to use my own compiled OpenBLAS version? Background The Theano install guide suggests that one should test that the BLAS library components associated are correctly ...
1
vote
0answers
43 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
15 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 ...
0
votes
2answers
74 views

Enforce a shell script to execute a specific python version

Update. Changing the alias unfortunately does not work. I have changed the alias to alias python='/usr/bin/python2.7' however the shell script still runs the python script in 2.4.3. Muru - I am ...
0
votes
0answers
30 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
1answer
27 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 ...
1
vote
0answers
40 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
18 views

How to install Kivy on Ubuntu 14.04?

How can I build and install kivy from source ?
0
votes
0answers
15 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 ...
1
vote
2answers
97 views

Error installing pynauty: “error: command 'x86_64-linux-gnu-gcc' failed with exit status 1”

I'm trying to install the pynauty Python package. When I ran python setup.py build, I got the following error. I have installed the dependencies. How can I successfully install this Python ...
-2
votes
1answer
589 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 ...
2
votes
1answer
36 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 ...
1
vote
0answers
28 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 ...
5
votes
3answers
337 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
1answer
50 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 ...
0
votes
0answers
10 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
44 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
35 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 ...
1
vote
1answer
60 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
1answer
53 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 ...
0
votes
1answer
23 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 ...
1
vote
0answers
44 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
35 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
59 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', ...
1
vote
0answers
50 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
16 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
33 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 ...
0
votes
0answers
21 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 ...
0
votes
0answers
27 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
28 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
16 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
1answer
36 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
0answers
27 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: ...