Mailing List Archive

Request help installing GraphvizPlugin
Hi!

I have been using Trac for about 6 years and now have created about 60
projects. I am very grateful for all of the hard work that has gone on in
this open source project. Please... please... keep up the great work! It is
appreciated ;)

I am now reaching the end of a slow, plodding process of upgrading my Trac
to 1.4.1. I have almost everything I want working... except for one plugin:
GraphvizPlugin. (Well... there is another plugin, but GraphvizPlugin is
more important for me right now)
- https://trac-hacks.org/wiki/GraphvizPlugin
- The above webpage says that the plugin is compatible with 1.4 and I
presume 1.4.1 too?

My new process to install plugins (and Trac) on my new machine is from
*.whl files like so:
- I download a wheel from pypi
- put it on an external hard drive
- I take the hard drive to my new machine
- I copy the wheel to the new machine
- I then install the wheel on the new machine and do some file permission
fiddling to get it right

My problem:
- It looks like the GraphvizPlugin is not currently available on pypi (
https://pypi.org/)... I did a search for "Graphviz" and then looked through
the 440 results but did not find a whl file
- I looked at https://trac-hacks.org/browser/graphvizplugin#trunk and
attempted to read how to install the plugin from source
- it looks like I need to first install *librsvg2-bin* and also
*python-pygraphviz*... are they really both needed?
- I also thought about using an ubuntu package called "*trac-graphviz*"...
but it seems to depend on the "trac" package and so means that I would end
up downgrading my trac to something less than 1.4.1

*Is there, by any chance, a way to get a wheel file for the GraphvizPlugin?*
- I know almost nothing about how to create one... and would be very
grateful for any and all help getting one...

With kind regards,
Aikido Guy

--
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 trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/84f8125c-4dc3-4ea1-ace6-1b0689a83ace%40googlegroups.com.
Re: Request help installing GraphvizPlugin [ In reply to ]
On Monday, May 25, 2020 at 11:29:21 PM UTC-4, Aikido Guy wrote:
>
> - https://trac-hacks.org/wiki/GraphvizPlugin
>
> My problem:
> - It looks like the GraphvizPlugin is not currently available on pypi (
> https://pypi.org/)
>
> *Is there, by any chance, a way to get a wheel file for the
> GraphvizPlugin?*
>

My *first attempt to create a wheel* is as follows:
1) download zip file via the link at the bottom of page
https://trac-hacks.org/browser/graphvizplugin
2) unzip graphvizplugin-17761.zip
3) cd graphviz/trunk
4) python setup.py bdist_wheel
# dist/TracGraphviz-1.3.0.1.dev0-py2-none-any.whl

So... I now have a *.whl file that I will attempt to install... I will let
you know if it works...

Kindly,
Aikido Guy

--
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 trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/79270375-1843-49ed-8ca7-b7137aac154e%40googlegroups.com.
Re: Request help installing GraphvizPlugin [ In reply to ]
On Tuesday, May 26, 2020 at 3:44:52 PM UTC-4, Aikido Guy wrote:
>
> On Monday, May 25, 2020 at 11:29:21 PM UTC-4, Aikido Guy wrote:
>>
>> - https://trac-hacks.org/wiki/GraphvizPlugin
>>
>> My problem:
>> - It looks like the GraphvizPlugin is not currently available on pypi (
>> https://pypi.org/)
>>
>> *Is there, by any chance, a way to get a wheel file for the
>> GraphvizPlugin?*
>>
>
> My *first attempt to create a wheel* is as follows:
> 1) download zip file via the link at the bottom of page
> https://trac-hacks.org/browser/graphvizplugin
> 2) unzip graphvizplugin-17761.zip
> 3) cd graphviz/trunk
> 4) python setup.py bdist_wheel
> # dist/TracGraphviz-1.3.0.1.dev0-py2-none-any.whl
>
> So... I now have a *.whl file that I will attempt to install... I will let
> you know if it works...
>

My log file has the following message (I've retyped it):
" Loading plugin "graphviz" from /usr/local/lib/python2.7/dist-packages"
"Skipping "graphviz = graphviz.graphviz": ImportError: No module named
graphviz

So... something has gone wrong. Will need to revisit... maybe I should try
creating an egg instead and use that... hhhmm... thinking...

Kindly,
Alan

--
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 trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/49d76a6b-02f6-4766-b99b-64c80c5a816e%40googlegroups.com.
Re: Request help installing GraphvizPlugin [ In reply to ]
On Tuesday, May 26, 2020 at 5:00:45 PM UTC-4, Aikido Guy wrote:
>
> On Tuesday, May 26, 2020 at 3:44:52 PM UTC-4, Aikido Guy wrote:
>>
>> On Monday, May 25, 2020 at 11:29:21 PM UTC-4, Aikido Guy wrote:
>>>
>>> - https://trac-hacks.org/wiki/GraphvizPlugin
>>>
>>> My problem:
>>> - It looks like the GraphvizPlugin is not currently available on pypi (
>>> https://pypi.org/)
>>>
>>> *Is there, by any chance, a way to get a wheel file for the
>>> GraphvizPlugin?*
>>>
>>
>> My *first attempt to create a wheel* is as follows:
>> 1) download zip file via the link at the bottom of page
>> https://trac-hacks.org/browser/graphvizplugin
>> 2) unzip graphvizplugin-17761.zip
>> 3) cd graphviz/trunk
>> 4) python setup.py bdist_wheel
>> # dist/TracGraphviz-1.3.0.1.dev0-py2-none-any.whl
>>
>> So... I now have a *.whl file that I will attempt to install... I will
>> let you know if it works...
>>
>
> My log file has the following message (I've retyped it):
> " Loading plugin "graphviz" from /usr/local/lib/python2.7/dist-packages"
> "Skipping "graphviz = graphviz.graphviz": ImportError: No module named
> graphviz
>
> So... something has gone wrong. Will need to revisit... maybe I should try
> creating an egg instead and use that... hhhmm... thinking...
>
> Kindly,
> Alan
>

> pip2 --version
pip 20.1.1 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)

> pip2 download easy_install
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020.
Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0
will drop support for Python 2.7 in January 2021. More details about Python
2 support in pip, can be found at
https://pip.pypa.io/en/latest/development/release-process/#python-2-support
ERROR: Could not find a version that satisfies the requirement easy_install
(from versions: none)
ERROR: No matching distribution found for easy_install

Seems there is no longer an "easy_install" program to install eggs? Sigh...
entering dependency hell...

Has anyone been able to get GraphvizPlugin to intall on Trac 1.4.1? If so,
help is appreciated... I seem to be reaching my limit on what to do next...

Kindly,
Aikido Guy

--
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 trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/0e1b5c63-15c7-4495-803d-824882b371c9%40googlegroups.com.
Re: Request help installing GraphvizPlugin [ In reply to ]
On Tuesday, May 26, 2020 at 8:52:21 PM UTC-4, Aikido Guy wrote:
>
> On Tuesday, May 26, 2020 at 5:00:45 PM UTC-4, Aikido Guy wrote:
>>
>> On Tuesday, May 26, 2020 at 3:44:52 PM UTC-4, Aikido Guy wrote:
>>>
>>> On Monday, May 25, 2020 at 11:29:21 PM UTC-4, Aikido Guy wrote:
>>>>
>>>> - https://trac-hacks.org/wiki/GraphvizPlugin
>>>>
>>>> My problem:
>>>> - It looks like the GraphvizPlugin is not currently available on pypi (
>>>> https://pypi.org/)
>>>>
>>>> *Is there, by any chance, a way to get a wheel file for the
>>>> GraphvizPlugin?*
>>>>
>>>
>>> My log file has the following message (I've retyped it):
>> " Loading plugin "graphviz" from /usr/local/lib/python2.7/dist-packages"
>> "Skipping "graphviz = graphviz.graphviz": ImportError: No module named
>> graphviz
>>
>> So... something has gone wrong. Will need to revisit... maybe I should
>> try creating an egg instead and use that... hhhmm... thinking...
>>
>> > pip2 --version
> pip 20.1.1 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)
>
> > pip2 download easy_install
>
Seems that I do NOT need to download easy_install... it was already
available... "python -m easy_install *.egg".

So... I built the egg file for GraphvizPlugin and copied that to my server
and installed it via "python -m easy_install
TracGraphviz-1.3.0.1.dev0-py2.7.egg".

I have now moved 1 step forward and get the following error message in my
Trac project log: "Skipping "graphviz = graphviz.graphviz" : ImportError:
No module named genshi.core.

So... I will do a pip download of the Genshi wheel and install it and see
if this gets me 1 step closer...

Kindly,
Aikido Guy

--
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 trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/e6803357-25d4-429b-84f2-3431a7f91a71%40googlegroups.com.
Re: Request help installing GraphvizPlugin [ In reply to ]
On Tuesday, May 26, 2020 at 9:23:48 PM UTC-4, Aikido Guy wrote:
>
> On Tuesday, May 26, 2020 at 8:52:21 PM UTC-4, Aikido Guy wrote:
>>
>> On Tuesday, May 26, 2020 at 5:00:45 PM UTC-4, Aikido Guy wrote:
>>>
>>> On Tuesday, May 26, 2020 at 3:44:52 PM UTC-4, Aikido Guy wrote:
>>>>
>>>> On Monday, May 25, 2020 at 11:29:21 PM UTC-4, Aikido Guy wrote:
>>>>>
>>>>> - https://trac-hacks.org/wiki/GraphvizPlugin
>>>>>
>>>>> My problem:
>>>>> - It looks like the GraphvizPlugin is not currently available on pypi (
>>>>> https://pypi.org/)
>>>>>
>>>>> *Is there, by any chance, a way to get a wheel file for the
>>>>> GraphvizPlugin?*
>>>>>
>>>>
>>>> My log file has the following message (I've retyped it):
>>> " Loading plugin "graphviz" from /usr/local/lib/python2.7/dist-packages"
>>> "Skipping "graphviz = graphviz.graphviz": ImportError: No module named
>>> graphviz
>>>
>>> So... something has gone wrong. Will need to revisit... maybe I should
>>> try creating an egg instead and use that... hhhmm... thinking...
>>>
>>> > pip2 --version
>> pip 20.1.1 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)
>>
>> > pip2 download easy_install
>>
> Seems that I do NOT need to download easy_install... it was already
> available... "python -m easy_install *.egg".
>
> So... I built the egg file for GraphvizPlugin and copied that to my server
> and installed it via "python -m easy_install
> TracGraphviz-1.3.0.1.dev0-py2.7.egg".
>
> I have now moved 1 step forward and get the following error message in my
> Trac project log: "Skipping "graphviz = graphviz.graphviz" : ImportError:
> No module named genshi.core.
>
> So... I will do a pip download of the Genshi wheel and install it and see
> if this gets me 1 step closer...
>

There is no Genshi wheel. What I downloaded was Genshi-0.7.3.tar.gz. I then
gunzipped it and untarred it. Then I "python setup.py bdist_egg".

This gave me Genshi-0.7.3-py2.7-linux-x86_64.egg. And I took that egg over
to my server. and installed it "python -m easy_install
Genshi-0.7.3-py2.7-linux-x86_64.egg"

I made the new directory readable and executable by "other". However, I get
the same error as before: "Skipping "graphviz = graphviz.graphviz" :
ImportError: No module named genshi.core."

Any thoughts?

Kindly,
Aikido Guy

--
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 trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/413c3509-80bd-44d0-a1a2-73f05e7ba443%40googlegroups.com.
Re: Request help installing GraphvizPlugin [ In reply to ]
On Tuesday, May 26, 2020 at 6:55:36 PM UTC-7, Aikido Guy wrote:
>
> There is no Genshi wheel. What I downloaded was Genshi-0.7.3.tar.gz. I
> then gunzipped it and untarred it. Then I "python setup.py bdist_egg".
>

I haven't read the whole thread yet, but there is a Genshi Wheel on PyPI:
https://pypi.org/project/Genshi/0.7.3/#files

You so install to site-packages using:
$ pip install genshi

I don't know if Graphviz will work with Trac 1.4 because it relies on
Genshi stream filters and we've migrated to Jinja2. I will take a look at
the plugin in a few hours.

- 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 trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/44a92b73-627f-4297-b018-afdc2535a042%40googlegroups.com.
Re: Request help installing GraphvizPlugin [ In reply to ]
On Tuesday, May 26, 2020 at 10:04:17 PM UTC-4, RjOllos wrote:
>
> On Tuesday, May 26, 2020 at 6:55:36 PM UTC-7, Aikido Guy wrote:
>>
>> There is no Genshi wheel. What I downloaded was Genshi-0.7.3.tar.gz. I
>> then gunzipped it and untarred it. Then I "python setup.py bdist_egg".
>>
>
> I haven't read the whole thread yet, but there is a Genshi Wheel on PyPI:
> https://pypi.org/project/Genshi/0.7.3/#files
>

Thanks! I took a look at the listing and it shows 2 files:
- "Genshi-0.7.3-py3-none-any.whl" and
- "Genshi-0.7.3.tar.gz"

The first looks like it is for python 3 and the second is what I downloaded
from the command line... which I then used to try to build an egg for
python 2.7... I know it is deprecated, but it is what I have at the moment
due to mod_python being for python 2.7 (I believe)

You so install to site-packages using:
> $ pip install genshi
>

Thank you for this command... unfortunately I can't do that from my server
because it is air gapped at the moment...
- as a side note... on ubuntu... it will install to
"/usr/local/lib/python2.7/dist-packages/"

I don't know if Graphviz will work with Trac 1.4 because it relies on
> Genshi stream filters and we've migrated to Jinja2. I will take a look at
> the plugin in a few hours.
>
> - Ryan
>

I would very much appreciate it if Graphviz could be used with Trac 1.4...
at least until mod_python is able to be upgraded to python 3. Does anyone
know if that is happening? ;)

Very kindly,
Aikido Guy

--
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 trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/fb536bbd-3512-44c2-80d2-3da2be7dae38%40googlegroups.com.
Re: Request help installing GraphvizPlugin [ In reply to ]
On Tuesday, May 26, 2020 at 7:23:01 PM UTC-7, Aikido Guy wrote:

> The first looks like it is for python 3 and the second is what I
> downloaded from the command line... which I then used to try to build an
> egg for python 2.7... I know it is deprecated, but it is what I have at the
> moment due to mod_python being for python 2.7 (I believe)
>
> You so install to site-packages using:
>> $ pip install genshi
>>
>
> Thank you for this command... unfortunately I can't do that from my server
> because it is air gapped at the moment...
> - as a side note... on ubuntu... it will install to
> "/usr/local/lib/python2.7/dist-packages/"
>

You are right about that. If I install in Python 2.7 the wheel gets built
from the sdist:

$ pip install --no-cache-dir genshi
[...]
Collecting genshi
Downloading Genshi-0.7.3.tar.gz (271 kB)
|????????????????????????????????| 271 kB 2.5 MB/s
Building wheels for collected packages: genshi
Building wheel for genshi (setup.py) ... done
Created wheel for genshi:
filename=Genshi-0.7.3-cp27-cp27m-macosx_10_15_x86_64.whl size=178497
sha256=f0035fd30ce13f13b4c59883c0f1635e071c500f0b15b9a59b32bdf4185a94f8
Stored in directory:
/private/var/folders/qf/y5yt86vn54j_sy7dv1f8hb3r0000gn/T/pip-ephem-wheel-cache-i3VXrJ/wheels/f8/d4/42/a6d3e7518c284facd0e06eebb3e670e51b4b7e8dcb1c4a49d9
Successfully built genshi
Installing collected packages: genshi
Successfully installed genshi-0.7.3


Instead, you can download the sdist and build a wheel that would be
installable on your air-gapped system:


$ wget
https://files.pythonhosted.org/packages/cd/ef/ac21ced1b5e7be3bacbc57f9d3d765064b58beb597b8022ad12c5a8c24ea/Genshi-0.7.3.tar.gz
[...]
Genshi-0.7.3.tar.gz 100%[==========================>] 264.88K
--.-KB/s in 0.08s

2020-05-26 19:39:57 (3.25 MB/s) - ‘Genshi-0.7.3.tar.gz’ saved
[271238/271238]
$ tar xzvf Genshi-0.7.3.tar.gz
[...]
x Genshi-0.7.3/scripts/
x Genshi-0.7.3/scripts/ast_generator.py
$ cd Genshi-0.7.3/
$ python setup.py bdist_wheel
[...]
adding 'Genshi-0.7.3.dist-info/entry_points.txt'
adding 'Genshi-0.7.3.dist-info/top_level.txt'
adding 'Genshi-0.7.3.dist-info/RECORD'
removing build/bdist.macosx-10.15-x86_64/wheel
$ ls dist/
Genshi-0.7.3-cp27-cp27m-macosx_10_15_x86_64.whl

### Copy to remote system

$ pip install dist/Genshi-0.7.3-cp27-cp27m-macosx_10_15_x86_64.whl
Processing ./dist/Genshi-0.7.3-cp27-cp27m-macosx_10_15_x86_64.whl
Installing collected packages: Genshi
Successfully installed Genshi-0.7.3


I don't know if Graphviz will work with Trac 1.4 because it relies on
>> Genshi stream filters and we've migrated to Jinja2. I will take a look at
>> the plugin in a few hours.
>>
>> - Ryan
>>
>
> I would very much appreciate it if Graphviz could be used with Trac 1.4...
> at least until mod_python is able to be upgraded to python 3. Does anyone
> know if that is happening? ;)
>

Trac doesn't support Python 3 yet, but we are getting close.
https://trac.edgewall.org/ticket/11988

Change log (http://modpython.org/) says:

Oct-25-2013 The latest pre-release version now supports Python 3! Please
take a minute to help us test it
<https://github.com/grisha/mod_python/issues/9>.
Nov-13-2013 3.5.0 is released.

But I don't know if it works with a recent Python 3 release. You could
switch to mod_wsgi.

- 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 trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/fa6a5920-1e0a-4828-8df0-713431ee9dd5%40googlegroups.com.
Re: Request help installing GraphvizPlugin [ In reply to ]
On Tuesday, May 26, 2020 at 7:45:30 PM UTC-7, RjOllos wrote:

> Trac doesn't support Python 3 yet, but we are getting close.
> https://trac.edgewall.org/ticket/11988
>

More relevant ticket is:
https://trac.edgewall.org/ticket/12130

--
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 trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/8846e4bb-13d9-4add-8b3c-7324f3878807%40googlegroups.com.
Re: Request help installing GraphvizPlugin [ In reply to ]
On Tuesday, May 26, 2020 at 5:52:21 PM UTC-7, Aikido Guy wrote:
>
> On Tuesday, May 26, 2020 at 5:00:45 PM UTC-4, Aikido Guy wrote:
>>
>> On Tuesday, May 26, 2020 at 3:44:52 PM UTC-4, Aikido Guy wrote:
>>>
>>> On Monday, May 25, 2020 at 11:29:21 PM UTC-4, Aikido Guy wrote:
>>>>
>>>> - https://trac-hacks.org/wiki/GraphvizPlugin
>>>>
>>>> My problem:
>>>> - It looks like the GraphvizPlugin is not currently available on pypi (
>>>> https://pypi.org/)
>>>>
>>>> *Is there, by any chance, a way to get a wheel file for the
>>>> GraphvizPlugin?*
>>>>
>>>
>>> My *first attempt to create a wheel* is as follows:
>>> 1) download zip file via the link at the bottom of page
>>> https://trac-hacks.org/browser/graphvizplugin
>>> 2) unzip graphvizplugin-17761.zip
>>> 3) cd graphviz/trunk
>>> 4) python setup.py bdist_wheel
>>> # dist/TracGraphviz-1.3.0.1.dev0-py2-none-any.whl
>>>
>>> So... I now have a *.whl file that I will attempt to install... I will
>>> let you know if it works...
>>>
>>
>> My log file has the following message (I've retyped it):
>> " Loading plugin "graphviz" from /usr/local/lib/python2.7/dist-packages"
>> "Skipping "graphviz = graphviz.graphviz": ImportError: No module named
>> graphviz
>>
>> So... something has gone wrong. Will need to revisit... maybe I should
>> try creating an egg instead and use that... hhhmm... thinking...
>>
>> Kindly,
>> Alan
>>
>
> > pip2 --version
> pip 20.1.1 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)
>
> > pip2 download easy_install
> DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020.
> Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0
> will drop support for Python 2.7 in January 2021. More details about Python
> 2 support in pip, can be found at
> https://pip.pypa.io/en/latest/development/release-process/#python-2-support
> ERROR: Could not find a version that satisfies the requirement
> easy_install (from versions: none)
> ERROR: No matching distribution found for easy_install
>
> Seems there is no longer an "easy_install" program to install eggs?
> Sigh... entering dependency hell...
>
> Has anyone been able to get GraphvizPlugin to intall on Trac 1.4.1? If so,
> help is appreciated... I seem to be reaching my limit on what to do next...
>
> Kindly,
> Aikido Guy
>


After confirming that Genshi is installed (the version should be shown on
the /about page), grab the latest source. I pushed a fix just now.

$ python setup.py bdist_wheel
$ ls dist/
TracGraphviz-1.4.0.0-py2-none-any.whl
$ pip install dist/TracGraphviz-1.4.0.0-py2-none-any.whl

Confirmed it displays a simple diagram (example copied from wiki page) with
Trac 1.4.2dev.

- 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 trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/5f683699-96a3-40da-84de-37f47002b51b%40googlegroups.com.
Re: Request help installing GraphvizPlugin [ In reply to ]
On Tuesday, May 26, 2020 at 11:18:59 PM UTC-4, RjOllos wrote:
>
> On Tuesday, May 26, 2020 at 5:52:21 PM UTC-7, Aikido Guy wrote:
>>
>> On Tuesday, May 26, 2020 at 5:00:45 PM UTC-4, Aikido Guy wrote:
>>>
>>> On Tuesday, May 26, 2020 at 3:44:52 PM UTC-4, Aikido Guy wrote:
>>>>
>>>> On Monday, May 25, 2020 at 11:29:21 PM UTC-4, Aikido Guy wrote:
>>>>>
>>>>> - https://trac-hacks.org/wiki/GraphvizPlugin
>>>>>
>>>>> My problem:
>>>>> - It looks like the GraphvizPlugin is not currently available on pypi (
>>>>> https://pypi.org/)
>>>>>
>>>>> *Is there, by any chance, a way to get a wheel file for the
>>>>> GraphvizPlugin?*
>>>>>
>>>>
>>>> My *first attempt to create a wheel* is as follows:
>>>> 1) download zip file via the link at the bottom of page
>>>> https://trac-hacks.org/browser/graphvizplugin
>>>> 2) unzip graphvizplugin-17761.zip
>>>> 3) cd graphviz/trunk
>>>> 4) python setup.py bdist_wheel
>>>> # dist/TracGraphviz-1.3.0.1.dev0-py2-none-any.whl
>>>>
>>>
>> > pip2 --version
>> pip 20.1.1 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)
>>
>> > pip2 download easy_install
>>
>
Note to self: no need to use "python -m easy_install *.egg"


> After confirming that Genshi is installed (the version should be shown on
> the /about page), grab the latest source. I pushed a fix just now.
>

I successfully created and tested Genshi-0.7.3-cp27-cp27mu-linux_x86_64.whl

$ python setup.py bdist_wheel
> $ ls dist/
> TracGraphviz-1.4.0.0-py2-none-any.whl
> $ pip install dist/TracGraphviz-1.4.0.0-py2-none-any.whl
>
> Confirmed it displays a simple diagram (example copied from wiki page)
> with Trac 1.4.2dev.
>
> - Ryan
>

I successfully created and tested TracGraphviz-1.4.0.0-py2-none-any.whl

However, I did encounter one hiccup that stopped it from working out of the
box.

I needed to create TracEnv/files directory and TracEnv/files/gvcache
directory (they both did not exist).
- once these were both created with the correct ownership then I was able
to display both a simple graphviz plot (black and white) AND a plot in
colour. All good! Thanks!

Here is some of the log showing the error... can't type it all here... if
you really need it then I can take a photo and send it to you...
ERROR: Jinja2 OSError error while rendering XML/HTML template
Traceback
trac/web/chrome.py line 1704 in _iterable_jinja_content
for chunk in stream:
...
...
graphviz/graphviz.py line 231 in get_macros
self._load_config()
graphviz/graphviz.py line 491 in _load_config
os.mkdir(self.cache_dir)
OSError: [Errno 2] No such file or directory '..../files/gvcache'

Perhaps I need to look at the graphviz options.... however, it would be
nice it graphviz created this directory if it is needed?

Thank you for your very kind help getting my original quation resolved for
me!

Warmest regards,
Aikido Guy


--
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 trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/ebfcb8ac-7621-43c1-8142-abe2a7fa2aac%40googlegroups.com.
Re: Request help installing GraphvizPlugin [ In reply to ]
On Wednesday, May 27, 2020 at 12:12:26 PM UTC-7, Aikido Guy wrote:
>
> On Tuesday, May 26, 2020 at 11:18:59 PM UTC-4, RjOllos wrote:
>>
>> On Tuesday, May 26, 2020 at 5:52:21 PM UTC-7, Aikido Guy wrote:
>>>
>>> On Tuesday, May 26, 2020 at 5:00:45 PM UTC-4, Aikido Guy wrote:
>>>>
>>>> On Tuesday, May 26, 2020 at 3:44:52 PM UTC-4, Aikido Guy wrote:
>>>>>
>>>>> On Monday, May 25, 2020 at 11:29:21 PM UTC-4, Aikido Guy wrote:
>>>>>>
>>>>>> - https://trac-hacks.org/wiki/GraphvizPlugin
>>>>>>
>>>>>> My problem:
>>>>>> - It looks like the GraphvizPlugin is not currently available on pypi
>>>>>> (https://pypi.org/)
>>>>>>
>>>>>> *Is there, by any chance, a way to get a wheel file for the
>>>>>> GraphvizPlugin?*
>>>>>>
>>>>>
>>>>> My *first attempt to create a wheel* is as follows:
>>>>> 1) download zip file via the link at the bottom of page
>>>>> https://trac-hacks.org/browser/graphvizplugin
>>>>> 2) unzip graphvizplugin-17761.zip
>>>>> 3) cd graphviz/trunk
>>>>> 4) python setup.py bdist_wheel
>>>>> # dist/TracGraphviz-1.3.0.1.dev0-py2-none-any.whl
>>>>>
>>>>
>>> > pip2 --version
>>> pip 20.1.1 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)
>>>
>>> > pip2 download easy_install
>>>
>>
> Note to self: no need to use "python -m easy_install *.egg"
>
>
>> After confirming that Genshi is installed (the version should be shown on
>> the /about page), grab the latest source. I pushed a fix just now.
>>
>
> I successfully created and
> tested Genshi-0.7.3-cp27-cp27mu-linux_x86_64.whl
>
> $ python setup.py bdist_wheel
>> $ ls dist/
>> TracGraphviz-1.4.0.0-py2-none-any.whl
>> $ pip install dist/TracGraphviz-1.4.0.0-py2-none-any.whl
>>
>> Confirmed it displays a simple diagram (example copied from wiki page)
>> with Trac 1.4.2dev.
>>
>> - Ryan
>>
>
> I successfully created and tested TracGraphviz-1.4.0.0-py2-none-any.whl
>
> However, I did encounter one hiccup that stopped it from working out of
> the box.
>
> I needed to create TracEnv/files directory and TracEnv/files/gvcache
> directory (they both did not exist).
> - once these were both created with the correct ownership then I was able
> to display both a simple graphviz plot (black and white) AND a plot in
> colour. All good! Thanks!
>
> Here is some of the log showing the error... can't type it all here... if
> you really need it then I can take a photo and send it to you...
> ERROR: Jinja2 OSError error while rendering XML/HTML template
> Traceback
> trac/web/chrome.py line 1704 in _iterable_jinja_content
> for chunk in stream:
> ...
> ...
> graphviz/graphviz.py line 231 in get_macros
> self._load_config()
> graphviz/graphviz.py line 491 in _load_config
> os.mkdir(self.cache_dir)
> OSError: [Errno 2] No such file or directory '..../files/gvcache'
>
> Perhaps I need to look at the graphviz options.... however, it would be
> nice it graphviz created this directory if it is needed?
>
> Thank you for your very kind help getting my original quation resolved for
> me!
>
> Warmest regards,
> Aikido Guy
>


Graphviz will create $env/files/gvcache if $env/files exists. $env/files
will be created the first time you upload an attachment, or if you migrate
an old environment with attachments to Trac 1.0+.

Graphviz should create the parent directory $env/files if it doesn't exist.

Are you using a new environment for testing and haven't uploaded an
attachment yet, or do your production environments not use attachments?

--
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 trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/060f1aca-9cc2-43d9-a9b6-e207b0f81eee%40googlegroups.com.
Re: Request help installing GraphvizPlugin [ In reply to ]
On Wednesday, May 27, 2020 at 3:35:18 PM UTC-4, RjOllos wrote:
>
> Graphviz will create $env/files/gvcache if $env/files exists. $env/files
> will be created the first time you upload an attachment, or if you migrate
> an old environment with attachments to Trac 1.0+.
>
> Graphviz should create the parent directory $env/files if it doesn't exist.
>
> Are you using a new environment for testing and haven't uploaded an
> attachment yet, or do your production environments not use attachments?
>

I'm using a new environment (with no uploaded attachments) to ensure
everything is working before I start migrating my production environments.

Likely I will create the files directory for all environments if it does
not already exist in order to ensure none of my production environments see
this issue...

Thanks again for all of your GREAT help! I may request some more help in
the future for a different plugin, but I think this will be good for now ;)

Kindly,
Aikido Guy

--
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 trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/a888b1f7-94d8-4bfe-8cb0-8476ff916d31%40googlegroups.com.
Re: Request help installing GraphvizPlugin [ In reply to ]
On Wednesday, May 27, 2020 at 8:19:48 PM UTC-4, Aikido Guy wrote:
>
> On Wednesday, May 27, 2020 at 3:35:18 PM UTC-4, RjOllos wrote:
>>
>> Graphviz will create $env/files/gvcache if $env/files exists. $env/files
>> will be created the first time you upload an attachment, or if you migrate
>> an old environment with attachments to Trac 1.0+.
>>
>> Graphviz should create the parent directory $env/files if it doesn't
>> exist.
>>
>> Are you using a new environment for testing and haven't uploaded an
>> attachment yet, or do your production environments not use attachments?
>>
>
> I'm using a new environment (with no uploaded attachments) to ensure
> everything is working before I start migrating my production environments.
>
> Likely I will create the files directory for all environments if it does
> not already exist in order to ensure none of my production environments see
> this issue...
>

Upon closer inspection... my production environments have "$env/gvcache"
directories and not "$env/files/gvcache".

Will the upgrade process properly handle this? i.e. move gvcache/ inside
files/?
> trac-admin --version
1.4.1

--
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 trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/5d431f5e-2945-4bea-9918-2c7d38feb518%40googlegroups.com.
Re: Re: Request help installing GraphvizPlugin [ In reply to ]
On Wed, May 27, 2020 at 5:49 PM Aikido Guy <aikidoguy@gmail.com> wrote:

> On Wednesday, May 27, 2020 at 8:19:48 PM UTC-4, Aikido Guy wrote:
>>
>> On Wednesday, May 27, 2020 at 3:35:18 PM UTC-4, RjOllos wrote:
>>>
>>> Graphviz will create $env/files/gvcache if $env/files exists. $env/files
>>> will be created the first time you upload an attachment, or if you migrate
>>> an old environment with attachments to Trac 1.0+.
>>>
>>> Graphviz should create the parent directory $env/files if it doesn't
>>> exist.
>>>
>>> Are you using a new environment for testing and haven't uploaded an
>>> attachment yet, or do your production environments not use attachments?
>>>
>>
>> I'm using a new environment (with no uploaded attachments) to ensure
>> everything is working before I start migrating my production environments.
>>
>> Likely I will create the files directory for all environments if it does
>> not already exist in order to ensure none of my production environments see
>> this issue...
>>
>
> Upon closer inspection... my production environments have "$env/gvcache"
> directories and not "$env/files/gvcache".
>
> Will the upgrade process properly handle this? i.e. move gvcache/ inside
> files/?
> > trac-admin --version
> 1.4.1
>

Trac upgrade will not move gvcache. The directory living directly under
$env does sound familiar from years ago when I last used the plugin. I
would guess that it's been moved and you'll have to relocate the directory
in your own upgrade script.

--
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 trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/CA%2BBGpn_DgR1OGX0zBR-7RAzRg6wT3DDYYRT4uxF3G_at6Yp%3D3g%40mail.gmail.com.
Re: Re: Request help installing GraphvizPlugin [ In reply to ]
On Wednesday, May 27, 2020 at 8:54:34 PM UTC-4, RjOllos wrote:
>
> On Wed, May 27, 2020 at 5:49 PM Aikido Guy <aiki...@gmail.com> wrote:
>
>> On Wednesday, May 27, 2020 at 8:19:48 PM UTC-4, Aikido Guy wrote:
>>>
>>> On Wednesday, May 27, 2020 at 3:35:18 PM UTC-4, RjOllos wrote:
>>>>
>>>> Graphviz will create $env/files/gvcache if $env/files exists.
>>>> $env/files will be created the first time you upload an attachment, or if
>>>> you migrate an old environment with attachments to Trac 1.0+.
>>>>
>>>> Graphviz should create the parent directory $env/files if it doesn't
>>>> exist.
>>>>
>>>> Are you using a new environment for testing and haven't uploaded an
>>>> attachment yet, or do your production environments not use attachments?
>>>>
>>>
>>> I'm using a new environment (with no uploaded attachments) to ensure
>>> everything is working before I start migrating my production environments.
>>>
>>> Likely I will create the files directory for all environments if it does
>>> not already exist in order to ensure none of my production environments see
>>> this issue...
>>>
>>
>> Upon closer inspection... my production environments have "$env/gvcache"
>> directories and not "$env/files/gvcache".
>>
>> Will the upgrade process properly handle this? i.e. move gvcache/ inside
>> files/?
>> > trac-admin --version
>> 1.4.1
>>
>
> Trac upgrade will not move gvcache. The directory living directly under
> $env does sound familiar from years ago when I last used the plugin. I
> would guess that it's been moved and you'll have to relocate the directory
> in your own upgrade script.
>

Thanks for letting me know about this little gotcha ;) I'll take care of
it...

Kindly,
Aikido Guy


--
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 trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/488c3183-4dd5-4da0-840c-1d5acea2ea7e%40googlegroups.com.
Re: Re: Request help installing GraphvizPlugin [ In reply to ]
On Wednesday, May 27, 2020 at 6:00:00 PM UTC-7, Aikido Guy wrote:
>
> On Wednesday, May 27, 2020 at 8:54:34 PM UTC-4, RjOllos wrote:
>>
>> On Wed, May 27, 2020 at 5:49 PM Aikido Guy <aiki...@gmail.com> wrote:
>>
>>> On Wednesday, May 27, 2020 at 8:19:48 PM UTC-4, Aikido Guy wrote:
>>>>
>>>> On Wednesday, May 27, 2020 at 3:35:18 PM UTC-4, RjOllos wrote:
>>>>>
>>>>> Graphviz will create $env/files/gvcache if $env/files exists.
>>>>> $env/files will be created the first time you upload an attachment, or if
>>>>> you migrate an old environment with attachments to Trac 1.0+.
>>>>>
>>>>> Graphviz should create the parent directory $env/files if it doesn't
>>>>> exist.
>>>>>
>>>>> Are you using a new environment for testing and haven't uploaded an
>>>>> attachment yet, or do your production environments not use attachments?
>>>>>
>>>>
>>>> I'm using a new environment (with no uploaded attachments) to ensure
>>>> everything is working before I start migrating my production environments.
>>>>
>>>> Likely I will create the files directory for all environments if it
>>>> does not already exist in order to ensure none of my production
>>>> environments see this issue...
>>>>
>>>
>>> Upon closer inspection... my production environments have "$env/gvcache"
>>> directories and not "$env/files/gvcache".
>>>
>>> Will the upgrade process properly handle this? i.e. move gvcache/ inside
>>> files/?
>>> > trac-admin --version
>>> 1.4.1
>>>
>>
>> Trac upgrade will not move gvcache. The directory living directly under
>> $env does sound familiar from years ago when I last used the plugin. I
>> would guess that it's been moved and you'll have to relocate the directory
>> in your own upgrade script.
>>
>
> Thanks for letting me know about this little gotcha ;) I'll take care of
> it...
>
> Kindly,
> Aikido Guy
>

1.4.0.1 will create the $env/files dir.

https://trac-hacks.org/changeset/17773

Published to PyPI:

https://pypi.org/project/TracGraphviz/1.4.0.1/

- 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 trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/1709a1ab-2bd0-4192-adb4-f13241bd6d75%40googlegroups.com.
Re: Re: Request help installing GraphvizPlugin [ In reply to ]
On Wednesday, May 27, 2020 at 11:49:22 PM UTC-4, RjOllos wrote:
>
> On Wednesday, May 27, 2020 at 6:00:00 PM UTC-7, Aikido Guy wrote:
>>
>> On Wednesday, May 27, 2020 at 8:54:34 PM UTC-4, RjOllos wrote:
>>>
>>> On Wed, May 27, 2020 at 5:49 PM Aikido Guy <aiki...@gmail.com> wrote:
>>>
>>>> On Wednesday, May 27, 2020 at 8:19:48 PM UTC-4, Aikido Guy wrote:
>>>>>
>>>>> On Wednesday, May 27, 2020 at 3:35:18 PM UTC-4, RjOllos wrote:
>>>>>>
>>>>>> Graphviz will create $env/files/gvcache if $env/files exists.
>>>>>> $env/files will be created the first time you upload an attachment, or if
>>>>>> you migrate an old environment with attachments to Trac 1.0+.
>>>>>>
>>>>>> Graphviz should create the parent directory $env/files if it doesn't
>>>>>> exist.
>>>>>>
>>>>>> Are you using a new environment for testing and haven't uploaded an
>>>>>> attachment yet, or do your production environments not use attachments?
>>>>>>
>>>>>
>>>>> I'm using a new environment (with no uploaded attachments) to ensure
>>>>> everything is working before I start migrating my production environments.
>>>>>
>>>>> Likely I will create the files directory for all environments if it
>>>>> does not already exist in order to ensure none of my production
>>>>> environments see this issue...
>>>>>
>>>>
>>>> Upon closer inspection... my production environments have
>>>> "$env/gvcache" directories and not "$env/files/gvcache".
>>>>
>>>> Will the upgrade process properly handle this? i.e. move gvcache/
>>>> inside files/?
>>>> > trac-admin --version
>>>> 1.4.1
>>>>
>>>
>>> Trac upgrade will not move gvcache. The directory living directly under
>>> $env does sound familiar from years ago when I last used the plugin. I
>>> would guess that it's been moved and you'll have to relocate the directory
>>> in your own upgrade script.
>>>
>>
>> Thanks for letting me know about this little gotcha ;) I'll take care of
>> it...
>>
>> 1.4.0.1 will create the $env/files dir.
>
> https://trac-hacks.org/changeset/17773
>
> Published to PyPI:
>
> https://pypi.org/project/TracGraphviz/1.4.0.1/
>
> - Ryan
>

I downloaded the python 2.7 wheel from PyPI and can confirm that it is
active as TracGraphviz 1.4.0.1 in my Trac plugins admin pane.

I also deleted the $env/files directory and then reloaded the wiki page
with my 2 test graphs
- I can confirm that the $env/files directory and the $env/files/gvcache
directory were both successfully created

Thank you... kindly,
Aikido Guy

--
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 trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/c20b61f4-7bee-4cf5-bb5e-abfd7bfebf59%40googlegroups.com.
Re: Re: Request help installing GraphvizPlugin [ In reply to ]
On Thursday, May 28, 2020 at 11:50:52 AM UTC-7, Aikido Guy wrote:
>
> On Wednesday, May 27, 2020 at 11:49:22 PM UTC-4, RjOllos wrote:
>>
>> On Wednesday, May 27, 2020 at 6:00:00 PM UTC-7, Aikido Guy wrote:
>>>
>>> On Wednesday, May 27, 2020 at 8:54:34 PM UTC-4, RjOllos wrote:
>>>>
>>>> On Wed, May 27, 2020 at 5:49 PM Aikido Guy <aiki...@gmail.com> wrote:
>>>>
>>>>> On Wednesday, May 27, 2020 at 8:19:48 PM UTC-4, Aikido Guy wrote:
>>>>>>
>>>>>> On Wednesday, May 27, 2020 at 3:35:18 PM UTC-4, RjOllos wrote:
>>>>>>>
>>>>>>> Graphviz will create $env/files/gvcache if $env/files exists.
>>>>>>> $env/files will be created the first time you upload an attachment, or if
>>>>>>> you migrate an old environment with attachments to Trac 1.0+.
>>>>>>>
>>>>>>> Graphviz should create the parent directory $env/files if it doesn't
>>>>>>> exist.
>>>>>>>
>>>>>>> Are you using a new environment for testing and haven't uploaded an
>>>>>>> attachment yet, or do your production environments not use attachments?
>>>>>>>
>>>>>>
>>>>>> I'm using a new environment (with no uploaded attachments) to ensure
>>>>>> everything is working before I start migrating my production environments.
>>>>>>
>>>>>> Likely I will create the files directory for all environments if it
>>>>>> does not already exist in order to ensure none of my production
>>>>>> environments see this issue...
>>>>>>
>>>>>
>>>>> Upon closer inspection... my production environments have
>>>>> "$env/gvcache" directories and not "$env/files/gvcache".
>>>>>
>>>>> Will the upgrade process properly handle this? i.e. move gvcache/
>>>>> inside files/?
>>>>> > trac-admin --version
>>>>> 1.4.1
>>>>>
>>>>
>>>> Trac upgrade will not move gvcache. The directory living directly under
>>>> $env does sound familiar from years ago when I last used the plugin. I
>>>> would guess that it's been moved and you'll have to relocate the directory
>>>> in your own upgrade script.
>>>>
>>>
>>> Thanks for letting me know about this little gotcha ;) I'll take care of
>>> it...
>>>
>>> 1.4.0.1 will create the $env/files dir.
>>
>> https://trac-hacks.org/changeset/17773
>>
>> Published to PyPI:
>>
>> https://pypi.org/project/TracGraphviz/1.4.0.1/
>>
>> - Ryan
>>
>
> I downloaded the python 2.7 wheel from PyPI and can confirm that it is
> active as TracGraphviz 1.4.0.1 in my Trac plugins admin pane.
>
> I also deleted the $env/files directory and then reloaded the wiki page
> with my 2 test graphs
> - I can confirm that the $env/files directory and the $env/files/gvcache
> directory were both successfully created
>
> Thank you... kindly,
> Aikido Guy
>

Thank you for testing and confirming!

--
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 trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/c11fe819-7dcf-4600-a3f9-6865d435c873%40googlegroups.com.