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
0answers
18 views

search for mounted hard drive by serial number

Is there a way to check if a hard drive exists using just it's serial number? I'd like to use this in python
0
votes
0answers
19 views

Can't update my apt packages.. problems with python-oneconf, software-center.. pyclean & pycompile not found

I can't update-upgrade my ubuntu packages anymore after my latest update/upgrade/dist-upgrade here are some outputs : $sudo dpkg --audit The following packages are in a mess due to serious problems ...
0
votes
2answers
37 views

Give user password in terminal through argument

I have created a python application in my Ubuntu machine which run commands to terminal. I would like when the program start to continue running as root. I know that to get a root terminal we use the ...
1
vote
0answers
11 views

Libreoffice+Python: Importing additional packages

I wrote some Python scripts that I use to get data from the web. These use the Selenium Webdriver bindings. This works fine with the system version of Python that I access via the terminal. I'd now ...
3
votes
1answer
44 views

Is there any tool for creating custom right-click-menu entries, that run Python scripts?

I would like to be able to go anywhere (google chrome, sublime text editor, etc), then highlight + right click on some text, then click a custom right-click-menu button which will run a python script ...
0
votes
1answer
15 views

Split screen plugin for gedit 3.10.4

I would like to split the screen in gedit in order to see simultaneously multiple files. I found this plugin https://github.com/jonocodes/GeditSplitView but after moving SplitView.plugin ...
0
votes
1answer
22 views

Issue at installing IPython via pip

I had an error while trying to install IPython. Here is the log: alumno@Usuario:/usr/bin$ pip install ipython[all] Downloading/unpacking ipython[all] Exception: Traceback (most recent call last): ...
0
votes
2answers
56 views

It's not exactly about ubuntu [closed]

This is more a plea for help from the ubuntu community. I've done a lot of searches and reading and I guess I'm missing something. I'm trying to write a very basic program in python, here's the issue: ...
1
vote
0answers
24 views

Python & Sublime text [on hold]

I'm trying to build following python code in sublime text: def f(x): return -5 * x ** 5 + 69 * x ** 2 - 47 print f(0) print f(1) and receive following traceback when building: Traceback (most ...
1
vote
2answers
23 views

pip installs Python modules in python 2.7 rather than 3.4

I am trying to use pip to download and install python packages. I am using Python 3.4 on Ubuntu 14.04 I attempted sudo pip install paperclip, for example. It gets installed to ...
1
vote
2answers
103 views

How can I divide an output with 2 delimiters?

By dividing with the "·" and " " characters, I would like to turn this: Hel·lo my name is E·ric To this: Hel·lo my name is E·ric Hel·lo my name is E· Hel·lo my name is Hel·lo my name Hel·lo my ...
1
vote
2answers
19 views

Python 2.7 changed to 3.4 [closed]

I'm running Ubuntu 15.04. I've been learning python (for about a month now) from a tutorial in http://learnpythonthehardway.org/book/ which is done in python 2.7 - the initial steps are to verify that ...
-1
votes
1answer
21 views

ubuntu and python [closed]

I trying to install python on the partition sys and as far as I know python is installed by default but still not working. here are the error output : tejash@tejash-Inspiron-7352:~$ sudo apt-get ...
-1
votes
1answer
39 views

Python is not working in ubuntu 14.04 LTS

I am getting the error: The program 'python' is not installed. You can install it by typing: sudo apt-get install python-minimal I have done this and it still gives me the same error.
0
votes
1answer
15 views

How do I get my devices connected on port 8000 for SimpleHTTPServer

I'm following along with the book How Linux Works, and am trying to get the Python SimpleHTTPServer to work on its default port. I can access my home folder on the local host, but any other computer ...
0
votes
2answers
35 views

Error installing Django

I have try to run this command and get a error easy_install Django (django-mike)zapbuild@jaskaran:~/Documents/python/django-mike$ easy_install Django error: can't create or remove files in install ...
1
vote
1answer
27 views

Can't connect to MS SQL with pyodbc

I just spent hours trying to acomplish a simple task. I had python code that I used to run in windows, and it access a MS SQL db on a windows server 2008. I set up a ubuntu server and want to run this ...
0
votes
1answer
15 views

How to delete duplicate lines starting with specific word in Python [closed]

I have an inputfile of the form All tests start with the word "Test" and all errors start with the word "error" Test1 Error1 Error1 Error2 Test1 Error3 Test2 Error1 Error4 Test2 Error5 Error1 ...
0
votes
0answers
30 views

How to install python-setuptools properly on Ubuntu 14.04

ivan@MS-7640:~$ python -V Python 2.7.10 sudo apt-get install python-setuptools [sudo] password for ivan: Reading package lists... Done Building dependency tree Reading state information... ...
-1
votes
0answers
28 views

converting bash script to python script [closed]

I am looking to develop a small program using Glade designer to create a GUI and run my scripts. The scripts should take a video file and convert it to burn onto a dvd. I started by building command ...
2
votes
1answer
24 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
1answer
53 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
36 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
26 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 ...
0
votes
0answers
11 views

Unable to save sublime text keyboard shortcuts

Whenever I try to save my shortcuts in sublime text 3 it says in a message box: "Unable to save ~/.config/sublime-text-3/Packages/User/Default (Linux).sublime-keymap Error: No access" Terminal ...
2
votes
1answer
113 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
11 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 ...
0
votes
0answers
19 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
29 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
60 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> ...
2
votes
2answers
49 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 ...
0
votes
1answer
28 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
24 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 ...
2
votes
1answer
108 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
70 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
7 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
27 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 ...
1
vote
1answer
28 views

Help with an automatic email response system [closed]

I am planning to create a program(with python) that analyzes and responds to emails on ubuntu, but I cant seem to find anything that could serve as the receiving and sending part of the program(in ...
1
vote
1answer
45 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
72 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 ...
1
vote
5answers
164 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
40 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") ...
0
votes
2answers
96 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. ...
-1
votes
0answers
20 views

opening multiple files in python

I want to open many files from one folder. I have written code as import os folder_path = os.path.dirname('\user\workspace\project\Z1\log.txt') path,folder_name = os.path.split(folder_path) fo= ...
0
votes
1answer
51 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 ...
1
vote
0answers
22 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
45 views

Opening folder in python [closed]

I want to open folder and read a .txt file from that folder. How should I write program in python for it? I have been trying os module but getting strange answer.
5
votes
1answer
124 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
35 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
28 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", ...