[Python-bugs-list] [ python-Bugs-728322 ] setup.py breaks during build of Python-2.3b1

SourceForge.net noreply@sourceforge.net
Sun, 27 Apr 2003 01:44:29 -0700


Bugs item #728322, was opened at 2003-04-27 08:44
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=728322&group_id=5470

Category: Build
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: John Ochiltree (joch1)
Assigned to: Nobody/Anonymous (nobody)
Summary: setup.py breaks during build of Python-2.3b1

Initial Comment:
I'm having trouble building Python-2.3b1 on SuSE 8.2.
The ./configure didn't seem to object to anything but
running the
make bombs out with:

running build
running build_ext
Traceback (most recent call last):
  File "./setup.py", line 1110, in ?
    main()
  File "./setup.py", line 1105, in main
    scripts = ['Tools/scripts/pydoc']
  File
"/home/johnoch/build/Python-2.3b1/Lib/distutils/core.py",
line 149,
in setup
    dist.run_commands()
  File
"/home/johnoch/build/Python-2.3b1/Lib/distutils/dist.py",
line 907,
in run_commands
    self.run_command(cmd)
  File
"/home/johnoch/build/Python-2.3b1/Lib/distutils/dist.py",
line 927,
in run_command
    cmd_obj.run()
  File
"/home/johnoch/build/Python-2.3b1/Lib/distutils/command/build.py",
line 107, in run
    self.run_command(cmd_name)
  File
"/home/johnoch/build/Python-2.3b1/Lib/distutils/cmd.py",
line 333, in
run_command
    self.distribution.run_command(command)
  File
"/home/johnoch/build/Python-2.3b1/Lib/distutils/dist.py",
line 927,
in run_command
    cmd_obj.run()
  File
"/home/johnoch/build/Python-2.3b1/Lib/distutils/command/build_ext.py",
line
269, in run
    self.build_extensions()
  File "./setup.py", line 99, in build_extensions
    self.detect_modules()
  File "./setup.py", line 844, in detect_modules
    self.detect_tkinter(inc_dirs, lib_dirs)
  File "./setup.py", line 941, in detect_tkinter
    for dir in tcl_includes + tk_includes:
TypeError: unsupported operand type(s) for +:
'NoneType' and 'list'
make: *** [sharedmods] Error 1


I mentioned this on comp.lang.python and received the
following from Martin v Lowis:

It's a typo in setup.py. Replace

        if (tcllib is None or tklib is None and
            tcl_includes is None or tk_includes is None):
            # Something's missing, so give up
            return

with

        if (tcllib is None or tklib is None or
            tcl_includes is None or tk_includes is None):
            # Something's missing, so give up
            return

Alternatively, install the Tcl/Tk header files if you
also want to
build Tkinter.

Please do report bugs at sf.net/projects/python in the
future; a bug
report in comp.lang.python will get lost.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=728322&group_id=5470