Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3814] titanium run command line broken

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2011-05-18T10:25:02.000+0000
Affected Version/sRelease 1.7.0
Fix Version/sRelease 1.7.0, Sprint 2011-20
ComponentsTooling
Labelsn/a
ReporterJeff Haynie
AssigneeMarshall Culpepper
Created2011-04-28T21:41:57.000+0000
Updated2011-05-18T10:25:02.000+0000

Description

if you attempt to use the 'titanium run' from console, you get the following error from python script: Traceback (most recent call last): File "/Library/Application Support/Titanium/mobilesdk/osx/1.7.0/module/builder.py", line 106, in stage run_python(create_project_args) File "/Library/Application Support/Titanium/mobilesdk/osx/1.7.0/module/builder.py", line 33, in run_python return run(args, cwd=cwd) File "/Library/Application Support/Titanium/mobilesdk/osx/1.7.0/module/builder.py", line 36, in run proc = run_pipe(args, cwd) File "/Library/Application Support/Titanium/mobilesdk/osx/1.7.0/module/builder.py", line 19, in run_pipe return subprocess.Popen(args, stderr=subprocess.STDOUT, stdout=subprocess.PIPE, cwd=cwd) File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 595, in __init__ errread, errwrite) File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 1106, in _execute_child raise child_exception TypeError: execv() arg 2 must contain only strings Looks like someone refactored the module builder code and broke this.

Comments

  1. Jeff Haynie 2011-04-28

    To test this fix, simply go into the root of a project in the console. Type 'titanium run' This assumes you are running the titanium.py script (which is located in the root of the mobilesdk directory under /Library/Application Support/Titanium/mobilesdk/[VERSION]). I usually just alias this file to the current release.
  2. Marshall Culpepper 2011-05-16

    Haven't been able to reproduce this yet. I assume this is a module project you're trying to run -- Some follow-up questions: - Is it an iOS or Android module project? - Do you know what version of the MobileSDK the project was created with? - Can you also pastie the project's manifest file?
  3. Jeff Haynie 2011-05-16

    ios it was 1.7 as of head when i created it it was a generic project (nothing special, just created new).
  4. Natalie Huynh 2011-05-18

    Tested with 1.7.0.631e153 running 'titanium run' you get required argument '--platform' missing which is the expected error message

JSON Source