You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem is caused by the fact that the babel compiler is UTF8 javascript, so when dukpy tries to read the compiler to run it it will receive utf8 data, but Python3.X decodes data according to the system locale.
Your system locale is probably ascii ("C"?) so Python is trying to decode the babel source code as plain ascii and failing.
I hope to fix this for next release as it's also a requirement for windows systems
I get the error
every time I try to run any JS code via
dukpy.babel_compile
Here's an example snippet:
dukpy.babel_compile("var o = {'value': 5}; o['value'] += 7; o")
Env: Python 3.4 with virtualenv
The text was updated successfully, but these errors were encountered: