Wikipedia has much more: http://en.wikipedia.org/wiki/Python_(programming_language) The official website is here: http://www.python.org/ Python's direction and language development is still controlled by its original author, Guido van Rossum. Guido is now an employee of Google, which uses Python ...
1
vote
0answers
10 views
How to specify or add directory to Python.h search path during setup.py build/install
I'm running Linux, and have downloaded a python module I must install without access to any but my particular /home/user directory (I have no root privileges nor the option to pursue them).
This of ...
0
votes
0answers
9 views
Removing older version of package on RedHat
I am working on a CentOS server with two versions of Python (2.4 and 2.7). I want to remove the 2.4 version.
How can I know if a package was installed from source or by yum? How to remove the package ...
0
votes
1answer
11 views
How can I install python-dev without sudo?
I am trying to install python package (scikits.learn) on my user directory (on a ubuntu server for which I don't have sudo permission) but I am getting
error: Python.h: No such file or directory
It ...
0
votes
1answer
30 views
Taking a screenshot of a webpage in a regular time interval and saving
I need an program (or even better, a python script) that can take a screenshot of a webpage in regular time intervals and save it to a .jpg (... or .gif, or .tif ... or any common image format) with ...
-1
votes
0answers
20 views
Can't open my python files [closed]
All my python script can't open. This is how I encounter the problem; I try to edit my settings.py in IDLE. After right clicking on the files, I choose open program with these default file. I choose ...
0
votes
1answer
43 views
'usr/bin/python' and 'python' run different versions
On my OS X typing /usr/bin/python in to terminal runs Python 2.6.1, but typing python runs Python 2.7.2. I'd like the former to run 2.7.2 as well - how do I do this?
0
votes
1answer
24 views
Is it possible to set the process name with pythonw?
I am using a piece of software written in Python and am using the Task Scheduler in WHS2011 to run it as a background process. Unfortunately it appears as "pythonw.exe" in the task list. It doesn't ...
0
votes
1answer
9 views
Using cxfreeze to convert python source to frozen binary
I am trying to convert a python script into a stand alone executable. I was originally going to use py2exe but it does not support python 3 yet. I downloaded cx_freeze and installed it, but I get a ...
0
votes
0answers
18 views
django on production server(ubuntu)
I'm trying to ship web application to the production server. My setup is django-gunicorn-nginx by following this tutorial. I've not installed supervisor yet for checking purpose. There is no problem ...
2
votes
1answer
38 views
Installing graph-tool and aptitude dependencies
I'm trying to install graph-tool.
I've changed sources.list with the "precise" repository option. I can now run sudo apt-get install graph-tool, but I get the message graph-tool : Depends: ...
1
vote
0answers
37 views
Fix Python sys.path after MacPorts install of Python
So I have reinstalled MacPorts Python. I have port select --set python python27 and which python returns the proper location, i.e., /opt/local/bin. Now, when I import modules in the python ...
1
vote
0answers
21 views
How do you catch and change keyboard characters with python?
I wanted to make silly custom keyboards, that would translate keystrokes to equivalents in silly alphabets (leetspeek, Cyrillic transliterations, upside-down characters..), but that turned out to be ...
0
votes
1answer
19 views
Passing arguments to a Python script: file association not found. Windows 7 on iMac
If I execute my script by:
C:\Windows\System32>python C:\Code\Test.py XXX
It takes the argument but if I execute script by:
Test.py XXX
error occurs: IndexError...
So arguments do not pass to ...
1
vote
1answer
91 views
PIP install and Python path
I am using pip install on a mac to get my python requirements for a django website.
I got pip from MacPorts
port install pip-2.7
Now the problem is the pip installs the packages in a location ...
0
votes
2answers
50 views
Windows does not see my command line arguments
C:\Users\Drew Gross\Documents\Projects\Batadase\src>django-admin.py startproject batadase
Usage: django-admin.py subcommand [options] [args]
Options:
-v VERBOSITY, --verbosity=VERBOSITY
...
0
votes
1answer
20 views
Any way to moniter a window thats minimized/inactive on ubuntu?
Basically I need something similar to LiveWindows on ubuntu that would allow me to have a little image of the window so I can monitor whats happening on that window even when I'm doing something else.
...
0
votes
0answers
54 views
Circular dependency in pip/virtualenv installation instructions?
This may be obvious to everyone else, and I'm just over-thinking things, but here goes anyways. It's obviously not completely circular, but the recommended path seems so.
Since this has gotten really ...
0
votes
1answer
47 views
Compiling my own python has broken system scripts?
(For those not familiar with it, CrunchBang is basically a preconfigured Debian Squeeze.)
So a while back, I was writing a script and wanted to use a Python feature introduced in 2.7. Since the ...
0
votes
0answers
59 views
Is there a python3 version which works under cygwin?
Cygwin itself obviously doesn't include it.
I've tried to compile 3.1.5, 3.2.3 and 3.3.0a2, but they all failed with very different errors.
I've tried to run the one I installed for windows (1), but ...
1
vote
2answers
52 views
Installing a second version of e.g. git, perl and or python on osx lion
At the moment i am running git 1.7.5.4, perl 5.12.3 as well as python 2.7.1 on osx 10.7.3, which were all included in the basic system setup. Applying the "which" command the locations are:
...
0
votes
2answers
63 views
Have sudo create files under your own user id?
If I wanted to do something like
sudo fdisk -l > test.txt
but I wanted test.txt to be under my own user ID (and not root) without having to chown it afterwards, is there a way to do this?
...
0
votes
2answers
123 views
pygtk2 on centos 5x with python 2.7?
I'm trying to install pygtk2 on centos 5.8 for use with python 2.7
installing yum install pygtk* works only for the default python 2.4. I tried compiling pygtk2 from source but it does not configure ...
0
votes
1answer
34 views
Python script takes string args with './[];' — Tell terminal to process as literal input?
My script takes a key as its third argument, and it can have any kind of input...including characters that bash complains about.
I'd really like to use this one-off script right from the terminal, ...
0
votes
0answers
91 views
How to kill unkillable Python-processes running as root
I am experiencing an annoying problem with sshuttle running it on 10.7.3, MBA with the latest firmware update -- after I stop it (ctrl+c twice), or loose connection, or close the lid, I cannot restore ...
0
votes
0answers
20 views
have python process run similar to how redis process does
When I start my redis server with redis-server, even after I close the terminal or logout the process will still be there when I log back in, but my python server python server.py will turn off if I ...
2
votes
1answer
58 views
set sys.path for Python IDLE
How do I set sys.path for Python IDLE sessions?
I have tried adding a path to python path in .bashrc but this had no effect within IDLE when I tested it with using import sys and print(sys.path).
0
votes
2answers
705 views
Why is pip not listed in easy_install on CentOS 6? Where to get it?
I am trying to install pip for python on CentOS 6. I thought of installing it through easy_install but it is not there. I tried to find easy_install with find command, but no luck.
I tried to ...
1
vote
1answer
43 views
Unpack this directory into your PYTHONPATH?
I want to install qt4reactor so I went to the github page, it says:
Unpack this directory into your PYTHONPATH
I don't know what that means. I unziped the file and I tried to add the path to ...
0
votes
1answer
158 views
Adding a Python script at Ubuntu 11.10 Startup
What's the standard way to adding a python script to Ubuntu Startup?
Thanks.
0
votes
1answer
65 views
Writing scripts that work with my emails
I currently use Thunderbird as my email client and it has some filters, but that seems to be all I can program in it.
On several occasions, I heard people talk about their automated email workflow. ...
0
votes
1answer
202 views
Free, simple, configurable SOCKS5 server
I've been looking (for the past 6-7 hours) for a fast, free and configurable SOCKS5 server. I haven't found anything that matches my needs. They are either too complicated, too bare-bones or simply ...
0
votes
2answers
40 views
Opening Python in CMD (Unfixable Error)
I recently tried opening one of my Python projects with CMD to see what would happen. The result did nothing amazing, but Windows 7 thought I wanted to open .py files in CMD all the time. I have tried ...
0
votes
1answer
30 views
What's the equivalent of passthru and system for python? [closed]
Actually I'm rookie in python , as you know we have 2 methods in PHP passthru and system
What's the equivalent of passthru and system for python?
3
votes
2answers
280 views
(Mythbuntu) After upgrading to XBMC 11, Mythbox now says “cannot import name decodeLongLong”?
The vital stats:
Mythbuntu 10.10 (maverick)
XBMC 11 -- from team-xbmc maverick ppa
Mythtv 0.23.1+fix (the standard version for mythbuntu 10.10)
Mythbox version 1.1.0
OK, so, I was happily going ...
0
votes
1answer
101 views
A fast linux distro for django development [closed]
I'm using a old machine - 512mb RAM, 1.9 Ghz, Centrino and I am trying to build a minimalistic environment for python/django development. I only need a decent browser, the terminal and good ol' vim. ...
1
vote
5answers
144 views
How do sockets deal with routers?
(Not sure if this should be on the unix stackexchange site...)
When I make a socket I use IPv4 and a port number. So if I know both of these, but there's a router set up (on a home network; just ...
1
vote
1answer
370 views
Homebrew error with MacVim on OSX Lion
I am trying to install Macvim with Homebrew on an OSX machine running Lion.
After installing iconv at /opt/local/bin/iconv I get the following error in the log:
Error: Can't run ...
1
vote
2answers
183 views
Can't install GNU readline on CentOS 5 (Amazon EC2)
I'm attempting to install GNU readline on a CentOS 5 so that I can use it with some Python 2.7 modules, specifically the Cmd module.
I've installed Python2.7 as a standalone library per these ...
0
votes
1answer
143 views
Can't install python-setuptools with yum on Ubuntu. Missing repolist
I can't install python-setuptool with yum on Ubuntu using the following command:
sudo yum install python-setuptools
I get this message
Setting up Install Process
No package python-setuptool ...
0
votes
0answers
26 views
create a slideshow of webpages using gconf [closed]
is it possible to create a slideshow from a number of webpage (content) and perhaps display it in sceenlets. I have a startnig point which is a python script to create a slideshow of gnome ...
0
votes
0answers
28 views
How do I use the diff viewer to compare current selection with clipboard with Pycharm?
Compare current selection with the clipboard
In addition to comparing two files, you are also able to call the Diff window for comparing the current selection in the Editor with the most ...
1
vote
1answer
155 views
How to make Mercurial find updated version of Python?
My system is RedHat 5 Linux and has default python 2.4 installed. In order to execute Mercurial 1.81, I tried to upgrade python from 2.4 to 2.6 and I thought I saved it in a different directory. I ...
1
vote
0answers
236 views
How to install Python 2.7 w/ unix libs on cygwin
I have been trying for about a week to get this to work.
Obviously getting Python 2.6 is easy - just install the cygwin package with setup.exe.
Installing the windows version of Python2.7 was also ...
1
vote
1answer
169 views
How to run python script on startup with sudo permission on Mac OS
I have created a script with python that basically ping all servers found in my lists. I need this script to be run on startup with sudo permission.
So the question is, How do you run the script on ...
1
vote
1answer
269 views
OS X Lion easy_install requires sudo …?
I'm on OS X Lion and wanting to setup python virtual environments. I want to use virtualenvwrapper.
Can someone confirm that the correct way to do this is to install packages via easy_install (and ...
0
votes
2answers
125 views
Multiple crontabs for one user
is there a way to use multiple crontab files for one user? Thinking something along the lines of crontab file per project instead of crontab per user...
Any help is appreciated...
0
votes
0answers
114 views
Problems installing python-nltk
I've tried the following :
1)
sudo apt-get install python-nltk
sudo apt-get install python-tk
sudo apt-get install python-numpy
sudo apt-get install python-matplotlib
The last 3 are ...
0
votes
0answers
49 views
Installing setup using sudo in Python
I'm getting a strange output when trying to install setup.py for a project. Any clue as to what I'm doing wrong?
$ sudo python setup.py
...
0
votes
1answer
94 views
Installing setup using sudo in Python
I'm getting a strange output when trying to install setup.py for a project. Any clue as to what I'm doing wrong?
$ sudo python setup.py
...
0
votes
0answers
171 views
The suggested way to handle pip(easy_install) with homebrew?
I know there are brew-gem and brew-pip but it is still really easy to get confused. Let's say my Mac OS X is 10.7.2.
There are at least, as far as I know, 3 locations for Python modules (assume ...