{ "id": "108743", "key": "TIMOB-13368", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2013-11-04T06:28:08.000+0000", "created": "2013-01-29T16:57:18.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-22T17:26:57.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": "10207", "name": "Tooling" } ], "description": "When I run {{$TITANIUM_HOME/titanium.py emulator --platform=android}} or {{ant run.emulator}} from the command line, I get the following error:\r\n\r\n{code:none}\r\nTraceback (most recent call last):\r\n File \"/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.GA/module/builder.py\", line 256, in \r\n main(sys.argv)\r\n File \"/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.GA/module/builder.py\", line 188, in main\r\n manifest = Manifest(os.path.join(project_dir, 'manifest'))\r\n File \"/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.GA/manifest.py\", line 11, in __init__\r\n f = open(data, 'r')\r\nIOError: [Errno 2] No such file or directory: '/usr/local/Cellar/android-sdk/r21.0.1/manifest'\r\n{code}\r\n\r\nThe titanium.py script calls the modules/builder.py script to launch the emulator. According to the comments in builder.py, that script expects a command string, the platform name, and the project_dir as arguments. The titanium.py script is sending command name, project_dir, and sdk_dir.\r\n\r\nFix is to change the emulator_args function in titanium.py as follows:\r\n\r\n{code:python}\r\ndef emulator_args(args, script, project_dir, platform):\r\n\tif platform == 'android':\r\n\t\treturn [script, 'run-emulator', 'android', project_dir, get_android_sdk(args)]\r\n{code}", "attachment": [], "flagged": false, "summary": "Android emulator cannot be launched using titanium.py", "creator": { "name": "pegli", "key": "pegli", "displayName": "Paul Mietz Egli", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pegli", "key": "pegli", "displayName": "Paul Mietz Egli", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "3.0.0.GA, OSX", "comment": { "comments": [ { "id": "277917", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "We're ditching Python, so there's no point in fixing this. Use the new Android build to launch Android emulators.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-11-04T06:28:08.000+0000", "updated": "2013-11-04T06:28:08.000+0000" }, { "id": "414795", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue will not fix and with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T17:26:57.000+0000", "updated": "2017-03-22T17:26:57.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }