Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run code in windows #18

Open
piyushdivyankar1994 opened this issue Aug 29, 2017 · 0 comments
Open

Unable to run code in windows #18

piyushdivyankar1994 opened this issue Aug 29, 2017 · 0 comments

Comments

@piyushdivyankar1994
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant