GoogleAppEngineLauncher can display the local log file of my app while it is running on my Mac during development. However, I can't change the font size there so I would like to use the tail command to watch the log file myself.
It's a shame but I can't find the log files. They are not under /var/log/, ~/Library/Logs or /Library/Logs. D...
Hello,
it gives me this error:
Exception in thread Thread-163:
Traceback (most recent call last):
File "C:\Python26\lib\threading.py", line 532, in __bootstrap_inner
self.run()
File "C:\Python26\lib\threading.py", line 736, in run
self.function(*self.args, **self.kwargs)
File "C:\Users\Public\SoundLog\Code\Código Python\S...
I'm having a problem with the code below. When I run it the progress bar will pulse for around 10 secs as meant to and then move on to downloading and will show the progress but when finished it will not move on to the next step it just locks up.
import sys
import time
import pygtk
import gtk
import gobject
import threading
import urlli...
Hello,
it gives me this error:
Traceback (most recent call last):
File "C:\Users\Public\SoundLog\Code\Código Python\SoundLog\Plugins\NoisePlugin.py", line 113, in onPaint
dc.DrawLine(valueWI, valueHI, valueWF, valueHF)
File "C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\_gdi.py", line 3177, in DrawLine
return _gdi_.DC...
Basically, I have a file like this:
Url/Host: www.example.com
Login: user
Password: password
Data_I_Dont_Need: something_else
How can I use RegEx to separate the details to place them into variables?
Sorry if this is a terrible question, I can just never grasp RegEx. So another question would be, can you provide the RegEx,...
I've finally installed all the requirements (so i think!) of a Django project, and I'm trying to get a local install running on my Mac (OSX 10.4).
I'm getting the following error:
Blockquote
OperationalError at /
no such table: django_content_type
Request Method: GET
Request URL: http://127.0.0.1:8000/
Exception Type: O...
Hi,
I have this Python script:
import sys
import getopt
import timeit
import random
import os
import re
import ibm_db
import time
from string import maketrans
runs=5
queries=50
file = open("results.txt", "a")
for r in range(5):
print "Run %s\n" % r
os.system("python reads.py -r1 -pquery1.sql -q50 -sespec")
file.write('END...
I've got some code that runs on every (nearly) every admin request but doesn't have access to the 'request' object.
I need to find the path to Django installation. I could do:
import django
django_path = django.__file__
but that seems rather wasteful in the middle of a request.
Does putting the import at the start of the module wast...
I have looked and I could not find this question before, and it surprises me.
I am reasonably proficient in Python, and I used Dreamhost for a number of years. Now I would like to learn Django. They are finally supporting it using Passenger. Which I do not know what is.
Following the instructions on Dreamhost I installed Django. Then I...
Hello,
I use a c++ dll in python. That dll uses other dlls.
I want to know if it's possible to include all the dll's in my .exe using py2exe without calling them directlly. If so, how can I do it?
Thanks in advance :)
...
I have a request that maps to this class ChatMsg
It takes in 3 get variables, username, roomname, and msg. But it fails on this last line here.
class ChatMsg(webapp.RequestHandler): # this is line 239
def get(self):
username = urllib.unquote(self.request.get('username'))
roomname = urllib.unquote(self.request.get('ro...
Hello,
my task is to create dual program. At the beginning I start C program that calls throught C/C++ API of Python some Python method. The called method after that call a function that is created with SWIG. I show you my sample also with backtrace from gdb after I am given Segmentation fault.
main.c:
#include <Python.h>
#include <s...
How do I rectify the error "urlopen error (11001, 'getaddrinfo failed" in python?
also i use a socks
...
The following PyGTk code, gives a combo-box without an active item.
This serves a case where we do not want to have a default,
and force the user to select.
Still, is there a way to have the empty combo-bar show something like:
"Select an item..."
without adding a dummy item?
import gtk
import sys
say = sys.stdout.write
def cb_chan...
Hey can someone help with the following?
I'm trying to scrape a site that has the following information.. I need to pull just the number after the </strong> tag..
[<li><strong>ISBN-13:</strong> 9780375853401</li>, <li><strong>Pub. Date: </strong> 05/11/2010</li>]
[<li><strong>UPC:</strong> 490355000372</li>, <li><strong>Catalog No:</st...
Does anyone know of a python IDE that has iPython as the interpreter?
Using the standard interpreter just drives me nuts, as I've just grown to love using iPython and all the features it provides. To be honest, I'd rather code with a simple text editor + ipython than an IDE, but I love being able to set breakpoints with a click of a ...
i want my thread to sleep when a queue is empty and just wake up when a data is put in it,
should i use condition object? i have never used this object before! and i can,t find a simple example in python
...
Hi all,
For some project I have to make a dictionary in which the keys are urls,among which I have this url:
http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Guide&pver=6.2
the url is too long to fit in here I guess in one single line.
I can build a dictionary without any errors this ur...
When using wx.TextCtl with the wx.TE_RICH2 option in windows, I get this strange bug with the auto-scroll when using the AppendText function. It scrolls so that all the text is above the visible area, which isn't very useful behaviour.
I tried just adding a call to ScrollLines(-1) after appending the text - which does scroll it to the c...
These have been plaguing me endlessly. Why? It seems that my console can't handle the encoding. I take it that the my browser and word processor can handle it. I don't have a master list of all the possible characters that it's choking on. What is the best way to relieve this without modifying my data?
'charmap' codec can't encode chara...