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

2
votes
1answer
369 views

Sending normal-urgency notifications via notify-send

I'm currently on 15.04 (Vivid Vervet) and I can't seem to get any notifications to show unless they're sent with the urgency set to critical, like so: notify-send -u critical "IRC" "This is a ...
0
votes
2answers
1k views

Django 1.8 gets installed in Python 2.7 instead of Python 3.4

I have to versions of Python installed, 2.7 and 3.4. I installed Django 1.8 as recommended on the Django tutorial. However it got installed in Python 2.7 instead of Python 3.4 so when I type 'import ...
0
votes
1answer
99 views

split files with specific pattern

A file I work with is like NAMES n0 n1 n2 n3 n4 n5 n6 n7 REGION chr 1 100000 404 AAAAAAGA 992 TTTTTTTA 1146 CCCCGGCC 1727 CCCCCACC 1778 GCCCCCCC My desired output is (please ...
0
votes
1answer
196 views

Troubleshoot Python script to update Dynamic DNS with NameCheap (Script from Help Ubuntu)

First off, please help me with the question, dont offer me options like DDClient~! Not to be rude, but lots of people offer workarounds, Id like to use this method and im just having a bit of trouble ...
3
votes
1answer
292 views

Is there a way to not show .pyc (Python bytecode) files under Nautilus?

Is there a way to disable them under directory structures in Nautilus? My Django-project is getting quite confusing with them.
0
votes
0answers
133 views

How do I fix empty localhost/cgi-bin directory?

I am able to open the localhost/cgi-bin folder but it is empty. I have created a few files in /usr/lib/cgi-bin with 755 permissions. Content of /etc/apache2/apache2.conf Mutex file:${APACHE_LOCK_DIR}...
0
votes
0answers
25 views

how does python work on ubuntu? [duplicate]

I am new to ubuntu.I was using windows before .Just wanted to know how to practice coding on it.what is the compiler in ubuntu.please explain step by step.can I get an IDE?
1
vote
0answers
576 views

installing Anaconda, errno 2 no such file or directory

I've taken a look at some of the other AskUbuntus, and none of them have fixed my problem. I've been running iPython for almost six months now in order to get some extra practice with the Codecademy ...
2
votes
1answer
1k views

pip install virtualenv, error on ubuntu 15.04

How to fix this issue? and how to install pip and virtualenv on ubuntu 15.04 pip install virtualenv Traceback (most recent call last): File "/usr/bin/pip", line 9, in <module> ...
3
votes
2answers
311 views

converting BASH to Python (v2.6) [closed]

I have this code in bash and do not know how to translate the lines with 'ps -C.....' and ' ps -eo....' any help in how to write these lines? if [ "$SwapUsedActivity" == "true" ] then echo "...
1
vote
1answer
649 views

How do I install Python 3.2 on Ubuntu 14.04?

The default version that Ubuntu carries is Python 2.7 and Python 3.4. How do I get Python 3.2? There another question on this website where the topranked answer solves the issue for Ubuntu 13.04 with ...
2
votes
1answer
52 views

Persistence USB with External Python Libraries

I have a fresh install of a Ubuntu 14.04 on a flash drive with 4GB persistence space, and I want to install easy_install, pip, ipython, and other external python libraries that can easily be accessed ...
6
votes
4answers
6k views

Unable to Uninstall Program : Own by OS

I was trying to uninstall program using pip uninstall South and it give me following error Not uninstalling South at /usr/lib/python2.7/dist-packages, owned by OS I'm in production machine and ...
0
votes
0answers
894 views

Pycharm cannot install packages because getting PermissionError: [Errno 13] Permission denied: '/home/m/.cache/pip/wheels/fe'

I want to install some python packages, but I am not able to do it because I am getting the following error: PermissionError: [Errno 13] Permission denied: '/home/m/.cache/pip/wheels/fe' I guess I ...
0
votes
1answer
24 views

Why the latest updates removes pycrypto-2.0.1

Why when I reinstall the latest unity-control-center it removes pycrypto-2.0.1 that I install manually and replace pycypto library with the latest one pycrypto-2.6.1?
1
vote
1answer
125 views

Can't pass file containing whitespace as command-line argument to SMS-sending Python script in Ubuntu Touch in Ubuntu Touch

I can send text messages by SMS using the command: $ /usr/share/ofono/scripts/send-sms /ril_0 07123456789 "iorem ipsum est" 0 Where /ril_0 is the SIM card/modem, 07123456789 is the telephone number,...
1
vote
1answer
328 views

How do I get my “gedit” plugin to work?

I'm trying to install a plugin for the gedit text editor that will allow for split pane viewing of files; i.e. I will be able to view multiple files side-by-side (simultaneously). The plugin came in ...
0
votes
1answer
1k views

Having Problem with ipython notebook on ubuntu 14.04

I have installed ipython notebook in my system, but when I want to run it in terminal, the following error comes up: File "/usr/local/lib/python2.7/dist-packages/ipython-3.2.0-py2.7.egg/IPython/...
1
vote
5answers
1k views

Pass filename from bash to python

Lets say I have 1000 csv files that have random names in a folder test. and I have a python script script.py. I would like to write a bash script that would pass the name of each file in the folder to ...
1
vote
1answer
5k views

Executing python file from another script

I have a file called main.py and has the following code: from os import system from time import sleep from datetime import datetime while True: print(datetime.now(),"-+- Starting") system('...
0
votes
2answers
822 views

Ubuntu 15.04 Linux 4.0 Python error while updating, Sub-process /usr/bin/dpkg returned an error code (1)

While running autoremove command or update or even for any install commands I'm getting following error. My System is Ubuntu 15.04 Upgraded from 14.04 and Linux kernel is 4.00 upgraded from 3.19. ...
0
votes
1answer
132 views

MAAS - Import PXE files - Not a gzipped file?

I'm currently trying to import boot images via the command line as via the gui just hangs When running the command 'maas-import-pxe-files' I get a IO error as shown below MAAS is running on a ...
8
votes
1answer
111 views

How to search for and list available ppas via the python launchpad API?

I can't figure out how to use the python launchpadlib to search for ppas. In other words, I am looking for a python API interface for the official launchpad (ubuntu) ppa search. A web form for the ...
4
votes
1answer
509 views

How do I run a bash or python script via cron, visible on the local desktop

I have a production server that runs several bash scripts on the local desktop. Two scripts run all the time and don't need to be stopped. I have a third Python script that I need to start at 9AM. It ...
0
votes
3answers
106 views

Duplicate Python Installs

I was not aware that Ubuntu 14.04 already comes pre-installed with Python. However, I'm not sure if it's installed with Python 2 or 3. Either way, I went to the Python website, downloaded the package ...
0
votes
1answer
100 views

Unable To Run Nightrain On Ubuntu 64bit 14.04LTS Please Help

$ ./nightrain Traceback (most recent call last): File "<string>", line 7, in <module> File "/home/naetech/Applications/Repositories/pyinstaller/PyInstaller/loader/pyi_importers.py", ...
0
votes
1answer
239 views

Python Install Questions - PyDoc Not Working - Questions on Using GitHub

This question is actually threefold. I have questions mostly regarding Python and the installation process. I also have questions on how I can find documentation for a module that is hosted on GitHub. ...
1
vote
0answers
46 views

how to install plugin for python v2.7

I tried to run a video DVD and it says you need to install plugin for python v2.7. I am using Ubuntu 13.04.I am very new with ubuntu. what codes shall i have to write to download the plugin and to ...
0
votes
0answers
176 views

Executing Pure Data Patch from within Python/Shell on Raspberry Pi

I am searching for a way to execute a Pure Data patch from within a Python/Shell script. I have the PD patch (called sf.pd) on my Pi in a folder called /home/pi/pd. To execute the PD patch from the ...
0
votes
0answers
47 views

Accidentally uninstalled Python, now my Pc Lags in black screen [duplicate]

I am new to Linux. I am using this just for about a month, and when I wanted more space on disc, I typed to Terminal sudo apt-get remove Python. I did not know what the Python was, so i just ...
0
votes
1answer
131 views

Drop/Undo sudo privileges on .py file which runs inside a program which runs from sudo previleges

I need to run a program from sudo privileges and I am running .py file inside the program. So when my program runs from sudo then it automatically calls/runs the .py file with sudo. I am running file ...
1
vote
0answers
67 views

execute python package to download a pdf file

i am new in python. please dont bore. i have a python package to download pdf file from a specific site. i can not execute this package. Please help me someone to execute the package. thanks in ...
2
votes
3answers
7k views

Unable to upgrade pip

Apologies for such a basic question... but am new to linux/ubuntu and haven't been able to find answer to this... Was trying to upgrade pip but ran into this... spelee@iggy:~/python$ sudo pip ...
1
vote
1answer
2k views

Backintime won't start (no module named dbus)

I've got the following error on Ubunu 14.04 : user@ubuntu:~$ sudo backintime Traceback (most recent call last): File "/usr/share/backintime/common/backintime.py", line 26, in import config ...
0
votes
0answers
345 views

Python script stopped working: Cannot autolaunch D-Bus without X11 $DISPLAY jack server is not running or cannot be started

I have a Python script on a Raspberry Pi that streams radio. It was working great for a long time, but today not so much. Here is a reproducible example that produces the error message: import pygst ...
0
votes
1answer
36 views

How do you install an application that doesnt have makefile in folder?

Sometimes I download applications and they don't include a makefile; just a bunch of source code and an executable application. For instance, I downloaded tor but it comes with the application and a ...
1
vote
1answer
45 views

BASH->Python (2.6) piping

I need to translate this line of Bash into Python: sample1=($(/bin/cat /proc/meminfo | egrep 'MemTotal|MemFree|Cached|SwapTotal|SwapFree|AnonPages|Dirty|Writeback|PageTables|HugePages_' | awk ' { ...
1
vote
2answers
938 views

How to use Python like Windows? [duplicate]

For example , I write a Python program by vim , but how can I run it ? It just show a editor program when I double tap on it .
3
votes
1answer
2k views

Problems installing Numpy in Virtualenv

I have numpy installed globally (I think via Django) but I'm trying to install it within a virtualenv. When I run pip install numpy (within my virtualenv), it gets stuck at Running setup.py ...
1
vote
1answer
37 views

Establishing compute node problem faced off

I am going to establish a compute node on a Ubuntu virtual machine. following these steps as written down: configure a compute node I am stuck on apt-get install nova-compute-kvm python-guestfs I ...
1
vote
1answer
538 views

Where to obtain ipython kernspec for Python 2.7

I'd like to work with Python 2.7 using Jupyter, but it doesn't come up as an option when I click to create a new notebook. I read that I need to install the ipython 2.7 kernspec file, but I get this ...
1
vote
1answer
2k views

Message- Cannot find installed version of python-jgango or python3-django

I'm new to Ubuntu, and I love it so far. I have been trying to install Django for a website development project. In the terminal, when I start the python interpreter and type import django django....
0
votes
0answers
316 views

How to install python-dev - without using apt-get - on ubuntu 12?

The question is pretty descriptive as it's noted. I'm at a working environment that I have not much access over. I have wget and curl, but I can't find any resources.
0
votes
3answers
2k views

How can I install chainer-cuda-deps?

I am attempting to install chainer-cude-deps. When I try to install (sudo pip install chainer-cuda-deps), I get the following error: In file included from src/cpp/cuda.cpp:1:0: src/cpp/cuda....
0
votes
1answer
1k views

python pip broken on ubuntu

My pip is not working anymore. Here is the output for a sudo pip install pyjs : File "/usr/bin/pip", line 9, in <module> load_entry_point('pip==1.5.6', 'console_scripts', 'pip')() File ...
0
votes
0answers
107 views

Python Script Stopping My Computer From Shutting Down Properly

I have the following line in my /etc/rc.local file. python /home/my-sickbeard-install/SickBeard.py 2>&1 >/dev/null & Since using this line, when I shutdown my computer I get an error ...
0
votes
1answer
1k views

Run Python script with root privileges (not from terminal)

How can I run a Python script which, upon execution, brings up a dialog prompting the user for his root password - so that the script is run as root, being able to make changes to files within the /......
1
vote
1answer
105 views

i want install Keyboard Layout Editor on ubuntu 15.4 , but i get errors :(

when i want install Keyboard Layout Editor on ubuntu 15.5 i get some problem.... i followed this Installation guide: Keyboard Layout Editor git clone https://github.com/simos/keyboardlayouteditor....
4
votes
1answer
906 views

Upgrade python packages with pip: use “sudo” or “--user”?

I have a question about installing/upgrading Python packages using the tool pip. I can either run sudo pip install -U PACKAGENAME or pip install -U PACKAGENAME --user What is the difference ...
1
vote
1answer
380 views

Why is the python built from source is still showing the wrong version?

So I've downloaded the most recent tar from https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tar.xz, untar'd, configured, built and installed to a user directory. I've also used those ...