you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 insightful - 3 fun4 insightful - 2 fun5 insightful - 3 fun -  (3 children)

or how about running

pip install -U pip
pip install psaw --upgrade

it looks like your line 251 is out of date? https://github.com/dmarx/psaw/blob/master/psaw/PushshiftAPI.py#L251

edit: I think that's it, you have psaw 0.0.10 from 3/10 notpsaw 0.0.12 from 3/18, hopefully they fixed this bug https://github.com/dmarx/psaw/blob/f8609bcc9dc945c2c1b0e732ac8dba25f19545fc/psaw/PushshiftAPI.py#L251

[–]stupidmechanic 4 insightful - 3 fun4 insightful - 2 fun5 insightful - 3 fun -  (2 children)

In reply to

"hmmm I haven't seen this one before, and it's not an issue with the archiver code.

what does

python --version 

output? maybe try running it with python3 like

python3 ./fetchlinks.py"

God, I'm an idiot!

python3 ./fetchlinks.py

made this error go away. Now going ahead. Need to set python3 as default interpreter instead of python2.7. Besides, I had to manually copy-paste the *.py files into my compilers, maybe that has something to do with this. Thanks man.

[–][deleted] 5 insightful - 2 fun5 insightful - 1 fun6 insightful - 2 fun -  (1 child)

cool, i was afraid it was bad advice so i deleted. im not too good at python stuff. I will add this advice to this other troubleshooting advice: https://github.com/libertysoft3/reddit-html-archiver/issues/18

[–]stupidmechanic 4 insightful - 2 fun4 insightful - 1 fun5 insightful - 2 fun -  (0 children)

Yes indeed, it seems to be a bad psaw installation. 0.0.10