benjaminguinaudeau / tiktokr

An R Scraper for Tiktok
Other
49 stars 7 forks source link

No module named 'requests' when initiating tiktokr #12

Closed adamkthecoder closed 4 years ago

adamkthecoder commented 4 years ago

Wondering if anybody has feedback on this. When I try initiating tik tokr, I am getting an error that says:

Error in py_run_file_impl(file, local, convert) : ModuleNotFoundError: No module named 'requests'

Detailed traceback: File "", line 8, in File "/Users/.../Library/R/4.0/library/reticulate/python/rpytools/loader.py", line 24, in _import_hook level=level

stevesteve2 commented 4 years ago

I tried this: py_install("requests", pip = TRUE) And it worked.

(Though it stopped working about a week ago, so I have other problems...)

adamkthecoder commented 4 years ago

Thank you so much! It worked!