http://bugzilla.suse.com/show_bug.cgi?id=1128204
http://bugzilla.suse.com/show_bug.cgi?id=1128204#c6
--- Comment #6 from Dave Howorth
(Sorry for the many questions, but since I cannot reproduce the error on my system, this is the only way I can figure out what is going wrong. I hope you understand, even if this might be somewhat annoying.)
The line "No module named 'markups.mdx_mathjax..." may be worth pursuing further. Can you please let me know what happens when you run the following from a terminal:
python3 -c "import markups.mdx_mathjax as mj; print(mj.MathExtension)"
(On mine, I get
as the output.)
No problem; I'm glad to help. I get the same output as you. I also ran $ python3 /usr/bin/retext /usr/share/doc/packages/php7-redis/README.markdown to see if I got a different result, but I got the same crash. I then wondered if python has a debugger and it does :) So I've single-stepped and it brings up an empty window and then crashes but with a different error (and with the window still on display). FWIW, here's the log: $ python3 -m pdb /usr/bin/retext /usr/share/doc/packages/php7-redis/README.markdown
/usr/bin/retext(20)<module>() -> import multiprocessing as mp (Pdb) n /usr/bin/retext(21)<module>() -> import sys (Pdb) n /usr/bin/retext(22)<module>() -> import signal (Pdb) n /usr/bin/retext(23)<module>() -> import markups (Pdb) n /usr/bin/retext(24)<module>() -> from os import devnull (Pdb) n /usr/bin/retext(25)<module>() -> from os.path import join (Pdb) n /usr/bin/retext(26)<module>() -> from ReText import datadirs, settings, globalSettings, app_version (Pdb) n /usr/bin/retext(27)<module>() -> from ReText.window import ReTextWindow (Pdb) n /usr/bin/retext(29)<module>() -> from PyQt5.QtCore import QFile, QFileInfo, QIODevice, QLibraryInfo, \ (Pdb) n /usr/bin/retext(31)<module>() -> from PyQt5.QtWidgets import QApplication (Pdb) n /usr/bin/retext(32)<module>() -> from PyQt5.QtNetwork import QNetworkProxyFactory (Pdb) n /usr/bin/retext(34)<module>() -> def canonicalize(option): (Pdb) n /usr/bin/retext(39)<module>() -> def main(): (Pdb) n /usr/bin/retext(101)<module>() -> if __name__ == '__main__': (Pdb) n /usr/bin/retext(102)<module>() -> mp.set_start_method('spawn') (Pdb) n /usr/bin/retext(103)<module>() -> main() (Pdb) n Using configuration file: /home/dhoworth/.config/ReText project/ReText.conf AttributeError: module '__main__' has no attribute '__spec__' /usr/bin/retext(103)<module>() -> main() (Pdb) n --Return-- /usr/bin/retext(103)<module>()->None -> main() (Pdb) n AttributeError: module '__main__' has no attribute '__spec__' <string>(1)<module>()->None (Pdb) n --Return-- <string>(1)<module>()->None (Pdb) n Traceback (most recent call last): File "/usr/lib64/python3.6/pdb.py", line 1667, in main pdb._runscript(mainpyfile) File "/usr/lib64/python3.6/pdb.py", line 1548, in _runscript self.run(statement) File "/usr/lib64/python3.6/bdb.py", line 434, in run exec(cmd, globals, locals) File "<string>", line 1, in <module> File "/usr/bin/retext", line 103, in <module> main() File "/usr/bin/retext", line 83, in main window.openFileWrapper(fileName) File "/usr/lib/python3.6/site-packages/ReText/window.py", line 767, in openFileWrapper self.createTab(fileName) File "/usr/lib/python3.6/site-packages/ReText/window.py", line 459, in createTab previewState=int(globalSettings.livePreviewByDefault)) File "/usr/lib/python3.6/site-packages/ReText/tab.py", line 75, in __init__ self.converterProcess = converterprocess.ConverterProcess() File "/usr/lib/python3.6/site-packages/ReText/converterprocess.py", line 95, in __init__ child.start() File "/usr/lib64/python3.6/multiprocessing/process.py", line 105, in start self._popen = self._Popen(self) File "/usr/lib64/python3.6/multiprocessing/context.py", line 223, in _Popen return _default_context.get_context().Process._Popen(process_obj) File "/usr/lib64/python3.6/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/usr/lib64/python3.6/multiprocessing/popen_spawn_posix.py", line 32, in __init__ super().__init__(process_obj) File "/usr/lib64/python3.6/multiprocessing/popen_fork.py", line 19, in __init__ self._launch(process_obj) File "/usr/lib64/python3.6/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/usr/lib64/python3.6/multiprocessing/spawn.py", line 172, in get_preparation_data main_mod_name = getattr(main_module.__spec__, "name", None) AttributeError: module '__main__' has no attribute '__spec__' Uncaught exception. Entering post mortem debugging Running 'cont' or 'step' will restart the program /usr/lib64/python3.6/multiprocessing/spawn.py(172)get_preparation_data() -> main_mod_name = getattr(main_module.__spec__, "name", None) (Pdb)
-- You are receiving this mail because: You are on the CC list for the bug.