Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8288] iOS: Non-standard Titanium SDK location on OS X causes build scripts to fail with "No module named tools"

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-03-30T15:29:02.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sRelease 2.0.0, Sprint 2012-07
ComponentsTooling
Labelsqe-port
ReporterIngo Muschenetz
AssigneeBlain Hamon
Created2012-03-24T22:21:10.000+0000
Updated2012-03-30T15:29:02.000+0000

Description

Set up your Titanium SDK to exist under /Library rather than ~/Library on OS X Lion

Create a new Titanium Mobile Module project for iOS.

Build it. It will fail with the semi-cryptic error:

Traceback (most recent call last):
  File "/Users/ingo/Documents/Titanium Studio Workspace/testModule/build.py", line 217, in <module>
    build_module(manifest,config)
  File "/Users/ingo/Documents/Titanium Studio Workspace/testModule/build.py", line 162, in build_module
    from tools import ensure_dev_path
ImportError: No module named tools
The fix is to open up /titanium.xcconfig and change the path of TITANIUM_SDK. Since we store the path as a preference inside Studio, ideally this is a value we can pass in along the command line, or at the very least to the project creation scripts (though this would not solve the issue if they moved their SDK later) My argument for bumping this higher in priority is that I've run into it, our QA has run into it, and other members of the team have run into it, leading me to believe a non-standard location (particularly for this people who upgraded from 10.6.8 to 10.7) is more common than not.

Comments

  1. Ingo Muschenetz 2012-03-24

    Would be appreciated if we could get this in sometime in the 2.0.X-2.1 timeframe.
  2. Stephen Tramer 2012-03-25

    Given the number of issues this is currently causing I have placed this in S07 for resolution ASAP.
  3. Blain Hamon 2012-03-25

    Fixing this now per request of Marshall, due to issues with testing TIMOB-7001
  4. Dustin Hyde 2012-03-26

    Closing as Fixed. SDK: 2.0.0.v20120325213306 Studio: 2.0.0.201203262445 OS: Lion
  5. Dustin Hyde 2012-03-30

    Opening to edit label.

JSON Source