jimmysong / programmingbitcoin

Repository for the book
Other
1.75k stars 656 forks source link

Import Requests Error in Ch 5 #246

Closed vvronskyFX closed 2 years ago

vvronskyFX commented 2 years ago

I’m researching a technical solution to Ch. 5 in the book.

I am running the first cell in Ch 5 and there’s a comment to “define a test runner function”

I’m not sure how to import a test runner function as I didn’t have to do that in the previous chapters.

Here’s my output: image

What would be the action steps to be able to resolve this?

PS: Loving the book! Well thought out and extremely generous to publish such a work of art and human progress.

vvronskyFX commented 2 years ago

SOLUTION:

If on current MacOX: run: pip install requests in the root directory of your project

Here's an article outlining this: https://bobbyhadz.com/blog/python-no-module-named-requests

New Output Successful: Screen Shot 2022-07-22 at 9 40 43 PM