<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="12" style="border: 1px #c9c399 solid; border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
    <tr>
     <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="https://git.reviewboard.kde.org/r/120567/">https://git.reviewboard.kde.org/r/120567/</a>
     </td>
    </tr>
   </table>
   <br />





 <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">Hello Minh Ngo, first thanks for your contribution and sorry for the delay.</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">I think your contribution is a good way to provide Python 3 support. I would like to provide Python 2 and Python 3 supports together, and you contribution provide it. Then, thank you and congratulation for this.</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">But I would like to merge your contribution only after the Qt5/KF5 port of Cantor, because that is the high priority for now.</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">On your contribution, I would like to give these feedbacks:</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;"><strong style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: normal;">1 - FindPython3.cmake</strong></p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">I can not to find/compile Python 3 backend with your FindPython3.cmake. I need to provide a hardcoded <code style="text-rendering: inherit;color: #4444cc;padding: 0;white-space: normal;margin: 0;line-height: inherit;">SET (PYTHON3_INCLUDE_DIR /usr/include/python3.4m)</code> in line 3 of FindPython3.cmake to compile it. Maybe could you to provide some generic way to do it? See for example <a href="https://projects.kde.org/projects/kde/kdeedu/cantor/repository/revisions/master/entry/cmake/FindLuaJIT.cmake" style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: normal;">FindLuaJIT.cmake</a>.</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;"><strong style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: normal;">2 - Error when import modules</strong></p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">I am using Mageia Cauldron x86_64, and unfortunatelly I can not to import modules in Python 3 backend - but I can to do it in Python 3 terminal without problem.</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">For example, I get the error below when I run <em style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: normal;">import numpy</em> in Cantor + Python 3:</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;"><code style="text-rendering: inherit;color: #4444cc;padding: 0;white-space: normal;margin: 0;line-height: inherit;">Traceback (most recent call last):
File "", line 1, in 
File "/usr/lib64/python3.4/site-packages/numpy/__init__.py", line 153, in 
from . import add_newdocs
File "/usr/lib64/python3.4/site-packages/numpy/add_newdocs.py", line 13, in 
from numpy.lib import add_newdoc
File "/usr/lib64/python3.4/site-packages/numpy/lib/__init__.py", line 8, in 
from .type_check import *
File "/usr/lib64/python3.4/site-packages/numpy/lib/type_check.py", line 11, in 
import numpy.core.numeric as _nx
File "/usr/lib64/python3.4/site-packages/numpy/core/__init__.py", line 6, in 
from . import multiarray
ImportError: /usr/lib64/python3.4/site-packages/numpy/core/multiarray.cpython-34m.so: undefined symbol: PyExc_SystemError</code></p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">Do you have some idea about it? Which your OS and Python 3 version?</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">Let's keep the work to merge it in the future!
Best regard;</p></pre>
 <br />









<p>- Filipe Saraiva</p>


<br />
<p>On Outubro 12th, 2014, 8:54 p.m. UTC, Minh Ngo wrote:</p>









<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="12" style="border: 1px #888a85 solid; border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
 <tr>
  <td>

<div>Review request for KDE Edu, Alexander Rieder and Filipe Saraiva.</div>
<div>By Minh Ngo.</div>


<p style="color: grey;"><i>Updated Out. 12, 2014, 8:54 p.m.</i></p>









<div style="margin-top: 1.5em;">
 <b style="color: #575012; font-size: 10pt;">Repository: </b>
cantor
</div>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
 <table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">Hi,</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">I have ported Python2 backend to Python3.</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">There is some bug in the default cmake script for finding PythonLibs script so it cannot find PythonLibs3 now http://www.cmake.org/Bug/print_bug_page.php?bug_id=13794, therefore I decided to write my own script (FindPythonLibs3.cmake).</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">Headers moving were made to make it compilible. See more: http://stackoverflow.com/questions/20300201/why-python-h-of-python-3-2-must-be-included-as-first-together-with-qt4</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">Regards,</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">Minh</p></pre>
  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">Looks like it works :)</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">Have done some simple things like that:
import numpy as np
a = np.array([1, 2, 3])
print(a)</p></pre>
  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>src/backends/python3/CMakeLists.txt <span style="color: grey">(PRE-CREATION)</span></li>

 <li>src/backends/python3/python3backend.desktop <span style="color: grey">(PRE-CREATION)</span></li>

 <li>src/backends/CMakeLists.txt <span style="color: grey">(687e5d6)</span></li>

 <li>src/backends/python2/python2backend.cpp <span style="color: grey">(2b724f1)</span></li>

 <li>src/backends/python2/python2backend.kcfg <span style="color: grey">(22564c1)</span></li>

 <li>src/backends/python2/python2completionobject.cpp <span style="color: grey">(08c00c3)</span></li>

 <li>src/backends/python2/python2expression.cpp <span style="color: grey">(32a7380)</span></li>

 <li>src/backends/python2/python2session.h <span style="color: grey">(bb6650d)</span></li>

 <li>src/backends/python2/python2session.cpp <span style="color: grey">(513f6ec)</span></li>

 <li>src/backends/python2/python2utils.h <span style="color: grey">(PRE-CREATION)</span></li>

 <li>src/backends/python3/python3backend.kcfg <span style="color: grey">(PRE-CREATION)</span></li>

</ul>

<p><a href="https://git.reviewboard.kde.org/r/120567/diff/" style="margin-left: 3em;">View Diff</a></p>






  </td>
 </tr>
</table>








  </div>
 </body>
</html>