-
Notifications
You must be signed in to change notification settings - Fork 57
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
Calling JS library function fails stating object.clone is not a function #136
Comments
Hi, Your problem seems to be due to the There does seem to be a bug with .new handling, but it should be fixed with #137 |
Can you please checkout if pip install https://github.com/extremeheat/JSPyBridge/archive/fix-es5-class.zip fixes your issue? Seems to work per |
Hmm, upon running that install I seem to get this error:
|
You are probably not using the correct version of the package, that is what #137 is fixing, please test on the linked notebook any code you modified to ensure a clean environment. If you can reproduce please provide a colab or link to notebook. |
I see, this works now, thanks. |
Should be fixed in v1.2.1 |
I am trying to create a wrapper around the @smogon/calc library, and following its example essentially I am trying to re-implement this code-snippet with the python wrapper:
Here is what I am doing in python
Object creations works until I get to the damage line, the error states that
It looks like the way I am creating the Pokemon object is wrong, as it doesn't seem to have the clone() function that it's supposed to. How am I supposed to create it properly?
The text was updated successfully, but these errors were encountered: