{"action":"created","issue":{"url":"https://api.github.com/repos/nilearn/nilearn/issues/357","labels_url":"https://api.github.com/repos/nilearn/nilearn/issues/357/labels{/name}","comments_url":"https://api.github.com/repos/nilearn/nilearn/issues/357/comments","events_url":"https://api.github.com/repos/nilearn/nilearn/issues/357/events","html_url":"https://github.com/nilearn/nilearn/issues/357","id":54833849,"number":357,"title":"Nilearn not compatible with Python 2.6, Python 3+","user":{"login":"bcipolli","id":4072455,"avatar_url":"https://avatars.githubusercontent.com/u/4072455?v=3","gravatar_id":"","url":"https://api.github.com/users/bcipolli","html_url":"https://github.com/bcipolli","followers_url":"https://api.github.com/users/bcipolli/followers","following_url":"https://api.github.com/users/bcipolli/following{/other_user}","gists_url":"https://api.github.com/users/bcipolli/gists{/gist_id}","starred_url":"https://api.github.com/users/bcipolli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcipolli/subscriptions","organizations_url":"https://api.github.com/users/bcipolli/orgs","repos_url":"https://api.github.com/users/bcipolli/repos","events_url":"https://api.github.com/users/bcipolli/events{/privacy}","received_events_url":"https://api.github.com/users/bcipolli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-20T01:41:51Z","updated_at":"2015-01-20T06:37:58Z","closed_at":null,"body":"This is obviously known (see, for example, https://github.com/nilearn/nilearn/commit/e0f77613240be008a131da1a4a2908a6ea26713c), but not currently reflected in the `README.md` file (currently says: `Python >= 2.6`).  I suggest changing the documentation until this is fixed.\r\n\r\nHere are the issues I've found so far; I figured it's useful to document, and I'm willing to start migrating code (and getting Travis to run tests for 2.6 and 3.4), if that's cool.\r\n\r\nPython 2.6:\r\n* Using string.format() with \"{}\" (`nilearn/version.py`, `nilearn/plotting/plot_glass_brain.py`)\r\n* Using dictionary comprehensions (`nilearn/plotting/plot_glass_brain.py`)\r\n* Using `try... except Exception, e` syntax\r\n\r\nPython 3+:\r\n* Using `print \"string\"` (vs. `print (\"string\")`)\r\n* Using `urllib` / `urllib2` (in dataset download logic & tests)\r\n* Usage of `basestring` class (`nilearn/decomposition/multi_pca.py`)\r\n* Improper absolute imports of nilearn packages used (`nilearn/decomposition/__init__.py`, `nilearn/_utils/niimg_conversions.py`)\r\n* No `func_name` property available (`nilearn/_utils/cache_mixin.py`)\r\n* Use of `xrange`\r\n* Use of old-style octal literals (`0444` vs. `0o444`)"},"comment":{"url":"https://api.github.com/repos/nilearn/nilearn/issues/comments/70610895","html_url":"https://github.com/nilearn/nilearn/issues/357#issuecomment-70610895","issue_url":"https://api.github.com/repos/nilearn/nilearn/issues/357","id":70610895,"user":{"login":"bcipolli","id":4072455,"avatar_url":"https://avatars.githubusercontent.com/u/4072455?v=3","gravatar_id":"","url":"https://api.github.com/users/bcipolli","html_url":"https://github.com/bcipolli","followers_url":"https://api.github.com/users/bcipolli/followers","following_url":"https://api.github.com/users/bcipolli/following{/other_user}","gists_url":"https://api.github.com/users/bcipolli/gists{/gist_id}","starred_url":"https://api.github.com/users/bcipolli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcipolli/subscriptions","organizations_url":"https://api.github.com/users/bcipolli/orgs","repos_url":"https://api.github.com/users/bcipolli/repos","events_url":"https://api.github.com/users/bcipolli/events{/privacy}","received_events_url":"https://api.github.com/users/bcipolli/received_events","type":"User","site_admin":false},"created_at":"2015-01-20T06:37:58Z","updated_at":"2015-01-20T06:37:58Z","body":":+1: Sounds great, and am very close to having exactly that done :)\r\n\r\n@GaelVaroquaux One question: `scikit-learn`'s `.travis.yml` file doesn't deal with `NEURODEBIAN`.  Can you let me know how you'd like to include testing `NEURODEBIAN`?  Perhaps just on Python 2.7?  Not too familiar with it, so no idea what might make sense."}}