Top.Mail.Ru
Python
? ?
LiveJournal for python.
View:Personal Journal.
View:Friends.
View:Calendar.
Missed some entries? Then simply jump to the previous day or the next day.

Thursday, October 13th, 2005

Subject:Help Requested
Time:10:37 am.
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??
Comments: Read 10 orAdd Your Own.

Time:1:50 pm.
Hi all,

Is there a way to convert a python script to an executable binary? Failing that, what is the best way to obscure your Python code, if any? Thanks.
Comments: Read 5 orAdd Your Own.

LiveJournal for python.

View:User Info.
View:Friends.
View:Calendar.
View:Memories.
Missed some entries? Then simply jump to the previous day or the next day.

Image