Closed Dhouha-ma closed 8 years ago
You're missing openssl and/or its python bindings
opkg install python-light
or build your own python with openssl
i tried both of your suggestion and it doesn't work
why it can be built with requests 2.8.0 ?
because we use a custom writer for Uploads, if you don't need uploads it will work with newer versions
did you try running pip install -r requirements.txt python main.py ?
i installed all the requirements and all works well except python-requests
Which version of openssl do you have ? What do you get with python -c "import ssl" ?
Which version of openssl do you have ?
openssl-1.0.0d
What do you get with python -c "import ssl"
i get nothing
Getting nothing means there is an OpenSSL library linked to your python, which is a good sign.
How do you compile requests ? pip install request==2.5.1 ?
I'm building on OpenWrt, i get source from https://pypi.python.org/simple/requests/ , i create package of python-requests 2.5.1 and run make package/python-requests/compile V=99
Did you try with pip ?
opkg update
opkg install distribute
opkg install python-openssl
opkg install python-bzip2
easy_install pip
from http://samjbrenner.com/notes/using-pip-to-install-python-packages-on-the-arduino-yun/ or https://blog.nyanpasu.me/install-python-and-pip-on-openwrt/
When i try them i get
No command 'opkg' found, did you mean: Command 'dpkg' from package 'dpkg' (main) opkg: command not found
anyway i create package for all other requirements and they works well, except this problem of ssl module
No I mean opkg the package manager for OpenWrt as far as I remember https://wiki.openwrt.org/doc/techref/opkg
Hi, I try to build pydio on openwrt, i an error of dependencies of (requests==2.5.1) so when i compile python-requests i get File "./setup.py", line 6, in
import requests
File "/home/dhouha/PFE/openwrt-na9xx-r25875-20121204/build_dir/target-mipsel_r2_uClibc-0.9.32/requests-2.5.1/requests/init.py", line 58, in
from . import utils
File "/home/dhouha/PFE/openwrt-na9xx-r25875-20121204/build_dir/target-mipsel_r2_uClibc-0.9.32/requests-2.5.1/requests/utils.py", line 26, in
from .compat import parse_http_list as _parse_list_header
File "/home/dhouha/PFE/openwrt-na9xx-r25875-20121204/build_dir/target-mipsel_r2_uClibc-0.9.32/requests-2.5.1/requests/compat.py", line 7, in
from .packages import chardet
File "/home/dhouha/PFE/openwrt-na9xx-r25875-20121204/build_dir/target-mipsel_r2_uClibc-0.9.32/requests-2.5.1/requests/packages/init.py", line 3, in
from . import urllib3
File "/home/dhouha/PFE/openwrt-na9xx-r25875-20121204/build_dir/target-mipsel_r2_uClibc-0.9.32/requests-2.5.1/requests/packages/urllib3/init.py", line 10, in
from .connectionpool import (
File "/home/dhouha/PFE/openwrt-na9xx-r25875-20121204/build_dir/target-mipsel_r2_uClibc-0.9.32/requests-2.5.1/requests/packages/urllib3/connectionpool.py", line 31, in
from .connection import (
File "/home/dhouha/PFE/openwrt-na9xx-r25875-20121204/build_dir/target-mipsel_r2uClibc-0.9.32/requests-2.5.1/requests/packages/urllib3/connection.py", line 45, in
from .util.ssl import (
File "/home/dhouha/PFE/openwrt-na9xx-r25875-20121204/build_dir/target-mipsel_r2uClibc-0.9.32/requests-2.5.1/requests/packages/urllib3/util/init.py", line 5, in
from .ssl import (
File "/home/dhouha/PFE/openwrt-na9xx-r25875-20121204/build_dir/target-mipsel_r2uClibc-0.9.32/requests-2.5.1/requests/packages/urllib3/util/ssl.py", line 12, in
import ssl
File "/home/dhouha/PFE/openwrt-na9xx-r25875-20121204/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib/python2.7/ssl.py", line 60, in
import _ssl # if we can't import it, let the error propagate
ImportError: No module named _ssl
what i'm missing ?