Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Mar 2003 09:13:54 -0800
From:      Michael Loftis <mloftis@wgops.com>
To:        ports@freebsd.org
Subject:   pyzor-0.4.0 ports problem
Message-ID:  <141724809.1047028434@[10.1.5.250]>

next in thread | raw e-mail | index | archive | help
Seems like a bare word 'False' is causing a parse error inside of pyzor. 
Looking into it I've found out that this only exists in Python 2.2.1 and 
later (see
http://www.python.org/dev/doc/devel/whatsnew/section-bool.html )

I would attach a patch to the Makefile to do this, but I really am not sure 
how to do it in a 'good' way...It seems you can say require python2.2 but 
that only looks for the python2.2 binary, which in some cases won't be 
enough (like mine).  It needs to check that minor version to make sure its 
.1 or later (not .0 or nonexistent)....I suppose it could be done with a 
little scripting and then forcing the appropriate variables before 
.including bsd.port.mk but thats kludgy and really doesn't solve the 
problem that bsd.python.mk needs to understand how to look for the minor 
rev num.

python version is:
root@free:/usr/ports# /usr/local/bin/python2.2 -V
Python 2.2
root@free:/usr/ports#
and the error output:

root@free:/usr/ports/mail/pyzor# make
===>  Extracting for pyzor-0.4.0
>> Checksum OK for pyzor-0.4.0.tar.bz2.
===>  Patching for pyzor-0.4.0
===>  Configuring for pyzor-0.4.0
===>   pyzor-0.4.0 depends on file: /usr/local/bin/python2.2 - found
===>  Building for pyzor-0.4.0
Traceback (most recent call last):
  File "setup.py", line 5, in ?
    import pyzor
  File "lib/pyzor/__init__.py", line 100, in ?
    class Output(Singleton):
  File "lib/pyzor/__init__.py", line 101, in Output
    do_debug = False
NameError: name 'False' is not defined
*** Error code 1

Stop in /usr/ports/mail/pyzor.
root@free:/usr/ports/mail/pyzor# 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?141724809.1047028434>