Robert Kern robert.kern at
Mon Jul 27 00:11:12 EDT 2009

On 2009-07-26 07:04, Helvin wrote:

> C:\Qt\VTKbin7\Wrapping\Python>python install
> Traceback (most recent call last):
>    File "", line 138, in<module>
>      raise "ERROR: Must specify BUILD_TYPE=<config-name>  on command
> line."
> TypeError: exceptions must be classes or instances, not str
> Is it just a small error with input format or something?

Read the source, please:

# The build type ('Release', 'Debug' etc.).  If vtk_has_configuration_types
# is true this must be set.  It may be set on the command line by something
# like 'BUILD_TYPE=Release'.  For example::
#   python install --prefix=D:\\Python23 BUILD_TYPE=Release

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco

More information about the Python-list mailing list