0
votes
1answer
19 views

Python System Call Cannot Find File, Error Running on Apache Server

I'm trying to run an os.system() call from my Python class to source a file I have stored in the file. I am connecting to a server from an Android application and running a method in Django to run a ...
1
vote
2answers
53 views

Confused about python imports

I reviewed the Python 2.7.5 documentation. I am having issues with my real project, but created a small test project here to concisely reproduce the issue. Imagine a package with the following layout ...
0
votes
1answer
36 views

Running PHP, Ruby or Python processes in sandbox mode

I'm working on a small weekend project, which is basically an online IDE that allows you to run PHP, Ruby or Python code from the browser. I have everything setup and working, but the way i created ...
1
vote
0answers
21 views

Python Linux Joystick support?

How can I use an analog joystick in Python on Linux? I come from a C++ background, where I used joystick.h to read events from /dev/input/js[x]. Is there a python wrapper around this I can use, ...
-1
votes
0answers
9 views

ikepython script on qemu

RUnning my modem driver on QEMU. Need to simulate responses as though it has come from the real hardware. Basically need to do a virtual serial port or serial port emulation. Planning to use a python ...
-2
votes
4answers
81 views

How do get Python to print the contents of a file [duplicate]

I'm trying to get Python to print the contents of a file: log = open("/path/to/my/file.txt", "r") print str(log) Gives me the output: <open file '/path/to/my/file.txt', mode 'r' at ...
1
vote
1answer
28 views

Create a little python applet in a linux task bar

I would like to create for my linux task bar a little applet in python, which simply display an icon that could change of color, and when we click on it, which show a simple information menu. But I ...
0
votes
0answers
33 views

Google App Engine “manual_scaling” not working

Currently my Google App Engine design have a front end talking to a resident backend via a URL fetch. The new design will use a module instead of a backend. This is the direction Google wants people ...
0
votes
1answer
40 views

Capture the result from the terminal (external process)

I need to get the result from the terminal mask = "audio" a = os.system("ls -l | grep %s | awk '{ print $9 }'" % mask) print a # a = 0, that's the exit code #=> file1_audio file2_audio 0 This ...
1
vote
1answer
46 views

Weird UTF-8 trouble when override ErrorList class in django

I've faced weird problem as I trying to fit Bootstrap error html class by inherit ErrorList and override its as_ul method. This is the form without override: http://192.241.167.204/normal/ and ...
3
votes
1answer
2k views

Speech Recognition for Linux-Python

I searched google and this site too. I could find Dragonfly is the best suited! But I couldn't find any perfect installation for this on Linux. And it seems it has no support as the last release date ...
11
votes
4answers
4k views

M2Crypto doesn't install in venv, or swig doesn't define __x86_64__ which breaks compiling against OpenSSL

I'm trying to install the Python M2Crypto package into a virtualenv on an x86_64 RHEL 6.1 machine. This process invokes swig, which fails with the following error: $ virtualenv -q --no-site-packages ...
21
votes
3answers
19k views

Change default Python version from 2.4 to 2.6

I'm wanting to use some newer software that requires Python 2.6, and we currently have both 2.4 and 2.6 installed on our dedicated CentOS server, which looks like this: $ which python ...
56
votes
8answers
20k views

How to get console window width in python

Is there a way in python to programmatically determine the width of the console? I mean the number of characters that fits in one line without wrapping, not the pixel width of the window. Edit ...
29
votes
7answers
9k views

Cross-platform space remaining on volume using python

I need a way to determine the space remaining on a disk volume using python on linux, Windows and OS X. I'm currently parsing the output of the various system calls (df, dir) to accomplish this - is ...

1 2 3 4 5 182
15 30 50 per page