On Wednesday, August 10, 2016 at 12:19:03 PM UTC-7, [email protected] wrote: > > GraphViz seems to be required for numerous plugins. Has anyone been > successful installing GraphViz by compiling to an .egg? I can't get it. > > I use a conda <http://conda.pydata.org/docs/intro.html> environment with > python2.7 for compiling my .eggs. This has been working to compile plugin > code successfully for numerous Trac plugins. I'm on Win10 running a Bitnami > Trac Stac <https://bitnami.com/stack/trac>. But I don't think that > matters since I'm having a compiling issue. > > The current stable and developer version of GraphVis and documentation are > here. > https://trac-hacks.org/wiki/GraphvizPlugin > > Running $ python setup.py bdist_egg > on Graphviz 0.11-0.7.5-15693 > gets nowhere with an error > > error: invalid truth value '' > I have no idea what to do with that, so I try the less stable, latest > development release. > > Running $ python setup.py bdist_egg > on Graphviz trunk-15693 produced errors: > > Traceback (most recent call last): > File "setup.py", line 9, in <module> > import graphviz > File > "C:\Users\Gabe\Downloads\PM\Trac\Graphviztrunk-15693\trunk\graphviz\__init__.py", > > line 1, in <module> > from graphviz import __version__ > File > "C:\Users\Gabe\Downloads\PM\Trac\Graphviztrunk-15693\trunk\graphviz\graphviz.py", > > line 44, in <module> > from genshi.builder import Element, tag > ImportError: No module named genshi.builder > > So I successfully installed genshi for python2.7 from here > https://anaconda.org/IOOS/genshi > > Then Running $ python setup.py bdist_egg > on Graphviz trunk-15693 produced errors: > > Traceback (most recent call last): > File "setup.py", line 9, in <module> > import graphviz > File > "C:\Users\Gabe\Downloads\PM\Trac\Graphviztrunk-15693\trunk\graphviz\__init__.py", > > line 1, in <module> > from graphviz import __version__ > File > "C:\Users\Gabe\Downloads\PM\Trac\Graphviztrunk-15693\trunk\graphviz\graphviz.py", > > line 48, in <module> > from trac.config import BoolOption, IntOption, Option > ImportError: No module named trac.config > > At this point the GraphVis source code just seems like it's just garbage. > But all these (and probably more) plugins require it to be installed: > TracWorkflowAdminPlugin: > RevtreePlugin: > ProjectPlanPlugin: > MasterTicketsPlugin: > > So it must not be total garbage. How can I get it compiled? >
It works fine for me, but it's necessary to install Trac first (see https://trac-hacks.org/ticket/12842) (pve) ~/Scratch/temp$svn co https://trac-hacks.org/svn/graphvizplugin/trunk/ graphvizplugin A graphvizplugin/graphviz A graphvizplugin/examples A graphvizplugin/examples/GraphvizExamples%2FInvokingTwopi A graphvizplugin/ReleaseNotes.txt A graphvizplugin/setup.py A graphvizplugin/COPYING A graphvizplugin/build.sh A graphvizplugin/graphviz/graphviz.py A graphvizplugin/graphviz/__init__.py A graphvizplugin/README.txt A graphvizplugin/examples/GraphvizExamples%2FWikiLinksPng A graphvizplugin/examples/GraphvizExamples%2FMapNodesPng A graphvizplugin/examples/GraphvizExamples%2FInvokingNeato A graphvizplugin/examples/GraphvizExamples%2FMapWhole A graphvizplugin/examples/GraphvizExamples%2FInvokingFdp A graphvizplugin/examples/GraphvizExamples%2FOutputSvg A graphvizplugin/examples/GraphvizExamples A graphvizplugin/examples/GraphvizExamples%2FWikiLinksSvg A graphvizplugin/examples/GraphvizExamples%2FOutputGif A graphvizplugin/examples/GraphvizExamples%2FMapNodesSvg A graphvizplugin/examples/GraphvizExamples%2FGraphvizExample2 A graphvizplugin/examples/GraphvizExamples%2FGraphvizExample3 A graphvizplugin/examples/GraphvizExamples%2FInvokingDot A graphvizplugin/examples/load_examples.py A graphvizplugin/examples/GraphvizExamples%2FJustTestingGraphviz A graphvizplugin/examples/GraphvizExamples%2FOutputJpg A graphvizplugin/examples/GraphvizExamples%2FInvokingCirco A graphvizplugin/examples/GraphvizExamples%2FOutputPng A graphvizplugin/setup.cfg U graphvizplugin Checked out revision 15694. (pve) ~/Scratch/temp$virtualenv pve New python executable in /Users/rjollos/Scratch/temp/pve/bin/python2.7 Also creating executable in /Users/rjollos/Scratch/temp/pve/bin/python Installing setuptools, pip, wheel...done. (pve) ~/Scratch/temp$. pve/bin/activate (pve) ~/Scratch/temp$ls graphvizplugin pve (pve) ~/Scratch/temp$cd graphvizplugin/ (pve) ~/Scratch/temp/graphvizplugin$pip install trac Collecting trac Using cached Trac-1.0.12-py2-none-any.whl Collecting Genshi>=0.6 (from trac) Requirement already satisfied (use --upgrade to upgrade): setuptools>=0.6b1 in /Users/rjollos/Scratch/temp/pve/lib/python2.7/site-packages (from trac) Installing collected packages: Genshi, trac Successfully installed Genshi-0.7 trac-1.0.12 You are using pip version 8.0.2, however version 8.1.2 is available. You should consider upgrading via the 'pip install --upgrade pip' command. (pve) ~/Scratch/temp/graphvizplugin$python setup.py bdist_egg running bdist_egg running egg_info creating graphviz.egg-info writing requirements to graphviz.egg-info/requires.txt writing graphviz.egg-info/PKG-INFO writing top-level names to graphviz.egg-info/top_level.txt writing dependency_links to graphviz.egg-info/dependency_links.txt writing entry points to graphviz.egg-info/entry_points.txt writing manifest file 'graphviz.egg-info/SOURCES.txt' reading manifest file 'graphviz.egg-info/SOURCES.txt' writing manifest file 'graphviz.egg-info/SOURCES.txt' installing library code to build/bdist.macosx-10.11-x86_64/egg running install_lib running build_py creating build creating build/lib creating build/lib/graphviz copying graphviz/__init__.py -> build/lib/graphviz copying graphviz/graphviz.py -> build/lib/graphviz creating build/bdist.macosx-10.11-x86_64 creating build/bdist.macosx-10.11-x86_64/egg creating build/bdist.macosx-10.11-x86_64/egg/graphviz copying build/lib/graphviz/__init__.py -> build/bdist.macosx-10.11-x86_64/egg/graphviz copying build/lib/graphviz/graphviz.py -> build/bdist.macosx-10.11-x86_64/egg/graphviz byte-compiling build/bdist.macosx-10.11-x86_64/egg/graphviz/__init__.py to __init__.pyc byte-compiling build/bdist.macosx-10.11-x86_64/egg/graphviz/graphviz.py to graphviz.pyc creating build/bdist.macosx-10.11-x86_64/egg/EGG-INFO copying graphviz.egg-info/PKG-INFO -> build/bdist.macosx-10.11-x86_64/egg/EGG-INFO copying graphviz.egg-info/SOURCES.txt -> build/bdist.macosx-10.11-x86_64/egg/EGG-INFO copying graphviz.egg-info/dependency_links.txt -> build/bdist.macosx-10.11-x86_64/egg/EGG-INFO copying graphviz.egg-info/entry_points.txt -> build/bdist.macosx-10.11-x86_64/egg/EGG-INFO copying graphviz.egg-info/requires.txt -> build/bdist.macosx-10.11-x86_64/egg/EGG-INFO copying graphviz.egg-info/top_level.txt -> build/bdist.macosx-10.11-x86_64/egg/EGG-INFO zip_safe flag not set; analyzing archive contents... creating dist creating 'dist/graphviz-1.0.0.8.dev0-py2.7.egg' and adding 'build/bdist.macosx-10.11-x86_64/egg' to it removing 'build/bdist.macosx-10.11-x86_64/egg' (and everything under it) - Ryan -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
