{"action":"created","issue":{"url":"https://api.github.com/repos/datamade/usaddress/issues/76","labels_url":"https://api.github.com/repos/datamade/usaddress/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/datamade/usaddress/issues/76/comments","events_url":"https://api.github.com/repos/datamade/usaddress/issues/76/events","html_url":"https://github.com/datamade/usaddress/issues/76","id":58160560,"number":76,"title":"Install error on Python 2.7.6 on Ubuntu 14.04 LTS","user":{"login":"John-Nagle","id":942608,"avatar_url":"https://avatars.githubusercontent.com/u/942608?v=3","gravatar_id":"","url":"https://api.github.com/users/John-Nagle","html_url":"https://github.com/John-Nagle","followers_url":"https://api.github.com/users/John-Nagle/followers","following_url":"https://api.github.com/users/John-Nagle/following{/other_user}","gists_url":"https://api.github.com/users/John-Nagle/gists{/gist_id}","starred_url":"https://api.github.com/users/John-Nagle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/John-Nagle/subscriptions","organizations_url":"https://api.github.com/users/John-Nagle/orgs","repos_url":"https://api.github.com/users/John-Nagle/repos","events_url":"https://api.github.com/users/John-Nagle/events{/privacy}","received_events_url":"https://api.github.com/users/John-Nagle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-19T02:31:59Z","updated_at":"2015-02-20T18:52:20Z","closed_at":null,"body":"Install crashes badly on Ubuntu.  Some of the errors:\r\n\r\n    ERROR: /bin/sh: 1: xslt-config: not found\r\n    ** make sure the development packages of libxml2 and libxslt are installed **\r\n ...\r\n  Running setup.py install for parserator\r\n      File \"/usr/local/lib/python2.7/dist-packages/parserator/utils.py\", line 69\r\n        def fit(self, X, y, **params, model_path):\r\n                                    ^\r\n    SyntaxError: invalid syntax\r\n\r\nThere are hundreds of GCC warnings as an attempt is made to build \"crfsuite\", which isn't good enough code for the high warning levels enabled.\r\n\r\nAfter removing the existing installation of \"lxml\", PIP crashes trying to restore it:\r\n\r\nCleaning up...\r\nCommand /usr/bin/python -c \"import setuptools, tokenize;__file__='/tmp/pip_build_root/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" install --record /tmp/pip-MHzJKR-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/lxml\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/pip\", line 9, in <module>\r\n    load_entry_point('pip==1.5.4', 'console_scripts', 'pip')()\r\n  File \"/usr/lib/python2.7/dist-packages/pip/__init__.py\", line 185, in main\r\n    return command.main(cmd_args)\r\n  File \"/usr/lib/python2.7/dist-packages/pip/basecommand.py\", line 161, in main\r\n    text = '\\n'.join(complete_log)\r\nUnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 42: ordinal not in range(128)\r\n\r\nThe install may need the development library for libxslt, but it doesn't stop; it keeps plowing ahead and screwing up. It clearly wants one of the many lxml-related packages, but which one?\r\n\r\n \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/datamade/usaddress/issues/comments/75297153","html_url":"https://github.com/datamade/usaddress/issues/76#issuecomment-75297153","issue_url":"https://api.github.com/repos/datamade/usaddress/issues/76","id":75297153,"user":{"login":"John-Nagle","id":942608,"avatar_url":"https://avatars.githubusercontent.com/u/942608?v=3","gravatar_id":"","url":"https://api.github.com/users/John-Nagle","html_url":"https://github.com/John-Nagle","followers_url":"https://api.github.com/users/John-Nagle/followers","following_url":"https://api.github.com/users/John-Nagle/following{/other_user}","gists_url":"https://api.github.com/users/John-Nagle/gists{/gist_id}","starred_url":"https://api.github.com/users/John-Nagle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/John-Nagle/subscriptions","organizations_url":"https://api.github.com/users/John-Nagle/orgs","repos_url":"https://api.github.com/users/John-Nagle/repos","events_url":"https://api.github.com/users/John-Nagle/events{/privacy}","received_events_url":"https://api.github.com/users/John-Nagle/received_events","type":"User","site_admin":false},"created_at":"2015-02-20T18:52:19Z","updated_at":"2015-02-20T18:52:19Z","body":"That works fine. All the C++ parts of lxml now compile properly, and usaddress can run:\r\n\r\n>>> import usaddress\r\n\r\n>>> usaddress.parse('123 Main St. Suite 100 Chicago, IL')\r\n\r\n[('123', 'AddressNumber'), ('Main', 'StreetName'), ('St.', 'StreetNamePostType'), ('Suite', 'OccupancyType'), ('100', 'OccupancyIdentifier'), ('Chicago,', 'PlaceName'), ('IL', 'StateName')]\r\n>>> \r\n\r\n"}}