Bug #4225

invalid syntax

Added by planetmaker about 7 years ago. Updated about 7 years ago.

Status:ClosedStart date:2012-09-21
Priority:NormalDue date:
Assignee:-% Done:


Target version:-


I get with the attached NewGRF code (ignore the following errors about missing .hg)

Traceback (most recent call last):
File "/usr/local/bin/nmlc", line 3, in <module>
from nml import main
File "/home/ingo/ottd/grfdev/nml/nml/main.py", line 19, in <module>
from nml import generic, grfstrings, parser, version_info, output_base, output_nml, output_nfo, output_grf, output_dep, palette
File "/home/ingo/ottd/grfdev/nml/nml/parser.py", line 17, in <module>
from nml.ast import assignment, basecost, cargotable, conditional, deactivate, disable_item, error, font, general, grf, item, loop, produce, railtypetable, replace, spriteblock, switch, townnames, snowline, skipall, tilelayout, alt_sprites, base_graphics, override, sort_vehicles
File "/home/ingo/ottd/grfdev/nml/nml/ast/item.py", line 18, in <module>
from nml.actions import action0, action2, action2var, action3
File "/home/ingo/ottd/grfdev/nml/nml/actions/action2var.py", line 16, in <module>
from nml.actions import action2, action2real, action2var_variables, action4, action6, actionD
File "/home/ingo/ottd/grfdev/nml/nml/actions/action2var_variables.py", line 336
'platform_position_from_middle' : {'var': 0x00, 'start': 0, 'size': 4, 'param_function': lambda *args: platform_info_param(*args, is_middle=True),
SyntaxError: invalid syntax

basecosts.tar (210 KB) planetmaker, 2012-09-21 12:20


#1 Updated by Hirundo about 7 years ago

  • Status changed from New to Closed

Problem was with python version 2.5
Fixed in r2010

Also available in: Atom PDF