rasguanabana / ytfs

YouTube File System
MIT License
1.1k stars 45 forks source link

TypeError: '<' not supported between instances of 'int' and 'str' #26

Open gretel opened 7 years ago

gretel commented 7 years ago

getting this while searching, using Python 3.6.0:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/fuse.py", line 495, in _wrapper
    return func(*args, **kwargs) or 0
  File "/usr/local/lib/python3.6/site-packages/fuse.py", line 572, in open
    fi.flags)
  File "/usr/local/lib/python3.6/site-packages/fuse.py", line 800, in __call__
    return getattr(self, op)(*args)
  File "/usr/local/lib/python3.6/site-packages/ytfs/ytfs.py", line 323, in mod
    return method(self, self.__pathToTuple(path), *args)
  File "/usr/local/lib/python3.6/site-packages/ytfs/ytfs.py", line 565, in open
    if yts.obtainInfo(): #FIXME coz it's ugly.
  File "/usr/local/lib/python3.6/site-packages/ytfs/stor.py", line 235, in obtainInfo
    elif self.preferences['audio']: fm = sorted(aud, key=_k)
TypeError: '<' not supported between instances of 'int' and 'str'
naviabbot commented 7 years ago

I'm getting this while trying to open a file. Python 3.5.2

rasguanabana commented 7 years ago

Hi, what version do you use? Please try latest version from master. PyPI package needs to be updated, hopefully I'll do this soon