ltsdw / gofile-downloader

Download files from https://gofile.io
GNU General Public License v3.0
140 stars 36 forks source link

'type' and 'NoneType' #4

Closed Falcon87262 closed 2 years ago

Falcon87262 commented 2 years ago

Hi i keep getting this error can you tell me how to resolve it

` python gofile-downloader.py https://gofile.io/d/GLankA Traceback (most recent call last): File "gofile-downloader.py", line 34, in class Main: File "gofile-downloader.py", line 35, in Main def init(self, url: str, password: str | None = None, max_workers: int = 5) -> None: TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'

ltsdw commented 2 years ago

Hi, can you please run it with python3, like this:

python3 gofile-downloader.py https://gofile.io/d/GLankA

and tell me if it works.

ltsdw commented 2 years ago

Also check if your python version is at least 3.10, as:

PEP 604 – Allow writing union types as X | Y

ltsdw commented 2 years ago

If you still having problems feel free to re open it. Closing.