yostudios / Spritemapper

CSS Spritemap Generator
http://yostudios.github.com/Spritemapper/
MIT License
595 stars 42 forks source link

Spritemapper on Windows w/ Python 2.7.8 not working #32

Open osirion opened 10 years ago

osirion commented 10 years ago

Hey guys. First time using this - but having no luck: 1) Installed Python for windows 2.7.8 2) Set paths of pythong / scripts in PATH var 3) Tried running and then this happened:

C:\Python27\Scripts>spritemapper c:\z\css\global.css Traceback (most recent call last): File "C:\Python27\Scripts\spritemapper-script.py", line 8, in load_entry_point('spritemapper==1.0.0', 'console_scripts', 'spritemapper')() File "C:\Python27\lib\site-packages\spritecss\main.py", line 141, in main spritemap([css_cls.open_file(fn, conf=conf) for fn in args], conf=conf) File "C:\Python27\lib\site-packages\spritecss\main.py", line 33, in open_file return cls(fname, conf=CSSConfig(p, base=conf, fname=fname)) File "C:\Python27\lib\site-packages\spritecss\config.py", line 28, in init self._data.update(iter_css_config(parser)) File "C:\Python27\lib\site-packages\spritecss\config.py", line 17, in iter_css_config for ev in iter_events(parser, lexemes=("comment",)): File "C:\Python27\lib\site-packages\spritecss\css\parser.py", line 43, in iter_events self._emit_events() File "C:\Python27\lib\site-packages\spritecss\css\parser.py", line 410, in _emit_events self.state = self.evaluate() File "C:\Python27\lib\site-packages\spritecss\css\parser.py", line 429, in evaluate new = h(st) File "C:\Python27\lib\site-packages\spritecss\css\parser.py", line 490, in _handle_declaration "missing semicolon?" % (st,)) RuntimeError: unconsumed declaration in <CSSParseState handler=<bound method CSSParser._handle_declaration of <spritecss.css.parser.CSSParse r object at 0x0000000002E362B0>>, prev=None, counter=42, tokens=<generator object _css_tokenizer_lineno at 0x0000000002E2DD38>, token=Token( 'block_end', '}', line_no=16, col_no=22), selector='.f_right ', declaration='float:right', at_rule='', comment='', whitespace=''>, missing s emicolon?