{"action":"created","issue":{"url":"https://api.github.com/repos/manahl/arctic/issues/37","labels_url":"https://api.github.com/repos/manahl/arctic/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/manahl/arctic/issues/37/comments","events_url":"https://api.github.com/repos/manahl/arctic/issues/37/events","html_url":"https://github.com/manahl/arctic/issues/37","id":113843959,"number":37,"title":"how_to_use_arctic.py fails with SyntaxError: unexpected EOF while parsing on library.read()","user":{"login":"jeffneuen","id":1690162,"avatar_url":"https://avatars.githubusercontent.com/u/1690162?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffneuen","html_url":"https://github.com/jeffneuen","followers_url":"https://api.github.com/users/jeffneuen/followers","following_url":"https://api.github.com/users/jeffneuen/following{/other_user}","gists_url":"https://api.github.com/users/jeffneuen/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffneuen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffneuen/subscriptions","organizations_url":"https://api.github.com/users/jeffneuen/orgs","repos_url":"https://api.github.com/users/jeffneuen/repos","events_url":"https://api.github.com/users/jeffneuen/events{/privacy}","received_events_url":"https://api.github.com/users/jeffneuen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-10-28T15:12:21Z","updated_at":"2015-12-04T14:54:02Z","closed_at":null,"body":"Attempting to run the demo as a test, and getting errors on library.read().  Also, I get an error the first time I run store.initialize_library('username.scratch'), but the second time it did works.  I did have to make the following change to get import Arctic to run:\r\n\r\nstore/_version_store_utils.py, line 66:    if pd.__version__.startswith(\"0.14\"):\r\n\r\nSee paste of output included the EOF error below.  I'm not sure if it's a numpy bug or arctic, but I'm not sure where to go from here.\r\n\r\nPython 2.7.10 |Anaconda 2.3.0 (64-bit)| (default, Oct 19 2015, 18:04:42) \r\n[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\nAnaconda is brought to you by Continuum Analytics.\r\nPlease check out: http://continuum.io/thanks and https://anaconda.org\r\n>>> from arctic import Arctic\r\n>>> from datetime import datetime as dt\r\n>>> import pandas as pd\r\n>>> store = Arctic('localhost')\r\n>>> store.list_libraries()\r\n[u'NASDAQ', u'username.scratch']\r\n>>> store.initialize_library('username.scratch')\r\nNo handlers could be found for logger \"arctic.store.version_store\"\r\n>>> store.initialize_library('username.scratch')\r\n>>> library = store['username.scratch']\r\n>>> df = pd.DataFrame({'prices': [1, 2, 3]},[dt(2014, 1, 1), dt(2014, 1, 2), dt(2014, 1, 3)])\r\n>>> library.write('SYMBOL', df)\r\nVersionedItem(symbol=SYMBOL,library=arctic_username.scratch,data=<type 'NoneType'>,version=19,metadata=None\r\n>>> library.read('SYMBOL')\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/home/jeff/anaconda/lib/python2.7/site-packages/arctic/store/version_store.py\", line 319, in read\r\n    date_range=date_range, read_preference=read_preference, **kwargs)\r\n  File \"/home/jeff/anaconda/lib/python2.7/site-packages/arctic/store/version_store.py\", line 363, in _do_read\r\n    data = handler.read(self._arctic_lib, version, symbol, from_version=from_version, **kwargs)\r\n  File \"/home/jeff/anaconda/lib/python2.7/site-packages/arctic/store/_pandas_ndarray_store.py\", line 279, in read\r\n    item = super(PandasDataFrameStore, self).read(arctic_lib, version, symbol, **kwargs)\r\n  File \"/home/jeff/anaconda/lib/python2.7/site-packages/arctic/store/_pandas_ndarray_store.py\", line 193, in read\r\n    date_range=date_range, **kwargs)\r\n  File \"/home/jeff/anaconda/lib/python2.7/site-packages/arctic/store/_ndarray_store.py\", line 180, in read\r\n    return self._do_read(collection, version, symbol, index_range=index_range)\r\n  File \"/home/jeff/anaconda/lib/python2.7/site-packages/arctic/store/_ndarray_store.py\", line 219, in _do_read\r\n    dtype = self._dtype(version['dtype'], version.get('dtype_metadata', {}))\r\n  File \"/home/jeff/anaconda/lib/python2.7/site-packages/arctic/store/_ndarray_store.py\", line 139, in _dtype\r\n    return np.dtype(string, metadata=metadata)\r\n  File \"/home/jeff/anaconda/lib/python2.7/site-packages/numpy/core/_internal.py\", line 191, in _commastring\r\n    newitem = (dtype, eval(repeats))\r\n  File \"<string>\", line 1\r\n    (\r\n    ^\r\nSyntaxError: unexpected EOF while parsing\r\n>>> \r\n"},"comment":{"url":"https://api.github.com/repos/manahl/arctic/issues/comments/161985495","html_url":"https://github.com/manahl/arctic/issues/37#issuecomment-161985495","issue_url":"https://api.github.com/repos/manahl/arctic/issues/37","id":161985495,"user":{"login":"denisvolokh","id":261410,"avatar_url":"https://avatars.githubusercontent.com/u/261410?v=3","gravatar_id":"","url":"https://api.github.com/users/denisvolokh","html_url":"https://github.com/denisvolokh","followers_url":"https://api.github.com/users/denisvolokh/followers","following_url":"https://api.github.com/users/denisvolokh/following{/other_user}","gists_url":"https://api.github.com/users/denisvolokh/gists{/gist_id}","starred_url":"https://api.github.com/users/denisvolokh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denisvolokh/subscriptions","organizations_url":"https://api.github.com/users/denisvolokh/orgs","repos_url":"https://api.github.com/users/denisvolokh/repos","events_url":"https://api.github.com/users/denisvolokh/events{/privacy}","received_events_url":"https://api.github.com/users/denisvolokh/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T14:54:02Z","updated_at":"2015-12-04T14:54:02Z","body":"Hi, \r\n\r\nI have created container with jupyter and arctic and tried code from how_to_use_arctic.py file. \r\n[Dockerfile.txt](https://github.com/manahl/arctic/files/52142/Dockerfile.txt)\r\n\r\nIt crashing in the line 31:\r\n`library.read('SYMBOL')`\r\n\r\nHope it will help to reproduce this issue. \r\n\r\nThank you for your help.\r\n\r\n\r\n"}}