cebtenzzre / tumblr-utils

A fork of tumblr-utils with Python 3 support, bug fixes, and lots of features I found useful.
GNU General Public License v3.0
40 stars 8 forks source link

ImportError: No module named typing #1

Closed arete06 closed 4 years ago

arete06 commented 4 years ago

When trying to run the latest version I get the following error:

Traceback (most recent call last):
  File "tumblr_backup.py", line 23, in <module>
    from typing import TYPE_CHECKING
ImportError: No module named typing

I have tried importing the module but to no success.

cebtenzzre commented 4 years ago

It is recommended to use Python 3 with this fork. I unintentionally wrote the code to assume you have the typing module installed on Python 2, but I should be able to make it an optional dependency.

arete06 commented 4 years ago

My bad, since I had to use Python2 with the original fork I got used to it.

cebtenzzre commented 4 years ago

Well, this issue was supposed to be closed by (and correctly linked to) those two commits, but you closed it early and GitHub got confused. Oh well.

cebtenzzre commented 4 years ago

@sldx12 By the way, I recommended this fork to you because it has the --cookiefile option, which you can use if you go to Tumblr and dump the cookies to a file with an extension like cookies.txt (Chrome) or cookies.txt (Firefox). On the svc branch cookies are used for all API requests. I don't know whether the standard API even looks at cookies so it's just a shot in the dark.