From mariusz.sapinski at gmail.com Fri Jan 10 05:50:31 2020 From: mariusz.sapinski at gmail.com (mariusz sapinski) Date: Fri, 10 Jan 2020 11:50:31 +0100 Subject: [moin-user] export to html Message-ID: Hello, I run a standalone wiki (moin 1.9.9) and I have just moved it to another ubuntu computer. All looks fine except that the command: moin --config-dir=/home/me/wiki/config --wiki-url=localhost:8080/Machines/ export dump --page=HEST --target-dir=/home/me/HEST/html gives now this error: Writing "HEST/Areas"... Traceback (most recent call last): File "/usr/bin/moin", line 5, in run() File "/usr/lib/python2.7/dist-packages/MoinMoin/script/moin.py", line 15, in run MoinScript().run(showtime=0) File "/usr/lib/python2.7/dist-packages/MoinMoin/script/__init__.py", line 138, in run self.mainloop() File "/usr/lib/python2.7/dist-packages/MoinMoin/script/__init__.py", line 266, in mainloop plugin_class(args[2:], self.options).run() # all starts again there File "/usr/lib/python2.7/dist-packages/MoinMoin/script/__init__.py", line 138, in run self.mainloop() File "/usr/lib/python2.7/dist-packages/MoinMoin/script/export/dump.py", line 272, in mainloop _attachment(request, pagename, filename, outputdir, copy=True) File "/usr/lib/python2.7/dist-packages/MoinMoin/script/export/dump.py", line 100, in _attachment script.log('Writing "%s" attachment "%s"...' % (pagename, filename)) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 6: ordinal not in range(128) There seems to be nothing wrong on the page where the script stops. Do you have any suggestions - what should I look at? Best regards, Mariusz -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul at boddie.org.uk Sat Jan 11 11:35:41 2020 From: paul at boddie.org.uk (Paul Boddie) Date: Sat, 11 Jan 2020 17:35:41 +0100 Subject: [moin-user] export to html In-Reply-To: References: Message-ID: <4889514.M4VKbbFhCB@jeremy> On Friday 10. January 2020 11.50.31 mariusz sapinski wrote: > Hello, > > I run a standalone wiki (moin 1.9.9) and I have just moved it to another > ubuntu computer. All looks fine except that the command: > > moin --config-dir=/home/me/wiki/config --wiki-url=localhost:8080/Machines/ > export dump --page=HEST --target-dir=/home/me/HEST/html > > gives now this error: [...] > File "/usr/lib/python2.7/dist-packages/MoinMoin/script/export/dump.py", > line 100, in _attachment > script.log('Writing "%s" attachment "%s"...' % (pagename, filename)) > UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 6: > ordinal not in range(128) > > There seems to be nothing wrong on the page where the script stops. Do > you have any suggestions - what should I look at? Although the error occurs when dumping an attachment, it appears that the error actually occurs when writing to the activity log (which is probably just output to the screen). I would guess here that the pagename is Unicode and cannot be converted to a string, which might be demanded when the text is written to the screen. What locale settings are you using? If you have LC_CTYPE as something like "en_GB.ASCII" then it is quite easy to get such errors when attempting to output Unicode. Paul P.S. Another year begins with a reminder that I should perhaps get round to releasing my Moin parser and serialiser tools that dump wiki content in a slightly more reliable way than "moin export dump"... From mariusz.sapinski at gmail.com Sat Jan 11 16:10:40 2020 From: mariusz.sapinski at gmail.com (mariusz sapinski) Date: Sat, 11 Jan 2020 22:10:40 +0100 Subject: [moin-user] moin-user Digest, Vol 35, Issue 2 In-Reply-To: References: Message-ID: On Sat, Jan 11, 2020 at 6:00 PM wrote: > Send moin-user mailing list submissions to > moin-user at python.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://mail.python.org/mailman/listinfo/moin-user > or, via email, send a message with subject or body 'help' to > moin-user-request at python.org > > You can reach the person managing the list at > moin-user-owner at python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of moin-user digest..." > > > Today's Topics: > > 1. Re: export to html (Paul Boddie) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sat, 11 Jan 2020 17:35:41 +0100 > From: Paul Boddie > To: moin-user at python.org > Subject: Re: [moin-user] export to html > Message-ID: <4889514.M4VKbbFhCB at jeremy> > Content-Type: text/plain; charset="us-ascii" > > On Friday 10. January 2020 11.50.31 mariusz sapinski wrote: > > Hello, > > > > I run a standalone wiki (moin 1.9.9) and I have just moved it to another > > ubuntu computer. All looks fine except that the command: > > > > moin --config-dir=/home/me/wiki/config > --wiki-url=localhost:8080/Machines/ > > export dump --page=HEST --target-dir=/home/me/HEST/html > > > > gives now this error: > > [...] > > > File "/usr/lib/python2.7/dist-packages/MoinMoin/script/export/dump.py", > > line 100, in _attachment > > script.log('Writing "%s" attachment "%s"...' % (pagename, filename)) > > UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 6: > > ordinal not in range(128) > > > > There seems to be nothing wrong on the page where the script stops. Do > > you have any suggestions - what should I look at? > > Although the error occurs when dumping an attachment, it appears that the > error actually occurs when writing to the activity log (which is probably > just > output to the screen). > > The last page being exported does not even contain any attachment. > I would guess here that the pagename is Unicode and cannot be converted to > a > string, which might be demanded when the text is written to the screen. > > What locale settings are you using? If you have LC_CTYPE as something like > "en_GB.ASCII" then it is quite easy to get such errors when attempting to > output Unicode. > Hm. My environmental variable LANG is en-US.UTF-8 LC_CTYPE is empty I have tried: export LC_CTYPE=$LANG but the error is still there. Cheers, Mariusz > > Paul > > P.S. Another year begins with a reminder that I should perhaps get round > to > releasing my Moin parser and serialiser tools that dump wiki content in a > slightly more reliable way than "moin export dump"... > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > moin-user mailing list > moin-user at python.org > https://mail.python.org/mailman/listinfo/moin-user > > > ------------------------------ > > End of moin-user Digest, Vol 35, Issue 2 > **************************************** > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcolsen at gmail.com Sat Jan 11 19:39:50 2020 From: pcolsen at gmail.com (Peter Olsen) Date: Sat, 11 Jan 2020 19:39:50 -0500 Subject: [moin-user] Conversion to Moin 2.0 Message-ID: Ladies and Gentlemen, Can anyone point me toward a good explanation of how to convert from main 1.9.10 to moon 2.0? I'm much more of a user than a programmer. I've looked around for some instructions I can understand, but I haven't found them yet. Peter -- Peter Olsen olsen at sigmaxi.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From crosseyedpenguin at yahoo.com Sun Jan 12 09:53:17 2020 From: crosseyedpenguin at yahoo.com (Roger Haase) Date: Sun, 12 Jan 2020 14:53:17 +0000 (UTC) Subject: [moin-user] Conversion to Moin 2.0 In-Reply-To: References: Message-ID: <719788329.2096583.1578840797057@mail.yahoo.com> https://moin-20.readthedocs.io/en/latest/admin/install.html? https://moin-20.readthedocs.io/en/latest/man/moin.html#moin-command-line-interface Note moin2 is Python 3.5+ only and much of the admin interface has changed. On Saturday, January 11, 2020, 05:40:33 PM MST, Peter Olsen wrote: Ladies and Gentlemen, Can anyone point me toward a good explanation of how to convert from main 1.9.10 to moon 2.0?? I'm much more of a user than a programmer.? I've looked around for some instructions I can understand, but I haven't found them yet. Peter -- Peter Olsen olsen at sigmaxi.net _______________________________________________ moin-user mailing list moin-user at python.org https://mail.python.org/mailman/listinfo/moin-user -------------- next part -------------- An HTML attachment was scrubbed... URL: From crosseyedpenguin at yahoo.com Sun Jan 12 10:01:14 2020 From: crosseyedpenguin at yahoo.com (Roger Haase) Date: Sun, 12 Jan 2020 15:01:14 +0000 (UTC) Subject: [moin-user] Conversion to Moin 2.0 In-Reply-To: <719788329.2096583.1578840797057@mail.yahoo.com> References: <719788329.2096583.1578840797057@mail.yahoo.com> Message-ID: <1227374806.10335593.1578841275006@mail.yahoo.com> Also, moin2 is still buggy and not ready for production wikis. On Sunday, January 12, 2020, 07:53:46 AM MST, Roger Haase via moin-user wrote: https://moin-20.readthedocs.io/en/latest/admin/install.html? https://moin-20.readthedocs.io/en/latest/man/moin.html#moin-command-line-interface Note moin2 is Python 3.5+ only and much of the admin interface has changed. On Saturday, January 11, 2020, 05:40:33 PM MST, Peter Olsen wrote: Ladies and Gentlemen, Can anyone point me toward a good explanation of how to convert from main 1.9.10 to moon 2.0?? I'm much more of a user than a programmer.? I've looked around for some instructions I can understand, but I haven't found them yet. Peter -- Peter Olsen olsen at sigmaxi.net _______________________________________________ moin-user mailing list moin-user at python.org https://mail.python.org/mailman/listinfo/moin-user _______________________________________________ moin-user mailing list moin-user at python.org https://mail.python.org/mailman/listinfo/moin-user -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.sapinski at gmail.com Tue Jan 21 03:18:29 2020 From: mariusz.sapinski at gmail.com (mariusz sapinski) Date: Tue, 21 Jan 2020 09:18:29 +0100 Subject: [moin-user] moin-user Digest, Vol 35, Issue 2 In-Reply-To: References: Message-ID: Hello, The source of the bug was an attachment (file) with umlaut in the file type. Strangely enough on old laptop with Fedora 30 I have not had this problem. However now I'l trying to do 'export dump' and have another issue: Traceback (most recent call last): File "/usr/bin/moin", line 5, in run() File "/usr/lib/python2.7/dist-packages/MoinMoin/script/moin.py", line 15, in run MoinScript().run(showtime=0) File "/usr/lib/python2.7/dist-packages/MoinMoin/script/__init__.py", line 138, in run self.mainloop() File "/usr/lib/python2.7/dist-packages/MoinMoin/script/__init__.py", line 266, in mainloop plugin_class(args[2:], self.options).run() # all starts again there File "/usr/lib/python2.7/dist-packages/MoinMoin/script/__init__.py", line 138, in run self.mainloop() File "/usr/lib/python2.7/dist-packages/MoinMoin/script/export/dump.py", line 207, in mainloop for line in log: File "/usr/lib/python2.7/dist-packages/MoinMoin/logfile/__init__.py", line 303, in next result = self.__next() File "/usr/lib/python2.7/dist-packages/MoinMoin/logfile/__init__.py", line 290, in __next result = self.parser(self.__buffer.lines[self.__rel_index]) File "/usr/lib/python2.7/dist-packages/MoinMoin/logfile/editlog.py", line 226, in parser result.ed_time_usecs = long(result.ed_time_usecs or '0') # has to be long for py 2.2.x UnicodeEncodeError: 'decimal' codec can't encode characters in position 0-93: invalid decimal Unicode string. Problem looks similar but now I have no idea what is wrong (no more umlauts). Mariusz On Sat, Jan 11, 2020 at 10:10 PM mariusz sapinski < mariusz.sapinski at gmail.com> wrote: > > > On Sat, Jan 11, 2020 at 6:00 PM wrote: > >> Send moin-user mailing list submissions to >> moin-user at python.org >> >> To subscribe or unsubscribe via the World Wide Web, visit >> https://mail.python.org/mailman/listinfo/moin-user >> or, via email, send a message with subject or body 'help' to >> moin-user-request at python.org >> >> You can reach the person managing the list at >> moin-user-owner at python.org >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of moin-user digest..." >> >> >> Today's Topics: >> >> 1. Re: export to html (Paul Boddie) >> >> >> ---------------------------------------------------------------------- >> >> Message: 1 >> Date: Sat, 11 Jan 2020 17:35:41 +0100 >> From: Paul Boddie >> To: moin-user at python.org >> Subject: Re: [moin-user] export to html >> Message-ID: <4889514.M4VKbbFhCB at jeremy> >> Content-Type: text/plain; charset="us-ascii" >> >> On Friday 10. January 2020 11.50.31 mariusz sapinski wrote: >> > Hello, >> > >> > I run a standalone wiki (moin 1.9.9) and I have just moved it to another >> > ubuntu computer. All looks fine except that the command: >> > >> > moin --config-dir=/home/me/wiki/config >> --wiki-url=localhost:8080/Machines/ >> > export dump --page=HEST --target-dir=/home/me/HEST/html >> > >> > gives now this error: >> >> [...] >> >> > File >> "/usr/lib/python2.7/dist-packages/MoinMoin/script/export/dump.py", >> > line 100, in _attachment >> > script.log('Writing "%s" attachment "%s"...' % (pagename, filename)) >> > UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 6: >> > ordinal not in range(128) >> > >> > There seems to be nothing wrong on the page where the script stops. Do >> > you have any suggestions - what should I look at? >> >> Although the error occurs when dumping an attachment, it appears that the >> error actually occurs when writing to the activity log (which is probably >> just >> output to the screen). >> >> > The last page being exported does not even contain any attachment. > > > >> I would guess here that the pagename is Unicode and cannot be converted >> to a >> string, which might be demanded when the text is written to the screen. >> >> What locale settings are you using? If you have LC_CTYPE as something >> like >> "en_GB.ASCII" then it is quite easy to get such errors when attempting to >> output Unicode. >> > > Hm. My environmental variable > LANG is en-US.UTF-8 > LC_CTYPE is empty > I have tried: > export LC_CTYPE=$LANG > but the error is still there. > > Cheers, > > Mariusz > > > > >> >> Paul >> >> P.S. Another year begins with a reminder that I should perhaps get round >> to >> releasing my Moin parser and serialiser tools that dump wiki content in a >> slightly more reliable way than "moin export dump"... >> >> >> ------------------------------ >> >> Subject: Digest Footer >> >> _______________________________________________ >> moin-user mailing list >> moin-user at python.org >> https://mail.python.org/mailman/listinfo/moin-user >> >> >> ------------------------------ >> >> End of moin-user Digest, Vol 35, Issue 2 >> **************************************** >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From renato.pontefice at gmail.com Tue Jan 21 06:52:19 2020 From: renato.pontefice at gmail.com (Renato Pontefice) Date: Tue, 21 Jan 2020 12:52:19 +0100 Subject: [moin-user] moin 2 help Message-ID: Hi, can someone show me a link to to use moin 2? TIA Renato -------------- next part -------------- An HTML attachment was scrubbed... URL: From renato.pontefice at gmail.com Tue Jan 21 07:16:46 2020 From: renato.pontefice at gmail.com (Renato Pontefice) Date: Tue, 21 Jan 2020 13:16:46 +0100 Subject: [moin-user] Editing of this page is not allowed. Message-ID: Hi, using Moin2 and trying to create a page, I receive this error " Editing of this page is not allowed." (this is the translation of google translation from Italian language) What should I do? Why I have this error? Is something about right? TIA Renato -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariusz.sapinski at gmail.com Wed Jan 22 02:07:48 2020 From: mariusz.sapinski at gmail.com (mariusz sapinski) Date: Wed, 22 Jan 2020 08:07:48 +0100 Subject: [moin-user] more general problem with utf-8 codec? Message-ID: Hi, the problem with codecs for moin continue and I don't find a solution. System: Ubuntu 19.10, moin 1.9.9 Attempt to upgrade moin: Below is the output of the upgrade command. Best regards, Mariusz Output: sudo pip install moin --upgrade [sudo] password for sapinski: Collecting moin Using cached https://files.pythonhosted.org/packages/db/c4/58872c31f3c242c2cec3a35f493628182979b664645858dafba4071b9cb5/moin-1.9.10.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "/tmp/pip-install-ezJOdL/moin/setup.py", line 355, in setup(**setup_args) File "/usr/lib/python2.7/distutils/core.py", line 124, in setup dist.parse_config_files() File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 697, in parse_config_files self._parse_config_files(filenames=filenames) File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 594, in _parse_config_files (parser.read_file if six.PY3 else parser.readfp)(reader) File "/usr/lib/python2.7/ConfigParser.py", line 324, in readfp self._read(fp, filename) File "/usr/lib/python2.7/ConfigParser.py", line 479, in _read line = fp.readline() File "/usr/lib/python2.7/codecs.py", line 314, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf8' codec can't decode byte 0xfc in position 57: invalid start byte ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-ezJOdL/moin/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul at boddie.org.uk Wed Jan 22 06:00:56 2020 From: paul at boddie.org.uk (Paul Boddie) Date: Wed, 22 Jan 2020 12:00:56 +0100 Subject: [moin-user] more general problem with utf-8 codec? In-Reply-To: References: Message-ID: <2311316.lEG9M66gh9@jeremy> On Wednesday 22. January 2020 08.07.48 mariusz sapinski wrote: > Hi, > > the problem with codecs for moin continue and I don't find a solution. > System: Ubuntu 19.10, moin 1.9.9 > Attempt to upgrade moin: > Below is the output of the upgrade command. > > Best regards, Mariusz > > Output: > sudo pip install moin --upgrade I am hoping that you can upgrade Moin in this way, not having looked at Moin with pip for a long time, if ever. > [sudo] password for sapinski: > Collecting moin > Using cached > https://files.pythonhosted.org/packages/db/c4/58872c31f3c242c2cec3a35f493628 > 182979b664645858dafba4071b9cb5/moin-1.9.10.tar.gz Complete output from > command python setup.py egg_info: > Traceback (most recent call last): > File "", line 1, in > File "/tmp/pip-install-ezJOdL/moin/setup.py", line 355, in > setup(**setup_args) > File "/usr/lib/python2.7/distutils/core.py", line 124, in setup > dist.parse_config_files() > File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 697, > in parse_config_files > self._parse_config_files(filenames=filenames) > File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 594, > in _parse_config_files > (parser.read_file if six.PY3 else parser.readfp)(reader) > File "/usr/lib/python2.7/ConfigParser.py", line 324, in readfp > self._read(fp, filename) > File "/usr/lib/python2.7/ConfigParser.py", line 479, in _read > line = fp.readline() > File "/usr/lib/python2.7/codecs.py", line 314, in decode > (result, consumed) = self._buffer_decode(data, self.errors, final) > UnicodeDecodeError: 'utf8' codec can't decode byte 0xfc in position 57: > invalid start byte Do you know what it is trying to read here? Maybe there is a list of configuration files in the setup.py script or setup.cfg. It looks like ConfigParser has been given a file object by distutils that has been opened by something like codecs.open. That isn't a problem - it is how I open files in Python 2 and read Unicode out of them - but it seems as if something expects UTF-8 and the file contains something else. Paul From renato.pontefice at gmail.com Sun Jan 26 07:25:15 2020 From: renato.pontefice at gmail.com (Renato Pontefice) Date: Sun, 26 Jan 2020 13:25:15 +0100 Subject: [moin-user] moinmoin 1.9.10: how to use rst markup Message-ID: Hi, I've finaly installed: - moin 1.9.10 - configured ACL and other things to made me work on pythonanywhere.com Now, I would use rst markup. I've seen opendoc are installed on my python 2.7 I think I have to set it in wikiconfig.py. Is it right? and, if yes: where? Thak you Renato From renato.pontefice at gmail.com Tue Jan 28 05:59:11 2020 From: renato.pontefice at gmail.com (Renato Pontefice) Date: Tue, 28 Jan 2020 11:59:11 +0100 Subject: [moin-user] use rst on moinmoin 1.9.10 Message-ID: Hi, can someone help me? I'm sure I'm close to the top, but I need this information: How can I use restructuredtext? TIA Renato -------------- next part -------------- An HTML attachment was scrubbed... URL: From crosseyedpenguin at yahoo.com Tue Jan 28 09:34:12 2020 From: crosseyedpenguin at yahoo.com (Roger Haase) Date: Tue, 28 Jan 2020 14:34:12 +0000 (UTC) Subject: [moin-user] use rst on moinmoin 1.9.10 In-Reply-To: References: Message-ID: <1214750693.265313.1580222052183@mail.yahoo.com> Per HelpOnParsers, making the first line: #format ReST should do it, but on my wiki, I had to make the first line: ##format ReST If you are still trying to get moin2 running on pythonanywhere, I updated /moin/contrib/pythonanywhere a few weeks ago. On Tuesday, January 28, 2020, 04:01:11 AM MST, Renato Pontefice wrote: Hi,can someone help me?I'm sure I'm close to the top, but I need this information:How can I use restructuredtext? TIA Renato _______________________________________________ moin-user mailing list moin-user at python.org https://mail.python.org/mailman/listinfo/moin-user -------------- next part -------------- An HTML attachment was scrubbed... URL: From pyd at pydelens.be Tue Jan 28 15:51:53 2020 From: pyd at pydelens.be (Pierre-Yves DELENS) Date: Tue, 28 Jan 2020 21:51:53 +0100 Subject: [moin-user] New coming on MoinMoin - in French Message-ID: <001801d5d61c$c9c7f1d0$5d57d570$@pydelens.be> Hello, As responsible for www.chastre-ecolo.be (Wordpress based), I need to add a wiki feature side-site, preferably outside of WordPress (which is not my choice, but obliged from above). I was deeply involved in Python sphere several years ago. Coming back is a bit difficult, about config?s. Right now, I?m just testing MoinMoin Desktop Edition, on Win 10 / Python 6. I?m stuck because : 1. I fail to pass through the step of installing languages packages (French only in this case). I tuned the config this way : language_default = 'fr' page_category_regex = ur'(?PCat[?e]gorie(?P\S+))' page_dict_regex = ur'(?PDict(?P\S+))' page_group_regex = ur'(?PGroupe(?P\S+))' page_template_regex = ur'(?PMod[e?]le(?P\S+))' but I still don?t see where to get the packages 2. I didn?t define myself as a ?superuser?, as it is presented as unneeded on Desktop Edition (any user is a superuser). However I?m not yet registered at all as a ?user?, despite attempts to. What did I miss ? Is there someone out there to help me in these first steps ? Yours __________________________________________________________________ Pierre-Yves Delens, ir-arch Rue de Bau, 26 - 1450 - Blanmont GSM : 00 32 (0)476 54 47 31 pyd at pyDelens.be -------------- next part -------------- An HTML attachment was scrubbed... URL: