Hello!
First I want to thank you for great and helpful the mwlib library!
*I noticed two errors when generating PDF files when title page (article)
in the MediaWiki have ' or ( *and* ) characters.*
For example, if the page title is "Foo_(bar)" then I get the following
error message:
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `/usr/bin/mw-render --config http://mywiki/w/ --output
/tmp/mw-pdf-lJVlIa --writer rl Foo_(bar)'
Second example, if page title is "Foo_BAR's", then I get the following
error message:
sh: -c: line 0: unexpected EOF while looking for matching `''
sh: -c: line 1: syntax error: unexpected end of file
I do not use whole Collection extension, only the "Pdf Export" extension
(https://www.mediawiki.org/wiki/Extension:Pdf_Export) because I'dont need
as many functions as Collection has and I use mwlib only to produce PDF
files by the Pdf Export extension.
*My server configuration is:*
- CentOS: 6.3 (final)
- MediaWiki: 1.19.0
- PHP: 5.3.3
- Python: 2.6.6
- MySQL: 5.1.61
*My MediaWiki configuration for "Pdf Export" in the LocalSettings.php file
is:*
require_once("$IP/extensions/PdfExport/PdfExport.php");
$wgPdfExportMwLibPath = '/usr/bin/mw-render';
*mwlib installation log:*
[root]# pip install mwlib-0.14.0.zip
Unpacking ./mwlib-0.14.0.zip
Running setup.py egg_info for package from
file:///tmp/py-i/mwlib/mwlib-0.14.0.zip
warning: no files found matching 'README.html'
warning: no files found matching 'docs/commands.html'
warning: no files found matching 'docs/configfiles.html'
warning: no files found matching 'docs/metabook.html'
warning: no files found matching 'docs/writers.html'
Requirement already satisfied (use --upgrade to upgrade): pyparsing>=1.4.11
in /usr/lib/python2.6/site-packages (from mwlib==0.14.0)
Requirement already satisfied (use --upgrade to upgrade): timelib>=0.2 in
/usr/lib/python2.6/site-packages (from mwlib==0.14.0)
Requirement already satisfied (use --upgrade to upgrade): bottle>=0.10 in
/usr/lib/python2.6/site-packages (from mwlib==0.14.0)
Requirement already satisfied (use --upgrade to upgrade): pyPdf>=1.12 in
/usr/lib/python2.6/site-packages (from mwlib==0.14.0)
Requirement already satisfied (use --upgrade to upgrade): apipkg>=1.2 in
/usr/lib/python2.6/site-packages (from mwlib==0.14.0)
Requirement already satisfied (use --upgrade to upgrade): qserve>=0.2.7 in
/usr/lib/python2.6/site-packages (from mwlib==0.14.0)
Requirement already satisfied (use --upgrade to upgrade): lxml in
/usr/lib/python2.6/site-packages (from mwlib==0.14.0)
Requirement already satisfied (use --upgrade to upgrade): py>=1.4 in
/usr/lib/python2.6/site-packages (from mwlib==0.14.0)
Requirement already satisfied (use --upgrade to upgrade): sqlite3dbm in
/usr/lib/python2.6/site-packages (from mwlib==0.14.0)
Requirement already satisfied (use --upgrade to upgrade): simplejson>=2.3
in /usr/lib/python2.6/site-packages (from mwlib==0.14.0)
Requirement already satisfied (use --upgrade to upgrade): roman in
/usr/lib/python2.6/site-packages (from mwlib==0.14.0)
Requirement already satisfied (use --upgrade to upgrade): gevent in
/usr/lib/python2.6/site-packages (from mwlib==0.14.0)
Requirement already satisfied (use --upgrade to upgrade): odfpy>=0.9,<0.10
in /usr/lib/python2.6/site-packages (from mwlib==0.14.0)
Requirement already satisfied (use --upgrade to upgrade): greenlet in
/usr/lib/python2.6/site-packages (from gevent->mwlib==0.14.0)
Installing collected packages: mwlib
...
---8<--- cut
...
Successfully installed mwlib
Cleaning up...
Thanks in advance for your support!
Best regards,
Scottie
--
You received this message because you are subscribed to the Google Groups
"mwlib" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/mwlib/-/Fo56IbIcRFAJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/mwlib?hl=en.