Software Requirements Under Windows

From Maay

Running Maay using the Python interpreter

Software :

  1. Python (2.4.2) local (http://maay.netofpeers.net/files/windows/python-2.4.2.msi)
  2. MySQL (4.1.15) local (http://maay.netofpeers.net/files/windows/mysql-essential-4.1.15-win32.msi) => (maay_dir)\thirdparty\mysql

Modules :

  1. Zope-Interface (3.0.1) local (http://maay.netofpeers.net/files/windows/zope.interface-3.0.1.win32-py2.4.exe)
  2. Logilab-common (0.12.0) (patched) local (http://maay.netofpeers.net/files/windows/common-0.12.0.win32.exe)
  3. MySQL-python local (http://maay.netofpeers.net/files/windows/MySQL-python.exe-1.2.0.win32-py2.4.exe)
  4. Twisted (2.0.1) local (http://maay.netofpeers.net/files/windows/Twisted_NoDocs-2.0.1.win32-py2.4.exe)
  5. Nevow (0.6) local (http://maay.netofpeers.net/files/windows/Nevow-0.6.0.win32.exe)
  6. PIL (1.1.5) local (http://maay.netofpeers.net/files/windows/PIL-1.1.5.win32-py2.4.exe)
  7. eGenix Base package local (http://maay.netofpeers.net/files/windows/egenix-mx-base-2.0.6.win32-py2.4.exe)

Converters :

The converter must be installed at specific location :

  1. Antiword (0.36) local (http://maay.netofpeers.net/files/windows/antiword-0_36-windows.zip) => (maay_dir)\thirdparty\antiword
  2. pdf2html (0.36) local (http://maay.netofpeers.net/files/windows/pdftohtml-0.36-win32.zip) => (maay_dir)\thirdpary\pdftohtml

To make the installation easier, we provide this pack (http://maay.netofpeers.net/files/windows/thirdparty.zip) which contains antiword, pdf2html and MySQL.

Building executable

  1. INNO Setup (5.1.5) local (http://maay.netofpeers.net/files/windows/inno%20setup-5.1.5.exe)
  2. Py2Exe (0.6.3) local (http://maay.netofpeers.net/files/windows/py2exe-0.6.3.win32-py2.4.exe)
  3. PyWin32 (205) local (http://maay.netofpeers.net/files/windows/pywin32-205.win32-py2.4.exe)

Download the Inno Setup Script (http://maay.netofpeers.net/files/windows/maay.iss) (some fix) to create the maay auto-installer.

Some errors / answers

Q: When I launch maay_server (or server.py), I get this error :

Traceback (most recent call last):
  File "maay\querier.pyc", line 103, in __init__
TypeError: connect() got an unexpected keyword argument 'unicode'
***
*** Could not create web querier
*** Got exception Failed to authenticate user 'maay' [connect() got an unexpecte
d keyword argument 'unicode']

A: You use a logilab.common python module version which are too old or not patched (see Software_Requirements for instructions)

Q: And then this error :

Traceback (most recent call last):
  File "maay\querier.pyc", line 103, in __init__
TypeError: connect() got an unexpected keyword argument 'unicode'
***
*** Could not create web querier
*** Got exception Failed to authenticate user 'maay' [connect() got an unexpecte
d keyword argument 'unicode']
*** This may hurt in unexpected ways
***
Traceback (most recent call last):
  File "maay\querier.pyc", line 103, in __init__
TypeError: connect() got an unexpected keyword argument 'unicode'
Querier <maay.querier.MaayQuerier object at 0x012FE510> is being GCed ...
Exception exceptions.AttributeError: "'MaayQuerier' object has no attribute '_cn
x'" in <bound method MaayQuerier.__del__ of <maay.querier.MaayQuerier object at
0x012FE510>> ignored

A: Problem with the version of MySQL (works with MySQL version 4.1). To solve the problem, you can also edit the file mysql.sql and remove the unicode stuff when creating database, just write CREATE DATABASE MAAY. Then relaunch createdb.

related web sites