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

NameError in tinytex_download.py #5

Open
zietzm opened this issue Apr 28, 2024 · 1 comment
Open

NameError in tinytex_download.py #5

zietzm opened this issue Apr 28, 2024 · 1 comment

Comments

@zietzm
Copy link
Contributor

zietzm commented Apr 28, 2024

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!

@JessicaTegner
Copy link
Owner

@zietzm feel free to open a pr, to clean it up

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

2 participants