====================== Reproducer of a crash when ROOT (6.20/04, pyroot_experimental=OFF) and cppyy (1.6.2) is installed in the same conda environment #docker pull continuumio/miniconda3 #docker run -i -t continuumio/miniconda3 /bin/bash (base) root@dcb79884d538:/# conda -n work (base) root@dcb79884d538:/# conda activate work (work) root@dcb79884d538:/# conda install cppyy -c conda-forge # or: conda install libsemigroups_cppyy -c conda-forge (work) root@dcb79884d538:/# conda install root -c conda-forge (work) root@dcb79884d538:/# ipython Python 3.8.2 | packaged by conda-forge | (default, Apr 24 2020, 08:20:52) Type 'copyright', 'credits' or 'license' for more information IPython 7.15.0 -- An enhanced Interactive Python. Type '?' for help. In [1]: import ROOT (Re-)building pre-compiled headers (options: -O2 -mavx); this may take a minute ... ERROR:root:Internal Python error in the inspect module. Below is the traceback from this internal error. Traceback (most recent call last): File "/opt/conda/envs/work/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3331, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "", line 1, in import ROOT File "/opt/conda/envs/work/lib/python3.8/site-packages/ROOT.py", line 198, in _root.SetSignalPolicy( _root.kSignalSafe ) AttributeError: module 'libcppyy' has no attribute 'SetSignalPolicy' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/conda/envs/work/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 2044, in showtraceback stb = value._render_traceback_() AttributeError: 'AttributeError' object has no attribute '_render_traceback_' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/conda/envs/work/lib/python3.8/site-packages/IPython/core/ultratb.py", line 1148, in get_records return _fixed_getinnerframes(etb, number_of_lines_of_context, tb_offset) File "/opt/conda/envs/work/lib/python3.8/site-packages/IPython/core/ultratb.py", line 316, in wrapped return f(*args, **kwargs) File "/opt/conda/envs/work/lib/python3.8/site-packages/IPython/core/ultratb.py", line 350, in _fixed_getinnerframes records = fix_frame_records_filenames(inspect.getinnerframes(etb, context)) File "/opt/conda/envs/work/lib/python3.8/inspect.py", line 1503, in getinnerframes frameinfo = (tb.tb_frame,) + getframeinfo(tb, context) File "/opt/conda/envs/work/lib/python3.8/inspect.py", line 1461, in getframeinfo filename = getsourcefile(frame) or getfile(frame) File "/opt/conda/envs/work/lib/python3.8/inspect.py", line 696, in getsourcefile filename = getfile(object) File "/opt/conda/envs/work/lib/python3.8/inspect.py", line 666, in getfile if ismethod(object): File "/opt/conda/envs/work/lib/python3.8/site-packages/ROOT.py", line 160, in ismethod if type(object) == _root.MethodProxy: AttributeError: module 'libcppyy' has no attribute 'MethodProxy' --------------------------------------------------------------------------- In [2]: ^[[45;1RTraceback (most recent call last): File "/opt/conda/envs/work/bin/ipython", line 11, in sys.exit(start_ipython()) File "/opt/conda/envs/work/lib/python3.8/site-packages/IPython/__init__.py", line 126, in start_ipython return launch_new_instance(argv=argv, **kwargs) File "/opt/conda/envs/work/lib/python3.8/site-packages/traitlets/config/application.py", line 664, in launch_instance app.start() File "/opt/conda/envs/work/lib/python3.8/site-packages/IPython/terminal/ipapp.py", line 356, in start self.shell.mainloop() File "/opt/conda/envs/work/lib/python3.8/site-packages/IPython/terminal/interactiveshell.py", line 563, in mainloop self.interact() File "/opt/conda/envs/work/lib/python3.8/site-packages/IPython/terminal/interactiveshell.py", line 546, in interact code = self.prompt_for_code() File "/opt/conda/envs/work/lib/python3.8/site-packages/IPython/terminal/interactiveshell.py", line 472, in prompt_for_code text = self.pt_app.prompt( File "/opt/conda/envs/work/lib/python3.8/site-packages/prompt_toolkit/shortcuts/prompt.py", line 994, in prompt return self.app.run(set_exception_handler=set_exception_handler) File "/opt/conda/envs/work/lib/python3.8/site-packages/prompt_toolkit/application/application.py", line 811, in run return loop.run_until_complete( File "/opt/conda/envs/work/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete return future.result() File "/opt/conda/envs/work/lib/python3.8/site-packages/prompt_toolkit/application/application.py", line 778, in run_async return await _run_async2() File "/opt/conda/envs/work/lib/python3.8/site-packages/prompt_toolkit/application/application.py", line 760, in _run_async2 result = await _run_async() File "/opt/conda/envs/work/lib/python3.8/site-packages/prompt_toolkit/application/application.py", line 692, in _run_async loop.add_signal_handler(signal.SIGWINCH, self._on_resize) File "/opt/conda/envs/work/lib/python3.8/asyncio/unix_events.py", line 85, in add_signal_handler coroutines.iscoroutinefunction(callback)): File "/opt/conda/envs/work/lib/python3.8/asyncio/coroutines.py", line 166, in iscoroutinefunction return (inspect.iscoroutinefunction(func) or File "/opt/conda/envs/work/lib/python3.8/inspect.py", line 194, in iscoroutinefunction return _has_code_flag(obj, CO_COROUTINE) File "/opt/conda/envs/work/lib/python3.8/inspect.py", line 175, in _has_code_flag while ismethod(f): File "/opt/conda/envs/work/lib/python3.8/site-packages/ROOT.py", line 160, in ismethod if type(object) == _root.MethodProxy: AttributeError: module 'libcppyy' has no attribute 'MethodProxy' If you suspect this is an IPython 7.15.0 bug, please report it at: https://github.com/ipython/ipython/issues or send an email to the mailing list at ipython-dev@python.org You can print a more detailed traceback right now with "%tb", or use "%debug" to interactively debug it. Extra-detailed tracebacks for bug-reporting purposes can be enabled via: %config Application.verbose_crash=True (work) root@dcb79884d538:/# ;1R