{"action":"created","issue":{"url":"https://api.github.com/repos/ralhei/pyRserve/issues/8","labels_url":"https://api.github.com/repos/ralhei/pyRserve/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/ralhei/pyRserve/issues/8/comments","events_url":"https://api.github.com/repos/ralhei/pyRserve/issues/8/events","html_url":"https://github.com/ralhei/pyRserve/issues/8","id":93692216,"number":8,"title":"Parser error when using dbConnect","user":{"login":"nsh87","id":4327717,"avatar_url":"https://avatars.githubusercontent.com/u/4327717?v=3","gravatar_id":"","url":"https://api.github.com/users/nsh87","html_url":"https://github.com/nsh87","followers_url":"https://api.github.com/users/nsh87/followers","following_url":"https://api.github.com/users/nsh87/following{/other_user}","gists_url":"https://api.github.com/users/nsh87/gists{/gist_id}","starred_url":"https://api.github.com/users/nsh87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nsh87/subscriptions","organizations_url":"https://api.github.com/users/nsh87/orgs","repos_url":"https://api.github.com/users/nsh87/repos","events_url":"https://api.github.com/users/nsh87/events{/privacy}","received_events_url":"https://api.github.com/users/nsh87/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ralhei","id":1379835,"avatar_url":"https://avatars.githubusercontent.com/u/1379835?v=3","gravatar_id":"","url":"https://api.github.com/users/ralhei","html_url":"https://github.com/ralhei","followers_url":"https://api.github.com/users/ralhei/followers","following_url":"https://api.github.com/users/ralhei/following{/other_user}","gists_url":"https://api.github.com/users/ralhei/gists{/gist_id}","starred_url":"https://api.github.com/users/ralhei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralhei/subscriptions","organizations_url":"https://api.github.com/users/ralhei/orgs","repos_url":"https://api.github.com/users/ralhei/repos","events_url":"https://api.github.com/users/ralhei/events{/privacy}","received_events_url":"https://api.github.com/users/ralhei/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-07-08T04:30:19Z","updated_at":"2015-07-11T12:23:39Z","closed_at":null,"body":"Thanks for this very useful package, first of all. I can only assume this is a parser error based on the traceback, if it is not sorry.\r\n\r\n```shell\r\n[127.0.0.1:2200] out: >>> c.eval(\"packageVersion('RSQLite')\")\r\n[127.0.0.1:2200] out: [array([1, 0, 0], dtype=int32)]\r\n# Connect to a DB, or create it in the wd() if it doesn't exist\r\n[127.0.0.1:2200] out: >>> c.eval(\"con <- dbConnect(RSQLite::SQLite(), dbname='testdb')\")\r\n[127.0.0.1:2200] out: Traceback (most recent call last):\r\n[127.0.0.1:2200] out:   File \"<console>\", line 1, in <module>\r\n[127.0.0.1:2200] out:   File \"/server/env.example.com/local/lib/python2.7/site-packages/pyRserve/rconn.py\", line 76, in decoCheckIfClosed\r\n[127.0.0.1:2200] out:     return func(self, *args, **kw)\r\n[127.0.0.1:2200] out:   File \"/server/env.example.com/local/lib/python2.7/site-packages/pyRserve/rconn.py\", line 159, in eval\r\n[127.0.0.1:2200] out:     message = rparse(src, atomicArray=atomicArray)\r\n[127.0.0.1:2200] out:   File \"/server/env.example.com/local/lib/python2.7/site-packages/pyRserve/rparser.py\", line 606, in rparse\r\n[127.0.0.1:2200] out:     return rparser.parse()\r\n[127.0.0.1:2200] out:   File \"/server/env.example.com/local/lib/python2.7/site-packages/pyRserve/rparser.py\", line 414, in parse\r\n[127.0.0.1:2200] out:     message = self._parse()\r\n[127.0.0.1:2200] out:   File \"/server/env.example.com/local/lib/python2.7/site-packages/pyRserve/rparser.py\", line 441, in _parse\r\n[127.0.0.1:2200] out:     expression = self._parseExpr()\r\n[127.0.0.1:2200] out:   File \"/server/env.example.com/local/lib/python2.7/site-packages/pyRserve/rparser.py\", line 448, in _parseExpr\r\n[127.0.0.1:2200] out:     lexeme = self.lexer.nextExprHdr()\r\n[127.0.0.1:2200] out:   File \"/server/env.example.com/local/lib/python2.7/site-packages/pyRserve/rparser.py\", line 265, in nextExprHdr\r\n[127.0.0.1:2200] out:     (hex(rTypeCode), startLexpos, length))\r\n[127.0.0.1:2200] out: RParserError: Unknown SEXP type 0x7 found at lexpos 20, length 180\r\n# The connection and the DB is made, despite the warnings\r\n[127.0.0.1:2200] out: >>> c.eval('class(con)')\r\n[127.0.0.1:2200] out: AttrArray(['SQLiteConnection'],\r\n[127.0.0.1:2200] out:       dtype='|S16', attr={'package': array(['RSQLite'],\r\n[127.0.0.1:2200] out:       dtype='|S7')})\r\n```\r\n\r\nJust for reference, the same thing in R would be:\r\n```R\r\n> con <- dbConnect(RSQLite::SQLite(), dbname='testdb')\r\n> con\r\n<SQLiteConnection>\r\n> class(con)\r\n[1] \"SQLiteConnection\"\r\nattr(,\"package\")\r\n[1] \"RSQLite\"\r\n```\r\n\r\nI could imagine a parser error on `<SQLiteConnection>`, but note that there is no output from the command generating the error, `con <- dbConnect(RSQLite::SQLite(), dbname='testdb')`."},"comment":{"url":"https://api.github.com/repos/ralhei/pyRserve/issues/comments/120613258","html_url":"https://github.com/ralhei/pyRserve/issues/8#issuecomment-120613258","issue_url":"https://api.github.com/repos/ralhei/pyRserve/issues/8","id":120613258,"user":{"login":"ralhei","id":1379835,"avatar_url":"https://avatars.githubusercontent.com/u/1379835?v=3","gravatar_id":"","url":"https://api.github.com/users/ralhei","html_url":"https://github.com/ralhei","followers_url":"https://api.github.com/users/ralhei/followers","following_url":"https://api.github.com/users/ralhei/following{/other_user}","gists_url":"https://api.github.com/users/ralhei/gists{/gist_id}","starred_url":"https://api.github.com/users/ralhei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralhei/subscriptions","organizations_url":"https://api.github.com/users/ralhei/orgs","repos_url":"https://api.github.com/users/ralhei/repos","events_url":"https://api.github.com/users/ralhei/events{/privacy}","received_events_url":"https://api.github.com/users/ralhei/received_events","type":"User","site_admin":false},"created_at":"2015-07-11T12:23:39Z","updated_at":"2015-07-11T12:23:39Z","body":"Hi Nikhil, I've uploaded a new version (0.8.2) to pypi, this should fix your problem."}}