Hi RDkitters
  Anyone have experience packaging RDkit python scripts on Windows with Py2Exe 
and encountered something like this before:?

Traceback (most recent call last):
  File "mainwindow.pyc", line 38, in loadSDfile
  File "mainwindow.pyc", line 55, in update
  File "rdkit\Chem\Draw\__init__.pyc", line 94, in
  File "rdkit\Chem\Draw\__init__.pyc", line 53, in
  File "rdkit\Chem\Draw\spingCanvas.pyc", line 38,
  File "rdkit\sping\PIL\pidPIL.pyc", line 135, in _
  File "rdkit\sping\PIL\pidPIL.pyc", line 149, in _
  File "rdkit\sping\PIL\pidPIL.pyc", line 114, in _
  File "PIL\ImageFont.pyc", line 261, in load_path
IOError: cannot find font file


In my program its this line that fails: 

PILimg = Draw.MolToImage(mol)


So pretty Basic.


I've been using RDkit in command line scripts on Linux for years without 
problems I couldn't solve, but I'm dipping my toes into using it on windows, 
building PyQT frontends and packaging it with Py2Exe.

The GUI runs fine direct from python both on Linux and Windows, but RDkit can't 
seem to find the PIL fonts when it have been packaged with Py2Exe. I've even 
tried to hardcode the _pilfontpath in pidPIL.py to c:\fonts directly where I 
have placed all the fonts, but to no anvail. If anyone have any tips about how 
to best approach packaging of PyQT GUI's for Windows with RDkit, I would love 
to hear.
Best Regards
Esben Jannik Bjerrum

cand.pharm, Ph.D

/Sent from my Ubuntu Touch Phone

Phone +45 2823 8009
http://dk.linkedin.com/in/esbenbjerrum
http://www.wildcardconsulting.dk

------------------------------------------------------------------------------
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to