A little help please!

Post anything about MX Simulator here. Please. I'm begging you.
Post Reply
wheels1758
Posts: 4132
Joined: Tue Oct 21, 2008 5:20 pm
Location: Washington, USA
Contact:

A little help please!

Post by wheels1758 »

So im trying to figure out how to splice demos. I have read through the "Some Handy Scripts" thread and have not had any luck. Here is what i put in:

C:\Users\Michael> python c:\python30\scripts\demosplice.py c:\python30\demo1.mxd
emo c:\python30\demo2.mxdemo c:\python30\demo.mxdemo

And got this error!

Traceback (most recent call last):
File "c:\python30\scripts\demosplice.py", line 208, in <module>
splicedemos(args.filenames[0:-1], args.filenames[-1])
File "c:\python30\scripts\demosplice.py", line 116, in splicedemos
headers.append(readheader(fn))
File "c:\python30\scripts\demosplice.py", line 45, in readheader
h.fp = file(filename, "rb")
NameError: global name 'file' is not defined

Please, someone help! Anybody know what to do?
jlv
Site Admin
Posts: 14931
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: A little help please!

Post by jlv »

The new 3.0 version of Python isn't backwards compatible with old scripts. You need a 2.x version.

(Yes, the Python developers have lost their minds.)
wheels1758
Posts: 4132
Joined: Tue Oct 21, 2008 5:20 pm
Location: Washington, USA
Contact:

Re: A little help please!

Post by wheels1758 »

Thanks JLV. I also have 2.6 but never thought to try it. Works now! Thanks.

Wheels
Post Reply