Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3060] TypeError: argument of type 'NoneType' is not iterable

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2012-01-12T04:39:29.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterBalaji V
AssigneePaul Dowsett
Created2012-01-07T10:18:07.000+0000
Updated2016-03-08T07:48:06.000+0000

Description

Comments

  1. Paul Dowsett 2012-01-10

    Thanks for raising this ticket. In order for me to escalate it to the core team, all the fields must be complete. Please check it against the [JIRA Ticket Checklist](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist), and add any missing information. For the description field, you can use [this template](https://wiki.appcelerator.org/display/guides/JIRA+Ticket+Template) as a starting point (simply copy and paste it). Furthermore, we must be able to reproduce the issue in order to accept it, and so a test case must be included and run without modification, as per the [Creating a Test Case](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-CreatingaTestCase) section. Thanks in advance for your cooperation. Cheers
  2. Paul Dowsett 2012-01-10

    Balaji I note the use of an apostrophe in the following command:
       [DEBUG] C:\Users\shrb\AppData\Roaming\Titanium\mobilesdk\win32\1.8.0.1\android\builder.py simulator ABC's Writer C:\Program Files\Android\android-sdk C:\Shrb\Titanium Studio Workspace\abc com.project.abc 2 HVGA
       [INFO] Building ABC's Writer for Android ... one moment
       
    Where have you used this apostrophe? Is it in the project name, or the directory tree? Would you please try removing any special characters from the directory tree, including spaces, and then recreating the project using a name also without special characters. Let me know if that works. Thanks
  3. Balaji V 2012-01-10

    I removed the "spaces" in the workspace path and apostrophe .. but that did not help. * This was the msg in Console window (this has 'emulator' param) :

    Logs

       Logfile initialized
       [INFO] logfile = C:\shrb\Titanium-Studio-Workspace\abc2\build.log
       [DEBUG] C:\Users\shrb\AppData\Roaming\Titanium\mobilesdk\win32\1.8.0.1\android\builder.py emulator abc2 C:\Program Files\Android\android-sdk C:\shrb\Titanium-Studio-Workspace\abc2 com.project.abc2 2 HVGA
       [INFO] Launching Android emulator...one moment
       [DEBUG] From: C:\Program Files\Android\android-sdk\tools\emulator.exe
       [DEBUG] SDCard: C:\Users\shrb\.titanium\android2.sdcard
       [DEBUG] AVD ID: 2
       [DEBUG] AVD Skin: HVGA
       [DEBUG] SDK: C:\Program Files\Android\android-sdk
       [ERROR] Exception occured while building Android project:
       [ERROR] Traceback (most recent call last):
       [ERROR]   File "C:\Users\shrb\AppData\Roaming\Titanium\mobilesdk\win32\1.8.0.1\android\builder.py", line 2032, in <module>
       [ERROR]     s.run_emulator(avd_id, avd_skin)
       [ERROR]   File "C:\Users\shrb\AppData\Roaming\Titanium\mobilesdk\win32\1.8.0.1\android\builder.py", line 401, in run_emulator
       [ERROR]     run.run([self.sdk.get_adb(), "start-server"], True, ignore_output=True)
       [ERROR]   File "C:\Users\shrb\AppData\Roaming\Titanium\mobilesdk\win32\1.8.0.1\android\run.py", line 30, in run
       [ERROR]     print "[DEBUG] %s" % (subprocess.list2cmdline(args))
       [ERROR]   File "C:\Users\shrb\AppData\Local\Titanium Studio\plugins\com.appcelerator.titanium.python.win32_1.0.0.1313011725\python\lib\subprocess.py", line 503, in list2cmdline
       [ERROR]     needquote = (" " in arg) or ("\t" in arg) or arg == ""
       [ERROR] TypeError: argument of type 'NoneType' is not iterable
       
    * This was the msg in build.log (this has 'simulator' param):

    Logs

       [INFO] logfile = C:\shrb\Titanium-Studio-Workspace\abc2\build.log
       [DEBUG] C:\Users\shrb\AppData\Roaming\Titanium\mobilesdk\win32\1.8.0.1\android\builder.py simulator abc2 C:\Program Files\Android\android-sdk C:\shrb\Titanium-Studio-Workspace\abc2 com.project.abc2 2 HVGA
       [INFO] Building abc2 for Android ... one moment
       [ERROR] Exception occured while building Android project:
       [ERROR] Traceback (most recent call last):
       [ERROR]   File "C:\Users\shrb\AppData\Roaming\Titanium\mobilesdk\win32\1.8.0.1\android\builder.py", line 2039, in <module>
       [ERROR]     s.build_and_run(False, avd_id, debugger_host=debugger_host)
       [ERROR]   File "C:\Users\shrb\AppData\Roaming\Titanium\mobilesdk\win32\1.8.0.1\android\builder.py", line 1677, in build_and_run
       [ERROR]     run.run([self.sdk.get_adb(), "start-server"], True, ignore_output=True)
       [ERROR]   File "C:\Users\shrb\AppData\Roaming\Titanium\mobilesdk\win32\1.8.0.1\android\run.py", line 30, in run
       [ERROR]     print "[DEBUG] %s" % (subprocess.list2cmdline(args))
       [ERROR]   File "C:\Users\shrb\AppData\Local\Titanium Studio\plugins\com.appcelerator.titanium.python.win32_1.0.0.1313011725\python\lib\subprocess.py", line 503, in list2cmdline
       [ERROR]     needquote = (" " in arg) or ("\t" in arg) or arg == ""
       [ERROR] TypeError: argument of type 'NoneType' is not iterable
       
    I don't know whether I am doing something wrong here..
  4. Balaji V 2012-01-10

    When I created a new workspace and tried to import this same project to the new workspace, I got this msg:
       The following warnings were detected:
       * The project contains an iOS deploy target, which is only supported on MacOSX.
       Some of the problems may be resolved through the Titanium Mobile preferences.
       
    Where is it getting this iOS deploy target from?
  5. Paul Dowsett 2012-01-11

    To resolve that issue, open tiapp.xml in the root of the project, untick iphone and ipad and save. Let me know how you get on. Thanks
  6. Balaji V 2012-01-11

    this is the tiapp.xml under "Resources"
       <?xml version="1.0" encoding="UTF-8"?>
       <ti:app xmlns:ti="http://ti.appcelerator.org">
           <deployment-targets>
               <target device="mobileweb">true</target>
               <target device="iphone">false</target>
               <target device="ipad">false</target>
               <target device="android">true</target>
               <target device="blackberry">false</target>
           </deployment-targets>
           <sdk-version>1.8.0.1</sdk-version>
           <id>com.project.abc2</id>
           <name>abc2</name>
           <version>1.0</version>
           <publisher>shrb</publisher>
           <url>http://</url>
           <description>not specified</description>
           <copyright>2012 by shrb</copyright>
           <icon>appicon.png</icon>
           <persistent-wifi>false</persistent-wifi>
           <prerendered-icon>false</prerendered-icon>
           <statusbar-style>default</statusbar-style>
           <statusbar-hidden>false</statusbar-hidden>
           <fullscreen>false</fullscreen>
           <navbar-hidden>false</navbar-hidden>
           <analytics>true</analytics>
           <guid>359836dc-fac9-4279-a617-f7582b1a0d38</guid>
           <android xmlns:android="http://schemas.android.com/apk/res/android"/>
           <modules>
               <module version="1.0" platform="android">ti.paint</module>
           </modules>
       </ti:app>
       
  7. Balaji V 2012-01-11

    I will reinstall Titanium and try again.
  8. Paul Dowsett 2012-01-11

    The warning is not important, as it won't cause any problems. It would be better if you did not reinstall yet, as you may completely change the situation. Are you able to launch the abcwriter app yet? If not, are you able to launch a default project? Thanks
  9. Balaji V 2012-01-11

    Does this ABC Writer sample work only with iOS?
       ABC's Writer
       
           ABC's Writer on Github
       
       ABC’s Writer is a simple project that utilizes the Paint for iOS module to help teach the alphabet on iPad.
       
  10. Paul Dowsett 2012-01-12

    Yes - thank you for updating this ticket. Closing as invalid.

JSON Source