I’m trying to import Draft from:
r"\sfs-file\repository5\Draft\Windows\64bit"
and I’m getting this error when I try to annotate:
RuntimeError: Magick: UnableToOpenConfigureFile `type.xml' @ warning/configure.c/GetConfigureOptions/589
Looks like the bug isn’t entirely squashed yet.
Nope. I moved it to C:\Program Files\ which didn’t help either.
I followed the advice from the last time this broke:
viewtopic.php?f=127&t=6886&p=27772&hilit=type.xml#p27773
mkdir %USERPROFILE% .magick fixed it… for now. But I’m not keen on doing that to every computer if it can be avoided.
paul
June 13, 2012, 5:24pm
#4
How are you running Draft? For example, is it being invoked by a Deadline Draft event script, or are you running it on the command line, or something else?
I’m running it from IDLE in a Python Shell.
paul
June 13, 2012, 7:18pm
#6
How do you import Draft into IDLE? (How do you tell it about the location of Draft.pyd?)
Ummmm… tricky to explain…
Package:
batchDraft_init _.py:
[code]
class DraftActionPlugin:
stuff…
import (MovAction.py, globals(), locals())[/code]
batchDraft\Plugins\MovAction.py:
[code]from batchDraft import DraftActionPlugin
class MovAction ( DraftActionPlugin) ->
def execute():
sys.path.append(r"\sfs-file\repository5\Draft\Windows\64bit")
import Draft[/code][/code]
Might want to ask Justin. He can show you the full code path.
But essentially:
Package\Class\Imported SubClass\Method\Import Draft
If I just run this in idle it breaks.
import sys;sys.path.append(r"\\sfs-file\repository5\Draft\Windows\64bit")
import Draft
annotationInfo = Draft.AnnotationInfo()
annotation = Draft.Image.CreateAnnotation( "bob", annotationInfo )
EDIT: Stripped down to the bare crash repro.
paul
June 13, 2012, 9:50pm
#9
Alright, good! I was going to suggest setting MAGICK_CONFIGURE_PATH:[code]import sys
import os
os.environ[‘MAGICK_CONFIGURE_PATH’]=r"\sfs-file\repository5\Draft\Windows\64bit"
sys.path.append( r"\sfs-file\repository5\Draft\Windows\64bit" )
import Draft
annotationInfo = Draft.AnnotationInfo()
i = Draft.Image.CreateAnnotation( ‘hi’, annotationInfo )[/code]
Ok this line is now calling up a color.xml:
annotation = Draft.Image.CreateAnnotation( slateAnnotations[i][0] + ": ", lAnnotationInfo )
Figured it out. This is a no go:
lAnnotationInfo.Color = Draft.ColorRGBA(0.0, 0.0, 0.0, 1.0)
This works:
lAnnotationInfo.Color = Draft.ColorRGBA(0.01, 0.01, 0.01, 1.0)
paul
June 15, 2012, 7:36pm
#13
That error is due to the issue reported here: http://forums.thinkboxsoftware.com/viewtopic.php?f=126&t=7576&p=31306&hilit=color.xml#p31306
It should be fixed in the next build. For now you can work around by copying colors.xml as described in that topic, or by avoiding pure black.