Hi,

I am new to pyinstaller and run into a rather odd problem,
I wonder if anyone could help me. I am using pyinstaller
on a linux machine for my tests.

I am using the python module yapgvb, which stands
for Yet Another Python GraphViz Binding. As per its
name it binds the graphviz library that can be called within
python. As far as I understand, this library comes
with modules located under /usr/lib/graphviz/ where
a config file specifies the plugins available on the system
(in the form of shared libraries libgvplugin_FOO.so.5).

I can build the executable with pyinstaller but it will fail
to find those plugins when ran on the same system it was built on.

I tried to use the COLLECT method to include all the plugins
but it doesn't seem to work.

I include an example code that demonstrates the issue.
Running the python script as usual works ok. When
built using pyinstaller I get a graphviz error:

Error: Layout type: "dot" not recognized. Use one of:
Layout was not done

Do you have any clues on how I could solve the problem ?

thanks for your help,
--
Bertrand

--
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

import yapgvb

def main():
    T=yapgvb.Digraph()
    A=T.add_node('A')
    B=T.add_node('B')
    C=T.add_node('C')
    edgeAB=B<<A
    edgeAC=C<<A
    T.layout(yapgvb.engines.dot)
    T.render('ABC.png')

if __name__=='__main__':
    main()

Reply via email to