{"id":3177,"date":"2014-05-06T18:23:36","date_gmt":"2014-05-06T09:23:36","guid":{"rendered":"http:\/\/pchero21.com\/?p=3177"},"modified":"2014-05-06T18:23:36","modified_gmt":"2014-05-06T09:23:36","slug":"could-not-get-python-modules-list","status":"publish","type":"post","link":"http:\/\/pchero21.com\/?p=3177","title":{"rendered":"Could not get python modules list&#8230;"},"content":{"rendered":"<p>\uc0ac\uc6a9\uac00\ub2a5\ud55c Python \ubaa8\ub4c8\ub4e4\uc744 \uc54c\uc544\ubcf4\uae30 \uc704\ud574 python \uc778\ud130\ud504\ub9ac\ud130\uc5d0\uc11c \uc804\uccb4 \ubaa8\ub4c8\ubcf4\uae30 \uba85\ub839\uc5b4\ub97c \uc785\ub825\ud588\ub294\ub370, \ub2e4\uc74c\uacfc \uac19\uc740 \uc624\ub958 \uba54\uc2dc\uc9c0\ub97c \ud655\uc778\ud588\ub2e4.<\/p>\n<pre class=\"brush:shell\">pchero@MyDebian:\/usr\/lib\/pymodules\/python2.7$ python\nPython 2.7.3 (default, Mar 13 2014, 11:03:55) \n[GCC 4.7.2] on linux2\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n&gt;&gt;&gt; help('modules')\n\nPlease wait a moment while I gather a list of all available modules...\n\n\/usr\/lib\/python2.7\/dist-packages\/gobject\/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed\n  import gobject._gobject\n\/usr\/lib\/python2.7\/dist-packages\/gtk-2.0\/gtk\/__init__.py:57: GtkWarning: could not open display\n  warnings.warn(str(e), _gtk.Warning)\n\/usr\/lib\/python2.7\/dist-packages\/gi\/module.py:142: Warning: cannot register existing type `GtkWidget'\n  g_type = info.get_g_type()\n\/usr\/lib\/python2.7\/dist-packages\/gi\/module.py:142: Warning: cannot add class private field to invalid type '&lt;invalid&gt;'\n  g_type = info.get_g_type()\n\/usr\/lib\/python2.7\/dist-packages\/gi\/module.py:142: Warning: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed\n  g_type = info.get_g_type()\n\/usr\/lib\/python2.7\/dist-packages\/gi\/module.py:142: Warning: cannot register existing type `GtkBuildable'\n  g_type = info.get_g_type()\n\/usr\/lib\/python2.7\/dist-packages\/gi\/module.py:142: Warning: g_type_interface_add_prerequisite: assertion `G_TYPE_IS_INTERFACE (interface_type)' failed\n  g_type = info.get_g_type()\n\/usr\/lib\/python2.7\/dist-packages\/gi\/module.py:142: Warning: g_once_init_leave: assertion `result != 0' failed\n  g_type = info.get_g_type()\n\/usr\/lib\/python2.7\/dist-packages\/gi\/module.py:146: Warning: g_type_get_qdata: assertion `node != NULL' failed\n  type_ = g_type.pytype<\/pre>\n<p>\uadf8\ub9ac\uace0 Hang \uc774 \uac78\ub9b0\ub4ef \ub354\uc774\uc0c1 \uc9c4\ud589\ub418\uc9c0 \uc54a\uc558\ub2e4.<\/p>\n<p>\ud574\uacb0\ubc95\uc744 \ucc3e\ub358 \ub3c4\uc911, http:\/\/blog.rabbitvcs.org\/archives\/312 \uc5d0\uc11c \ube44\uc2b7\ud55c \ud604\uc0c1\uc5d0 \ub300\ud55c \ud574\uacb0\ubc95\uc744 \ucc3e\uc558\ub294\ub370 \ubb54\uac00 \uc644\ubcbd\ud558\uc9c4 \uc54a\uc558\ub2e4.<br \/>\nhttp:\/\/stackoverflow.com\/questions\/13301100\/python-fail-to-display-list-of-modules \uc5ec\uae30\ub3c4 \uc5ed\uc2dc&#8230;<br \/>\n\ub0b4\uc6a9\uc778 \uc989, help(&#8216;modules&#8217;) \ub97c \uc785\ub825\ud558\uae30 \uc804\uc5d0 gtk \ubaa8\ub4c8\uc744 \uba3c\uc800 load \ud558\ub77c\ub294 \uac83\uc778\ub370.. \uae54\ub054\ud558\uc9c0 \uc54a\uc558\ub2e4.<\/p>\n<pre class=\"brush:shell\">pchero@MyDebian:\/etc$ python\nPython 2.7.3 (default, Mar 13 2014, 11:03:55) \n[GCC 4.7.2] on linux2\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n&gt;&gt;&gt; import gtk\n\/usr\/lib\/python2.7\/dist-packages\/gtk-2.0\/gtk\/__init__.py:57: GtkWarning: could not open display\n  warnings.warn(str(e), _gtk.Warning)\n&gt;&gt;&gt; \n&gt;&gt;&gt; \n&gt;&gt;&gt; help('modules')\n\nPlease wait a moment while I gather a list of all available modules...\n\n\/usr\/lib\/python2.7\/dist-packages\/keybinder\/__init__.py:26: GtkWarning: IA__gdk_keymap_get_for_display: assertion `GDK_IS_DISPLAY (display)' failed\n  from _keybinder import *\n\/usr\/lib\/python2.7\/dist-packages\/keybinder\/__init__.py:26: GtkWarning: IA__gdk_screen_get_root_window: assertion `GDK_IS_SCREEN (screen)' failed\n  from _keybinder import *\n\n** (.:7702): WARNING **: keybinder_init: Unable to open display\nANSI                _codecs_iso2022     fdpexpect           pyatspi\nArgImagePlugin      _codecs_jp          feedparser          pyclbr\nBaseHTTPServer      _codecs_kr          filecmp             pycurl\nBastion             _codecs_tw          fileinput           pydoc\nBdfFontFile         _collections        fnmatch             pydoc_data\nBeautifulSoup       _csv                formatter           pyexpat\nBeautifulSoupTests  _ctypes             fpconst             pygtk\nBmpImagePlugin      _ctypes_test        fpectl              pynotify\nBufrStubImagePlugin _curses             fpformat            quopri\nCDROM               _curses_panel       fractions           random\nCGIHTTPServer       _dbus_bindings      freeswitch          re\nCanvas              _dbus_glib_bindings ftplib              readline\nConfigParser        _elementtree        functools           reportbug\nContainerIO         _functools          future_builtins     reportlab\nCookie              _hashlib            gc                  repr\nCurImagePlugin      _heapq              gconf               resource\nDLFCN               _hotshot            genericpath         rexec\nDcxImagePlugin      _imaging            getopt              rfc822\nDialog              _imagingcms         getpass             rlcompleter\nDocXMLRPCServer     _imagingft          gettext             robotparser\nEpsImagePlugin      _imagingmath        gi                  runpy\nExifTags            _io                 gio                 scanext\nFSM                 _json               glib                sched\nFileDialog          _locale             glob                screen\nFitsStubImagePlugin _lsprof             gnome               select\nFixTk               _multibytecodec     gnome_sudoku        serial\nFliImagePlugin      _multiprocessing    gnomecanvas         sets\nFontFile            _pyio               gnomevfs            setuptools\nFpxImagePlugin      _random             gobject             sgmllib\nGbrImagePlugin      _renderPM           grp                 sgmlop\nGdImageFile         _rl_accel           gtk                 sha\nGifImagePlugin      _socket             gtkunixprint        shelve\nGimpGradientFile    _sqlite3            gtweak              shlex\nGimpPaletteFile     _sre                gzip                shutil\nGnuPGInterface      _ssl                hamster             signal\nGribStubImagePlugin _strptime           hashlib             site\nHTMLParser          _struct             heapq               sitecustomize\nHdf5StubImagePlugin _symtable           hmac                smtpd\nHelloModule         _sysconfigdata      hotshot             smtplib\nIN                  _sysconfigdata_nd   hpmudext            sndhdr\nIcnsImagePlugin     _testcapi           htmlentitydefs      socket\nIcoImagePlugin      _threading_local    htmllib             softwareproperties\nImImagePlugin       _warnings           httplib             speechd\nImage               _weakref            httplib2            speechd_config\nImageChops          _weakrefset         ihooks              spwd\nImageCms            abc                 imaplib             sqlite3\nImageColor          aifc                imghdr              sre\nImageDraw           antigravity         imp                 sre_compile\nImageDraw2          anydbm              importlib           sre_constants\nImageEnhance        apt                 imputil             sre_parse\nImageFile           apt_inst            inspect             ssl\nImageFileIO         apt_pkg             invest              starpy\nImageFilter         aptdaemon           io                  stat\nImageFont           aptsources          itertools           statvfs\nImageGL             argparse            json                string\nImageGrab           array               keybinder           stringold\nImageMath           ast                 keyword             stringprep\nImageMode           asynchat            lib2to3             strop\nImageOps            asyncore            libxml2             struct\nImagePalette        atexit              libxml2mod          subprocess\nImagePath           atk                 linecache           sunau\nImageQt             audiodev            linuxaudiodev       sunaudio\nImageSequence       audioop             locale              symbol\nImageShow           axi                 logging             symtable\nImageStat           base64              louis               sys\nImageTransform      bdb                 lsb_release         sysconfig\nImageWin            binascii            macpath             syslog\nImtImagePlugin      binhex              macurl2path         tabnanny\nIptcImagePlugin     bisect              mailbox             tarfile\nJpegImagePlugin     bonobo              mailcap             telnetlib\nMcIdasImagePlugin   brlapi              mako                tempfile\nMicImagePlugin      bsddb               markupbase          termios\nMimeWriter          bz2                 markupsafe          test\nMpegImagePlugin     cPickle             marshal             test1\nMspImagePlugin      cProfile            math                textwrap\nORBit               cStringIO           md5                 this\nOleFileIO           cairo               mhlib               thread\nOpenSSL             calendar            mimetools           threading\nPAM                 caribou             mimetypes           tidy\nPIL                 cgi                 mimify              time\nPSDraw              cgitb               mmap                timeit\nPaletteFile         chardet             mod_fstest          tkColorChooser\nPalmImagePlugin     chunk               mod_test            tkCommonDialog\nPcdImagePlugin      cmath               modulefinder        tkFileDialog\nPcfFontFile         cmd                 multifile           tkFont\nPcxImagePlugin      code                multiprocessing     tkMessageBox\nPdfImagePlugin      codecs              mutex               tkSimpleDialog\nPixarImagePlugin    codeop              netrc               toaiff\nPngImagePlugin      collections         new                 token\nPpmImagePlugin      colorsys            nis                 tokenize\nPsdImagePlugin      commands            nntplib             trace\nQueue               compileall          ntpath              traceback\nSOAPpy              compiler            nturl2path          ttk\nScrolledText        contextlib          numbers             tty\nSgiImagePlugin      cookielib           numpy               turtle\nSimpleDialog        copy                opcode              twisted\nSimpleHTTPServer    copy_reg            operator            types\nSimpleXMLRPCServer  crypt               optparse            unicodedata\nSocketServer        csv                 orca                unittest\nSpiderImagePlugin   ctypes              os                  uno\nStringIO            cupsext             os2emxpath          unohelper\nSunImagePlugin      curl                ossaudiodev         urllib\nTYPES               curses              packagekit          urllib2\nTarIO               datetime            pango               urlparse\nTgaImagePlugin      dbhash              pangocairo          user\nTiffImagePlugin     dbm                 parser              uu\nTiffTags            dbus                pcardext            uuid\nTix                 deb822              pdb                 vte\nTkconstants         debconf             pexpect             warnings\nTkdnd               debian              pickle              wave\nTkinter             debian_bundle       pickletools         weakref\nUserDict            debianbts           pip                 webbrowser\nUserList            decimal             pipes               whichdb\nUserString          defer               pkg_resources       wnck\nWalImageFile        difflib             pkgutil             wsgiref\nWmfImagePlugin      dircache            platform            xapian\nXVThumbImagePlugin  dis                 plistlib            xdg\nXbmImagePlugin      distutils           popen2              xdrlib\nXpmImagePlugin      doctest             poplib              xml\n_LWPCookieJar       drv_libxml2         posix               xmllib\n_MozillaCookieJar   dsextras            posixfile           xmlrpclib\n__builtin__         dumbdbm             posixpath           xxsubtype\n__future__          dummy_thread        pprint              zeitgeist\n_abcoll             dummy_threading     profile             zipfile\n_ast                easy_install        pstats              zipimport\n_bisect             email               pty                 zlib\n_bsddb              encodings           pwd                 zope\n_codecs             errno               pxssh               \n_codecs_cn          exceptions          pyHnj               \n_codecs_hk          fcntl               py_compile          \n\nEnter any module name to get more help.  Or, type \"modules spam\" to search\nfor modules whose descriptions contain the word \"spam\".\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\uc0ac\uc6a9\uac00\ub2a5\ud55c Python \ubaa8\ub4c8\ub4e4\uc744 \uc54c\uc544\ubcf4\uae30 \uc704\ud574 python \uc778\ud130\ud504\ub9ac\ud130\uc5d0\uc11c \uc804\uccb4 \ubaa8\ub4c8\ubcf4\uae30 \uba85\ub839\uc5b4\ub97c \uc785\ub825\ud588\ub294\ub370, \ub2e4\uc74c\uacfc \uac19\uc740 \uc624\ub958 \uba54\uc2dc\uc9c0\ub97c \ud655\uc778\ud588\ub2e4. pchero@MyDebian:\/usr\/lib\/pymodules\/python2.7$ python Python 2.7.3 (default, Mar 13 2014, 11:03:55) [GCC 4.7.2] on linux2 Type &#8220;help&#8221;, &#8220;copyright&#8221;, &#8220;credits&#8221; or &#8220;license&#8221; for more information. &gt;&gt;&gt; help(&#8216;modules&#8217;) &hellip; <a href=\"http:\/\/pchero21.com\/?p=3177\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[25],"tags":[166,202,262,313],"_links":{"self":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts\/3177"}],"collection":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3177"}],"version-history":[{"count":0,"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts\/3177\/revisions"}],"wp:attachment":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3177"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}