txWebSocket icon indicating copy to clipboard operation
txWebSocket copied to clipboard

Unable to run code in windows

Open piyushdivyankar1994 opened this issue 7 years ago • 0 comments

Following is the traceback from running the code.

Traceback (most recent call last):
  File "simple_server.py", line 72, in <module>
    site = WebSocketSite(root)
  File "C:\Users\piyushdivyankar\Documents\Projects\asynchronous-programming\txW
ebSocket-master\txWebSocket-master\websocket.py", line 279, in __init__
    Site.__init__(self, resource, logPath, timeout)
  File "C:\Program Files\Anaconda2\lib\site-packages\twisted\web\server.py", lin
e 698, in __init__
    http.HTTPFactory.__init__(self, *args, **kwargs)
  File "C:\Program Files\Anaconda2\lib\site-packages\twisted\web\http.py", line
2789, in __init__
    logPath = os.path.abspath(logPath)
  File "C:\Program Files\Anaconda2\lib\ntpath.py", line 488, in abspath
    path = _getfullpathname(path)
TypeError: coercing to Unicode: need string or buffer, int found

Tried to change the value of root to a string with absolute file path, but that didn't work.

piyushdivyankar1994 avatar Aug 29 '17 03:08 piyushdivyankar1994