flanker icon indicating copy to clipboard operation
flanker copied to clipboard

Disable generating the parser.out file in production

Open haggag opened this issue 5 years ago • 1 comments

The parser.out file is used for debugging. In production, it's not needed. And it's generating write errors for environments like AWS Lambda where the file system is read only (i.e. the default path is read only '/var/task/flanker/addresslib/_parser/parser.out')

To disable that, pass debug=False to yacc.yacc's constructor.

haggag avatar Oct 14 '18 08:10 haggag

Even with this patch I'm getting errors:

 "Couldn't create 'flanker.addresslib._parser.url_parsetab'. [Errno 30] Read-only file system: '/env/local/lib/python3.7/site-packages/flanker/addresslib/_parser/url_parsetab.py'"  

This seems to be relevant: https://github.com/ivelum/djangoql/issues/53 Also does it need write_tables=False too?

kanekv avatar Jan 29 '20 17:01 kanekv