waliwali / ibm-db

Automatically exported from code.google.com/p/ibm-db
0 stars 0 forks source link

setup issue: quit() vs sys.exit() #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

If the IBM_DB_DIR and IBM_DB_LIB environment variables aren't set up,
setup.py tries to exit with quit().  quit is a built-in string, not a
function, so setup exits with an unintended error.   To resolve this issue,
use sys.exit() instead.

example:

$ python setup.py develop
IBM DataServer environment not set. Please refer to the README for more
information on building the driver
Traceback (most recent call last):
  File "setup.py", line 16, in <module>
    quit()
TypeError: 'str' object is not callable

Original issue reported on code.google.com by kskuhl...@gmail.com on 3 Apr 2008 at 7:43

GoogleCodeExporter commented 9 years ago

Original comment by abhigyan...@in.ibm.com on 6 Apr 2008 at 12:33

GoogleCodeExporter commented 9 years ago

Original comment by abhigyan...@in.ibm.com on 10 Apr 2008 at 11:14

GoogleCodeExporter commented 9 years ago

Original comment by abhigyan...@in.ibm.com on 10 Apr 2008 at 11:20

GoogleCodeExporter commented 9 years ago
Fixed in 0.3.0

Original comment by abhigyan...@in.ibm.com on 7 Oct 2008 at 10:39