-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
SyntaxError: (IndexError) list index out of range #321
Comments
hi there - that would not be caching within Mako because that's parsing a .py file. I don't know what the issue is but something is not syntactically working out in a file called "invoice.tex" on your side. a python 3.3 -> 3.5 migration can potentially impact things because there may be subtle changes in the ast module. but would need to see the failing portion of your invoice.tex file to further diagnose what the problem is. |
Hello Mike,
thank you. That was my first thought also, but: If I restart the python
server, the invoice.tex will be created successfully. Until a certain
step - which I actual do not know - leads into this syntax problem. We
also removed that critical section of the tex-template, but then, the
error occurs on some very unspectacular statements as "if x == ..." ...
very strange :-(
Am Montag, den 06.07.2020, 08:22 -0700 schrieb mike bayer:
… hi there -
that would not be caching within Mako because that's parsing a .py
file. I don't know what the issue is but something is not
syntactically working out in a file called "invoice.tex" on your
side.
a python 3.3 -> 3.5 migration can potentially impact things because
there may be subtle changes in the ast module. but would need to
see the failing portion of your invoice.tex file to further diagnose
what the problem is.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
yeah something is obviously going very wrong , that error is coming from calling Python compile() directly. if this program runs from the console in the main thread, I'd use pdb to take a closer look at the Python string it is trying to compile. |
Hello,
we are using mako as template engine for generating latex-reports in tryton.
After an update of the source system from python 3.3 to python 3.5 migration, we get the following error:
What we are wondering about: This does not occurs with the first time. It took some generations, e.g. is it possible, that somehow a caching is used and we should remove it?
We did test this with mako 1.1.3 and 1.0.7.
Thank you and best regards,
Hendrik
The text was updated successfully, but these errors were encountered: