The problem is that in order to use the debug version of Python, all the 
c-language Python-extensions that are used with the debug version must also 
be compiled for debugging.

That is, PyQt and SIP must be compiled for debugging.  But thankfully, it 
is *NOT* necessary to compile all of Qt for debugging. PyQt source is 
available and it is possible to compile PyQt for debugging, but 
documentation for doing this is probably inadequate.  I don't know how big 
a chore this will be if I eventually try.  There may be other c-language 
Python-extensions used by Leo-Editor that will also need to be compiled for 
debugging.

When Python3-dbg is used to run Leo-Editor, it error terminates during 
start up in module qt_events.py because  the statement "from PyQt5 import 
Qt" fails with error message "ImportError: cannot import name 'Qt'".  The 
import paths at this point is the same for both Python3 (which works) and 
Python3-dbg (which fails).  For Python3 the "Qt" module is <module 
'PyQt5.Qt' from 
'/usr/lib/python3/dist-packages/PyQt5/Qt.cpython-35m-x86_64-linux-gnu.so'>.  
This is not a "debug" module.  Python3-dbg requires a module with something 
like a .dm extension.

Possibly useful links:

>
> https://unix.stackexchange.com/questions/168068/python3-dbg-fails-to-import-setproctitle
>
> https://www.riverbankcomputing.com/pipermail/pyqt/2012-April/031385.html
>
>
> https://github.com/spyder-ide/spyder/wiki/How-to-debug-PyQt-PySide-internal-crashes-(segfaults)-affecting-Spyder
>
> http://pyqt.sourceforge.net/Docs/PyQt5/installation.html
>

https://sourceforge.net/projects/pyqt/files/PyQt5/

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to