Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-14992

CLI: Python error (TypeError: not all arguments converted during string formatting) when building package for App Store

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Won't Fix
    • Affects Version/s: Release 3.2.0
    • Component/s: CLI
    • Labels:
      None
    • Environment:

      Titanium SDK 3.2.0GA, Titanium Studio, build: 3.1.2.201308091617

      Description

      Problem
      Some .js files seem to trigger an error in the build-system when building for production:

      Note
      I've seen this bug more often lately. Most of my app is build in coffeescript, which might produce unusual (but legal) javascript patterns.

      I think the bug is similar to #TC-1838, but I can reproduce it!

      Error

      [ERROR] Exception occured while building Android project:
      [ERROR] Traceback (most recent call last):
      [ERROR]   File "/Users/tijs/Library/Application Support/Titanium/mobilesdk/osx/3.2.0/android/builder.py", line 2630, in <module>
      [ERROR]     builder.build_and_run(True, None, key, password, alias, output_dir)
      [ERROR]   File "/Users/tijs/Library/Application Support/Titanium/mobilesdk/osx/3.2.0/android/builder.py", line 2293, in build_and_run
      [ERROR]     compiler.compile(compile_bytecode=self.compile_js, external_modules=self.modules)
      [ERROR]   File "/Users/tijs/Library/Application Support/Titanium/mobilesdk/osx/3.2.0/android/compiler.py", line 287, in compile
      [ERROR]     self.compile_into_bytecode(self.js_files)
      [ERROR]   File "/Users/tijs/Library/Application Support/Titanium/mobilesdk/osx/3.2.0/android/compiler.py", line 202, in compile_into_bytecode
      [ERROR]     self.compile_javascript(fullpath)
      [ERROR]   File "/Users/tijs/Library/Application Support/Titanium/mobilesdk/osx/3.2.0/android/compiler.py", line 192, in compile_javascript
      [ERROR]     sys.stderr.write("[ERROR] unrecognized error encountered: " % se)
      [ERROR] TypeError: not all arguments converted during string formatting
      [ERROR] :  Build process exited with code 1
      [ERROR] :  Project failed to build after 52s 350ms

      Steps to reproduce
      1. Include the attached file in a project
      2. Build for 'Distribute - Android App store'
      3. The error will appear.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cbarber Chris Barber
                Reporter:
                tinkertank Tijs Zwinkels
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-17301
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration