Skip to first unread message
Assigned to jeffrey....@gmail.com by steve....@gmail.com

devink...@gmail.com

unread,
Sep 11, 2014, 9:03:40 AM9/11/14
to mitappinv...@googlegroups.com
Hi, I am trying to get the aiStarter to work but all I get is the black box with the following text in it

Platform = Windows
AppInventor tools located here: "C:\Program Files <x86>"
Bottle server starting up <using WSGIRerServer<>>....
Hit Ctrl-C to quit.


I am not sure what I am doing wrong but im trying to get it working for my students. 

Thanks!

SteveJG

unread,
Sep 11, 2014, 9:23:03 AM9/11/14
to mitappinv...@googlegroups.com
You probably have multiple issues and some of them may involve ports that are blocked by the school network.

I assume you have visited this link   http://appinventor.mit.edu/explore/ai2/setup-emulator.html    and followed all the steps?    Is that true?
What your question is about is described in Step #2   and is normal.    Have you gone to Step #3?   That might be your issue?


If you need it, AIStarter help is here:  http://appinventor.mit.edu/explore/ai2/aistarter-help.html   but I suspect you have not done Step #3     or  did you"

Keep responding here in the forum and we will get your class up and running.

Regards,
Steve

devink...@gmail.com

unread,
Sep 11, 2014, 9:49:58 AM9/11/14
to mitappinv...@googlegroups.com
I did step 3 and it said it will take a min or two but it just stayed like that and nothing ever happened. 

SteveJG

unread,
Sep 11, 2014, 9:53:54 AM9/11/14
to mitappinv...@googlegroups.com
Is your Chrome browser up to date?    See this note  https://groups.google.com/forum/#!category-topic/mitappinventortest/f9bBBMJrMAI       If you have  Chrome Version 36.0.1985.143 m   you need to update the browser.   That version had serious issues with AI2 that precluded use of the emulator and WIFI.

-- Steve

devink...@gmail.com

unread,
Sep 11, 2014, 9:58:26 AM9/11/14
to mitappinv...@googlegroups.com
Nope my Chrome version is 37.0.2062.103

SteveJG

unread,
Sep 11, 2014, 10:34:39 AM9/11/14
to mitappinv...@googlegroups.com
OK. We will try something different.

Connect > Hard Reset ... then follow the on screen directions and cross your fingers.

devink...@gmail.com

unread,
Sep 11, 2014, 11:20:11 AM9/11/14
to mitappinv...@googlegroups.com
Nope, that didn't do anything...

What would i need to tell my IT people to help the matter? anything

SteveJG

unread,
Sep 11, 2014, 11:33:10 AM9/11/14
to mitappinv...@googlegroups.com
So, let's work on the hypothesis the port / firewall in the school network is inhibiting the connection, since you do have the latest version of Chrome on the school PCs.


I wrote this sometime ago and it might help you at the IT people:   The stuff about the ports is near the end. What I would like you to read is in PART 5 though the other stuff might give you an idea of something you might have missed


You may have to do a complete uninstall of app inventor 2.  Then, try once again, documenting everything that happens.  Capture screen images where you get error messages etc.  All this will help the technical staff to diagnose your issue.

This is an annotated part of the install process:

PART 1:  App Inventor Setup Tools installed, updated and aiStarter is running.

  • Step 1: Make sure you are logged into an Administrator account     Yes, the students cannot be administrator's but the PCs need this for the install.   Install, then change Administrator privileges.
  • Step 2: Go To the App Inventor 2 Test page by clicking the following link.

http://appinventor.mit.edu/test

This page will perform some tests and indicate whether you have the aiStarter program running and if you have the current version of the setup tools installed.  From the AI2 browser menu, select Help>About to find the current version of AI2 and the date of its most recent modification. The About box also tells you which version of AICompanion you should be using with this version of AI2. Check and you know you have the correct AI2-Companion combinatio            Did this step work?

  • Step 3: If aiStarter is running proceed to step 4.  You will know aiStarter is running if a Windows screen called aiStarter appears on your desktop. There are lots of numbers on a black field.

If aiStarter is not running, then start aiStarter by locating the aiStarter icon on the desktop.   When aiStarter was installed, the installer provided a desktop icon. There should also be a link in the start menu, or in the AppInventor directory located in the “Program Files” or “Program Files (x86)” directory.  Now try the test page again. If the aiStarter is running then proceed to Step 4.

If aiStarter is still not running then you need to install the setup tools by following the instructions at the link below and try the test page again.

http://appinventor.mit.edu/explore/ai2/windows

Don’t neglect the part of the instructions dealing with logging out (or rebooting) and running the uninstaller.   Again, you must reboot your PC before runing the uninstaller from the Program Files directory, and then attempting to install/re-install aiStarter.     THIS is VERY important... yes, you need to log out / rebooting.

  • Step 4: If aiStarter is running but your setup tools are not up to date

If aiStarter is running but your setup tools are not up to date as indicated on the test page, reinstall the setup tools by following the instructructions below and come back and try the test page again.

http://appinventor.mit.edu/explore/ai2/update-setup-software

Repeat these steps until aiStarter is running and you have the updated setup tools.

Note:  When the setup tools are installed aiStarter will automatically start when you log in to your Google account the next time.

  • Problems:  If you cannot successfully complete Part 1, the reasons  might be
  • Your computer cannot connect to the software download site for the App Inventor setup software.
  • If there is a program running on the computer that is using port 8004, which is the port that aiStarter needs in order to run, or your internet service provider has blocked those ports. and for either of these issues, you will need to work with your network provider or your IT service to resolve them.

PART 2: Getting the emulator running on the computer

Once you are sure that aiStarter is running and your setup software is current, you can try starting the emulator.  With App Inventor running in your browser, choose the “Emulator” option from the “Connect” menu, and the emulator should start.  How fast your emulator starts is a function of your PC's cpu and the amount of memory available to the PC. On a Win 7 PC with lots of memory, the emulater may take only a few seconds to start; on slower PCs, the process might take a several minutes.

The Emulator is a virtual phone. Starting the emulator will both start this virtual phone and will then run the MIT AI2 Companion in this virtual phone. There are several places in the process of starting the emulator where things can go wrong. Here are some hints to help figure out what the problem might be be.

When the virtual phone starts, you should get to a “home” screen that looks like this:

emulator2.png

If you don’t see this “home page” then there is something wrong with how your computer is starting the emulator. At this point you will likely need to find someone who has access to an Administrator’s account on the computer you are using.

Be aware, you may NOT have the current version of Companion...it is imperative that you have version 2.20 of Companion...  You have confirmed you have 2.20...


They should log in and try to use App Inventor to start the emulator. If they can use the emulator with their administrator, but the ordinary user account on your computer your account cannot, then there is probably some restriction in place on your computer that is preventing App Inventor’s emulator from operating properly. You will have to experiment with removing restrictive settings and or disabling programs that enforce restrictions to see which one is causing the problem. Once this is determined you (or your administrator) should leave this program disabled or figure out how to configure it so that it does not interfere with App Inventor.  We cannot tell you here exactly what you need to do because there are a lot of programs that are used to restrict and protect Windows accounts, and what you need to do will be determined by which program you are using.  Some issues people have encountered include restrictions on access to the Web, prohibitions against running .exe or .bat files, and inability to access the commands-for-appinventor directory.  One way to look for hints as to what might be wrong is to open a command window in the commands-for-appinventor folder, where the setup software was installed.  Then try to launch the emulator manually using the command run-emulator.bat and see if there are any error messages.

Another possibility (on older computers) is that the computer is not powerful enough to run the emulator.  Symptoms might be that the emulator starts, but never gets past a black screen.

PART 3: Getting the emulator to connect to App Inventor


Do you see the above screen?  

If you see the virtual phone’s home screen (above) but cannot get any further, then there may be a problem with how the virtual phone is set up. You can reset the emulator by selecting the Hard Reset choice in the Connect menu. This will reset the virtual phone to the “factory” state it was in when the setup tools were first installed. Note: When you select Connect->Hard Reset you will see a dialog box warning you that it will reset the emulator.   If the factory version of the MIT AI2 Companion is out of date, the system will lead you through the process for auto-updating the Companion, once the emulator is running.

If you cannot get things working at this point. You can try uninstalling and re-installing the setup tools.   Did you do this uninstall?


If this still doesn’t work, then you will need to find a system administrator (who can login to an Admin account on your computer) and try the steps listed in Part 2 regarding programs that might be interfering with App Inventor. Again, there are many such programs and we cannot tell you how to change their settings.  You will likely need some expert help.

PART 4: Getting the emulator to update      

The emulator connects to App Inventor using an app (the AI2 Companion) that runs in the emulator.   If this app is out of date, App Inventor will offer to update it.   If the update fails, you can bypass the update temporarily, but you should update soon, since newer App Inventor features might not run on the emulator, and new apps might crash.

                        companion app out of date.PNG

  • Some problems you might encounter
  • If you get the message that your Companion is out of date, and App Inventor does not offer to update it, then you probably have a very old Companion that predates the auto update feature.   Please update your setup software.

PART 5: Talking to the Emulator

Some people have reported getting the Emulator running and even the Companion, but then their blocks do not load. Instead you continue to see the “white screen” of the Companion claiming that it is waiting to get blocks.   This could be your issue.

The Companion listens on port 8001. If something is blocking that port, then it will not be able to receive any blocks. Similarly if another program is using port 8001 the same thing can happen.

To test if this is the problem, while in this state, use your browser to go to http://127.0.0.1:8001/

If you get a directory listing (it will start with “Directory /”) then you are talking to the Companion. Note: There may only be the line “Directory /” or you may *also* see a listing of files which you should recognize as project assets (images, sounds etc.). What you see isn’t important, it is the fact that you can see it.

If you cannot connect to http://127.0.0.1:8001/ then you will have to look at what other programs on your PC may be interfering with connecting to the Companion. This can be anything from a firewall, to another program using the same port.



Try some stuff with your IT people. Check the ports, run the simple tests indicated   and let us know what happens.    I have run out of the easy things to fix and the school's firewall may now be the issue.   

Regards,
Steve

SteveJG

unread,
Sep 11, 2014, 1:31:08 PM9/11/14
to mitappinv...@googlegroups.com
Devin sent the following email:  Nope... Still nothing  

We just solved a similar issue, keep trying.   As a last resort, just uninstall    using the uninstall.exe , then close the browser and shut down the PC and try again.  You must actuallly shut down.



I still believe you got a port issue but perhaps it is something else.  Sorry this is not working for you, but perhaps uninstalling will work.      Here is a shot in the dark:  are you using AVG, Eset or Avast virus checkers ?   Unless the Advanced settings are set to allow a link with the AI2 site, it has been reported they cause problems with linking to the emulator... nah, this is not gonna' be your issue.

Regards,
Steve
Reply all
Reply to author
Forward
0 new messages