Skip to content
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

A more reasonable error when importing js #401

Closed
vadimkantorov opened this issue Apr 25, 2019 · 0 comments
Closed

A more reasonable error when importing js #401

vadimkantorov opened this issue Apr 25, 2019 · 0 comments
Assignees

Comments

@vadimkantorov
Copy link

I realize that only from js import something is supported, but a more reasonable error message for import js would be very helpful:

import js
Error: TypeError: object of type 'NoneType' has no len()

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/lib/python3.7/site-packages/pyodide.py", line 42, in eval_code
    exec(compile(mod, '<exec>', mode='exec'), ns, ns)
  File "<exec>", line 1, in <module>
SystemError: <JsImport object at 0x81c2e8> returned a result with an error set
@mdboom mdboom self-assigned this Apr 30, 2019
@mdboom mdboom closed this as completed in c8db5b6 May 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants