Q: I want to add a feature to our server that automates adding some PDFs together and adding some personalization of the
PDF books. So I thought of using PDFNet on the server for this.
I wrote a prototype that runs fine on my Mac OSX using Python, but on the server which is a Ubuntu 32-bit version, I get this error:
/var/www/cgi-bin/Lib/_PDFNetPython2.so: undefined symbol: PyUnicodeUCS2_AsUTF8String
It seems that the library is built for UCS2 and the server python version
(2.7.2) is expecting 4 byte unicode (See
Please see libinfo.txt for how to use _PDFNetPython2_ucs4.so.
I tested using python running under cgi-bin (i.e. triggered from a web browser), now I want to make it into a command line script using the exact same code, same files, same location, same parameters I am getting this error:
Exception: An error occurred while trying to save the file.
Detailed error:
any idea what this might be and how comes it runs well as a cgi script?
fixed - please ignore.
FYI - this was the cure:
http://askubuntu.com/questions/33025/locale-settings-are-not-right-how-can-i-reset-them