{"action":"created","issue":{"url":"https://api.github.com/repos/crossbario/crossbar/issues/840","repository_url":"https://api.github.com/repos/crossbario/crossbar","labels_url":"https://api.github.com/repos/crossbario/crossbar/issues/840/labels{/name}","comments_url":"https://api.github.com/repos/crossbario/crossbar/issues/840/comments","events_url":"https://api.github.com/repos/crossbario/crossbar/issues/840/events","html_url":"https://github.com/crossbario/crossbar/issues/840","id":167250135,"number":840,"title":"TypeError with Hello World application","user":{"login":"zrneely","id":5863146,"avatar_url":"https://avatars.githubusercontent.com/u/5863146?v=3","gravatar_id":"","url":"https://api.github.com/users/zrneely","html_url":"https://github.com/zrneely","followers_url":"https://api.github.com/users/zrneely/followers","following_url":"https://api.github.com/users/zrneely/following{/other_user}","gists_url":"https://api.github.com/users/zrneely/gists{/gist_id}","starred_url":"https://api.github.com/users/zrneely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zrneely/subscriptions","organizations_url":"https://api.github.com/users/zrneely/orgs","repos_url":"https://api.github.com/users/zrneely/repos","events_url":"https://api.github.com/users/zrneely/events{/privacy}","received_events_url":"https://api.github.com/users/zrneely/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/crossbario/crossbar/labels/Python%203","name":"Python 3","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-07-24T19:39:26Z","updated_at":"2016-09-13T08:36:16Z","closed_at":"2016-08-21T18:03:05Z","body":"I created a simple Crossbar server with `crossbar init`. I modified the configuration by removing the \"web\" transport (since I won't need it) and changing the port and realm name.\r\n\r\nI have a simple application component in Python which joins the realm and prints a debugging message (I'm trying to get a Hello World program to work). When I start the crossbar server with `crossbar start` and then start my Python application, I get the following error from the server and the `onJoin` method of the component is never called.\r\n\r\n```\r\n2016-07-24T12:29:39-0700 [Router      20988] Unhandled Error\r\nTraceback (most recent call last):\r\n  File \"/home/zrneely/python/project/venv/lib/python3.5/site-packages/twisted/python/log.py\", line 101, in callWithLogger\r\n    return callWithContext({\"system\": lp}, func, *args, **kw)\r\n  File \"/home/zrneely/python/project/venv/lib/python3.5/site-packages/twisted/python/log.py\", line 84, in callWithContext\r\n    return context.call({ILogContext: newCtx}, func, *args, **kw)\r\n  File \"/home/zrneely/python/project/venv/lib/python3.5/site-packages/twisted/python/context.py\", line 118, in callWithContext\r\n    return self.currentContext().callWithContext(ctx, func, *args, **kw)\r\n  File \"/home/zrneely/python/project/venv/lib/python3.5/site-packages/twisted/python/context.py\", line 81, in callWithContext\r\n    return func(*args,**kw)\r\n--- <exception caught here> ---\r\n  File \"/home/zrneely/python/project/venv/lib/python3.5/site-packages/twisted/internet/posixbase.py\", line 597, in _doReadOrWrite\r\n    why = selectable.doRead()\r\n  File \"/home/zrneely/python/project/venv/lib/python3.5/site-packages/twisted/internet/tcp.py\", line 209, in doRead\r\n    return self._dataReceived(data)\r\n  File \"/home/zrneely/python/project/venv/lib/python3.5/site-packages/twisted/internet/tcp.py\", line 215, in _dataReceived\r\n    rval = self.protocol.dataReceived(data)\r\n  File \"/home/zrneely/python/project/venv/lib/python3.5/site-packages/crossbar/router/unisocket.py\", line 96, in dataReceived\r\n    request_uri_first_component = filter(lambda x: x.strip() != \"\", request_uri.split('/'))\r\nbuiltins.TypeError: a bytes-like object is required, not 'str'\r\n```\r\n\r\nThis is happening in a Python 3.5 venv under Ubuntu 16.04 (Linux 4.4.0-31). Crossbar was installed with `pip install crossbar`. This occurs both when Twisted 16.3.0 is installed, and when 16.2.0 is installed."},"comment":{"url":"https://api.github.com/repos/crossbario/crossbar/issues/comments/246613534","html_url":"https://github.com/crossbario/crossbar/issues/840#issuecomment-246613534","issue_url":"https://api.github.com/repos/crossbario/crossbar/issues/840","id":246613534,"user":{"login":"pathakchirag7","id":12964596,"avatar_url":"https://avatars.githubusercontent.com/u/12964596?v=3","gravatar_id":"","url":"https://api.github.com/users/pathakchirag7","html_url":"https://github.com/pathakchirag7","followers_url":"https://api.github.com/users/pathakchirag7/followers","following_url":"https://api.github.com/users/pathakchirag7/following{/other_user}","gists_url":"https://api.github.com/users/pathakchirag7/gists{/gist_id}","starred_url":"https://api.github.com/users/pathakchirag7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pathakchirag7/subscriptions","organizations_url":"https://api.github.com/users/pathakchirag7/orgs","repos_url":"https://api.github.com/users/pathakchirag7/repos","events_url":"https://api.github.com/users/pathakchirag7/events{/privacy}","received_events_url":"https://api.github.com/users/pathakchirag7/received_events","type":"User","site_admin":false},"created_at":"2016-09-13T08:36:16Z","updated_at":"2016-09-13T08:36:16Z","body":"crossbar gives me following exception when I tried to start it in windows 10 with python 3.5 installed.\r\n**crossbar.error.cannot_start: Failed to start native worker: a bytes-like object is required, not 'str' []**\r\n```\r\nC:\\Windows\\system32>crossbar start\r\n2016-09-13T11:20:41+0530 [Controller   6336]      __  __  __  __  __  __      __     __\r\n2016-09-13T11:20:41+0530 [Controller   6336]     /  `|__)/  \\/__`/__`|__) /\\ |__)  |/  \\\r\n2016-09-13T11:20:41+0530 [Controller   6336]     \\__,|  \\\\__/.__/.__/|__)/~~\\|  \\. |\\__/\r\n2016-09-13T11:20:41+0530 [Controller   6336]\r\n2016-09-13T11:20:41+0530 [Controller   6336]     Crossbar.io Version: 0.15.0\r\n2016-09-13T11:20:41+0530 [Controller   6336]     Node Public Key: 4d1dfe29b8dd51ccec3d8284426576349e8664337a983d80bcf9c3bf54fdfae8\r\n2016-09-13T11:20:41+0530 [Controller   6336]\r\n2016-09-13T11:20:41+0530 [Controller   6336] Running from node directory 'C:\\Windows\\system32\\.crossbar'\r\n2016-09-13T11:20:41+0530 [Controller   6336] Controller process starting (CPython-IOCPReactor) ..\r\n2016-09-13T11:20:41+0530 [Controller   6336] Node configuration loaded from 'config.json'\r\n2016-09-13T11:20:41+0530 [Controller   6336] Node ID 'DESKTOP-FRH5Q37' set from hostname\r\n2016-09-13T11:20:41+0530 [Controller   6336] Using default node shutdown triggers ['shutdown_on_worker_exit']\r\n2016-09-13T11:20:41+0530 [Controller   6336] Joined realm 'crossbar' on node management router\r\n2016-09-13T11:20:41+0530 [Controller   6336] Starting Router with ID 'worker-001'...\r\n2016-09-13T11:20:41+0530 [Controller   6336] Interal error: connection to forked native worker failed ([Failure instance: Traceback: <class 'TypeError'>: a bytes-like object is required, not 'str'\r\nc:\\users\\chirag\\appdata\\local\\programs\\python\\python35-32\\lib\\site-packages\\twisted\\internet\\defer.py:1185:_inlineCallbacks\r\nc:\\users\\chirag\\appdata\\local\\programs\\python\\python35-32\\lib\\site-packages\\crossbar\\controller\\node.py:653:_startup\r\nc:\\users\\chirag\\appdata\\local\\programs\\python\\python35-32\\lib\\site-packages\\crossbar\\controller\\process.py:320:start_router\r\nc:\\users\\chirag\\appdata\\local\\programs\\python\\python35-32\\lib\\site-packages\\crossbar\\controller\\process.py:606:_start_native_worker\r\n--- <exception caught here> ---\r\nc:\\users\\chirag\\appdata\\local\\programs\\python\\python35-32\\lib\\site-packages\\crossbar\\twisted\\processutil.py:117:connect\r\nc:\\users\\chirag\\appdata\\local\\programs\\python\\python35-32\\lib\\site-packages\\twisted\\internet\\iocpreactor\\reactor.py:258:spawnProcess\r\nc:\\users\\chirag\\appdata\\local\\programs\\python\\python35-32\\lib\\site-packages\\twisted\\internet\\_dumbwin32proc.py:174:__init__\r\nc:\\users\\chirag\\appdata\\local\\programs\\python\\python35-32\\lib\\site-packages\\twisted\\python\\win32.py:103:quoteArguments\r\nc:\\users\\chirag\\appdata\\local\\programs\\python\\python35-32\\lib\\site-packages\\twisted\\python\\win32.py:103:<listcomp>\r\nc:\\users\\chirag\\appdata\\local\\programs\\python\\python35-32\\lib\\site-packages\\twisted\\python\\win32.py:90:cmdLineQuote\r\n])\r\n2016-09-13T11:20:41+0530 [Controller   6336] Failed to start native worker: a bytes-like object is required, not 'str'\r\n2016-09-13T11:20:41+0530 [Controller   6336] crossbar.error.cannot_start: Failed to start native worker: a bytes-like object is required, not 'str' []\r\n```"}}
{"actor":{"display_login":"pathakchirag7"}}