You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the following error when trying out the example code from the refextractdocs. I will explain my system below.
Error: TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
Installation Used
I have used pip install refextract via terminal on MacOS Version 10.11.6 (15G22010). I have success with the installation although I did have to manually install libmagic using brew install libmagic as I was getting an error inially.
Usage Used
I tried first,
from refextract import extract_references_from_file references = extract_references_from_file('some-local-filename.pdf') print(references)
and got the following error:
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
Then, similar to the example code from the docs, I changed the code to,
from refextract import extract_references_from_file references = extract_references_from_file('https://arxiv.org/pdf/1503.07589.pdf') print(references)
which is the same error - TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
The text was updated successfully, but these errors were encountered:
@tiffsea refextract uses pdftotext in the background. The error seems to be because refextract cannot find pdftotext installed in your system. Try installing it following the instructions for os dependencies here:
@tiffsea To my limited knowledge, pip install pdftotext installs some other package, which is different from what is needed here (correct me if i am wrong). pdftotext(1) version 3.00 is to be installed for refextract.
So, i installed XpdfReader instead (https://www.xpdfreader.com/pdftotext-man.html) using the commands:
I get the following error when trying out the example code from the
refextract
docs. I will explain my system below.Error: TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
Installation Used
I have used
pip install refextract
via terminal on MacOS Version 10.11.6 (15G22010). I have success with the installation although I did have to manually installlibmagic
usingbrew install libmagic
as I was getting an error inially.Usage Used
I tried first,
and got the following error:
Then, similar to the example code from the docs, I changed the code to,
which is the same error - TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
The text was updated successfully, but these errors were encountered: