{"action":"created","issue":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/2209","labels_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2209/labels{/name}","comments_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2209/comments","events_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2209/events","html_url":"https://github.com/spyder-ide/spyder/issues/2209","id":59172475,"number":2209,"title":"Unable to Build Mac OS X Application","user":{"login":"0u812","id":7402146,"avatar_url":"https://avatars.githubusercontent.com/u/7402146?v=3","gravatar_id":"","url":"https://api.github.com/users/0u812","html_url":"https://github.com/0u812","followers_url":"https://api.github.com/users/0u812/followers","following_url":"https://api.github.com/users/0u812/following{/other_user}","gists_url":"https://api.github.com/users/0u812/gists{/gist_id}","starred_url":"https://api.github.com/users/0u812/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0u812/subscriptions","organizations_url":"https://api.github.com/users/0u812/orgs","repos_url":"https://api.github.com/users/0u812/repos","events_url":"https://api.github.com/users/0u812/events{/privacy}","received_events_url":"https://api.github.com/users/0u812/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/MacOS","name":"MacOS","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/spyder-ide/spyder/milestones/16","html_url":"https://github.com/spyder-ide/spyder/milestones/v2.3.4","labels_url":"https://api.github.com/repos/spyder-ide/spyder/milestones/16/labels","id":983235,"number":16,"title":"v2.3.4","description":null,"creator":{"login":"spyder-issues-migrator","id":11021581,"avatar_url":"https://avatars.githubusercontent.com/u/11021581?v=3","gravatar_id":"","url":"https://api.github.com/users/spyder-issues-migrator","html_url":"https://github.com/spyder-issues-migrator","followers_url":"https://api.github.com/users/spyder-issues-migrator/followers","following_url":"https://api.github.com/users/spyder-issues-migrator/following{/other_user}","gists_url":"https://api.github.com/users/spyder-issues-migrator/gists{/gist_id}","starred_url":"https://api.github.com/users/spyder-issues-migrator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spyder-issues-migrator/subscriptions","organizations_url":"https://api.github.com/users/spyder-issues-migrator/orgs","repos_url":"https://api.github.com/users/spyder-issues-migrator/repos","events_url":"https://api.github.com/users/spyder-issues-migrator/events{/privacy}","received_events_url":"https://api.github.com/users/spyder-issues-migrator/received_events","type":"User","site_admin":false},"open_issues":56,"closed_issues":3,"state":"open","created_at":"2015-02-17T17:19:03Z","updated_at":"2015-03-01T17:43:30Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-02-27T01:01:45Z","updated_at":"2015-03-02T03:18:12Z","closed_at":null,"body":"I'm trying to build a self-contained Mac app by following these instructions:\r\nhttps://bitbucket.org/spyder-ide/spyder-mac-app/src/8678bee94f6632753089949f165926164dadc8a0/Howto%20build%20the%20app.md?at=default\r\nFor the purposes of this issue, I'm using the official Spyder master branch at a67dfc900a579d13149cd2f5fe186d9fe4700b38. Basically, I am interested in how the official Spyder dmg is currently being built. Are these instructions still current? As you can see, they don't work for me. I'm on Mavericks FWIW.\r\n\r\nI've followed all of the instructions to the letter up to `python setup.py build_doc`, which fails with\r\n```\r\nerror: [Errno 2] No such file or directory: 'build/lib/spyderlib/doc'\r\n```\r\nFurthermore, if I try to run\r\n```\r\n/usr/local/bin/python create_app.py py2app\r\n```\r\n(I need to use `/usr/local/bin/python` and not simply `python` because this is where pip installs its packages), the create_app.py script fails with\r\n```\r\nRuntimeError: maximum recursion depth exceeded while calling a Python object\r\n```\r\n\r\nThe backtrace contains this:\r\n```\r\n  File \"/usr/local/lib/python2.7/site-packages/modulegraph/modulegraph.py\", line 924, in import_hook\r\n    m = self._load_tail(q, tail)\r\n  File \"/usr/local/lib/python2.7/site-packages/modulegraph/modulegraph.py\", line 1029, in _load_tail\r\n    result = self._import_module(head, mname, result)\r\n  File \"/usr/local/lib/python2.7/site-packages/modulegraph/modulegraph.py\", line 1105, in _import_module\r\n    m = self._load_module(fqname, fp, pathname, stuff)\r\n  File \"/usr/local/lib/python2.7/site-packages/modulegraph/modulegraph.py\", line 1178, in _load_module\r\n    self._scan_code(co, m)\r\n  File \"/usr/local/lib/python2.7/site-packages/modulegraph/modulegraph.py\", line 1251, in _scan_code\r\n    self._scan_ast(co, m)\r\n  File \"/usr/local/lib/python2.7/site-packages/modulegraph/modulegraph.py\", line 1260, in _scan_ast\r\n    visitor.visit(co)\r\n  File \"/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py\", line 241, in visit\r\n    return visitor(node)\r\n  File \"/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py\", line 249, in generic_visit\r\n    self.visit(item)\r\n  File \"/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py\", line 241, in visit\r\n    return visitor(node)\r\n  File \"/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py\", line 249, in generic_visit\r\n    self.visit(item)\r\n  File \"/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py\", line 241, in visit\r\n    return visitor(node)\r\n  File \"/usr/local/lib/python2.7/site-packages/modulegraph/modulegraph.py\", line 624, in visit_FunctionDef\r\n    self.generic_visit(node)\r\n  File \"/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py\", line 249, in generic_visit\r\n    self.visit(item)\r\n  File \"/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py\", line 241, in visit\r\n    return visitor(node)\r\n```\r\nand then has many repeats of\r\n```\r\n  File \"/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py\", line 241, in visit\r\n    return visitor(node)\r\n  File \"/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py\", line 246, in generic_visit\r\n    if isinstance(value, list):\r\n```"},"comment":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/comments/76653262","html_url":"https://github.com/spyder-ide/spyder/issues/2209#issuecomment-76653262","issue_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2209","id":76653262,"user":{"login":"ccordoba12","id":365293,"avatar_url":"https://avatars.githubusercontent.com/u/365293?v=3","gravatar_id":"","url":"https://api.github.com/users/ccordoba12","html_url":"https://github.com/ccordoba12","followers_url":"https://api.github.com/users/ccordoba12/followers","following_url":"https://api.github.com/users/ccordoba12/following{/other_user}","gists_url":"https://api.github.com/users/ccordoba12/gists{/gist_id}","starred_url":"https://api.github.com/users/ccordoba12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccordoba12/subscriptions","organizations_url":"https://api.github.com/users/ccordoba12/orgs","repos_url":"https://api.github.com/users/ccordoba12/repos","events_url":"https://api.github.com/users/ccordoba12/events{/privacy}","received_events_url":"https://api.github.com/users/ccordoba12/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T03:18:12Z","updated_at":"2015-03-02T03:18:12Z","body":"I think you need to use the exact modulegraph and other py2app \ndependency versions required by 0.8 when it was released. I'll let you \nknow what versions I'm using tomorrow (because I don't have my Mac here :-)\n\nEl 01/03/15 a las 22:14, Kyle Medley escribió:\n>\n> Thanks, but unfortunately I got the same error even after downgrading \n> to py2app 0.8. I was able to get past the recursion limit by adding\n>\n> |sys.setrecursionlimit(2000)\n> |\n>\n> to |setup.py|, but now I'm running into the following error (with \n> py2app 0.8):\n>\n> |Traceback (most recent call last):\n>    File \"create_app.py\", line 98, in <module>\n>      options={'py2app': OPTIONS}\n>    File \"/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py\", line 151, in setup\n>      dist.run_commands()\n>    File \"/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py\", line 953, in run_commands\n>      self.run_command(cmd)\n>    File \"/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py\", line 972, in run_command\n>      cmd_obj.run()\n>    File \"/usr/local/lib/python2.7/site-packages/py2app/build_app.py\", line 651, in run\n>      self._run()\n>    File \"/usr/local/lib/python2.7/site-packages/py2app/build_app.py\", line 857, in _run\n>      self.run_normal()\n>    File \"/usr/local/lib/python2.7/site-packages/py2app/build_app.py\", line 928, in run_normal\n>      mf = self.get_modulefinder()\n>    File \"/usr/local/lib/python2.7/site-packages/py2app/build_app.py\", line 806, in get_modulefinder\n>      debug=debug,\n>    File \"/usr/local/lib/python2.7/site-packages/modulegraph/find_modules.py\", line 341, in find_modules\n>      find_needed_modules(mf, scripts, includes, packages)\n>    File \"/usr/local/lib/python2.7/site-packages/modulegraph/find_modules.py\", line 256, in find_needed_modules\n>      mf.import_hook(mod)\n>    File \"/usr/local/lib/python2.7/site-packages/modulegraph/modulegraph.py\", line 923, in import_hook\n>      q, tail = self._find_head_package(parent, name, level)\n>    File \"/usr/local/lib/python2.7/site-packages/modulegraph/modulegraph.py\", line 1007, in _find_head_package\n>      q = self._import_module(head, qname, parent)\n>    File \"/usr/local/lib/python2.7/site-packages/modulegraph/modulegraph.py\", line 1105, in _import_module\n>      m = self._load_module(fqname, fp, pathname, stuff)\n>    File \"/usr/local/lib/python2.7/site-packages/modulegraph/modulegraph.py\", line 1178, in _load_module\n>      self._scan_code(co, m)\n>    File \"/usr/local/lib/python2.7/site-packages/modulegraph/modulegraph.py\", line 1253, in _scan_code\n>      compile(co, '-', 'exec', 0, True), m)\n>    File \"-\", line 16\n> SyntaxError: from __future__ imports must occur at the beginning of the file\n> |\n>\n> Any idea what the problem could be?\n>\n> —\n> Reply to this email directly or view it on GitHub \n> <https://github.com/spyder-ide/spyder/issues/2209#issuecomment-76653041>.\n>\n\n"}}