1
vote
1answer
10 views

How do I install pygame in a pyenv virtualenv for Python 2.7 on Ubuntu 12.04?

I found instructions for Python 3.3 but nothing specifically for 2.7. I sorted it out and figured I'd record it here for future reference.
1
vote
1answer
80 views

Install Python 2.7.8 on Ubuntu 12.04

I have to use Ubuntu 12.04 for some reason. In the other hand, i have to use Python 2.7.8 but the newest python version for 12.04 is 2.7.3. Is there any ppa repository i can use to upgrade my python ...
2
votes
1answer
32 views

Removing idle-python2.7 in Ubuntu 12.04

I'm having some issues when updating packages on Ubuntu 12.04: Processing triggers for menu ... Errors were encountered while processing: idle-python2.7 Setting up idle-python2.7 (2.7.3-0ubuntu3.5) ...
1
vote
1answer
22 views

echo to /etc/sudoers causing pasrse error

Using fabric if I echo to sudoers file for second time the file got corrupted works fine for first echo. What could be the reason? First echo: sudo('echo "django ALL=(ALL:ALL) ALL" | sudo tee -a ...
3
votes
1answer
41 views

How can I make Ubuntu to run only one application on startup [duplicate]

I am currently developing a quad copter controller that is touch screen and powered by Raspberry Pi. I already know how to program using Python, but I am having trouble making it run my only app on ...
0
votes
2answers
78 views

Unable to use “pip install scp” command in ubuntu 12.04

I am new to the ubuntu/linux world. While try to run my python script I get the following error: root@ubuntu:/home/haris/Downloads/# python install.py Traceback (most recent call last): File ...
-1
votes
1answer
32 views

How to connect to sql server 2008?

I am using ubuntu 12.04, and i have a microsoft sql server 2008 which is running on a windows server 2008 on port 1433, but windows server 2008 is virtualized it is running on vmware and further this ...
1
vote
1answer
42 views

Will installing Python 3.2 from software center replace the original Python 2.7 on 12.04?

Will installing Python 3.2 from the software center replace the default Python 2.7 on 12.04? I would like to keep using Python 2.7, because I am afraid Python 3.2 will not recognize code written for ...
3
votes
1answer
106 views

Python scripting - How to execute linux commands? [closed]

I have to do a bunch of file copying, moving, svn check out commands, directory checking etc. and I'm trying to make a script to do it for me. I have basic python syntax, but I'm not sure how to use ...
1
vote
1answer
26 views

Installing pycairo on Python 3

I'm trying to install pycairo, but my symlink is sending it to python 2, though it requires 3. How do I get around this error? # ./waf build ./options() The project was not configured: run "waf ...
-1
votes
1answer
46 views

Desktop background after logging in Ubuntu 12.04

I am new to ubuntu and I don't know what to do in this problem. I wanted to completely uninstall python so i did sudo get-apt purge python in between this process I closed the terminal as I saw ...
0
votes
0answers
36 views

Run Twisted server on startup

I am pretty new to Ubuntu and tried to install portia according to this howto: https://github.com/scrapinghub/portia#running-portia Everything worked fine after I run the command twistd -n slyd. I ...
1
vote
0answers
28 views

Error when installing python-guestfs on Ubuntu 12.04 [closed]

I am trying to set up OpenStack on 3 vms using Vmware. I am at the part of configuring a compute node and the first step is to install nova-compute-kvm and python-guestfs. After I issue the apt-get ...
0
votes
0answers
99 views

/usr/bin/ld: error: cannot find -lpython2.7

While installing pyscard.py I get this error, gcc -pthread -shared -Wl,-rpath,$ORIGIN/../lib -g -L/home/builder/jenkins/workspace/Python_Masters/ARCH/x86_64/label/Linux/core/lib ...
2
votes
1answer
92 views

Can't install python-pandas on ubuntu

I am trying install python library pandas on ubuntu system, and it seems to work, but it it does not. Here is what I did: sudo pip install pandas This seemed to install pandas properly. I got this ...
0
votes
1answer
42 views

Ubuntu 12.04 desktop with no launcher and no shortkeys working [duplicate]

I have accidentally uninstalled python 2.7 and python-minimal from my Ubuntu. It gave me an error saying wicd has shut down and there are broken packages. When I restarted the system, only the ...
1
vote
1answer
111 views

How to use UPSTART feature of ubuntu to restart the python script but not as root?

I am running my Python script using upstart feature of Ubuntu so that if for whatever reason my Python script dies or gets killed, it can be restarted automatically and everything is working fine - ...
1
vote
1answer
1k views

Python 2.7.6 on Ubuntu 12.04 How to?

I'm developer and I need to make my enviroment work with Python 2.7.6 (not 2.7.3) on the Ubuntu 12.04. Please, provide me some notes how to do that?
1
vote
1answer
950 views

Install python setup tools for Ubuntu 12.04

I am trying to install Savanna in OpenStack but I am getting this error that I have posted on askubuntu.com Someone told me that it might happen because I have not right version of python-setup-tools ...
1
vote
1answer
62 views

how do I make a python program write directly to the command line?

This is the code I have, I want it so that I can write to the command-line from the window after I press the "SEND" button. If I want to see my "ifconfig" in the terminal, the command gets writen in ...
0
votes
0answers
184 views

OpenERP server problem message when installing an app

I recently installed open erp v7 on ubuntu 13.10, I could install the warehouse app fine, as well as the sales app , but I'm having trouble installing a few other apps. It looks like it is either a ...
0
votes
1answer
111 views

undefined symbol: PyExc_TypeError

I'm using Ubuntu 12.04 and I have weird problem that started appearing. I've been using virtualenv command for working with my Python projects and I never had trouble with it. However, for some reason ...
0
votes
1answer
257 views

Python urlopen function raises an error when an https site is given as input [duplicate]

Please don't mark the question as a duplicate. I have gone through every possibility, but I didn't find an answer. I use Ubuntu 12.04(LTS) Python urlopen function raises this error message when an ...
1
vote
0answers
87 views

Cannot access horizon, python compiling issue [closed]

I've successfully deployed OpenStack Havana using Juju over Ubuntu precise. Each charm on dedicated server and everything looks normal. When I tried to access horizon, I get the login page and ...
4
votes
2answers
58 views

What is the correct location for a maintained virtualenv service?

I will be installing and maintaining a Python 2.7-based server application on Ubuntu server (12.04). The model of maintenance will be to create a virtualenv and install application standard libraries ...
2
votes
1answer
129 views

Install both libmemcached10 and libmemcached6 ubuntu 12.04

Just wondering if someone can help me here, I'm still quite new to Ubuntu an Linux in general and seem to be having a problem with two packages: libmemcached10 is required for php5-memcached but ...
-2
votes
1answer
757 views

Uninstall Python 2.7 on Ubuntu 12.04 [duplicate]

I have just installed Ubuntu 12.04 which comes with Python 2.7. I have installed Python 3.3, so now I have both versions. For example, if I type python in the terminal I get version 2.7 and if I type ...
1
vote
1answer
240 views

How to restart python script after one second of going down using UPSTART?

I am running my Python script using upstart feature of Ubuntu so that if for whatever reason my Python script dies or gets killed, it can be restarted automatically and everything is working fine - ...
-1
votes
1answer
414 views

couldn't load image in opencv(python)

I installed opencv & python in ubuntu12.04. I'm unable to load the image. I tried $ from cv2.cv import * which showed the error "from: can't read /var/mail/cv2.cv" How to solve this?
1
vote
1answer
3k views

How to install the latest IPython notebook in Ubuntu 12.04?

The solution here asks to install the latest notebook, but I was unable to find how to do so. http://stackoverflow.com/questions/16496687/unable-to-open-an-existing-notebook-in-ipython-notebook
1
vote
2answers
116 views

How we can change linux environment variable in python?

Let's say we are on a command line and we declare an environment variable: export x=100 When i go to python and type : os.environ['x'] = '100000' If I came back to command line x stays 100. Is ...
-1
votes
2answers
63 views

Numpy installation?

I used VIRTUALBOX to install Ubuntu 12.04 on my windows pc. I used apt-get to install Python 2.7 that shipped with 12.04. I followed the directives I saw on this site to install Numpy, Scipy, Matplot ...
0
votes
0answers
292 views

How can I use the python GstVideo module in 12.04?

I'm trying to get the gstreamer1.0 demos to work on 12.04, python 3.2.3 and am getting the following (precise)raymond@localhost:~/workspace/nexense$ python video-player-1.0.py \ ERROR:root:Could ...
0
votes
0answers
74 views

WebKit WebView cause error

I try to write simple GUI application using Ubuntu Quickly and Python. So, I need to use WebKit in it and I write something like this: webview = WebKit.WebView() But this line in my code ruined ...
0
votes
0answers
75 views

How to control wpa_supplicant via DBus control interface?

I am trying to control the wpa_supplicant by DBus control interface. Any one knows how to do it using python ?
0
votes
2answers
597 views

How to see if wxpython is installed?

I would like to know how can i determine if wxpython is installed on ubuntu 12.04? And i would like to know as well if ubuntu 12.04 already has wxpython installed by default?
-1
votes
1answer
640 views

Can't run python program in terminal

(I am using ubuntu 12.04) I made this python program: #!/bin/sh # -*- coding: utf-8 -*- #Created on Tue Nov 12 19:44:50 2013 #@author: matthew import os print "Multiple Command Runner" print ...
1
vote
1answer
770 views

ubuntu 12.04 python problem or?

Hi i am trying to fix this for a long time but without success. When i open my zsh terminal i get this error: (terminal is working but error appear) Welcome to the world of tomorrow! ...
1
vote
0answers
198 views

Can't Start Carbon - 12.04 - Python Error

I am really hoping someone can help me as I have spent at-least 15 hours trying to fix this problem. I have been given a task by a potential employer and my solution is to use ...
0
votes
0answers
55 views

Control Media via Arduino

I want to create an application that controls the volume, play next\last, stop\play and things like this (I don't know what they called) like in a keyboard. I have tried to find how to do this with ...
2
votes
1answer
454 views

Assign Spyder to open python files by default [closed]

I'm using elementary OS which has as a base Ubuntu 12.04. I have both Canopy and Spyder installed to manage my python files. When I installed Canopy it set itself as the default app to open files ...
1
vote
1answer
63 views

How to block all the interrupts in linux

I am working on a python project, Where i am displaying a graphical window with log in screen, I've also disabled the close, re size and minimize buttons My problem: I have to disable all the ...
2
votes
1answer
2k views

Ubuntu - 12.04 Update manager and software center is not working

I have Ubuntu 12.04 LTS installed in my machine. Update manager and software center is not working after applying some packages through update manager. The following is the error trace I got, when I ...
0
votes
0answers
148 views

xml.parsers.expat.ExpatError problem?

I am using python script for communicating with server from client. It is working fine, but since last weak the client is not able to communicate with server. Then while check the code, it throws ...
3
votes
1answer
5k views

How to install requests module for Python 3.2 by using pip install?

I have Ubuntu 12.04 with Python 2.7 and 3.2 Following this page I installed requests module. $ sudo pip install requests However, it only works for Python 2 but not Python 3: $ python Python 3.2.3 ...
1
vote
1answer
74 views

Does pyopencl require discrete graphics?

When I try to install the package pyopencl, it pulls in Nvidia stuff (nvidia-current, I think). This appears to install without problems, but then messes up my OpenGL-related things. I thought a ...
0
votes
3answers
491 views

Installing Python modules on Ubuntu

I have been using Python on Windows for a while, so I'm into a lot of modules, including Pygame and LiveWires, but how do I install them into Ubuntu? I have the py file for LiveWires, which has been ...
3
votes
2answers
1k views

Problem with `notify-send`

I have been working in a script to change audio output when you (dis)connect am HDMI screen/TV. Basically it uses UDEV to check any change in the connection and acts accordingly. Everything works ...
-2
votes
1answer
644 views

Python 3.3.2 with Shared option is incomplete

On Ubuntu 12.04, I am trying to compile and install Python3.3.2. My compile commands: ./configure --prefix=/usr/local --enable-shared make make install Then I run: /usr/local/bin/python3.3 ...
1
vote
1answer
3k views

Install cx_Oracle on Ubuntu 12.04 LTS

I'm trying to install cx_Oracle for Python on Ubuntu 12.04 LTS (64 bit). I've installed Instant Client Package from: http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html I did it ...