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

Handle more optional modules for OpenWrt #84

Open
timothyqiu opened this issue Dec 15, 2016 · 1 comment
Open

Handle more optional modules for OpenWrt #84

timothyqiu opened this issue Dec 15, 2016 · 1 comment

Comments

@timothyqiu
Copy link
Contributor

A major issue is that the json module is broken for python-light on OpenWrt. The module won't work without another system package called python-codecs.

As an alternative Python package, python-base on OpenWrt provides a much smaller subset of the Python standard library than python-light. Modules like atexit, tarfile, time, binascii, and even __future__ are all unavailable.

These modules are all imported without checking their existence.

@fffonion
Copy link
Owner

__future__ module can't be wrapped in a try statement. It's better to add proper notice in Readme then change the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants