[Plone 5.2.2] PageTemplateFile: __init__() missing 2 required positional arguments: 'expr' and 'engine'

I have this code which throws this exception after upgrading from Plone 5.2.1 to 5.2.2:

html = PageTemplateFile("my.html")(self.context, **data)

Error:

Traceback (innermost last):
  Module ZPublisher.WSGIPublisher, line 162, in transaction_pubevents
  Module ZPublisher.WSGIPublisher, line 359, in publish_module
  Module ZPublisher.WSGIPublisher, line 262, in publish
  Module ZPublisher.mapply, line 85, in mapply
  Module ZPublisher.WSGIPublisher, line 63, in call_object
  Module onkopedia.policy.browser.onkopedia_view, line 100, in wrapper
  Module onkopedia.policy.browser.onkopedia_view, line 845, in generate_pdf
  Module onkopedia.policy.browser.onkopedia_view, line 942, in _generate_pdf
  Module zope.pagetemplate.pagetemplate, line 111, in __call__
  Module zope.pagetemplate.pagetemplate, line 129, in pt_render
   - Warning: Compilation failed
   - Warning: builtins.TypeError: __init__() missing 2 required positional arguments: 'expr' and 'engine'

The difference in the related packages are zope.pagetemplate 4.4.1 vs 4.5.0 and Chameleon 3.6.2. vs. 3.8.1.

Any idea about this error?

This is likely caused by the changes in Zope 4.4 to the templates. See mostly https://github.com/zopefoundation/Zope/issues/717

Breaking change...anyway...switching to ViewPageTemplateFile fixes my issue

Plone Foundation Code of Conduct