Go Down

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

AndrewCarluccio

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:
http://playground.arduino.cc/hardware/yun#installing_python_module

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

2. Install without pip
https://stackoverflow.com/questions/13270877/how-to-manually-install-a-pypi-module-without-pip-easy-install

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
https://stackoverflow.com/questions/43312812/python-2-7-no-module-named-setup-tools/43312980

Issue: Fails with Memory error

4. Increase YUN 2 storage with MicroSD card (in case we run out of storage running the pip install?)
https://www.arduino.cc/en/Tutorial/ExpandingYunDiskSpace

Issue: Script fails with FAT32 formatting error

5. Update YUN 2 openwrt installation (the advanced way with the executable)
https://forum.arduino.cc/index.php?topic=515869.0

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)
https://www.arduino.cc/en/Tutorial/YunUBootReflash
https://github.com/arduino/yun-go-updater

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

Success

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.






AndrewCarluccio

Update: Now I have the YUN 2 flashed back to the the state given here:
https://www.arduino.cc/en/Tutorial/YunUBootReflash

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

AndrewCarluccio

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