I have tried to adjust the plugin and tested on Window 8.1 and Linux Debian
(Jessie) with ZIM-Wiki version 0.63 (source) and Python 2.7. There was an
issue with the text variable passed and import of pydot module caused that
the plugin was not present on the list since it failed on import. The
plugin is available from a BUG page
https://bugs.launchpad.net/zim/+bug/1472408 as a file (suggested by Murat
Güven <https://launchpad.net/%7Emurat-gueven>), the plugin page has been
also updated with a link to the plugin.
It was slightly complicated to install the module pydot on Windows machine,
but easy_install utility limited the procedure to few lines:
Firstly I downloaded the installation script of easy_install from
https://bootstrap.pypa.io/ez_setup.py and executed with installed python
2.7 compiler. The installation script is described in more details on
https://pypi.python.org/pypi/setuptools. Secondly the dydot can be
installed by the following command:
With Linux it was simple, the Debian repository provides python-pydot
package, which can be installed through command:
# apt-get install python-pydot
After all the ZIM-Wiki running from code should provide the treemap plugin
on the list of plugins and it should be possible to activate it as far as
dependencies are fulfilled.
Hope this helps.
All the best,
On 2 July 2015 at 23:13, NorfCran <norfc...@gmail.com> wrote:
> Dear Jaap and Alessandro,
> I have tried to test the plugin against ZIM versio 0.62 and it failed with
> the following error:
> *INFO: This is zim 0.62DEBUG: Python version is sys.version_info(major=2,
> minor=7, micro=6, releaselevel='final', serial=0)...ERROR: Could not
> generate imageTraceback (most recent call last): File
> "/usr/lib/pymodules/python2.7/zim/plugins/base/imagegenerator.py", line
> 338, in generate_image imagefile, logfile =
> self.generator.generate_image(text) File
> "/home/norfcran/.local/share/zim/plugins/treemapeditor.py", line 69, in
> generate_image text = text.split("\n")AttributeError: 'list' object has
> no attribute 'split'*
> On the other other hand ZIM version 0.63 generates the graph image
> correctly. It seems that the text variable is a string in 0.63 instead of a
> list in 0.62,
> therefore I have changed it to split the text with the up to date version
> of the plugin suitable for ZIM version 0.63.
> Furthermore the plugin depends on python-pydot package.
> All the best,
> On 28 June 2015 at 21:10, Jaap Karssenberg <jaap.karssenb...@gmail.com>
>> Hi Alessandro,
>> Sounds like you installed the plugin correctly. The fact that the ".pyc"
>> file is created shows that zim tries to load the plugin. However if it does
>> not show up, there may be an error in the plugin that prevents it from
>> Try running zim with "zim -D" to get debug output and open the
>> preferences window. The error while loading the plugin should show up there.
>> On Wed, Jun 24, 2015 at 10:57 AM, Alessandro La Fauci <alafa...@yahoo.it>
>>> Dear Zim team,
>>> I would really like to install and use the TreeMap plugin published on
>>> this page
>>> I saved and put the code in folder ~/.local/share/zim/plugins , the file
>>> is saved as "tremapeditor.py". After starting Zim i found another file in
>>> the same directory called "tremapeditor.pyc".
>>> Nevertheless the plugin doesn't appear under preferences > plugins, and
>>> I can't see any new option in all the other menus.
>>> What should I do to correctly install this plugin.
>>> Thank you in advance
>>> Mailing list: https://launchpad.net/~zim-wiki
>>> Post to : email@example.com
>>> Unsubscribe : https://launchpad.net/~zim-wiki
>>> More help : https://help.launchpad.net/ListHelp
>> Mailing list: https://launchpad.net/~zim-wiki
>> Post to : firstname.lastname@example.org
>> Unsubscribe : https://launchpad.net/~zim-wiki
>> More help : https://help.launchpad.net/ListHelp
Mailing list: https://launchpad.net/~zim-wiki
Post to : email@example.com
Unsubscribe : https://launchpad.net/~zim-wiki
More help : https://help.launchpad.net/ListHelp