MySQL-python build griefs

Will Ware wware at world.std.com
Mon Mar 5 19:20:22 EST 2001


Harry George (hgg9140 at cola.ca.boeing.com) wrote:
> #===edit Setup===
> if sys.platform == "linux-i386": # Red Hat
>     include_dirs = ['/usr/local/mysql/include/mysql']
>     library_dirs = ['/usr/local/mysql/lib/mysql']
> #===end edits===

Indeed, I had the wrong settings for those directories
in the initial setup.py. But I ran into other troubles
as well. In Distutils, in sysconfig.py, I am getting
this around line 207:

    if done.has_key(n):
        after = value[m.end():]
        print "value[:m.start()]", repr(value[:m.start()])
        print "done[n]", type(done[n]), repr(done[n])
        print "after", repr(after)
        value = value[:m.start()] + done[n] + after

which is giving me:

value[:m.start()] ''
done[n] <type 'string'> 'Parser Objects Python Modules'
after ' $(SUBDIRSTOO) Ext-dummy'
value[:m.start()] 'README ChangeLog '
done[n] <type 'string'> 'configure configure.in acconfig.h config.h.in Makefile.in'
after ''
value[:m.start()] '${INSTALL} -m '
done[n] <type 'int'> 644
after ''
Traceback (innermost last):
  File "/usr/lib/python1.5/site-packages/distutils/sysconfig.py", line 210, in parse_makefile
    value = value[:m.start()] + done[n] + after
TypeError: illegal argument type for built-in operation

What's happening apparently is that a permission is being taken as an
integer rather than a string. A little scarey since the value is
supposed to be octal.

I'll poke around and see if I can get more clues. Spooky. Thanks for
the directories tip.

-- 
-----------------------------------+---------------------
 22nd century: Esperanto, geodesic | Will Ware
 domes, hovercrafts, metric system | wware at world.std.com



More information about the Python-list mailing list