Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13368] Android emulator cannot be launched using titanium.py

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionWon't Fix
Resolution Date2013-11-04T06:28:08.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTooling
Labelsn/a
ReporterPaul Mietz Egli
AssigneeChris Barber
Created2013-01-29T16:57:18.000+0000
Updated2017-03-22T17:26:57.000+0000

Description

When I run $TITANIUM_HOME/titanium.py emulator --platform=android or ant run.emulator from the command line, I get the following error:
Traceback (most recent call last):
  File "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.GA/module/builder.py", line 256, in <module>
    main(sys.argv)
  File "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.GA/module/builder.py", line 188, in main
    manifest = Manifest(os.path.join(project_dir, 'manifest'))
  File "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.GA/manifest.py", line 11, in __init__
    f = open(data, 'r')
IOError: [Errno 2] No such file or directory: '/usr/local/Cellar/android-sdk/r21.0.1/manifest'
The 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. Fix is to change the emulator_args function in titanium.py as follows:
def emulator_args(args, script, project_dir, platform):
	if platform == 'android':
		return [script, 'run-emulator', 'android', project_dir, get_android_sdk(args)]

Comments

  1. Chris Barber 2013-11-04

    We're ditching Python, so there's no point in fixing this. Use the new Android build to launch Android emulators.
  2. Lee Morris 2017-03-22

    Closing ticket as the issue will not fix and with reference to the above comments.

JSON Source