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
1answer
90 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 ...
1
vote
3answers
1k views

file location python

I am complete newbie on linux and ubuntu. So my apologies for the dumb question. I have written python code in windows and want to run it in ubuntu, it uses an text file for input. the 'path-to-file' ...
1
vote
3answers
1k 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 ...
0
votes
3answers
3k views

How to install this file with Python?

I want to install this file: cvxopt in my Ubuntu 13.04. But I got the following error message: running install running build running build_py running build_ext building 'base' extension ...
1
vote
1answer
73 views

How to get translations on Launchpad for a custom program

I wrote a program and uploaded it to a ppa. This program uses translations which I manually create using pylupdate4 Translate.pro, then Qt-Linguist, then lrelease Translate.proon my home PC. So the ...
2
votes
3answers
12k views

I am not able to install easy_install in my ubuntu

i have to install Review board in ubuntu, i tried following commands but i am getting error sudo apt-get install python-setuptools. Reading package lists... Done Building dependency tree ...
3
votes
1answer
791 views

How can I install pygame 1.9.2 on ubuntu 13.04?

The python-pygame package contains version 1.9.1release, but I need features from 1.9.2. Is there a PPA available for the latest pygame release? Thanks in advance!
1
vote
2answers
3k views

Downloading contents of the web page

I want to write a python program to download the contents of a web page, and then download the contents of the web pages that the first page links to. For example, this is main web page ...
1
vote
1answer
85 views

How to check if file in ubuntu one cloud have been changed

I'm writing ubuntu one app in Python that Download files. It is working fine, but i want to modify it as if uploaded file changes, it downloads that file in current directory and so on. Does anyone ...
0
votes
1answer
405 views

Showing error message in terminal

When I am opening a terminal it is always showing the below error message. WARNING:root:python-html2text is not present. HTML pages will not be converted into text. Please help me how can I remove ...
0
votes
1answer
727 views

Why am I getting socket.gaierror with httplib? [closed]

The aim of my program is to send a POST a request to login page, but I'm getting following error. #!/usr/bin/env python import httplib,urllib conn = httplib.HTTPConnection("localhost") ...
1
vote
1answer
2k views

Installing 'requests' using easy_install

I'm trying to install 'requests module' using easy_install but I'm getting the following error: $ sudo easy_install requests Processing requests error: Not a recognized archive type: requests If I ...
1
vote
2answers
2k views

Why does my Python script fail with syntax errors?

While running the simple Python program below, I'm getting the following error: ./url_test.py: line 2: syntax error near unexpected token `(' ./url_test.py: line 2: `response = ...
3
votes
3answers
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 ...
0
votes
1answer
140 views

python module can be found using shell but not in virtualenv

When I do import numpy on my shell, numpy is found (I can use it). However, when I workon my virtualenv import numpy gives me no module named numpy error. I tried to pip install numpy while working ...
1
vote
2answers
214 views

How to add permissions to files installed by dpkg-buildpackage or debuild

I build a package from my own source using dh_make and dpkg-buildpackage. The install-file in /debian specifies the destinations for the project files. To make the installed program work, they need to ...
2
votes
0answers
72 views

Specify the target directory in a package

I created a package (with dpkk-build and dh_make) from my own program source and got a deb-binary. So far, so good. No if I'd upload the package to my ppa and installed it from there, the program ...
0
votes
1answer
187 views

How to create an installable package in a ppa the simple way

Because I can't figure out how to publish my program because I do not understand the packaging, I have some questions: Why can't I just upload a directory of files* to the ppa, and a setup file that ...
0
votes
1answer
415 views

Install package from ppa with setup.py file

I am writing a python program that I want to upload to a ppa so other people can install it on their machine. Right now I have a setup.py-file that copies the files to their place and installs the ...
2
votes
0answers
1k views

Why Nautilus consumes way too much memory? [closed]

In the past 4/5 days I noticed something very strange. I am using Ubuntu 13.04 amd64. After some time from the system login I think an hour or two may be, either nautilus or python process uses too ...
4
votes
1answer
2k views

GDB crashes with: ImportError: No module named libstdcxx.v6.printers

I have a problem with GDB. Whenever I try to debug any C++ program, just after running it, GDB gives this error: (gdb) run Starting program: /home/errikos/Workspaces/tests/a.out Traceback (most ...
5
votes
2answers
947 views

Take screenshots at random intervals with Python?

I am working on a project to take screenshots of desktop and upload images to a server I want to develop a python app, when user starts that app it will start taking screenshots in random interval ...
1
vote
1answer
4k 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 ...
1
vote
0answers
651 views

Firefox won't work. Locale not supported by C library

I just got a server running with ubuntu on it for the first time, I connect with ssh. I am a mac user, learning ubuntu. The idea is to automate some tasks on the server. One of these tasks involves ...
0
votes
2answers
690 views

how to create a .desktop file to launch a python script

I made my litle python App, but now I can't launch the app from the .desktop that I made: [Desktop Entry] Name=MyApp Version=0.1 Exec=/usr/share/MyApp/MyApp.py Icon=/usr/share/MyApp/img/MyApp.png ...
0
votes
2answers
271 views

Python Errors when Installing LogMeIn Hamachi

When I go to install the beta version of LogMeIn Hamachi for Linux using the .tgz file download, I get this error when I run the install.sh file: Traceback (most recent call last): File ...
2
votes
1answer
546 views

Python ImportError after reinstallation of nautilus

I have a problem with python on my Ubuntu 12.10. Firstly the problem arose when I was trying to reinstall nautilus because of some troubles with it. I used apt-get --reinstall install nautilus*. The ...
0
votes
0answers
26 views

How to develop Ubuntu apps (2013 edition) [duplicate]

I know this question has come up before, but the answers can quickly go out of date. No pun intended. ;) Previously, it was the "quickly" tool to build apps. Now, developer.ubuntu.com points you to ...
3
votes
1answer
941 views

unoconv is not working in python

I've an issue while using unoconv to convert docs to html from a Python script. It works perfectly when I run the script or the unoconv commands as root, but it fails when I do the same from other ...
9
votes
2answers
2k views

Installing Pylint for Python3 on Ubuntu

My understanding is that the latest release of Pylint (1.0.0 at the time of this writing) has support for Python 3, but I can't get it to work on 64-bit Ubuntu 13.04 with Python 3.3. I followed the ...
1
vote
1answer
975 views

How to Uninstall the Ubuntu SDK?

After Installing the Ubuntu SDK v1.009 on ubuntu 12.04.2 LTS, the computer started behaving in a very unstable manner. Also note that Installing the Ubuntu SDK also installs a lot of test libraries ...
1
vote
1answer
493 views

Mac-like search bar in task bar

I like the Unity Dash and all, but it can take a while to load (older computer with 1GB RAM). So I was wondering if it would be possible to create a program in Python that puts a search bar (like on ...
2
votes
0answers
600 views

Canopy Express in Ubuntu 12.04 32-bit doesn't start

I installed the 32-bit version of Canopy Express in my Ubuntu 12.04 32-bit machine. I followed the installation guides here. Then when I run the program I get the following dialogue: Permission ...
0
votes
1answer
318 views

How to add a back button to go back to previous page [duplicate]

I'm currently new to Ubuntu programming, and learning the basic's of it. I've been following this tutorial as some of you might know in previous questions asked about it I've made before. Now, I've ...
2
votes
0answers
94 views

Terminal won't print “Refresh” in terminal

I have a slight problem today with my Ubuntu app. I've been following a Youtube tutorial. I've provided the link below with the rest of the links provided to help you find out the cause of the ...
2
votes
1answer
424 views

How to install a Python module to the non-default Python

I need to install mysql.connector to python3 but as python 2.7 is the default, it'll go there. How can I specify what python I want the module to be installed into? (I'm using mysql.connector.deb ...
0
votes
2answers
2k views

I get a error “IndentationError: unindent does not match any outer indentation level”

I get this error: Traceback (most recent call last): File "bin/mybrowser", line 32, in <module> import mybrowser File "/home/shaunyo/mybrowser/mybrowser/__init__.py", line 14, in ...
1
vote
2answers
274 views

How to execute this specific python script (attached in the question)

I Have a small net and last 2 weeks i get a lot of disconnections on my wireless stations a friend of mine told me that 90% i get attacked by deauth packets i i researched a bit and found this py ...
1
vote
1answer
113 views

Is there an easy guide on how to prepare my python3 script for upload to my ppa?

I have a python3 script (4000 loc) written in PyQt4 with four, five dependencies. In the same folder where that script is placed there are some subfolders where all additional files (icons, saves, ...
0
votes
2answers
5k views

How can I run python scripts on my webserver?

I have a test script, /var/www/etym/cgi-bin/test.py #!/usr/bin/python # -*- coding: UTF-8 -*- # enable debugging import cgitb cgitb.enable() print "Content-Type: text/plain;charset=utf-8" print ...
0
votes
0answers
24 views

Python : Need help in installing it in ubuntu 12.04 [duplicate]

Initially i installed python3.3 from source but then i removed and deleted the directory /usr/lib/python3.3. When I am installing using aptitude I am getting this error: Unpacking python3.3 (from ...
2
votes
3answers
1k views

Problem in installing Python 3.3 in Ubuntu 12.04

Initially I installed Python 3.3 from source, but then I removed and deleted the directory /usr/lib/python3.3. When I am installing it using aptitude, I am getting this error. Unpacking python3.3 ...
3
votes
5answers
12k views

Open Python file with IDLE using Terminal on Ubuntu 12.04

How can I open python file (from desktop) with IDLE, using Terminal on Ubuntu 12.04? I have tried to do this way: $ idle open python_file.py Instead of open my file it's create two more files: ...
1
vote
1answer
1k views

apt-add-repository raises an error [closed]

I’m trying to install JDE (Java Development Environment), but apt-get fails with the following error: me@ubuntu:~/$ sudo add-apt-repository ppa:webupd8team/java You are about to add the following PPA ...
1
vote
2answers
1k views

What is the difference between IPython and IPython3?

They are both on the repos. But I can't find out what the difference is.
0
votes
1answer
459 views

Install Python 2.7 on Ubuntu 12.4

I have install Ubuntu several day ago. I have install Python on Windows before and everything was simple. Now on Ubuntu I’m getting stuck with installation of Python. So my question is: How can I ...
2
votes
3answers
6k views

Bash cut and grep commands through python

I've tried to read a txt file and find the lines which contain a certain word "checkout_revision". I want to find these lines one by one in a for loop and store them in my variable, let say temp. I ...
12
votes
2answers
7k views

How to use the newest ipython in ubuntu12.04?

How to use the newest ipython in ubuntu12.04? The newest ipython is 1.0. The ipython in official software center is too old. Thanks
3
votes
1answer
336 views

Quickly application create config folder and config file under user's home folder

I want to create an app with Quickly but i have a question: Lots of applications create config files under ~/.config or ~/.application/config in home folder of current user and keep configs, user ...
1
vote
1answer
47 views

Are Python apps allowed in Ubuntu App Showdown?

I want to know if python apps (containing only a .py file) are allowed in the latest app showdown. If not, how can it be ported to QML?