parserator
parserator copied to clipboard
Issue when running init a new parser
I follow the document and have the following error? Could you help?
I have ensure my windows terminal is running in UTF-8 already: D:\playground\testParser>python Python 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 03:37:03) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.
import sys sys.getdefaultencoding() 'utf-8'
D:\playground\testParser>parserator init testParser
Initializing directories for testParser <_io.TextIOWrapper name='
- testParser <_io.TextIOWrapper name='
' mode='w' encoding='utf-8'> - raw <_io.TextIOWrapper name='
' mode='w' encoding='utf-8'> - training <_io.TextIOWrapper name='
' mode='w' encoding='utf-8'> - tests <_io.TextIOWrapper name='
' mode='w' encoding='utf-8'>
Generating init.py <_io.TextIOWrapper name='
I had the same error, the issue is with the little pokemon (?) character holding the signs in parser_template.py
Once I deleted those lines from the file everything seemed to initialize as expected.
Same here! Using from Windows 10.