DiKorsch / D2ModdinPyClient

Crossplatfom equivalence to https://github.com/kidovate/D2ModdinClient
5 stars 4 forks source link

AttributeError: 'NoneType' object has no attribute 'close' #5

Closed dragonator closed 10 years ago

dragonator commented 10 years ago

Hello , I have the following 2 errors when I start the program.Here they are:

[dragonator@VOLTRON src]$ python2 main.py Unhandled exception in thread started by <bound method XSocketsClient.start of <d2mp.utils.xsockets.XSocketsClient object at 0x7f93aa72e350>> Traceback (most recent call last): File "/home/dragonator/Downloads/d2modd/src/d2mp/utils/xsockets.py", line 157, in start self.webSocket.run_forever() File "/usr/lib/python2.7/site-packages/websocket_client-0.15.0-py2.7.egg/websocket/init.py", line 1096, in run_forever self.sock.close() File "/usr/lib/python2.7/site-packages/websocket_client-0.15.0-py2.7.egg/websocket/init.py", line 889, in close self._closeInternal() File "/usr/lib/python2.7/site-packages/websocket_client-0.15.0-py2.7.egg/websocket/init.py", line 892, in _closeInternal self.sock.close() AttributeError: 'NoneType' object has no attribute 'close' libpng warning: iCCP: Not recognizing known sRGB profile that has been edited

I'm getting the tray icon along with the tray right-click menu, but nothing more.No GUI, no message for establishing connection....nothing.

I'm using Arch Linux... Till now I was playling Dota 2 through Wine, cause there are less bugs, but I couldn't run this app through Wine. Is there any way? It would be the best. If there isn't - how can I fix this ?

Please help ! Best regads

DiKorsch commented 10 years ago

The libpng warnings seems to be ingorable.

The other error was because of the change of the server url. I have fixed it in the latest commit. Pull the newest version, and it should be running now.