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
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", ...
1
vote
1answer
30 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
13 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
28 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
22 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
55 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
1answer
23 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 ...
-1
votes
0answers
30 views

Cannot get apt-get -y install python-pip to function

When I use the standard Ubuntu 12.04 LTS install I have no issues with apt-get installing. When I install with the alternate image and setup for a raid 1. I cannot get many of the packages to ...
1
vote
1answer
142 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
76 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
42 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
25 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
41 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
903 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 .
2
votes
1answer
40 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
21 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
0answers
54 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
63 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 ...
0
votes
0answers
41 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
246 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: ...
0
votes
0answers
41 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
22 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
67 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
41 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 ...
1
vote
1answer
48 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
54 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 ...
1
vote
2answers
49 views

Terminal and Python relationship

How is the Terminal in Ubuntu and Python programming connected? Can we use Python to control the system in Terminal? I am a complete newbie,so please guide, I installed Ubuntu out of sheer enthusiasm ...
0
votes
1answer
52 views

New line in python script creating EOL error [closed]

I'm creating a Python program for Ubuntu, and I need to write a python script into a file, but the \n in the code creates a new line in the file, it isn't copied as \n, so I get an EOL error. This is ...
0
votes
0answers
37 views

setup error in terminal: pythonpath is empty

I am trying to install the odoo package for development here I download the zip file, unpack and cd to the directory. It contains a setup.py file so I run. sudo setup/redhat/install.sh but ...
2
votes
1answer
56 views

Will I be able to run Java, C or Python natively in Ubuntu Phone as I would on a PC?

the Ubuntu Phone by Meizu is released tomorrow for the European audience. I've been looking around for information on it, but the only I can find are some hand on reviews, that don't answer the most ...
0
votes
0answers
53 views

Dependency issues after reinstalling python

For a project I am working on, I decided to reinstall the Python libraries and includes so I did sudo apt-get remove python3.4 then sudo apt-get install python3.4. After doing this I resolved my ...
0
votes
4answers
73 views

matrix operation in bash [closed]

the point is that I woul need to transpose a large file - 1600 times 80k but the entries are not tab delimited but just U and K so it looks like UUUUTTTUTUTUUUTUTUT TTUTUTUTUUTUTUTUTUT is there a ...
0
votes
0answers
42 views

Adding a file to startup list using terminal

I have created a short bash script that I want to run on startup. Adding it to the startup list through the GUI is simple enough, but I need to do it through the command-line, as I plan to access the ...
0
votes
1answer
21 views

How to Extract parameters from captured beacon frame

So I was able to extract the SSID and Mac Address from the captured Beacon Frame stored in pkt. I used scapy library's sniff function to capture the beacon frame. I did this to capture the mentioned ...
1
vote
1answer
41 views

Running Google App Engine on Ubuntu 14.04.2

I recently switched from Windows 8.1 to Ubuntu so please forgive me if this is a stupid question. I'm new to all this. So I have python 2.7.6 installed and I tried to get Google App Engine working, ...
0
votes
1answer
36 views

Error while installing python

While installing python 3.4.2 am getting error like Ignoring ensurepip failure: pip 1.5.6 requires SSL/TLS on ubuntu 14.04 .slove and give me guys please
0
votes
0answers
28 views

Returning a value using Tkinter

I would like the class to return the values 1 or 0 based on the the button selection. This code gives me an error. AttributeError: option_box instance has no attribute 'option' from Tkinter import ...
0
votes
2answers
226 views

Fatal Python error: Py_Initialize: Unable to get the locale encoding … SyntaxError: invalid syntax Aborted (core dumped)

I installed anaconda by running the bash Anaconda-2.2.0-Linux-x86_64.sh command on my Ubuntu 14.04 system , which installed successfully, after which I was asked to export my new ...
1
vote
1answer
74 views

NLTK, installed in python 2.7 but not working in python 3.4

I just installed nltk when my default python was the 2.7 version, now when i open the python3 (3.4 version), i cant import nltk, is there any solution to this, to make nltk available for both versions ...
1
vote
2answers
81 views

Error while sniffing packets using “SNIFF” in “SCAPY” (python)

I wanted to sniff beacon frames from the wireless network. I installed scapy and set the wlan0 to monitor mode. then in terminal, - I entered Scapy command to open scapy. Then in Scapy, I put: ...
1
vote
1answer
42 views

Python NameError: gloabal name 'resolution' is not defined

I'm working on developing a python application for Ubuntu that enables a user to have their desired resolution without requiring graphics drivers. In order to do this I've been using xrandr. However ...
3
votes
2answers
64 views

How can I list connected monitor(s) with xrandr?

I'm working on developing a python application for Ubuntu that enables a user to have their desired resolution without requiring graphics drivers. In order to do this I've been using xrandr, which so ...
2
votes
2answers
405 views

Why is python-pip kept back in Ubuntu 14.04?

When I upgrade these days, I get this message: $ sudo apt-get upgrade -y Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done ...
0
votes
0answers
17 views

How to run a script between login(entering password) and being logged on(showing desktop)?

Is there a way to execute a script when a specific user logs in; after they enter their password but before they are actually presented with the desktop? The script in question may lock the computer ...
0
votes
0answers
33 views

IDLE missing from Ubuntu

I just installed ubuntu into my 8G pendrive in a Lenovo laptop. With the terminal I could go to Python command line but it says there's 'no IDLE package.'
0
votes
1answer
31 views

How to install wit.ai and pywit with pip?

Wit.ai is https://wit.ai/getting-started The installation instruction is as follows: https://wit.ai/docs/python/1.0.0/quickstart But i couldn't install it sucessfully, I've tried: alvas@ubi:~$ sudo ...
1
vote
1answer
45 views

launch ipython but not like root

ipython is launched like root (UID); ok, but I need that after ipython cann't run and don't allow, script/code that can gain root privilegies. eg I launch ipython, ok the UID is root. And in my ...
0
votes
1answer
69 views

(Python) Spyder not starting

for some reason my Python IDE spyder isn't working anymore. When trying to start it, it does not open. Trying ~$ spyder in the console gives to following error: Traceback (most recent call last): ...
0
votes
2answers
50 views

Revert python installation

I am using ubuntu precise. Python version installed on this version is 2.7.6. But Cloudera expected 2.7.3. I just followed this. Entire system became non-functional. I couldn't even able to install ...
0
votes
2answers
73 views

How to reset python path to /usr/bin/python?

I was following certain instructions to install a package and ended up installing another version of python and creating symbolic links (the names I can't recall). Now when I hit python from terminal, ...