topisani / Discurses

A Python discord CLI focused on usability
MIT License
140 stars 14 forks source link

TypeError: '<' not supported between instances of 'NoneType' and 'str' #50

Open KaKi87 opened 6 years ago

KaKi87 commented 6 years ago

Hi,

Here is my configuration :

But it doesn't work.

gnoring exception in on_ready                                                                                                               
Traceback (most recent call last):                                                                                                          
  File "/root/.pyenv/versions/3.6.5/lib/python3.6/site-packages/discord/client.py", line 307, in _run_event                                 
    yield from getattr(self, event)(*args, **kwargs)                                                                                        
  File "/root/.pyenv/versions/3.6.5/lib/python3.6/site-packages/discurses/discord.py", line 52, in on_ready                                 
    self.ui.on_ready()                                                                                                                      
  File "/root/.pyenv/versions/3.6.5/lib/python3.6/site-packages/discurses/ui/main.py", line 152, in on_ready                                
    self.set_tab(0)                                                                                                                         
  File "/root/.pyenv/versions/3.6.5/lib/python3.6/site-packages/discurses/ui/main.py", line 137, in set_tab                                 
    self.discord, [], None, name=str(tab + 1)))                                                                                             
  File "/root/.pyenv/versions/3.6.5/lib/python3.6/site-packages/discurses/ui/chat.py", line 46, in __init__                                 
    self.w_server_tree = ServerTree(self)                                                                                                   
  File "/root/.pyenv/versions/3.6.5/lib/python3.6/site-packages/discurses/ui/server_tree.py", line 15, in __init__                          
    key=lambda s: s.name):                                                                                                                  
TypeError: '<' not supported between instances of 'NoneType' and 'str'                                                                      

sans titre 3

Could you help me please ?

Thanks !

jerbob commented 6 years ago

I am having the same issue.

I am also using a pyenv installation of Python 3.6.5

thecaralice commented 5 years ago

Have the same