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
2answers
41 views
Unable to connect to Facebook Chat Via Python, using xmpppy library
I am trying to write a script in python to connect to facebook chat. I am just not able to. Here is the code:
import xmpp
FACEBOOK_ID = "firesofmay@chat.facebook.com"
PASS = "password"
...
2
votes
1answer
38 views
Will “apt-get dist-upgrade” update my Ubuntu to the next major release?
I'm trying to cleanup the following error message:
pdf-reader /home/jseidel/ebilling_1393100.pdf
Traceback (most recent call last):
File "/usr/lib/command-not-found", line 10, in <module>
...
1
vote
1answer
24 views
why does my python cron job time out?
I have a long cron job running a python script in CENTOS, but for some reason it seems to timeout or otherwise end without completion.
the job runs fine when executed straight from bash, but seems to ...
1
vote
2answers
43 views
kill and restart process by cron
I've got python script running on a remote machine, periodically it stops responding so I ssh in, kill the existing process, and then restart it. I have to do this several times a week and it's ...
1
vote
1answer
38 views
Why can't I see quick previews of .py files in Windows 7?
When you click on a file, you can see the contents of the file – this works with .txt. On Mac OS X you can see almost all files.
Is there a way I can configure Windows to do that too?
0
votes
0answers
26 views
permission error when installing MySQLdb module for python without root
I don't have root access to a machine (Linux), but I would like to install the MySQLdb module (or any other MySQL module) for python.
I have tried my usual approach (python setup.py install --user) ...
0
votes
1answer
38 views
PyDev Eclipse Python interpreters Error: stdlib not found
Errors with PyDev.
I keep getting the following error:
"Error: Python stdlib not found
It seems that the Python /Lib folder (which contains the standard library) was not found /selected during the ...
0
votes
1answer
51 views
Building VIM with python support in Cygwin?
I'm trying to build VIM with Python/Perl support under Cygwin.
Has anyone done this and can shed some light how this is achieved?
3
votes
0answers
42 views
Unexpected shutdown with heavy single threaded process and single core affinity
I'm not sure what's the cause of the problem, but it happened 3 times in two weeks under similar conditions.
If checked with the laptop's help support and they made me run several tests to see if my ...
2
votes
2answers
76 views
How do I write code of more than 1 line in the Python interpreter?
I have a problem coding Python in terminal. I'm just learning basics so I have no need to create .py files.
In terminal I can run one line of code in the Python interpreter, but how do I write more ...
0
votes
1answer
71 views
Please help me to setup Trac program
I am new to project management and I have no idea about python.
Now, I want to setup Trac program.
I read installation process in their web site, but I could not understand.
Can you help me with ...
0
votes
1answer
22 views
what to do with system installed python versions when starting with pythonbrew
I'm running Ubuntu 11.10. I have both Python 2.7 and 3.2 installed on the system and available in /usr/bin/. I am looking to start using pythonbrew and it seems it will want me to install my python ...
0
votes
1answer
40 views
How to config ipython3-3.2 on Mac OS X?
I installed IPython with Macport:
$ sudo port install py32-ipython
It issues errors when I start it:
$ ipython3-3.2
...
0
votes
1answer
67 views
Schtasks can't run .bat file in windows server 2003
I have a problem with running a .bat file in windows 2003. If I change the user to Admin, I can run it without any problem, but with SYSTEM as user, it will not run. The command is:
SCHTASKS /Create ...
3
votes
2answers
25 views
Remote Python Shell
I'm teaching my friend how to program in Python. So far, we have been using Skype's screen sharing feature, but that is quite cumbersome and low resolution. Is there a way we can have a common shell ...
1
vote
4answers
175 views
Making `#!/usr/bin/env python` work on Windows
I use Bash on Windows, provided by MSYS.
I tried to run a Python file with a shebang of #!/usr/bin/env python, but I get this error message:
/usr/bin/env: python: No such file or directory
What ...
0
votes
2answers
76 views
How many Python applications can I run at the same time per interpreter?
How many Python applications can I run at the same time per interpreter?
Is it just one?
Or could the Python interpreter run more than one at the same time?
0
votes
0answers
179 views
Python installation errors
This is incredibly, annoying, I can't do anything in python until this is fixed. Thanks if you can help, I know it can be annoying to have to look at so much code but i'd really appreciate. I'm trying ...
0
votes
2answers
82 views
Running Python from a USB stick on Chrome OS
I have been thinking about running using Python on my chrome book. Is it possible to run Python form a USB key on my Chromebook?
If so what would the steps be?
0
votes
0answers
42 views
Scripted Access (powershell) to Google Apps Data, other scripts OK, but must run on Win7 without installing anything “extra”
Is there a way to get powershell scripting access to the data stored in a Google Apps account? I've been poking through their API documentation and it looks like way over-kill for my needs.
What I'd ...
0
votes
2answers
40 views
running python script in gvim with conqueterm
I am trying to configure vim to run a python script inside a buffer. I tried conqueterm, and I manage to get what I want when I type this command:
:ConqueTerm python -i test.py
Now I want to bind ...
4
votes
2answers
194 views
How do I add “input” to my macro, to replace text in Notepad++?
I'm trying to make a macro with an 'input' pop-up dialog that synergizes with the replace feature. It should go something like: "Paste text->ask for input->replace variable in pasted text with input ...
0
votes
0answers
39 views
Eclipse INDIGO freeze everytime when I run python program
My Eclipse is downloaded some days ago from http://www.eclipse.org/downloads/ and the type is Eclipse Classic 3.7.1.
I installed pydev in Eclipse and configuration python in Windows -> Performance -> ...
0
votes
0answers
34 views
dbus cannot find compiz service through python [migrated]
Ok, just so you know, I haven't worked with dbus or perl much, so I might say some things that are off.
I'm trying to use dbus to work with compiz programmatically. And looking at compiz wiki ...
0
votes
1answer
54 views
Where can I find a gallery of Pygments CSS files
I googled every possible combination but I couldn't find a list of syntax files. Is there a list of good ones?
1
vote
2answers
139 views
“No such file or directory” error while installing MySQL for Python
I'm getting this error while installing MySQL for Python.
running build
running build_py
copying MySQLdb/release.py -> build/lib.linux-i686-2.6/MySQLdb
running build_ext building '_mysql' ...
0
votes
1answer
62 views
Error while installing python setuptools
I downloaded ez_Setup.py from here.
I have python 2.6 on CentOS 6.
When I do this:
python ez_setup.py
I keep getting this error:
Downloading ...
7
votes
2answers
205 views
How can I run my python program directly from the shell?
I wrote a script. When it starts, it won't stop, and it keeps getting data from the Internet.
I can call it this way:
cd /User/Desktop/project/internetScanner/
python3 main.py start
But I would ...
0
votes
3answers
62 views
Abnormally large size of /var/log/user.log and /var/log/syslog
I recently started using multiprocessing for my python code and now these two files are choking up all the space on my system.
./var/log/user.log: 8.1G
./var/log/syslog: 8.1G
I know it might be ...
1
vote
1answer
65 views
How can I install a debian package using specific version of python
I am trying to install a deb package I built from source, the package is call LIO-Utils.
LIO-Utils and the packages to follow require Python2.6 but Ubuntu 11.10 Server is running Python2.7.
I have ...
0
votes
0answers
28 views
Modifying Textmate's Python bundle “Run Script (cmd r)” to display full traceback
by default it raises the Error, but omits the actual Traceback e.g. (from Terminal):
Traceback (most recent call last):
File "~/Documents/test.py", line 504, in <module>
assert result == ...
3
votes
10answers
204 views
Scripting: what is the easiest to extact a value in a tag of a XML file?
I want to read a pom.xml ('Project Object Model' of Maven) and extract the version information. Here is an example:
<?xml version="1.0" encoding="UTF-8"?><project
...
0
votes
3answers
98 views
Tabs in Vim: When the alignment is all wrong how do you fix…?
So my situation is that I have a file, myfile.py (written in python) that I started developing on my own machine. I used vim to do this, but at that time I did not know that Vim could let you define ...
0
votes
1answer
18 views
Proper way to backup and restore my python installation
I am about to re-install my WinXP. I have Python 2.7.2 installed on it with many standard and third party libraries. I would like to back up the c:/python27 directory before reinstalling the OS, ...
0
votes
1answer
63 views
osx: setting default python for files in terminal?
How do I set the default python for running py files without "python" keyword i.e $ django-admin.py manage.py startproject" in bash shell?
1
vote
1answer
88 views
How do I get this drag-and-drop behaviour back?
I just (finally!) upgraded Python from 2.6 to 2.7, and also installed 3.2 in parallel. I am running Windows Vista.
Before, I could drag-and-drop onto a .py file to run the script, with the dragged ...
0
votes
0answers
94 views
Using nginx to serve Graphite
Trying to get a graphite graphing system setup on nginx. I've seen some tutorials on setting up in Apache, but haven't found any for nginx. I've got my config setup as below, however, whenever I ...
0
votes
2answers
31 views
How to do create a thumbnail of many sites?
I've got a list of 2500 websites and need to grab a little screenshot of them - to create a thumbnail
How do I do that? Well I could try to parse the sites.
Either with Perl or Python
1
vote
1answer
60 views
enabling colors in the python interactive shell on OS/X
I have just modified my .bash_profile so as to have colors in iTerm and Terminal.
Now, I want to enable syntax highlighting for the Python interactive shell, IDLE-style.
How to do that?
0
votes
1answer
67 views
sudo does not preserve PYTHONPATH
I modified /etc/sudoers (using visudo) to keep environment variables :
Defaults !env_reset
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege ...
1
vote
1answer
47 views
Using Python on a Mac: It doesn't let me Script?
Tamara-Lovs-MacBook-Pro:~ Tamara$
Tamara-Lovs-MacBook-Pro:~ Tamara$ 1+1
-bash: 1+1: command not found
That is what comes up when I open the terminal.
Tamara Lov is the name my Mac is registered ...
-1
votes
2answers
80 views
Which Linux OS Dist is most python friendly? [closed]
I am a mid-level python developer interested primarily in creating WSGI-based web apps. I have a working knowledge of *nix but not of sysadmin. I will be working from command line. Which Linux OS ...
2
votes
1answer
62 views
Safe to remove Python2.6 files?
I'm using Linux Mint 11 (will upgrade soon), and I've noticed that, even though I don't have any python2.6 packages installed with apt, there's a bunch of residual python2.6 files scattered around my ...
0
votes
0answers
24 views
Managing Python packages/eggs with pip and dist repos
I'm a little OCD, I like my computer to be nice and neat. However, right now, Python on my computer is a little messy. I have both python2 and python3 installed, and I have a lot of python2 packages ...
1
vote
2answers
46 views
Split a file by two consecutive newlines
I have text file like this
1. some topic
a
20p
ID: 20
2. something topic
another
here
there
ID: 30
3. ...
here
come
another
ID: 40
They are separate by two newlines. How could I split this into ...
0
votes
0answers
80 views
How to enable localhost:8080 with Windows 7 and google app engine
Hi I might try something so simple as disable my firewall but that didn't do it. I can start the dev_appserver.py which my python 2.7 and I see some warning that I think is irrelevant (not finding the ...
0
votes
0answers
64 views
After downloading Tweepy I don't know where to locate it
I have downloaded Tweepy, and I locate its folder in the following path, where I have other libraries such as Pygame and swampy:
C:\Python25\Lib\site-packages
… but when I import it – even in the ...
2
votes
1answer
191 views
Deleted /usr/bin/python* by mistake, how can I recover it?
By a slip of the keys I issued the command:
sudo rm /usr/bin/python*
and with that the problems started. Python still starts, but when I now want to do anything with dpkg I get this error (entire ...
1
vote
1answer
52 views
Can I redo/undo in ipython shell?
A feature in bpython called rewind.
Is there some similar key bindings?
0
votes
0answers
57 views
Setting up a proxy to tunnel through VPN
I'm trying to set up a proxy server that can tunnel its requests through a VPN.
The situation is that I have access to a VPN, but I don't want all my computers bandwidth to run through it. I only ...