Difference between revisions of "Windows Setup"

From IPRE Wiki
Jump to: navigation, search
 
(48 intermediate revisions by 14 users not shown)
Line 1: Line 1:
These instructions are for Windows XP SP 2 unless otherwise noted.
+
=== Easy Instructions for Windows XP===
 +
'''Detailed instructions for Windows XP''' are available in two versions:
 +
* Initial setup including upgrading Myro, Scribbler, and Fluke: [[Step by step installation windows XP]]
 +
* Day-to-day setup once the basics are installed: [[Step by Step Connecting to Robot for Students XP]].
 +
 
 +
=== Easy Instructions for Windows 7===
 +
'''Detailed instructions for Windows 7''' are available in two versions:
 +
* Initial setup including upgrading Myro, Scribbler, and Fluke: [[Step_by_Step_Installation_Windows_7]]
 +
* Day-to-day setup once the basics are installed: [[Step_by_Step_Connecting_to_Robot_for_Students_Windows_7]].
 +
 
 +
 
 +
=== Other Versions of Windows ===
 +
Brief instructions for Windows XP follow:
  
 
If you have a '''Myro Installation CD''', then simply run '''install.bat''' from it. See detailed instructions at [[Myro Windows Automatic Installation]].
 
If you have a '''Myro Installation CD''', then simply run '''install.bat''' from it. See detailed instructions at [[Myro Windows Automatic Installation]].
  
 
If you don't have a CD, then the easiest method of installing Myro and all of the additional libraries is to install them from the zip file.  
 
If you don't have a CD, then the easiest method of installing Myro and all of the additional libraries is to install them from the zip file.  
# Download the latest [http://myro.roboteducation.org/download/packages/myro-all-225.zip Myro ZIP File].  
+
# Download the latest [http://www.betterbots.com/download/myro-install-2.9.5.zip Myro ZIP File].  
# Save that to your harddrive.  
+
# Save that to your hard drive (i.e. click "Save to disk").  
 
# Double-click it to open the zip file, and drag the folder named "Myro Install Files" to  your desktop. '''You must unzip this folder; you cannot do the next step from within the zip file!'''
 
# Double-click it to open the zip file, and drag the folder named "Myro Install Files" to  your desktop. '''You must unzip this folder; you cannot do the next step from within the zip file!'''
 +
#*To open / unzip the zip file, you may have to do the following:
 +
## Right click on the file, click ''Explore'', and copy all items inside it.
 +
## Paste all items into a ''new folder'' on your desktop.
 +
## When you do the following step, open the '''install.bat''' file in your ''new folder'' on the desktop, '''not''' the original zip file.
 
# Double-click on the '''install.bat''' file inside the "Myro Install Files" folder.  
 
# Double-click on the '''install.bat''' file inside the "Myro Install Files" folder.  
 
# See [[Myro Windows Automatic Installation]] for more details.
 
# See [[Myro Windows Automatic Installation]] for more details.
  
'''Windows Vista Users''': Installation compatible with your computer is now available!  To install, follow steps 1-3 above.  Then do the following:
+
'''X-Box 360 Gamepad''' - to use the X-Box 360 controller, you will need to install the driver before plugging the controller into the USB slot. The driver can be downloaded from http://www.microsoft.com/hardware/gaming/download.mspx
# Click the Start button (located at left-bottom corner of screen).
+
# In the start menu, click the Programs folder icon.
+
# In the Programs menu, click the Accessories folder icon.
+
# Right-click on the Command Prompt icon (which will appear under Accessories).
+
# Then select "Run as Administrator". A window will open up.  It is referred to as the Command Prompt.
+
# In the Command Prompt, type in "cd [Directory Address of the "Install" Folder]" (note the space after "cd"). What you type should look something like "cd c:\Users\Katie\Desktop\Myro Install Files" (without the quotes, and with your user name instead of "Katie").  If you don't know the Directory Address of the "Install" Folder, do the following:
+
#* If you put the Myro Install Files folder on the desktop, the Directory Address of the "Install" Folder will probably be "c:\Users\[Your user name]\Desktop\Myro Install Files".
+
#* If that doesn't work, you can find the Directory Address of the "Install" Folder in the following way. Open the Myro Install Files folder (located wherever you've saved it, probably on the desktop).  Inside this folder is an icon labeled "Install".  Right-click on Install icon, and then click Properties.  In Properties, next to "Location" will be the directory address of the Myro Install Files folder.  It'll look something like "c:\Users\Katie\Desktop\Myro Install Files".
+
# Then, in the Command Prompt, type "install.bat".
+
# Finally, follow all instructions to install the install.bat file.
+
# You're done!
+
  
You can also make your own CDROM by downloading the latest [http://myro.roboteducation.org/download/packages/myro-all-225.iso Myro ISO File] and burning your own. This file is 20MB, and can be turned into a CDROM using various programs. On Windows, you could use [http://isorecorder.alexfeinman.com/isorecorder.htm ISO Recorder], or on Linux, simply right-click on the iso file and select "Create CDROM". Insert the disk into a computer running Windows and the autorun installer should begin. If it doesn't, simply select the file "install.bat". You will install a series of packages. Select the default for each, except that if you have other versions of Python installed, make sure you select '''Python 2.4''' when given a choice amoung others.  
+
'''Windows Vista Users''': Installation compatible with your computer is now available! 
 +
# Download the latest [http://www.betterbots.com/download/myro-install-2.9.5.zip Myro ZIP File].
 +
# Save that to your hard drive (i.e. click "Save to disk").
 +
# Double-click it to open the zip file, and drag the folder named "Myro Install Files" to  your desktop. '''You must unzip this folder; you cannot do the next step from within the zip file!'''
 +
# '''Right'''-click on the '''install.bat''' file inside the "Myro Install Files" folder. A context menu should appear. Select the "'''Run as Administrator'''" option to run the batch file with proper privileges to install the software.
 +
# See [[Myro Windows Automatic Installation]] for more details.
 +
 
 +
'''NEW: Windows 7 Beta Users''': We have done an initial "smoke test" and the above instructions for Windows Vista largely works, with caveats. We will monitor this as Windows 7 and Myro evolves. Caveats (please edit the wiki with any others you come across):
 +
* The convenient IDLE shortcut is not added to the Desktop folder (see noted problems on Foreign Language Windows below; possibly the same issue).
 +
* On running IDLE, you receive a message: "WARNING: sound did not load; need tkSnack?".
 +
 
 +
 
 +
You can also make your own CDROM by downloading the latest [http://myro.roboteducation.org/download/packages/myro-all-270.iso Myro ISO File] and burning your own. This file is 20MB, and can be turned into a CDROM using various programs. On Windows, you could use [http://isorecorder.alexfeinman.com/isorecorder.htm ISO Recorder], or on Linux, simply right-click on the iso file and select "Create CDROM". Insert the disk into a computer running Windows and the autorun installer should begin. If it doesn't, simply select the file "install.bat". You will install a series of packages. Select the default for each, except that if you have other versions of Python installed, make sure you select '''Python 2.4''' when given a choice amoung others.  
  
 
You should be ready to insert your Bluetooth USB dongle into the computer and configure it. Details for this step are on the [[Myro Installation Manual]] page.
 
You should be ready to insert your Bluetooth USB dongle into the computer and configure it. Details for this step are on the [[Myro Installation Manual]] page.
Line 34: Line 51:
  
 
#You will need Python installed. We will use [http://www.python.org/ftp/python/2.4.4/python-2.4.4.msi Python 2.4] from python.org.
 
#You will need Python installed. We will use [http://www.python.org/ftp/python/2.4.4/python-2.4.4.msi Python 2.4] from python.org.
#Download and run the latest [http://myro.roboteducation.org/download/packages/myro-2.2.5.win32.exe Myro Installer] (if you would rather have the source files zipped, use [http://myro.roboteducation.org/download/packages/myro-2.2.5.zip Myro Sources Zipped]).
+
#Download and run the latest [http://myro.roboteducation.org/download/packages/myro-2.9.1.win32.exe Myro Installer] (if you would rather have the source files zipped, use [http://myro.roboteducation.org/download/packages/myro-2.9.1.zip Myro Sources Zipped]).
#Copy [http://cvs.cs.brynmawr.edu/cgi-bin/viewcvs.cgi/*checkout*/Myro/Start%20Python.pyw?rev=HEAD&content-type=text/plain Start Python.pyw] to your desktop, or wherever you would like.
+
#Copy [http://svn.cs.brynmawr.edu/Myro/trunk/Start%20Python.pyw Start Python.pyw] to your desktop, or wherever you would like.
# Copy [http://cvs.cs.brynmawr.edu/cgi-bin/viewcvs.cgi/*checkout*/Myro/misc/ these two files] to your idlelib subdirectory
+
# Copy [http://svn.cs.brynmawr.edu/viewvc/Myro/trunk/misc/ these two files] to your idlelib subdirectory
 
#Download and run [http://sourceforge.net/project/showfiles.php?group_id=78018 Python for Windows extensions]
 
#Download and run [http://sourceforge.net/project/showfiles.php?group_id=78018 Python for Windows extensions]
 
#Download and run [http://sourceforge.net/project/showfiles.php?group_id=46487&package_id=39324 pyserial] (pyserial-2.2.win32.exe)
 
#Download and run [http://sourceforge.net/project/showfiles.php?group_id=46487&package_id=39324 pyserial] (pyserial-2.2.win32.exe)
Line 42: Line 59:
 
# If you would like to view camera and other images, you will need the [http://effbot.org/downloads/PIL-1.1.6.win32-py2.4.exe Python Image Library] and [http://downloads.sourceforge.net/numpy/numpy-1.0.3.1.win32-py2.4.exe?modtime=1187637977&big_mirror=0 Numpy]
 
# If you would like to view camera and other images, you will need the [http://effbot.org/downloads/PIL-1.1.6.win32-py2.4.exe Python Image Library] and [http://downloads.sourceforge.net/numpy/numpy-1.0.3.1.win32-py2.4.exe?modtime=1187637977&big_mirror=0 Numpy]
 
# If you want to use the Text-To-Speech functions in Windows you'll need [http://sourceforge.net/project/showfiles.php?group_id=65529 pyTTS] (pyTTS-3.0.win32-py2.4.exe for Python 2.4)
 
# If you want to use the Text-To-Speech functions in Windows you'll need [http://sourceforge.net/project/showfiles.php?group_id=65529 pyTTS] (pyTTS-3.0.win32-py2.4.exe for Python 2.4)
# If you want additional voices for pyTTS, you'll need [http://www.cs.unc.edu/Research/assist/packages/SAPI5VoiceInstaller.msi SAPI5VoiceInstaller.msi]
+
# If you want additional voices for pyTTS, you'll need [http://www.cs.unc.edu/Research/assist/packages/SAPI5VoiceInstaller.msi SAPI5VoiceInstaller.msi] (Do not install the SAPI5 voice installer on Windows Vista, or it will keep your Text To Speech system from working correctly. It is for Windows XP only!)
 
#If you would like to have sound output on the host computer, you will need [http://www.speech.kth.se/snack/ Snack Sound Extension]. This is handy so the simulator can beep(). To install:
 
#If you would like to have sound output on the host computer, you will need [http://www.speech.kth.se/snack/ Snack Sound Extension]. This is handy so the simulator can beep(). To install:
 
## Download [http://www.speech.kth.se/snack/dist/snack2210-py.zip Binary release for Windows]
 
## Download [http://www.speech.kth.se/snack/dist/snack2210-py.zip Binary release for Windows]
Line 48: Line 65:
 
## move tkSnack.py to c:\Python2x\Lib\
 
## move tkSnack.py to c:\Python2x\Lib\
 
## move snacklib\ to c:\Python2x\tcl\
 
## move snacklib\ to c:\Python2x\tcl\
 +
 +
= Possible Problems =
 +
 +
'''import win32file  # The base COM port and file IO functions.'''
 +
 +
'''ImportError: DLL load failed: The specified module could not be found.'''
 +
 +
This error (when importing myro) indicates that the pywin32 DLL files could not be registered because you installed
 +
them without proper administrator privileges.  Find the pywin32 install file and right click on it and choose the "Run as Administrator" option. (Alternatively, you can re-install everything by right-clicking on the install.bat file and choosing the "Run as Administrator" option.)
 +
 +
'''Foreign Language Windows: No Start Python.pyw file on your desktop'''
 +
If your Desktop folder is named something other than Desktop (such as Screveboard in Sweeden) you will have to manually copy the Start Python.pyw file from the Windows directory on the installation CD or installation folder onto your desktop, as the install.bat file tries to copy it to the Desktop directory.
 +
 +
'''64 bit systems''' - Myro will work on 64 bit systems, but you MUST run the installer in 32 bit compatibility mode!
 +
 +
'''Windows XP Bluetooth Access Denied''' - If you are getting access denied messages when trying to add a bluetooth COM port on Windows XP, you may be running into a very rare windows problem. See this [http://support.microsoft.com/kb/892891 knowledge base article] for the fix.
 +
 +
'''Windows Vista Bluetooth Driver Won't Start''' - We have seen conflicts when there are multiple drivers on a PC. A workaround is to identify which of the Bluetooth drivers visible in the Device Manager belongs to your built-in Bluetooth hardware, or your Bluetooth dongle, and disable the other drivers. You can leave the Microsoft Bluetooth Enumerator enabled. For example, using our recommended Bluetooth dongle, leave its driver "CSR Bluetooth Radio" enabled, but disable any others, such as the laptop manufacturer's device driver.

Latest revision as of 16:51, 11 September 2012

Easy Instructions for Windows XP

Detailed instructions for Windows XP are available in two versions:

Easy Instructions for Windows 7

Detailed instructions for Windows 7 are available in two versions:


Other Versions of Windows

Brief instructions for Windows XP follow:

If you have a Myro Installation CD, then simply run install.bat from it. See detailed instructions at Myro Windows Automatic Installation.

If you don't have a CD, then the easiest method of installing Myro and all of the additional libraries is to install them from the zip file.

  1. Download the latest Myro ZIP File.
  2. Save that to your hard drive (i.e. click "Save to disk").
  3. Double-click it to open the zip file, and drag the folder named "Myro Install Files" to your desktop. You must unzip this folder; you cannot do the next step from within the zip file!
    • To open / unzip the zip file, you may have to do the following:
    1. Right click on the file, click Explore, and copy all items inside it.
    2. Paste all items into a new folder on your desktop.
    3. When you do the following step, open the install.bat file in your new folder on the desktop, not the original zip file.
  4. Double-click on the install.bat file inside the "Myro Install Files" folder.
  5. See Myro Windows Automatic Installation for more details.

X-Box 360 Gamepad - to use the X-Box 360 controller, you will need to install the driver before plugging the controller into the USB slot. The driver can be downloaded from http://www.microsoft.com/hardware/gaming/download.mspx

Windows Vista Users: Installation compatible with your computer is now available!

  1. Download the latest Myro ZIP File.
  2. Save that to your hard drive (i.e. click "Save to disk").
  3. Double-click it to open the zip file, and drag the folder named "Myro Install Files" to your desktop. You must unzip this folder; you cannot do the next step from within the zip file!
  4. Right-click on the install.bat file inside the "Myro Install Files" folder. A context menu should appear. Select the "Run as Administrator" option to run the batch file with proper privileges to install the software.
  5. See Myro Windows Automatic Installation for more details.

NEW: Windows 7 Beta Users: We have done an initial "smoke test" and the above instructions for Windows Vista largely works, with caveats. We will monitor this as Windows 7 and Myro evolves. Caveats (please edit the wiki with any others you come across):

  • The convenient IDLE shortcut is not added to the Desktop folder (see noted problems on Foreign Language Windows below; possibly the same issue).
  • On running IDLE, you receive a message: "WARNING: sound did not load; need tkSnack?".


You can also make your own CDROM by downloading the latest Myro ISO File and burning your own. This file is 20MB, and can be turned into a CDROM using various programs. On Windows, you could use ISO Recorder, or on Linux, simply right-click on the iso file and select "Create CDROM". Insert the disk into a computer running Windows and the autorun installer should begin. If it doesn't, simply select the file "install.bat". You will install a series of packages. Select the default for each, except that if you have other versions of Python installed, make sure you select Python 2.4 when given a choice amoung others.

You should be ready to insert your Bluetooth USB dongle into the computer and configure it. Details for this step are on the Myro Installation Manual page.

Manual Installation

Only do these steps if you don't want to do the full install above.

The following steps give links for installing each of the Myro components.

  1. You will need Python installed. We will use Python 2.4 from python.org.
  2. Download and run the latest Myro Installer (if you would rather have the source files zipped, use Myro Sources Zipped).
  3. Copy Start Python.pyw to your desktop, or wherever you would like.
  4. Copy these two files to your idlelib subdirectory
  5. Download and run Python for Windows extensions
  6. Download and run pyserial (pyserial-2.2.win32.exe)
  7. If you would like to use the Chat features, you'll need xmpppy
  8. If you would like to view camera and other images, you will need the Python Image Library and Numpy
  9. If you want to use the Text-To-Speech functions in Windows you'll need pyTTS (pyTTS-3.0.win32-py2.4.exe for Python 2.4)
  10. If you want additional voices for pyTTS, you'll need SAPI5VoiceInstaller.msi (Do not install the SAPI5 voice installer on Windows Vista, or it will keep your Text To Speech system from working correctly. It is for Windows XP only!)
  11. If you would like to have sound output on the host computer, you will need Snack Sound Extension. This is handy so the simulator can beep(). To install:
    1. Download Binary release for Windows
    2. unzip
    3. move tkSnack.py to c:\Python2x\Lib\
    4. move snacklib\ to c:\Python2x\tcl\

Possible Problems

import win32file # The base COM port and file IO functions.

ImportError: DLL load failed: The specified module could not be found.

This error (when importing myro) indicates that the pywin32 DLL files could not be registered because you installed them without proper administrator privileges. Find the pywin32 install file and right click on it and choose the "Run as Administrator" option. (Alternatively, you can re-install everything by right-clicking on the install.bat file and choosing the "Run as Administrator" option.)

Foreign Language Windows: No Start Python.pyw file on your desktop If your Desktop folder is named something other than Desktop (such as Screveboard in Sweeden) you will have to manually copy the Start Python.pyw file from the Windows directory on the installation CD or installation folder onto your desktop, as the install.bat file tries to copy it to the Desktop directory.

64 bit systems - Myro will work on 64 bit systems, but you MUST run the installer in 32 bit compatibility mode!

Windows XP Bluetooth Access Denied - If you are getting access denied messages when trying to add a bluetooth COM port on Windows XP, you may be running into a very rare windows problem. See this knowledge base article for the fix.

Windows Vista Bluetooth Driver Won't Start - We have seen conflicts when there are multiple drivers on a PC. A workaround is to identify which of the Bluetooth drivers visible in the Device Manager belongs to your built-in Bluetooth hardware, or your Bluetooth dongle, and disable the other drivers. You can leave the Microsoft Bluetooth Enumerator enabled. For example, using our recommended Bluetooth dongle, leave its driver "CSR Bluetooth Radio" enabled, but disable any others, such as the laptop manufacturer's device driver.