trouble installing all the necessary python modules to run openlp from the source code

Asked by Aaron Rathjen on 2011-12-09

I decided to get python running on my system with all the necessary modules to run OpenLP from the source code so I didn't have to wait for the Mac OS X builds to be updated.

The problem is, I can see when I run the script, the check for 'uno' fails but I don't know how to install an uno library. I've tried pip and easy_install but I can't find anything that matches uno or py-uno or any of the other variations of that I can think of.

I even went so far as to try installing OOoPy but that gave me some kind of traceback, so I don't really know what to do, (or WHAT I'm doing, for that matter).

Do I need to install some kind of Uno library? If so, how might I do that?

Here's the output of the check_dependencies script:

  Python >= 2.6 ...
Checking for modules...
  PyQt4... OK
  PyQt4.QtCore... OK
  PyQt4.QtGui... OK
  PyQt4.QtNetwork... OK
  PyQt4.QtOpenGL... OK
  PyQt4.QtSvg... OK
  PyQt4.QtTest... OK
  PyQt4.QtWebKit... OK
  PyQt4.phonon... OK
  sqlalchemy... OK
  sqlite3... OK
  lxml... OK
  chardet... OK
  enchant... OK
  BeautifulSoup... OK
  mako... OK
  migrate... OK
  uno... FAIL
Checking for optional modules...
  sqlite (SQLite 2 support)... FAIL
  MySQLdb (MySQL support)... FAIL
  psycopg2 (PostgreSQL support)... FAIL
  pytest (testing framework)... OK
Verifying version of modules...
  PyQt4 >= 4.6 ... 4.8.6
  Qt4 >= 4.6 ... 4.7.4
  sqlalchemy >= 0.5 ... 0.7.3
  enchant >= 1.3 ... 1.6.5
Qt4 image formats...
  read: bmp, gif, ico, jpeg, jpg, mng, pbm, pgm, png, ppm, svg, svgz, tif, tiff, xbm, xpm
  write: bmp, ico, jpeg, jpg, png, ppm, tif, tiff, xbm, xpm
Enchant (spell checker)...
  available backends: aspell, ispell, myspell
  available languages: af, ar, az, be, be_BY, be_SU, bg, bn, ca, cs, da, de, de_AT, de_CH, de_DE, el, en, en_CA, en_GB, en_US, eo, es, et, fa, fi, fr, fr_CH, fr_FR, he, hi, hr, hu, id, is, it, lt, lv, mg, mk, mr, ms, nb, nl, no, pl, pt_BR, pt_PT, ro, ru, rw, sk, sk_SK, sr, sv, sw, ta, tl, tr, uk, uz, vi

And what about the optional modules? I tried briefly to get these with easy_install and pip but couldn't find the right name of the module. Obviously these are optional, but where would I find these?

Best regards,

Mac OS X 10.6.8
MacBook Pro 2.0GHz Intel Core Duo (32-bit)

Question information

English Edit question
OpenLP Edit question
No assignee Edit question
Solved by:
Raoul Snyman
Last query:
Last reply:
Best Raoul Snyman (raoul-snyman) said : #1

Hi Aaron,

I presume you followed the instructions on to get your environment up and running?

The "uno" module is for integration. Currently we don't have LibreOffice integration on OS X, because that module is not packaged with LibreOffice for OS X. It's only needed for the presentations plugin, and the document importer. It's absence won't stop OpenLP from running, so don't worry if you can't install it.

The SQLite module needed is version 1.0.1 which almost no one packages at this stage. A couple of the Linux distributions do, but even so, this is an optional module and only affects the OpenLP 1.x importers. The actual name you use with easy_install/pip is "pysqlite", but the only version available is the version that is already packaged in Python, and not the one we want.

MySQLdb and psycopg2 are both only used if you're using a database other than the default SQLite. You can install MySQLdb and psycopg2 from MacPorts, using the package names, "py-mysql" and, "py-psycopg2". The actual name to use with easy_install/pip for MySQLdb is "MySQL-python".

I hope this helps!

Aaron Rathjen (aaron-x) said : #2

Yes, this helps indeed.

Thank you very much for the detailed response.

best regards.