Skip to content

Unable to run code in windows  #18

@piyushdivyankar1994

Description

@piyushdivyankar1994

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions