Zim-Wiki export error

I installed Zim-Wiki (075.2) from opensuse on my fairly standard Leap 15.6 distro after reading and about it in this and FOSS forum. I found it to be really great for my requirements and easy to setup and use.

Unfortunately I get an error when trying to export to html or markdown format and can’t find help in Zim-wiki.org or searching through. It seems Zim users are moving to other apps, but if somebody here can point me in the right direction it would be great.

In the off-chance, I include below an extract of the error I get:

ERROR: Exception exporting page: <10 DISTROS>
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/zim/templates/expression.py", line 120, in __call__
    value = value[p]
TypeError: 'PageProxy' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/zim/notebook/page.py", line 153, in makeValidPageName
    Path.assertValidPageName(newname)
etc

1 Like

Zim development is happening at:

I see it is saying “python3 >= 3.6” and you error message indicates python3.6 so that looks good.

Thank you @marel , I wasn’t sure if this was better raised here (i used the suse repository) or with Zim (what I found seemed to be all about ubuntu distros).

I will give them a try

@RG Maybe some sort of regression, this one os for MacOS… it’s also a later version of Python.

Thank you @malcomlewis , I can see how there is a possible connection to the old bug report, but the details and patch are completely beyond me. So will need to wait to see if someone more knowledgeable than me has some plain instructions that I can follow on Leap!.

Incidentally, I tried the flatpak version but I got a different error and quickly abandoned it

Regards

@RG Well I tried it here on my GNOME Leap 15.6 laptop, no issues exporting either markdown or html. Maybe my experiment was not complex enough?

So, as a test, create a test user, login as the test user, create something and export, do you still see the error?

Hi @malcomlewis , thank you.

I followed your suggestions, created a new test user, created a new Zim notebook, very small but inserted test jpg and a pdf attachments and tried to export: it worked perfect.

I then copied my original (~2Mb) Zim notebook back to the new test user. I tried again to export but this time got the same error. Finally I tried with another, larger Zim notebook (13Mb). This time it exported perfect.

So the problem must be due to something in the original notebook, its attachments, insertions or even extraneous characters that sometimes my unreliable touch-typing creates. It will be hit-and-miss but hopefully I should be able to identify the culprit.

Thanks again for your help

1 Like

Postscript: found the culprit: One line in one page contained the following typo:

... Sorcim introduces **SuperCalc**[[,]] with improvement ...

This typo (pressed Ctrl rather than Shift ?) did not show on Zip markdown format, only after opening the file as unformated txt

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.