Tagged Questions
2
votes
1answer
99 views
How can I upgrade pip on Ubuntu 10.04?
On Ubuntu 10.04 I've used apt-get install pip which gives me
pip: error: No command by the name pip uninstall
From doing some research that is because I'm using an older version.
$pip --version
...
2
votes
0answers
151 views
“Operation not supported” for setfacl inside a python script [closed]
I've programmed a script using python which logs in as root on the host machine and executes some commands. Therefore it uses ssh. I want to setup acl. If I do following commands in the command line, ...
2
votes
0answers
159 views
MySQL socket and PHP (and other languages)
Background info
I'm currently running CentOS (or Red Hat?).
uname -a gives (I edited out my domain name)
Linux XXXXXXXXX.com 2.6.32-71.29.1.el6.x86_64 #1 SMP Mon Jun 27 19:49:27 BST 2011 x86_64 ...
2
votes
1answer
416 views
How can I start the python SimpleHTTPServer on port 80?
I am using this command on Ubuntu but it is starting on port 8080 and I don't have another server running so I'd like it to start on port 80. I saw ways that you could set up a bash script to do ...
1
vote
3answers
133 views
How to know which compiler is used to compile Python programs?
How can I know which compiler is used when I type python myapp.py in terminal?
1
vote
0answers
244 views
py3compile error - Unable to get the locale encoding
After reinstalled the python3.2, I got the error as below when call py3compile:
Fatal Python error: Py_Initialize: Unable to get the locale encoding
LookupError: no codec search functions registered: ...
1
vote
2answers
398 views
using cron to run script
Hey guys, im trying to run a script using cron, im using a crontab created by the user ashtanga, in the crontab i have
*/5 * * * * /home/custom-django-projects/SiteMonitor/sender.py
in top of the ...
1
vote
1answer
204 views
How to build a python egg for a TRAC plugin?
I'd like to install a mercurial plugin for Trac. The manual provides an svn path with the source code. I need to create an "egg" from that source code. Do I need to have SVN installed in order to do ...
8
votes
2answers
440 views
View Script Over SSH?
A friend, using a remote machine, SSHed to my machine and ran the following python script:
while (1):
....print "hello world"
(this script simply prints 'hello world' continuously).
I am now ...
9
votes
4answers
990 views
Using different versions of Python
Background:
Since I develop python programs that must run on different python versions, I have installed different versions of python on my computer.
I am using FC 13 so it came with python 2.6 ...