-
Notifications
You must be signed in to change notification settings - Fork 40
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
require crypto-js.js commonJS runing error #252
Comments
from pythonmonkey import eval as js_eval, require as js_require
CryptoJS = js_require('./crypto-js')
text = CryptoJS.MD5('123456').toString()
print('md5 text:',text)
text = CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse('123456'))
print('base64 text:',text) |
|
~ minimal test case
|
In This implies that PythonMonkey is invoking |
@hjdhnx - this is probably-fixed in PR 227. Stay tuned, I expect a new release in a week or two with that PR landed. |
I just tried @wesgarland's minimal test case on that branch, and it works great, so you have that to look forward to (as this is effectively a duplicate of #172) . |
Confirmed fixed on main already as well - 0.3.1.dev39+67e65d0 |
pythonmonkey-0.3.1.dev42+6b5fb9d-cp38-cp38-win_amd64.whl fixed this bug |
Issue type
Bug
How did you install PythonMonkey?
Installed from pip
OS platform and distribution
windows11
Python version (
python --version
)3.8.8
PythonMonkey version (
pip show pythonmonkey
)0.3.0
Bug Description
I try to require crypto-js.js,but call it failed
my code is such as this:
md5 text get empty string
base64 text raise an error
test_file link is view here
Standalone code to reproduce the issue
No response
Relevant log output or backtrace
No response
Additional info if applicable
No response
What branch of PythonMonkey were you developing on? (If applicable)
No response
The text was updated successfully, but these errors were encountered: