{ "id": "125343", "key": "TIMOB-16301", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2014-02-01T01:41:59.000+0000", "created": "2014-01-23T23:42:18.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-3.2.1" ], "versions": [ { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-21T22:05:15.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h5.Description\r\nPackaging an Android module to any of the three options from within Studio will fail with the following console output\r\n\r\n{code}\r\nExecuting build.xml...\r\nC:\\Users\\Tester\\AppData\\Roaming\\Titanium\\mobilesdk\\win32\\3.2.1.v20140122175749\\module\\android\\build.xml:326: The following error occurred while executing this line:\r\nC:\\Users\\Tester\\AppData\\Roaming\\Titanium\\mobilesdk\\win32\\3.2.1.v20140122175749\\module\\android\\build.xml:281: exec returned: 1\r\n{code}\r\n\r\nI have attached a file containing the output of the studio log.\r\n\r\nh5.Steps To Reproduce\r\n1. Create an Android module\r\n2. Package the module to the Titanium SDK\r\n\r\nh5.Expected Result\r\nThe module should package successfully\r\n\r\nh5.Actual Result\r\nThe package fails", "attachment": [ { "id": "45348", "filename": "consolelog.txt", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-23T23:42:18.000+0000", "size": 8432, "mimeType": "text/plain" } ], "flagged": false, "summary": "Android: Module packaging fails on Windows", "creator": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Windows 8.1\r\nAppcelerator Studio, build: 3.2.1.201401221450\r\nTitanium SDK, build: 3.2.1.v20140122175749\r\nAlloy: 1.3.1-beta3\r\nCLI: 3.2.1-beta3\r\nAndroid NDK: r9c", "comment": { "comments": [ { "id": "290121", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Here is the output [~mxia]\n{code}\nBuildfile: C:\\Users\\tester32\\Documents\\Appcelerator_Studio_Workspace\\android\\build.xml\npython.set.exec:\npython.check:\n [echo] Testing for Python\n [exec] Error: No python executable could be found on your system\n\nBUILD FAILED\nC:\\Users\\tester32\\AppData\\Roaming\\Titanium\\mobilesdk\\win32\\3.2.1.v20140128093245\\module\\android\\build.xml:142: exec returned: 1\n\nTotal time: 812 milliseconds\n{code}", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-28T23:53:27.000+0000", "updated": "2014-01-28T23:53:27.000+0000" }, { "id": "290279", "author": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "body": "So look like python is not installed on the system. Sam, could you check if running \"python\" from command line works? If not, let's try installing Python separately and see if it helps.\n", "updateAuthor": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-29T19:23:00.000+0000", "updated": "2014-01-29T19:23:00.000+0000" }, { "id": "290294", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~mxia], Python 3.3.3 is installed and set up in the system environment variables. Running the command \"python\" in the command line detects the python environment as well. Studio still fails while packaging.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-29T20:08:41.000+0000", "updated": "2014-01-29T20:08:41.000+0000" }, { "id": "290295", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I don't think we support that version of Python, do we? At one point, we only supported 2.7.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-29T20:20:30.000+0000", "updated": "2014-01-29T20:20:30.000+0000" }, { "id": "290311", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~ingo], to test your assumption I removed Python 3.3.3 and installed Python 2.7.6. I still ran into the same error.\nCommand line detects version 2.7.6 just as it did 3.3.3 and still Studio fails while packaging.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-29T21:12:06.000+0000", "updated": "2014-01-29T21:12:06.000+0000" }, { "id": "290771", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "After a couple hours I finally got everything installed and working.\r\n\r\nFor starters, if you create the module from Studio, you need to download and install the Eclipse Java Development plugin. I suppose you can skip this if you invoke titanium.py directly from the command line, which brings us to the next dependency...\r\n\r\nYou must install Python 2.7. Python 3.3 will NOT work. I tested with v2.7.6 (32-bit). You need to put Python directory in the PATH.\r\n\r\nOf course you need Apache Ant, so download and install that, then add the Ant directory to the PATH.\r\n\r\nNext you need to install the Android NDK. I chose r9c (64-bit). After unzipping (1.1GB!), you need to set the ANDROID_NDK environment variable to point to the folder. Be sure you install this in a directory that does NOT contain any spaces.\r\n\r\nJust when you think you're almost done, you need to download the Android 2.3.3 SDK. This is required by the (old) build scripts.\r\n\r\nReady to build? Not so fast. You need to go download and install gperf (http://gnuwin32.sourceforge.net/packages/gperf.htm). Add that to the PATH. Oh, then restart Windows for whatever reason.\r\n\r\nFinally create a module project. Remember to put it a directory that doesn't have any spaces. I have no clue how to build a module from Studio, so let's open a command prompt. Change to the module project directory and run \"ant\". \r\n\r\n{code}\r\nBUILD SUCCESSFUL\r\nTotal time: 14 seconds\r\n{code}", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-02-01T01:41:59.000+0000", "updated": "2014-02-01T01:41:59.000+0000" }, { "id": "290778", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Applause! FWIW, I have been trying to get rid of gperf for over a year now: TIMOB-10724. I wonder how much better it would be if we just did that and get rid of the Android 2.3.3 requirement.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-01T05:51:48.000+0000", "updated": "2014-02-01T05:51:48.000+0000" }, { "id": "290780", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "gperf is interesting. I'm not sure how it's being used, but it doesn't seem like something we can just rip out. Maybe if we rewrote the module build scripts in Node.js, then we could find something cross-platform that will work, which subsequently also removes Python from the equation.\n\nThe Android 2.3.3 requirement has got to go.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-02-01T06:10:03.000+0000", "updated": "2014-02-01T06:10:03.000+0000" }, { "id": "414530", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced and due to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T22:05:15.000+0000", "updated": "2017-03-21T22:05:15.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }