About Python version

julien2412 serval2412 at yahoo.fr
Sat Dec 17 12:24:12 UTC 2016


Hello,

I gave a try to tdf#103363 (MAILMERGE: Outgoing mailserver (set in Tools >
Options > Writer > Mail merge Email) not found), there's some problem with
idna encoding.

I tried to add "import encodings.idna" + replace
self.server = smtplib.SMTP(server, port,timeout=tout)
by
self.server = smtplib.SMTP(encodings.idna.ToUnicode(server),
port,timeout=tout)
but retrieved this error:
Python exception: <class 'ImportError'>: No module named 'unicodedata' (or
'unicodedata.ucd_3_2_0' is unknown), traceback follows
  File "/home/julien/lo/libreoffice/instdir/program/pythonloader.py", line
136, in activate
    mod = self.getModuleFromUrl( locationUrl )
  File "/home/julien/lo/libreoffice/instdir/program/pythonloader.py", line
114, in getModuleFromUrl
    mod =  __import__( dependent )
  File "/home/julien/lo/libreoffice/instdir/program/uno.py", line 347, in
_uno_import
    return _builtin_import(name, *optargs, **kwargs)
  File "/home/julien/lo/libreoffice/instdir/program/mailmerge.py", line 21,
in <module>
    import encodings.idna

So I wonder what Python version should be used for LO master sources?
I used --enable-python=internal but my config.log displays some 2.7 ref, see
https://bugs.documentfoundation.org/show_bug.cgi?id=103363#c15

When reading this link
https://wiki.documentfoundation.org/Development/Linux_Build_Dependencies
I find Python 2 and 3 refs.

I also read that MSVC 2013 needed Python 3.3, for the others 3.5 in
configure.ac (see
http://opengrok.libreoffice.org/xref/core/configure.ac#8266)

Any thoughts?

Julien



--
View this message in context: http://nabble.documentfoundation.org/About-Python-version-tp4202959.html
Sent from the Dev mailing list archive at Nabble.com.


More information about the LibreOffice mailing list