Traj module error

Hi all,

What would be the reason that Trajectory module gives me this error?

File /opt/anaconda3/lib/python3.9/site-packages/spyder_kernels/ in compat_exec

exec(code, globals, locals)

File ~/
tlog = TrajectoryLog(tlog_path)

File /opt/anaconda3/lib/python3.9/site-packages/pylinac/ in init
super().init(filename, exclude_beam_off)

File /opt/anaconda3/lib/python3.9/site-packages/pylinac/ in init
raise OSError(f"{filename} was not a valid log file")

OSError: /Users/myname/Desktop/5487337_RT_BRST_RNI_1LAO_20230814151247.bin was not a valid log file

This might be a permissions issue. The flag for checking a valid log is that the first 5 bytes has to be “VOSTL”. What version of TrueBeam did this get generated by?

You can print the first 5 bytes like so:

with open(‘mylogfile.bin’, ‘rb’) as f: