{"action":"created","issue":{"url":"https://api.github.com/repos/sixty-north/segpy/issues/28","repository_url":"https://api.github.com/repos/sixty-north/segpy","labels_url":"https://api.github.com/repos/sixty-north/segpy/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/sixty-north/segpy/issues/28/comments","events_url":"https://api.github.com/repos/sixty-north/segpy/issues/28/events","html_url":"https://github.com/sixty-north/segpy/issues/28","id":139674728,"number":28,"title":"install fails on python 2","user":{"login":"weiliu620","id":6721243,"avatar_url":"https://avatars.githubusercontent.com/u/6721243?v=3","gravatar_id":"","url":"https://api.github.com/users/weiliu620","html_url":"https://github.com/weiliu620","followers_url":"https://api.github.com/users/weiliu620/followers","following_url":"https://api.github.com/users/weiliu620/following{/other_user}","gists_url":"https://api.github.com/users/weiliu620/gists{/gist_id}","starred_url":"https://api.github.com/users/weiliu620/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weiliu620/subscriptions","organizations_url":"https://api.github.com/users/weiliu620/orgs","repos_url":"https://api.github.com/users/weiliu620/repos","events_url":"https://api.github.com/users/weiliu620/events{/privacy}","received_events_url":"https://api.github.com/users/weiliu620/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-09T19:21:51Z","updated_at":"2016-03-10T08:28:22Z","closed_at":"2016-03-10T08:28:22Z","body":"I git cloned the code and built it successfully. But when I 'python setup.py install --user', I got errors: \r\n========= errors ====================\r\n  File \"build/bdist.linux-x86_64/egg/segpy/binary_reel_header.py\", line 5\r\n    class BinaryReelHeader(metaclass=FormatMeta):\r\n                                    ^\r\nSyntaxError: invalid syntax\r\n......\r\nbyte-compiling build/bdist.linux-x86_64/egg/segpy/toolkit.py to toolkit.pyc\r\n  File \"build/bdist.linux-x86_64/egg/segpy/toolkit.py\", line 93\r\n    raise ValueError(\"Could not decode data sample format {!r}\".format(dsf)) from e\r\n                                                                                ^\r\nSyntaxError: invalid syntax\r\n\r\nbyte-compiling build/bdist.linux-x86_64/egg/segpy/datatypes.py to datatypes.pyc\r\nbyte-compiling build/bdist.linux-x86_64/egg/segpy/reader.py to reader.pyc\r\n  File \"build/bdist.linux-x86_64/egg/segpy/reader.py\", line 801\r\n    print(self._character * (required - existing), end='')\r\n                                                      ^\r\nSyntaxError: invalid syntax\r\n\r\nbyte-compiling build/bdist.linux-x86_64/egg/segpy/__init__.py to __init__.pyc\r\nbyte-compiling build/bdist.linux-x86_64/egg/segpy/textual_reel_header.py to textual_reel_header.pyc\r\nbyte-compiling build/bdist.linux-x86_64/egg/segpy/util.py to util.pyc\r\n  File \"build/bdist.linux-x86_64/egg/segpy/util.py\", line 24\r\n    yield from zip(a, b)\r\n             ^\r\nSyntaxError: invalid syntax\r\n\r\nbyte-compiling build/bdist.linux-x86_64/egg/segpy/trace_header.py to trace_header.pyc\r\n  File \"build/bdist.linux-x86_64/egg/segpy/trace_header.py\", line 5\r\n    class TraceHeaderRev0(metaclass=FormatMeta):\r\n                                   ^\r\nSyntaxError: invalid syntax\r\n\r\nbyte-compiling build/bdist.linux-x86_64/egg/segpy/header.py to header.pyc\r\n  File \"build/bdist.linux-x86_64/egg/segpy/header.py\", line 36\r\n    .format(keyword, self.__class__.__name__)) from e\r\n                                                  ^\r\nSyntaxError: invalid syntax\r\n\r\nbyte-compiling build/bdist.linux-x86_64/egg/segpy/types.py to types.pyc\r\nbyte-compiling build/bdist.linux-x86_64/egg/segpy/catalog.py to catalog.pyc\r\n  File \"build/bdist.linux-x86_64/egg/segpy/catalog.py\", line 271\r\n    yield from ((i, j) for i in self._i_range for j in self._j_range)\r\n             ^\r\nSyntaxError: invalid syntax\r\n\r\nbyte-compiling build/bdist.linux-x86_64/egg/segpy/dataset.py to dataset.pyc\r\n  File \"build/bdist.linux-x86_64/egg/segpy/dataset.py\", line 4\r\n    class Dataset(metaclass=ABCMeta):\r\n                           ^\r\nSyntaxError: invalid syntax\r\n\r\nbyte-compiling build/bdist.linux-x86_64/egg/segpy/writer.py to writer.pyc\r\ncreating build/bdist.linux-x86_64/egg/EGG-INFO\r\ncopying segpy.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO\r\ncopying segpy.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO\r\ncopying segpy.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO\r\ncopying segpy.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO\r\ncopying segpy.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO\r\ncopying segpy.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO\r\nzip_safe flag not set; analyzing archive contents...\r\ncreating 'dist/segpy-2.0.0a3-py2.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it\r\nremoving 'build/bdist.linux-x86_64/egg' (and everything under it)\r\nProcessing segpy-2.0.0a3-py2.7.egg\r\nRemoving /home/weiliu/.local/lib/python2.7/site-packages/segpy-2.0.0a3-py2.7.egg\r\nCopying segpy-2.0.0a3-py2.7.egg to /home/weiliu/.local/lib/python2.7/site-packages\r\nsegpy 2.0.0a3 is already the active version in easy-install.pth\r\n============ end of errors ================\r\nI'm using python 2.7.6 on Ubuntu 14.04 64 bit. Anything I can try?\r\n\r\nWould be great to have a working python library for segy data. \r\n"},"comment":{"url":"https://api.github.com/repos/sixty-north/segpy/issues/comments/194731530","html_url":"https://github.com/sixty-north/segpy/issues/28#issuecomment-194731530","issue_url":"https://api.github.com/repos/sixty-north/segpy/issues/28","id":194731530,"user":{"login":"rob-smallshire","id":1044137,"avatar_url":"https://avatars.githubusercontent.com/u/1044137?v=3","gravatar_id":"","url":"https://api.github.com/users/rob-smallshire","html_url":"https://github.com/rob-smallshire","followers_url":"https://api.github.com/users/rob-smallshire/followers","following_url":"https://api.github.com/users/rob-smallshire/following{/other_user}","gists_url":"https://api.github.com/users/rob-smallshire/gists{/gist_id}","starred_url":"https://api.github.com/users/rob-smallshire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rob-smallshire/subscriptions","organizations_url":"https://api.github.com/users/rob-smallshire/orgs","repos_url":"https://api.github.com/users/rob-smallshire/repos","events_url":"https://api.github.com/users/rob-smallshire/events{/privacy}","received_events_url":"https://api.github.com/users/rob-smallshire/received_events","type":"User","site_admin":false},"created_at":"2016-03-10T08:28:22Z","updated_at":"2016-03-10T08:28:22Z","body":"Segpy does not support legacy Python 2. Segpy is only supported on Python 3.3+.\r\n\r\nIf Python 2 support is important to you you can consider contracting the developers of Segpy, Sixty North AS http://sixty-north.com, to backport Segpy to Python 2.7. Otherwise, we recommend you use a more modern Python version with Segpy."}}