{ "id": "63059", "key": "TIMOB-2427", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-04-15T03:19:29.000+0000", "created": "2011-04-15T03:19:28.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "build", "compile", "git", "scons" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T23:18:17.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

Environment:
\nWindows 7 64bit
\nScons v1.2.0.r3842
\nGit for Windows 1.7.3.1
\nPython 2.6.6 (win32)

\n

When running scons you get the following error:

\n

c:\\dev\\appcelerator\\titanium_mobile>scons
\nscons: Reading SConscript files ...
\nWindowsError: [Error 2] The system cannot find the file\nspecified:
\nFile \"C:\\dev\\appcelerator\\titanium_mobile\\SConstruct\", line 6:

\n
\nimport package\n
\n

File\n\"c:\\dev\\appcelerator\\titanium_mobile\\site_scons\\package.py\", line\n25:

\n
\np = subprocess.Popen([\"git\",\"show\",\"--abbrev-commit\"],stderr=subprocess.PIPE\n
\n

, stdout=subprocess.PIPE) File \"C:\\Python26\\lib\\subprocess.py\",\nline 623:

\n
\nerrread, errwrite)\n
\n

File \"C:\\Python26\\lib\\subprocess.py\", line 833:

\n
\nstartupinfo)\n
\n

If you add the shell=True argument to the Popen() call in both\nsite_scons\\package.py and Sconstruct the error does not present\nitself and the build will run.

{html}", "attachment": [], "flagged": false, "summary": "Scons fails on win7 64bit", "creator": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "128428", "author": { "name": "kevinorleon(atgmail)", "key": "kevinorleon(atgmail)", "displayName": "kevinorleon (at gmail)", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

The reason should be that git.exe is not in your system PATH. So\njust add /path_to_git.exe/ to your path. The problem should be\nsolved.

{html}", "updateAuthor": { "name": "kevinorleon(atgmail)", "key": "kevinorleon(atgmail)", "displayName": "kevinorleon (at gmail)", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:19:29.000+0000", "updated": "2011-04-15T03:19:29.000+0000" }, { "id": "128429", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "{html}

Resolved - user error. Path was pointing to \\cmd directory\nrather than \\bin directory and thus causing the python call to fail\nbut still allowing \"git\" command to be used without issue on the\ncommand line.

{html}", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-04-15T03:19:29.000+0000", "updated": "2011-04-15T03:19:29.000+0000" }, { "id": "128430", "author": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Opie

\n

It is not quite a user error, but admittedly it's not a Titanium\nerror.

\n

The msysGit installer adds the git directory\npath\\to\\git\\cmd to the %PATH% system variable\nautomatically. Modifying this path to path\\to\\git\\bin\ndoes indeed allow scons to reach a more advanced position, although\nI still haven't got it working. :/

{html}", "updateAuthor": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:19:30.000+0000", "updated": "2011-04-15T03:19:30.000+0000" }, { "id": "128431", "author": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

For other users experiencing this issue, here is the\nsolution.

\n

The path in my post above must be corrected as I have\nexplained.

\n

Furthermore, the following system variables need to be set (I\nuse my own actual paths as an example, but obviously they will be\ndifferent on your system):

\n
\n%android_sdk% = C:\\Program Files (x86)\\Android\\android-sdk-windows\n
\n
\n%JAVA_HOME% = C:\\Program Files (x86)\\Java\\jdk1.6.0_23\n
\n

Having spoken to one of the scons developers, contrary to what\nmay have been said on the appcel website, spaces in paths to the\npython libs and JDK should not cause problems. If it does, it's\nimportant to file a bug with scons, as windows is one of their\nprimary supported platforms.

\n

Hope this helps someone!

{html}", "updateAuthor": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:19:30.000+0000", "updated": "2011-04-15T03:19:30.000+0000" }, { "id": "128432", "author": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

By the way, just one more thing to add. The Scons installer did\nnot find 64bit python on my system, so I uninstalled python and\ninstalled the 32bit version, and it installed successfully. I\nmention this for completeness's sake.

{html}", "updateAuthor": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:19:30.000+0000", "updated": "2011-04-15T03:19:30.000+0000" }, { "id": "410973", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T23:18:17.000+0000", "updated": "2017-03-09T23:18:17.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }