LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-31-2009, 08:36 PM   #1
KirkD
Member
 
Registered: Oct 2007
Posts: 58

Rep: Reputation: 15
using aggdraw from Python 2.5


I have a toolkit that uses aggdraw to generate graphic files. On various systems, it seems to work fine with Python 2.4 and 2.6, but with Python 2.5 I get this error:

IOError: Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/RDKit_Q32009_1/rdkit/Chem/Draw/__init__.py", line 104, in MolToImageFile
img = MolToImage(mol,size=size,kekulize=kekulize,wedgeBo nds=wedgeBonds,highlightAtoms=highlightAtoms)
File "/opt/RDKit_Q32009_1/rdkit/Chem/Draw/__init__.py", line 50, in MolToImage
drawer.AddMol(mol,highlightAtoms=highlightAtoms)
File "/opt/RDKit_Q32009_1/rdkit/Chem/Draw/MolDrawing.py", line 398, in AddMol
highlightIt=(highlightAtoms and idx in highlightAtoms))
File "/opt/RDKit_Q32009_1/rdkit/Chem/Draw/MolDrawing.py", line 270, in _drawLabel
addCanvasText(canvas,label,(x1,y1),font,color)
File "/opt/RDKit_Q32009_1/rdkit/Chem/Draw/aggCanvas.py", line 75, in addCanvasText
font = Font(color,faceMap[font.face],size=font.size)
IOError: cannot load font (no text renderer)

I've googled and found mention of others having a similar problem, but I have yet to find a resolution apart from a different version of Python.

Any advice or insight is greatly appreciated.

-Kirk
 
Old 01-26-2010, 04:19 AM   #2
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
There must be somthing broke in 2.5 version that was fixed in 2.6
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Python Python Python (aka Python 3) LXer Syndicated Linux News 0 08-05-2009 08:30 PM
LXer: Review: Programming in Python 3: A Complete Introduction to the Python Language LXer Syndicated Linux News 0 01-26-2009 04:50 AM
python update - Unable to load GTK2 Python bindings: No module named gtk itpedersen Linux - Software 2 10-03-2008 03:44 AM
LXer: Move to python 2.4 / Changing the packaging style for python packages LXer Syndicated Linux News 0 06-13-2006 07:54 PM
python problem - compiled from source - python -V still showing old version txm123 Linux - Newbie 1 02-15-2006 11:05 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration