Forum: Python Jun 27th, 2009 |
| Replies: 0 Views: 396 I am reading chapter two of the Pylons book (http://pylonsbook.com/en/1.0/installing-pylons.html#quick-start-to-installation-for-the-impatient). In the text I am told to run:
$ python... |
Forum: Python Feb 14th, 2009 |
| Replies: 3 Views: 538 That is a solution that I have considered. But my question was meant to be more general. How is the site-packages directory determined for that installation of Python? Is there a system file... |
Forum: Python Feb 14th, 2009 |
| Replies: 2 Views: 555 I have found the answer. I had an http proxy (GlimmerBlocker) running. For whatever reason this program was not restored correctly. |
Forum: Python Feb 14th, 2009 |
| Replies: 2 Views: 555 I just reinstalled OS X 10.5 Leopard on my laptop and restored my data/applications from a Time Machine backup. When I use urllib.urlopen() I get the following error:
>>> import urllib
>>>... |
Forum: Python Feb 14th, 2009 |
| Replies: 3 Views: 538 Hi
I am running OS X 10.5 Leopard. It ships with Python 2.5.1 and I just installed Python 2.5.4 from python.org.
The site-packages directory for 2.5.1 is located at... |
Forum: MySQL Feb 12th, 2009 |
| Replies: 2 Views: 895 I found the solution.
SELECT name, COUNT(fk)
FROM TableA INNER JOIN TableB ON TableA.id = TableB.fk
GROUP BY TableB.fk |
Forum: MySQL Feb 12th, 2009 |
| Replies: 2 Views: 895 Hi
I have two tables that I want to use to build a third. They have a many-to-one relationship for one of the columns. Table A has the "one" side of the many-to-one relationship. Table B has... |
Forum: Python Sep 5th, 2008 |
| Replies: 0 Views: 3,026 I am trying to write a web scraper and am having trouble accessing pages that require authentication. I am attempting to utilise the mechanize library, but am having difficulties. The site I am... |
Forum: Python Aug 30th, 2008 |
| Replies: 4 Views: 1,617 I was able to solve this problem after a lot more research and tinkering. Here is the solution for anyone interested.
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import cookielib
import... |
Forum: Python Aug 10th, 2008 |
| Replies: 4 Views: 1,617 The link "http://greenman:greenman@schoolfinder.com/" does not seem to log me into the Web site. Is that for basic authentication? I'm sure this Web site uses cookies somewhere, but I'm just not... |
Forum: Python Aug 9th, 2008 |
| Replies: 4 Views: 1,617 Hi I am trying to pull some data from a Web site: http://schoolfinder.com
The issue is that I want to use the advanced search feature which requires logging into the Web site. I have a username... |
Forum: Python Feb 20th, 2008 |
| Replies: 1 Views: 948 Hi,
My problem is that I have a large function with hundreds of lines. I want to break it apart into smaller functions. The issue is that if I make a module level function, the scope changes and... |
Forum: Python Feb 20th, 2008 |
| Replies: 2 Views: 590 Hi,
I've got about 10 functions that all share a bit of code. They all look something like this:
def func(arg):
statement1
statement2
statement3 |
Forum: HTML and CSS Jun 22nd, 2007 |
| Replies: 5 Views: 2,155 Thanks so much for the help. It was a pretty simple solution after all. |
Forum: HTML and CSS Jun 19th, 2007 |
| Replies: 5 Views: 2,155 Hi, I new to CSS and I can't seem to find the solution to my problem anywhere online. The page in question is here... |
Forum: Python May 19th, 2007 |
| Replies: 0 Views: 1,254 Hi, I'm writing a dictionary program with Turbogears that involves using Chinese text. There is an HTML form that has a dropdown menu, a text field and a button. The input from the form (in this... |
Forum: Python May 17th, 2007 |
| Replies: 0 Views: 2,503 Hi I'm trying to start learning how to use Turbogears but I can't figure out how to install sqlite on my computer. I'm running Mac OS 10.4 and there are no precompiled binaries on the sqlite download... |
Forum: Python Apr 21st, 2007 |
| Replies: 0 Views: 1,588 I am trying to run a Cherrypy tutorial from this site: http://www.serpia.org/cherrypy
It is giving me this error when I try to run the start.py:
... |
Forum: Python Apr 1st, 2007 |
| Replies: 4 Views: 3,887 Ok, I've figured it out now. It's not working because I'm mixing the versions up. I have wxPython 2.6 installed and am attempting to run the wxPython 2.8 demo. Once the versions are matched,... |
Forum: Python Apr 1st, 2007 |
| Replies: 4 Views: 3,887 Yes, I can run the programs in the "samples" directory, just not any from the "demo" directory. |
Forum: Python Apr 1st, 2007 |
| Replies: 4 Views: 3,887 Hi I know this sounds really stupid, but I cannot figure out how to run the wxPython demo program. I'm using OS X and I downloaded the latest demo/docs package. When I double click on the "wxPytho... |
Forum: Python Mar 9th, 2007 |
| Replies: 0 Views: 890 Hi I'm writing a programme that looks up data from 3 different Chinese dictionaries and then formats and displays them in html using the default browser of the system. So far it works well, but it... |
Forum: Python Jan 2nd, 2007 |
| Replies: 2 Views: 1,715 Haha it was a really basic mistake. There are no <> signs. e.g.
# -*- coding: utf-8 -*- |
Forum: Python Jan 1st, 2007 |
| Replies: 5 Views: 2,672 Somehow my current working directory is set to my home directory by default. I found a solution to this problem though.
__dir__ = os.path.dirname(os.path.abspath(__file__))
filepath =... |
Forum: Python Jan 1st, 2007 |
| Replies: 2 Views: 1,715 My *.py script has some non-ASCII characters in comment lines and when I run it I am getting the following warning:
sys:1: DeprecationWarning: Non-ASCII character '\xe5' in file... |
Forum: Python Jan 1st, 2007 |
| Replies: 5 Views: 2,672 I understand what you're saying, but that solution does not work. If I use the example as you have written then python looks in "/Users/username" for the file even if the script is not in there. ... |
Forum: Python Dec 31st, 2006 |
| Replies: 5 Views: 2,672 This is a really simple question but it's been stumping me for a while. I want to open a file that is in the same directory as the .py script, but I want to specify that directory without using a... |
Forum: Python Dec 22nd, 2006 |
| Replies: 1 Views: 1,682 Hi I'm a completely new to computer programming and am looking to make an application that can search through 3 dictionaries using one input. The dictionaries are Chinese-English, Chinese-Vietnamese... |