Jump to content

New Module... Import requests


90N45

Recommended Posts

I am in the process of building a new module for the MK7. I am using a python package called Requests but unfortunately the pineapple does not have this package installed.

For personal testing, how can I install pip to use Requests? (opkg install python3-pip failed).

For publishing in the Hak5 GitHub module repository: How can it be pushed, if nobody got this python package by default?

 

To use this package is literally my final important step to get this new module working. I saw some other modules using urllib.request instead of Requests and now I will try out this... but I would still like to know if I could have used requests by chance.

Link to comment
Share on other sites

3 hours ago, 90N45 said:

how can I install pip to use Requests? (opkg install python3-pip failed)

Not sure why it fails when you try doing it, it works for me;
 

opkg update

opkg install python3-pip

python -m pip install requests

 

3 hours ago, 90N45 said:

How can it be pushed, if nobody got this python package by default?

Have you been reading the developer docs? For example:

https://hak5.github.io/mk7-docs/docs/python/helpers/opkg_helpers/opkg_helpers/

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...