Image

Imagesermoa wrote in Imagepython_dev

Help Requested

I've found a program written in Python that I think will help me to do a task I need to do. It's called Pycap.

When I try to run the build instructions, I'm having an error. These are the offending lines:

# If any of the headers are newer than any of the sources
# we update the modified time on all the sources to force
# a recompile

HEADER_MTIMES = map(lambda x: os.stat(x).st_mtime, HEADERS)
SOURCE_MTIMES = map(lambda x: os.stat(x).st_mtime, CAPTURE_MODULE + PROTOCOL_MODULE + INJECT_MODULE)
if max(HEADER_MTIMES) > max(SOURCE_MTIMES):
    print "Headers are newer than source, updating modified times on source to force compilation"
    for f in CAPTURE_MODULE + PROTOCOL_MODULE + INJECT_MODULE:
        os.utime(f, None)


The error returned is:
ValueError: max() arg is an empty sequence


So I thought, hey I'll just take out the 'if' bit and always recompile it, why not?! Which worked until it got to the end and then it says:
error: package directory 'src' does not exist


Now I'm stuck. Anybody got any ideas of how I can run this thing??