Error when build app that uses my module

You must Login before you can answer or comment on any questions.

Searched for this error on forums but couldn't find it so asking.

I get: [ERROR] Could not find the following required iOS modules: [ERROR] id: a.testmodule version: 0.1 [ERROR] Error: Traceback (most recent call last): File "/Users/<username>/Library/Application Support/Titanium/mobilesdk/osx/2.1.0.GA/iphone/builder.py", line 809, in main exit(1) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 364, in call raise SystemExit(code) SystemExit: 1

when I try to build my app using my built successfully module.

SDK 2.1.0.GA, Mac OS X 10.7.4

— asked 11 months ago by David Price
4 Comments
  • wow, the preview looks nothing like the result

    — commented 11 months ago by David Price

  • There was also a

    [INFO] Installing module: /Users/<username>/Library/Application Support/Titanium/a.testmodule-iphone-0.1.zip
    [WARN] Could not find Titanium Module id: a.testmodule, version: 0.1, platform: iphone
    prior to the error message. which i can't understand. Info installing and then Warn i can't find what i just installed ????

    — commented 11 months ago by David Price

  • the module does seem to be installed in:

    /Users/<username>/Library/Application Support/Titanium/modules/iphone/a.testmodule/0.1

    as

    liba.testmodule.a

    — commented 11 months ago by David Price

  • Show 1 more comment

3 Answers

I have also tried to use a different project that didn't use any modules. To make it use one of the modules that other projects DO work with. and get:

[INFO] One moment, building ...
[WARN] Could not find Titanium Module id: co.ui.modulea, version: 1.0, platform: iphone
[ERROR] Could not find the following required iOS modules:
[ERROR] id: co.ui.modulea   version: 1.0
[ERROR] Error: Traceback (most recent call last):
  File "/Users/<username>/Library/Application Support/Titanium/mobilesdk/osx/2.1.1.GA/iphone/builder.py", line 807, in main
    exit(1)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 364, in __call__
    raise SystemExit(code)
SystemExit: 1
I did notice however, that if i went back to sdk 1.8.2 it did build but generated an exception on
var  ModuleA  = require( 'CO.UI.ModuleA' );
Until I changed the tiapp.xml to have CASE SENSITIVE entries e.g.
<module version="1.0">CO.UI.ModuleA</module>
instead of
<module version="1.0">co.ui.modulea</module>
Using the overview tab of tiapp.xml pressing the + in the 'Modules' area seems to add the module with all lowercase characters !!!

Curiously when it has been changed to the correct case it appears in the overview tab with a yellow triangle containing an exclamation mark saying it is not supported ! However the build AND simulator(s) AND device(s) say otherwise.

Hope this helps someone else

You have to install the module under /Library//Application Support/Titanium/modules/iphone/

— answered 11 months ago by Rainer Schleevoigt
answer permalink
2 Comments
  • Even though there is no such directory and the other modules e.g. ti.compression are installed and detected in :

    /Users/<username>/Library/Application Support/Titanium/modules/iphone/

    ?

    — commented 11 months ago by David Price

  • -1 as errant information.

    — commented 11 months ago by Stephen Feather

Hi David,Not sure by looking at the error log which you provided the exact cause of this error, but one thing you can try is, UPDATE your markdown parser from the following link: and that should resolve this error.

it seems to relate with python and that is a possible solution which i tried at my end and get it resolved.

Steps to upgrade md are :

  1. Download the latest release from http://code.google.com/p/python-markdown2/
  2. Unzip the resulting download
  3. Using the setup.py script in the directory that was created from expanding the zip file you downloaded, install with sudo python setup.py install
  4. Re-run build.py
— answered 11 months ago by Ashish Nigam
answer permalink
3 Comments
  • Weeell, I did:

    running install
    running build
    running build_py
    creating build
    creating build/lib
    copying lib/markdown2.py -> build/lib
    running build_scripts
    creating build/scripts-2.7
    copying and adjusting bin/markdown2 -> build/scripts-2.7
    changing mode of build/scripts-2.7/markdown2 from 644 to 755
    running install_lib
    copying build/lib/markdown2.py -> /Library/Python/2.7/site-packages
    byte-compiling /Library/Python/2.7/site-packages/markdown2.py to markdown2.pyc
    running install_scripts
    copying build/scripts-2.7/markdown2 -> /usr/local/bin
    changing mode of /usr/local/bin/markdown2 to 755
    running install_egg_info
    Writing /Library/Python/2.7/site-packages/markdown2-2.0.2-py2.7.egg-info
    does that look right ?

    because i get the exact same error when I try to run the titanium app with my module

    — commented 11 months ago by David Price

  • i did not get it exactly, what you mean to ask with this log message. just do 3 steps 1: go to this link 2: click on zip button right to clone in mac 3: unzip it and run sudo python setup.py install

    then package you module again and use it with titanium application.

    — commented 11 months ago by Ashish Nigam

  • Yep thats what i did, and the above is the output from step 3.

    I then rebuilt module successfully and re-ran app in titanium which detected module and installed it, and then promptly said it couldn't find it again.

    — commented 11 months ago by David Price

Your Answer

Think you can help? Login to answer this question!