Re: ucs2 and ucs4 python

2012-05-16 Thread Dave Angel
On 05/16/2012 05:20 AM, zayatzz wrote: > On May 16, 11:50 am, Matej Cepl wrote: >> On 16.5.2012 10:36, zayatzz wrote: >> >>> /opt/bin/python^M: bad interpreter: No such file or directory >> Your script has CRLF end-of-lines. Change it to plain Unix LF. >> >> Matěj > Thanks :) but i have no idea wh

Re: ucs2 and ucs4 python

2012-05-16 Thread zayatzz
On May 16, 11:50 am, Matej Cepl wrote: > On 16.5.2012 10:36, zayatzz wrote: > > > /opt/bin/python^M: bad interpreter: No such file or directory > > Your script has CRLF end-of-lines. Change it to plain Unix LF. > > Matěj Thanks :) but i have no idea what that means or how to achieve that. Alan -

Re: ucs2 and ucs4 python

2012-05-16 Thread Chris Angelico
On Wed, May 16, 2012 at 6:36 PM, zayatzz wrote: > There is one problem though... > > when i start script with shebang like > #!/opt/bin/python > > and then try to run the script i get: > > /opt/bin/python^M: bad interpreter: No such file or directory You have a Windows end-of-line \r\n instead of

Re: ucs2 and ucs4 python

2012-05-16 Thread Matej Cepl
On 16.5.2012 10:36, zayatzz wrote: /opt/bin/python^M: bad interpreter: No such file or directory Your script has CRLF end-of-lines. Change it to plain Unix LF. Matěj -- http://mail.python.org/mailman/listinfo/python-list

Re: ucs2 and ucs4 python

2012-05-16 Thread Stefan Behnel
zayatzz, 16.05.2012 10:22: > On May 15, 7:42 pm, Miki Tebeka wrote: >>> Can someone point me towards a resource or two which will tell me how >>> to do this - im not very good with whole linux/servers stuff. Im using >>> ubuntu linux - if that makes any difference. >> >> Did not test, but this is t

Re: ucs2 and ucs4 python

2012-05-16 Thread zayatzz
There is one problem though... when i start script with shebang like #!/opt/bin/python and then try to run the script i get: /opt/bin/python^M: bad interpreter: No such file or directory /opt/bin/python /opt/bin/python2 /opt/bin/python2.7 all start this new version of python, but none of those

Re: ucs2 and ucs4 python

2012-05-16 Thread zayatzz
On May 15, 7:42 pm, Miki Tebeka wrote: > > Can someone point me towards a resource or two which will tell me how > > to do this - im not very good with whole linux/servers stuff. Im using > > ubuntu linux - if that makes any difference. > > Did not test, but this is the direction I would take: > *

Re: ucs2 and ucs4 python

2012-05-15 Thread Miki Tebeka
> Can someone point me towards a resource or two which will tell me how > to do this - im not very good with whole linux/servers stuff. Im using > ubuntu linux - if that makes any difference. Did not test, but this is the direction I would take: * Download Python sources * Open Terminal * Run the f

ucs2 and ucs4 python

2012-05-15 Thread Alan Kesselmann
Hello I tried using one compiled library and got this error: ImportError: /home/alan/Downloads/pdftron/PDFNetC64/Lib/ _PDFNetPython2.so: undefined symbol: PyUnicodeUCS2_AsUTF8String I googled around and found some info about the meaning of the error. The creators of PDFNet suggested i install UCS