Skip to content

NameError in tinytex_download.py #5

Description

@zietzm

Thanks for the nice project!

I'm trying to use pytinytex but am getting the following error:

NameError: name 'urllib' is not defined. Did you forget to import 'urllib'?

in reference to

except urllib.error.HTTPError as e:

It looks like urllib is only imported in this block:

try:
from urllib.request import urlopen
except ImportError:
from urllib import urlopen

but should also be imported at the top level.

Happy to open a quick PR if desired. Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions