[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
** Information type changed from Public Security to Public -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to pygtk in Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
Hi @stephane-guillou, I also do have ubuntu 18.04 and I can't see this issue there. helio@xps13ubuntu:~$ python3 Python 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> help('modules') Please wait a moment while I gather a list of all available modules... pygame 1.9.4 Hello from the pygame community. https://www.pygame.org/contribute.html AptUrl argparseimp runpy CommandNotFound array importlib scanext Crypto asn1crypto inspect sched DistUpgrade ast io scour HweSupportStatusastroid ipaddress secrets LanguageSelectorasynchatisort secretstorage LibAppArmor asyncio itertools select NvidiaDetector asyncorejanitor selectors Onboard atexit jsonselinux PIL audioop jwt setproctitle PyQt5 axi keyring setuptools Quirks base64 keyword shelve SSSDConfig bdb language_support_pkgs shlex UbuntuDrivers binasciilazy_object_proxy shutil UbuntuSystemService binhex lib2to3 signal UpdateManager bisect libfuturize sip Xlibblinker libpasteurize sipconfig __future__ blueman linecache sipconfig_nd6 _astbs4 locale sipdistutils _asynciobsonlogging site _bisect builtinslsb_release sitecustomize _blake2 bz2 lxmlsix _bluemancProfilelzmaslip _bootlocale cairo macaroonbakery smtpd _bz2calendarmacpath smtplib _cffi_backend certifi macurl2path snack _codecs cgi magic snapshot-twitter _codecs_cn cgitb mailbox sndhdr _codecs_hk chardet mailcap socket _codecs_iso2022 chunk makosocketserver _codecs_jp cmath markupsafe softwareproperties _codecs_kr cmd marshal spwd _codecs_tw codemathsqlite3 _collectionscodecs mccabe sre_compile _collections_abccodeop mimetypes sre_constants _compat_pickle collections mmapsre_parse _compressioncolorsysmockssh_import_id _crypt compileall modulefinderssl _csvconcurrent multiprocessing stat _ctypes configparsernaclstatistics _ctypes_testcontextlib netifaces string _curses copynetrc stringprep _curses_panel copyreg nis struct _datetime crypt nntplib subprocess _dbmcryptographyntpath sunau _dbus_bindings csv nturl2path symbol _dbus_glib_bindings ctypes numbers symtable _decimalcupsnumpy sys _dummy_thread cupsext oauthlibsysconfig _elementtreecupshelpers opcode syslog _functools curloperatorsystemd _gdbm curses optparsetabnanny _hashlibdatetimeos tarfile _heapq dbm ossaudiodev telnetlib _impdbusoverlay-texttempfile _io deb822 parser termios _json debconf pasttest _locale debian pathlib textwrap _lsprof debian_bundle pbr this _lzma debianbts pcardextthreading _markupbase debmake pdb time _md5decimal pexpect timeit _multibytecodec decorator pickle tkinter _multiprocessingdefer pickletools token _opcode devscripts picturequality tokenize _operator difflib pip trace _osx_supportdis
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
Still present in Ubuntu 18.04, using the python3.6 prompt in the shell: ``` >>> help('modules') Please wait a moment while I gather a list of all available modules... [ecc] warning: libsecp256k1 library not available, falling back to python-ecdsa WARNING:root:can not import unity GI Namespace Dbusmenu not available /usr/lib/python3/dist-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead. warnings.warn(message, mplDeprecation, stacklevel=1) Segmentation fault ``` No issue when doing the same thing with Python 3.7.1 provided by Anaconda. ** Also affects: python3.6 (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to pygtk in Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
I just applied that change from #24 to usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py Line 40: - import gtk +from gi.repository import Gtk and it fixes (at least) the taskcoach issue. I've seen no side effects to other programs so far, but I did not much testing. But I hope, it'll help someone else. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to pygtk in Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
Same here as in Post #25 (Xubuntu 18.04 but no beta). -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to pygtk in Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
I started taskcoach in Ubuntu 18.04 beta and I got these errors: usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed from gtk import _gtk /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: g_type_set_qdata: assertion 'node != NULL' failed from gtk import _gtk /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: cannot register existing type 'GtkWidget' from gtk import _gtk /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed from gtk import _gtk /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: cannot register existing type 'GtkBuildable' from gtk import _gtk /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: g_type_interface_add_prerequisite: assertion 'G_TYPE_IS_INTERFACE (interface_type)' failed from gtk import _gtk /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: g_once_init_leave: assertion 'result != 0' failed from gtk import _gtk /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: g_type_register_static: assertion 'parent_type > 0' failed from gtk import _gtk -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to pygtk in Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
I had to change import gtk to from gi.repository import Gtk sorry for previous comment -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to pygtk in Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
I had to change import gtk to -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to pygtk in Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
I came across the same error when running quickly run, after I added import pygtk pygtk.require('2.0') import gtk to my FirstWindow.py (main window) the output: $ quickly run /usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed import gobject._gobject /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: specified class size for type 'PyGtkGenericCellRenderer' is smaller than the parent type's 'GtkCellRenderer' class size from gtk import _gtk /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: g_type_get_qdata: assertion 'node != NULL' failed from gtk import _gtk in my case command python - help('modules') works Ubuntu 14.04 LTS, Python 2.7.6 -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to pygtk in Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
Ubuntu 12.10 am facing following traceback while using command for displaying list of modules of python. ~$ python Python 2.7.3 (default, Sep 26 2013, 20:08:41) [GCC 4.6.3] on linux2 Type help, copyright, credits or license for more information. help('modules') Please wait a moment while I gather a list of all available modules... matplotlib must be installed in order to use SimplePlot! An error occured setting up the themes: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings. An error occured setting up the themes: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings. /usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed import gobject._gobject /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed from gtk import _gtk ** (python:5733): CRITICAL **: pyg_register_boxed: assertion `boxed_type != 0' failed /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: cannot register existing type `GdkDevice' from gtk import _gtk /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: g_type_get_qdata: assertion `node != NULL' failed from gtk import _gtk Segmentation fault (core dumped) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to pygtk in Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 896836] Re: Segmentation fault when asking help() for the list of modules
I can confirm that first importing gtk in /usr/bin/pydoc works around `pydoc -k .` crashing. ** Also affects: pygtk (Ubuntu) Importance: Undecided Status: New ** Changed in: pygtk (Ubuntu) Status: New = Triaged ** Changed in: pygtk (Ubuntu) Importance: Undecided = Medium -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to pygtk in Ubuntu. https://bugs.launchpad.net/bugs/896836 Title: Segmentation fault when asking help() for the list of modules To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/896836/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs