Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with doi2pdf on Mac OS #3

Closed
kellertuer opened this issue Sep 24, 2019 · 2 comments
Closed

Problems with doi2pdf on Mac OS #3

kellertuer opened this issue Sep 24, 2019 · 2 comments

Comments

@kellertuer
Copy link
Contributor

I am having trouble using doi2pdf on Mac OS. With the python version

> python --version
Python 3.6.6 :: Anaconda, Inc.

I had to change line 50 of doi2pdfnames.py to

print(filename.encode("utf8"))

to make it work with python3, but then I get

Traceback (most recent call last):
  File "~/Work/Software/mathbin/doi2pdfname.py", line 3, in <module>
    from lxml import etree
ModuleNotFoundError: No module named 'lxml'

even before it fetches the pdf; still it stops after storing the temporary file without renaming.

@rolandherzog
Copy link
Collaborator

lxml needs to be installed for Python3. For Ubuntu there is a package so sudo apt install python3-lxml installed it for me. However there are other issues; possibly due to a syntax change in the Python3 version of lxml.
@gerw: I think it would be beneficial to switch to Python3 in the near future.

@gerw
Copy link
Owner

gerw commented Sep 24, 2019

I have translated doi2pdfname.py to Python 3.

@gerw gerw closed this as completed Sep 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants