-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
python: python3 urllib.request import error #8285
Comments
Will take a look. |
I have successfully flashed OpenWrt SNAPSHOT, r9420-c17a68c to my router to be able to reproduce your issue, then I install python3-urllib3 and it installed a lot of stuff including python3-email. See my log here: https://pastebin.com/dqrFi5um also you can find there that I have followed https://urllib3.readthedocs.io/en/latest/ |
I have not used urllib3 but the stock urllib that comes with py3. That one misses the email lib. Point was the default is unusable as it missses a critical dependency. |
try this:
this seems to work for me
the split of python3 & python packages was done arbitrary |
sure, it works like this (already did it, works as expected). The idea was to 1) remove urllib entirely and make it a stand-alone package, or 2) add the necessary dependencies to make it work "out of the box". urllib currently is useless and if you build openwrt from scratch you'll notice that upon running py3 it fails so you need to build it again to add email and then a third time to add idna (encodings) :) |
oh, ok ; that wasn't obvious to me the first time; i prefer 1) if that's ok |
@commodo 1) is perfect. A stripped down py interpreter is great. Then everybody can add stuff as needed. |
This is the result of this discussion: openwrt#8285 `urllib.request` requires the `email` module/lib, which was part of python3-light. This change moves the Lib/urllib folder from the python3-light into it's own package, making it lighter. At least this way, users that want `urllib` (on top of `python3-light`) will be forced to install it via opkg and this will make sure `python3-email` gets installed as well. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
@leonardpitzu @hnyman I think this can be closed? |
@jefferyto yes, thanks! |
This is the result of this discussion: openwrt#8285 `urllib.request` requires the `email` module/lib, which was part of python3-light. This change moves the Lib/urllib folder from the python3-light into it's own package, making it lighter. At least this way, users that want `urllib` (on top of `python3-light`) will be forced to install it via opkg and this will make sure `python3-email` gets installed as well. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
This is the result of this discussion: openwrt#8285 `urllib.request` requires the `email` module/lib, which was part of python3-light. This change moves the Lib/urllib folder from the python3-light into it's own package, making it lighter. At least this way, users that want `urllib` (on top of `python3-light`) will be forced to install it via opkg and this will make sure `python3-email` gets installed as well. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Maintainer: @commodo
Environment: ubuntu 18.04 64bit/openwrt main/latest - ath79
Description:
urllib (py3) is missing some dependencies
The text was updated successfully, but these errors were encountered: