Hello, I’m a long time user of Blender, but I’ve never really dealt with Python scripting. I understand the basic in-outs of it, and after having difficulty using 2.48 with the Icarus import script, I decided to address the problem systematically.
Firstly, I do know that Icarus is a very old project, and the .py script for 3D import was made for version 2.41, even though there is a 2.48 version, it does not record data based on camera movement, but instead just sticks empties to all of the tracking points.
What I do know is that the primary error that 2.48 users receive is “Unexpected start of file” which is referenced in the code to be a problem with ignoring the first few lines (which are commented). The problem is, I can’t find a reason why 2.41 and 2.48 would interpret this line differently enough to end up starting to read the file at the wrong point. here’s the code from the section that decides where to start reading: (if you want the whole file, you’ll need to go download it)
fp = open(FILENAME)
data = fp.read()
ERRMSG = [1, “Cannot open %s !!” % FILENAME]
# consider the first comment as a file ID, of course probably not future compatible
if data.splitlines()[:14]!="# Camera track":
ERRMSG = [1, “Unexpected start of file, nothing done”]