-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable generating the parser.out file in production #208
Comments
flupzor
pushed a commit
to maykinmedia/flanker
that referenced
this issue
Sep 9, 2019
By default the ply/yacc parser generator runs in debug mode. This creates a parser.out file in the directory parser.py is located. The user which runs flanker does not always have access to this directory, which causes 'permission denied errors.'
thrawn01
added a commit
that referenced
this issue
Oct 22, 2019
Issue #208 -- Disable generating parser.out
Even with this patch I'm getting errors:
This seems to be relevant: ivelum/djangoql#53 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: