Go Down

Topic: Installing requests library on YUN 2 (Read 350 times) previous topic - next topic


Hello. I am trying to install the Python requests library on the YUN 2. Here is what I have tried so far and the errors I am dealing with:

1. Official Python Module Install Procedure:

Issue: When I enter "opkg install distribute" I receive the error: unknown package 'distribute'

2. Install without pip

Issue: Running setup.py : when I move the git repository over to the YUN and try to run this file with "python setup.py", I get error "No module named setuptools"

3. Install pip manually from file

Issue: Fails with Memory error

4. Increase YUN 2 storage with MicroSD card (in case we run out of storage running the pip install?)

Issue: Script fails with FAT32 formatting error

5. Update YUN 2 openwrt installation (the advanced way with the executable)

Issue: The windows binary fails after update the bootloader

6. Manually update the YUN 2 (the manual way using the github's files instead of stock)

Flash was successful (I think)

7. Try steps 1-3 again

Issue: the same nonsense as before, just with more lost time

8. Increase YUN storage by 1 GB using the github script instead of the official one


8. Try steps 1-3 yet again

Issue: same as before, except even more lost time and now I'm also hungry for lunch.

So after all of this, can someone please tell me how to install the requests library using a method I have not already attempted?

Thanks in advance.


Update: Now I have the YUN 2 flashed back to the the state given here:

And when I try to extend the storage, I am told there is not enough space...on a fresh install...


Well I did figure this out eventually. The key was to flash to the sysupgrade image, install pip by forcing easy install to not worry about https, then delete the downloads created in this process to clear space for requests. I still cannot extend the storage, though. Ohh well.

Go Up