MBLogic for an open world in automation
The system is built on a number of third party packages which must be installed separately before the system will function. These third party packages are:
Several additional packages are required for MS Windows (these are not required for Linux).
All required third party support packages are free and can be obtained from normal secure internet sites (see below).
The system has been tested with Python versions and 2.6. Other versions may work but have not been tested. However, version 2.6 is the recommended version. The version of Twisted installed must be compatible with the version of Python used. If you are using Linux, the version compatibility will be taken care of automatically. If you are using MS Windows, the Twisted web site will indicate which version of Twisted you need for which version of Python.
The required third party software can be obtained from the following locations.
For Linux, all required packages can normally be obtained from your distro's package repository. Use your package manager (e.g. Synaptic) to download the packages. Some packages (e.g. Python) may already be installed as part of the standard OS distribution.
Install the following in the order listed:
Installing software on MS Windows is traditionally more difficult that with Linux, as MS Windows has no package management or repository system. This means that each package must be downloaded and installed separately. However, this is relatively straight forward if you follow the steps below.
The packages can be obtained from the following locations (don't install them just yet though):
Once you have obtained all the software, install it in the following order:
Some copies of MS-Windows may have one or more "dll" files missing which prevent the program from operating correctly. This can happen when dll files are unintentionally removed when uninstalling software or making other changes. One dll in particular to check is "mfc71.dll". This is a standard MS Windows library which is used by many programs. This should be in the "c:\windows\system32" directory. If it is missing, you will need to reinstall it. A search on Google will turn up many solutions for this problem (this is a common problem). This file is not necessary for Linux.
There is no documentation for installing on Mac OS/X. However, newer versions of OS/X may come with Python and Twisted already installed.
To test if the third party software installation is working, you can do the following (you can skip this step if you wish).
For Linux, open a command line terminal and type "python". You should see the Python interpreter start up with something like the following:
Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18) [GCC 4.3.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>>
To test if twisted is installed, type the following into the Python interpreter:
import twisted
If it is already installed, the Python command problem will appear after a brief delay. If it is not already installed, you should get an error which looks something like the following:
Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named twisted >>>
You should get a result similar to that described for twisted.
To exit Python, press "control-D" (press the control and "d" keys simultaneously). To close the terminal, press "control-D" again.
For MS-Windows, following the instructions given above for Linux, with the following exceptions.
When starting Python, you will need to include the full path name to the Python interpreter. For example: "C:\Python26\python"
Test if twisted is installed correctly by using the following commands:
import twisted.internet
This checks the pywin32 installation as well as twisted.
To exit Python, press "control-Z" (press the control and "z" keys simultaneously).
Older versions offered the option of using an improved JSON library called "simplejson". This is no longer used as Python 2.6 has JSON support built directly into its standard library.
If you are using an older version of Python, the system will automatically import a bundled version of "simplejson" but without the performance optimisations of the 'C' version. However, this will make little measureable difference in normal applications.