MySQL-python-1.2.1_p2, Python 2.5 and OS X Tiger

2006-12-08 Thread scum
How do you install MySQL-python-1.2.1_p2 on a PPC OS X 10.4 machine
with MySQL 4.1?

>>> python setup.py build

...
...
_mysql.c:2854: error: parse error before ')' token
_mysql.c:2854: error: called object '&' is not a
function
_mysql.c:2854: error: called object '&' is not a
function
_mysql.c:2854: error: called object '*(&)' is not
a function
lipo: can't figure out the architecture type of: /var/tmp//ccurx79n.out
error: command 'gcc' failed with exit status 1

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: MySQL-python-1.2.1_p2, Python 2.5 and OS X Tiger

2006-12-08 Thread scum
And I know about the precompiled binary...  I'm just sick of getting
this warning

Python 2.5 (r25:51918, Sep 19 2006, 08:49:13)
[GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import _mysql
__main__:1: RuntimeWarning: Python C API version mismatch for module
_mysql: This Python has API version 1013, module _mysql has version
1012.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Problem in reading a URL

2006-12-08 Thread scum
This is not a python problem.  That is the text of the site when you go
to it.  The site uses cookies to store a session of your visit.  Using
python bypasses that cookie and throws an error.  You will be better
served using teh mechanize library.

http://wwwsearch.sourceforge.net/mechanize/

Even though you may not get far, since the site you are attempting to
search prevents robots from scouring their site.

>>> import mechanize
>>> from mechanize import Browser
>>> br= Browser()
>>> br.open("http://www.ncbi.nlm.nih.gov/entrez/";)
Traceback (most recent call last):
  File "", line 1, in 
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/mechanize-0.1.4b-py2.4.egg/mechanize/_mechanize.py",
line 156, in open
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/mechanize-0.1.4b-py2.4.egg/mechanize/_mechanize.py",
line 214, in _mech_open
mechanize._response.httperror_seek_wrapper: HTTP Error 403: request
disallowed by robots.txt

-- 
http://mail.python.org/mailman/listinfo/python-list


Help with install python-mysql lib on OS X

2006-12-11 Thread scum
How do you install MySQL-python on a PPC OS X 10.4 machine
with MySQL 4.1?

And I know about the precompiled binary at macpython.org...  I'm just
sick of getting
this warning

Python 2.5 (r25:51918, Sep 19 2006, 08:49:13)
[GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import _mysql

__main__:1: RuntimeWarning: Python C API version mismatch for module
_mysql: This Python has API version 1013, module _mysql has version
1012.

-- 
http://mail.python.org/mailman/listinfo/python-list