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

Is there a way to properly format an Ubuntu font?

I'm trying to distribute Ubuntu Mono Regular with a Media Player I'm developing: https://github.com/ki4jgt/SIMP It is my understanding that a font is defined like in line 27 uMono = ...
0
votes
0answers
14 views

Spyder on Ubuntu 12.04 fails after trying to install ipython notebook

Spyder IDE was working fine on both Ubuntu 12.04 in both laptops(HP mini & old Compaq Evo610c) After trying to install python notebook, Spyder stopped working. However Pyhton 2.7.3 works fine. I ...
0
votes
0answers
59 views

Really installing PyQt4/5 for python 3.4 on trusty

I am using Python 3 on my ubuntu 14.04.2 (trusty), along with Python 2. I am trying to run ipython --pylab, but with Python 3, this fails (works well with Python 2). It fails since it needs QT4/5 or ...
0
votes
0answers
30 views

POST request using python-maas-client

We can use python-maas-client for accessing the maas API. I need to know the way of performing the post request towards maas using the python-maas-client. Here it is important links: Link for MAAS ...
0
votes
0answers
25 views

Emacs & Python: How to indent to the previous level of identation (go back one level of indentation)?

Emacs & Python: How to indent to the previous level of identation (go back one level of indentation) ? I've the following problem in Emacs when writing Python scripts: As the image below ...
0
votes
0answers
15 views

Django and Gunicorn: 403 Forbidden

I have a django application inside /home//my_app that I am trying to deploy using gunicorn: sudo gunicorn --workers=2 -b :8081 tutorial.wsgi:application After deploying the application with the ...
0
votes
0answers
23 views

NLTK says it's installed with Python 3.4 but import cannot locate it

I know similar questions have been asked before but I've spent hours searching the web and reading other questions and have not found a solution to my problem. I'm on Ubuntu 15.04, trying to install ...
0
votes
0answers
176 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
0answers
48 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
0answers
85 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... ...
0
votes
0answers
30 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
143 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
0answers
45 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
83 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
0answers
53 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
0answers
73 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
27 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
0answers
71 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 ...
0
votes
0answers
74 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
0answers
46 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
0answers
36 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
0answers
20 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
34 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
0answers
38 views

Installing GEOS on ubuntu without root rights

I tried installing the GEOS API for Python and got the following error when I entered commands from GEOS dir: ./configure --enable-python make make install Giving the following error SWIG is ...
0
votes
0answers
86 views

apt-get problem after having removed Python2

I'm quite a newbee. I installed Python2 and Python3. I got bored of Python2 and decided to uninstall it, if i remember well by sudo apt-get remove python2 but now, everytime i use apt-get , i get ...
0
votes
0answers
50 views

Ubuntu gufw not loading

OS: Ubuntu 14.04 64bit Python2 Version 2.7.10 Python3 Version 3.4.3 I recently installed python from source and gufw stopped loading. When I try to launch it from terminal I get the following errors: ...
0
votes
0answers
33 views

.desktop-file two part exec line

I am trying to get bleachbit to run. Unfortunately I get the error, that it could not import gtk. It seems that this is due to me having python 2 & 3 installed. Starting bleachbit over the console ...
0
votes
0answers
130 views

Cant get Python library to install in ubuntu

I am trying to get the "Dirac" python library installed in ubuntu 15.04. Using synaptic i find it, and install it just fine, but when i try to "import dirac" in the python shell it says ImportError: ...
0
votes
0answers
288 views

Python PATH issue (Anaconda_Python, minpower and gurobi interfacing)?

I am using Ubuntu 14.04 LTS, installed Anaconda_python recently Installed minpower and gurobi. Extracted gurobi in home directory, added path as mentioned which is gedit ~/.bashrc export ...
0
votes
0answers
33 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
59 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 ...
0
votes
0answers
92 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
76 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 ...
0
votes
0answers
79 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 ...
0
votes
0answers
80 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
0answers
45 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
85 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
0answers
118 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
73 views

to install numpy i get the following error of unmet depedency

While installing the numpy of python I get the following error: Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f ...
0
votes
0answers
107 views

pyopengl wont start

I installed pyopengl and the libraries are found, but it'ss not working with glutinit() . i know this i a GLUT problem but I'm not sure where linux keeps thier GL files (previously windows user). ...
0
votes
0answers
46 views

/usr/local/bin permissions and numpy

For installing the extensive Python package numpy, I get some failures due to permissions problems in /usr/local/bin/, where dependencies need to be installed. I could use sudo when running the ...
0
votes
0answers
76 views

CODE INVOLVING GPY in python

The code I am trying to run is given below here. It is not executing beyond line 114 ie. print k. After, that the printing of the model is not taking place and the errors being returned have been ...
0
votes
0answers
32 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
0answers
32 views

Cannot find virtualenvwrapper after installing

I installed virtualenvwrapper like this: sudo pip install virtualenvwrapper I thought I would find it here: /usr/local/bin/virtualenvwrapper.sh but I did not. I am trying to configure it in ...
0
votes
0answers
74 views

Shared Anaconda python install on secure internal servers

I work on a small team that does a lot of work based around the Anaconda distribution of Python. We have a few internal "sandbox" Ubuntu 14.04 servers, for running heavy analytic tasks, etc. Instead ...
0
votes
0answers
19 views

How to generate 'alternative' videos for a given video

I'm looking for a fast (script, code, program) way of generating an alternative video for an input video. Alternatives are: added 10% gaussian noise flipped horizontally flipped vertically resized ...
0
votes
0answers
87 views

Installing Python Module with Boost

I am trying to install a computer vision program via python setup.py install but it returns /usr/bin/ld: cannot find -lboost_python-mt-py26 Now I run the following command dpkg -l ...
0
votes
0answers
133 views

Compiling vim with python support on ubuntu 14.04, no errors and no support

I'm trying to compile vim with support for YouCompleteMe as per the github guide [redacted because no reputation] and I'm having strange results. Vim compiles correctly as best I can tell and doesn't ...
0
votes
0answers
31 views

Is it possible to use the keyring with Ubuntu Server

Is it possible to use the keyring features with Ubuntu Server? I'm implementing the following Python package and it falls back to base64 encoded filesystem storage because there is no secure storage ...
0
votes
0answers
25 views

Always receive same Install Error

I'm trying to install visual python by running the following line on bash: sudo apt-get install python-visual Then I receive the following error: Errors were encountered while processing: ...