{"action":"opened","issue":{"url":"https://api.github.com/repos/Toblerity/rtree/issues/71","repository_url":"https://api.github.com/repos/Toblerity/rtree","labels_url":"https://api.github.com/repos/Toblerity/rtree/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/Toblerity/rtree/issues/71/comments","events_url":"https://api.github.com/repos/Toblerity/rtree/issues/71/events","html_url":"https://github.com/Toblerity/rtree/issues/71","id":148364652,"number":71,"title":"Some tests failure with Python 2.7 on Debian 8.3","user":{"login":"frallain","id":1921242,"avatar_url":"https://avatars.githubusercontent.com/u/1921242?v=3","gravatar_id":"","url":"https://api.github.com/users/frallain","html_url":"https://github.com/frallain","followers_url":"https://api.github.com/users/frallain/followers","following_url":"https://api.github.com/users/frallain/following{/other_user}","gists_url":"https://api.github.com/users/frallain/gists{/gist_id}","starred_url":"https://api.github.com/users/frallain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frallain/subscriptions","organizations_url":"https://api.github.com/users/frallain/orgs","repos_url":"https://api.github.com/users/frallain/repos","events_url":"https://api.github.com/users/frallain/events{/privacy}","received_events_url":"https://api.github.com/users/frallain/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-14T13:40:07Z","updated_at":"2016-04-14T13:40:07Z","closed_at":null,"body":"I am trying to make it pass all the tests but I am stuck on these 3 tests:\r\n\r\n```bash\r\napt-get install libspatialindex-c3 libspatialindex-dev libspatialindex3 libspatialindex3-dbg\r\nwget http://github.com/Toblerity/rtree/archive/master.tar.gz # (Latest commit 16bd3a7 on Oct 27, 2015)\r\ntar zxf master.tar.gz \r\ncd rtree-master/\r\npython setup.py install\r\npython setup.py test \r\n```\r\n\r\n```\r\nrunning test\r\nrunning egg_info\r\nwriting requirements to Rtree.egg-info/requires.txt\r\nwriting Rtree.egg-info/PKG-INFO\r\nwriting top-level names to Rtree.egg-info/top_level.txt\r\nwriting dependency_links to Rtree.egg-info/dependency_links.txt\r\nreading manifest file 'Rtree.egg-info/SOURCES.txt'\r\nreading manifest template 'MANIFEST.in'\r\nwriting manifest file 'Rtree.egg-info/SOURCES.txt'\r\nrunning build_ext\r\n/app/rtree-master/tests/BoundsCheck.txt\r\nDoctest: BoundsCheck.txt ... ok\r\n/app/rtree-master/tests/index.txt\r\nDoctest: index.txt ... FAIL\r\n/app/rtree-master/tests/properties.txt\r\nDoctest: properties.txt ... ok\r\n/app/rtree-master/tests/test_customStorage.txt\r\nDoctest: test_customStorage.txt ... ok\r\n/app/rtree-master/tests/test_misc.txt\r\nDoctest: test_misc.txt ... FAIL\r\n/app/rtree-master/tests/z_cleanup.txt\r\nDoctest: z_cleanup.txt ... FAIL\r\n\r\n======================================================================\r\nFAIL: /app/rtree-master/tests/index.txt\r\nDoctest: index.txt\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/doctest.py\", line 2226, in runTest\r\n    raise self.failureException(self.format_failure(new.getvalue()))\r\nAssertionError: Failed doctest test for index.txt\r\n  File \"/app/rtree-master/tests/index.txt\", line 0\r\n\r\n----------------------------------------------------------------------\r\nFile \"/app/rtree-master/tests/index.txt\", line 260, in index.txt\r\nFailed example:\r\n    sorted(hits)\r\nExpected:\r\n    [0, 4, 16, 27, 35, 40, 47, 50, 76, 80]\r\nGot:\r\n    [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]\r\n\r\n\r\n======================================================================\r\nFAIL: /app/rtree-master/tests/test_misc.txt\r\nDoctest: test_misc.txt\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/doctest.py\", line 2226, in runTest\r\n    raise self.failureException(self.format_failure(new.getvalue()))\r\nAssertionError: Failed doctest test for test_misc.txt\r\n  File \"/app/rtree-master/tests/test_misc.txt\", line 0\r\n\r\n----------------------------------------------------------------------\r\nFile \"/app/rtree-master/tests/test_misc.txt\", line 39, in test_misc.txt\r\nFailed example:\r\n    r = Rtree(f)\r\nException raised:\r\n    Traceback (most recent call last):\r\n      File \"/usr/lib/python2.7/doctest.py\", line 1315, in __run\r\n        compileflags, 1) in test.globs\r\n      File \"<doctest test_misc.txt[13]>\", line 1, in <module>\r\n        r = Rtree(f)\r\n      File \"/app/rtree-master/rtree/index.py\", line 212, in __init__\r\n        if os.path.exists(p):\r\n      File \"/usr/lib/python2.7/genericpath.py\", line 18, in exists\r\n        os.stat(path)\r\n    UnicodeEncodeError: 'ascii' codec can't encode character u'\\u4500' in position 26: ordinal not in range(128)\r\n\r\n\r\n======================================================================\r\nFAIL: /app/rtree-master/tests/z_cleanup.txt\r\nDoctest: z_cleanup.txt\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/doctest.py\", line 2226, in runTest\r\n    raise self.failureException(self.format_failure(new.getvalue()))\r\nAssertionError: Failed doctest test for z_cleanup.txt\r\n  File \"/app/rtree-master/tests/z_cleanup.txt\", line 0\r\n\r\n----------------------------------------------------------------------\r\nFile \"/app/rtree-master/tests/z_cleanup.txt\", line 12, in z_cleanup.txt\r\nFailed example:\r\n    for f in files:\r\n        try:\r\n            os.remove(f)\r\n        except OSError:\r\n            time.sleep(0.1)\r\n            os.remove(f)\r\nException raised:\r\n    Traceback (most recent call last):\r\n      File \"/usr/lib/python2.7/doctest.py\", line 1315, in __run\r\n        compileflags, 1) in test.globs\r\n      File \"<doctest z_cleanup.txt[5]>\", line 6, in <module>\r\n        os.remove(f)\r\n    OSError: [Errno 2] No such file or directory: 'gilename\\xe4\\x94\\x80abc.dat'\r\n\r\n\r\n----------------------------------------------------------------------\r\nRan 6 tests in 0.251s\r\n\r\nFAILED (failures=3)\r\nException NameError: \"global name 'rt' is not defined\" in <bound method PropertyHandle.__del__ of <rtree.index.PropertyHandle object at 0x7fc311190850>> ignored\r\nException NameError: \"global name 'rt' is not defined\" in <bound method PropertyHandle.__del__ of <rtree.index.PropertyHandle object at 0x7fc30627d110>> ignored\r\n```\r\nAny ideas of what could have gone wrong ?\r\n\r\nThanks for that piece of software\r\n\r\n"}}