<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>22355</bug_id>
          
          <creation_ts>2009-11-21 20:59:14 +0300</creation_ts>
          <short_desc>pyxpcom can&apos;t find components directory</short_desc>
          <delta_ts>2026-09-01 12:16:26 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>python-module-xpcom</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aleksey Lim">alsroot</reporter>
          <assigned_to name="Alexey Gladkov">legion</assigned_to>
          <cc>real.altlinux.org</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>103405</commentid>
    <comment_count>0</comment_count>
    <who name="Aleksey Lim">alsroot</who>
    <bug_when>2009-11-21 20:59:14 +0300</bug_when>
    <thetext>python-module-xpcom-1.9.1.5-alt1.20091106

xpcom не может найти каталог /usr/lib/xulrunner/components из питона:

$ python -c &apos;import xpcom.components&apos;
ERROR:xpcom:Obtaining the module object from Python failed.
Traceback (most recent call last):
  File &quot;/usr/lib/python2.5/site-packages/xpcom/server/__init__.py&quot;, line 40, in &lt;module&gt;
    from policy import DefaultPolicy
  File &quot;/usr/lib/python2.5/site-packages/xpcom/server/policy.py&quot;, line 39, in &lt;module&gt;
    from xpcom import xpcom_consts, _xpcom, client, nsError, logger
  File &quot;/usr/lib/python2.5/site-packages/xpcom/client/__init__.py&quot;, line 41, in &lt;module&gt;
    from xpcom import xpt, COMException, nsError, logger
&lt;type &apos;exceptions.ImportError&apos;&gt;: cannot import name xpt

$ strace python -c &apos;import xpcom.components&apos; 2&gt;&amp;1 | grep &apos;components/*&quot;&apos;
execve(&quot;/usr/bin/python&quot;, [&quot;python&quot;, &quot;-c&quot;, &quot;import xpcom.components&quot;], [/* 37 vars */]) = 0
stat64(&quot;/usr/lib/python2.5/site-packages/xpcom/components&quot;, 0xbfc4c758) = -1 ENOENT (No such file or directory)
open(&quot;/home/test/components&quot;, O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(&quot;/home/test/components&quot;, O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64(&quot;/home/test/components&quot;, 0x80f694c) = -1 ENOENT (No such file or directory)
lstat64(&quot;/home/test/components&quot;, 0x80f694c) = -1 ENOENT (No such file or directory)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103406</commentid>
    <comment_count>1</comment_count>
    <who name="Aleksey Lim">alsroot</who>
    <bug_when>2009-11-21 21:04:34 +0300</bug_when>
    <thetext>oops, при первом output&apos;е в текущем каталоге был symlink на /usr/lib/xulrunner/components. Без symlink&apos;а:

$ python -c &apos;import xpcom.components&apos;
Traceback (most recent call last):
  File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;
  File &quot;/usr/lib/python2.5/site-packages/xpcom/components.py&quot;, line 231, in &lt;module&gt;
    import shutdown
  File &quot;/usr/lib/python2.5/site-packages/xpcom/shutdown.py&quot;, line 51, in &lt;module&gt;
    class _ShutdownObserver:
  File &quot;/usr/lib/python2.5/site-packages/xpcom/shutdown.py&quot;, line 52, in _ShutdownObserver
    _com_interfaces_ = interfaces.nsIObserver
  File &quot;/usr/lib/python2.5/site-packages/xpcom/components.py&quot;, line 103, in __getattr__
    return self._get_one(attr)
  File &quot;/usr/lib/python2.5/site-packages/xpcom/components.py&quot;, line 153, in _get_one
    raise xpcom.COMException(nsError.NS_ERROR_NO_INTERFACE, &quot;The interface &apos;%s&apos; does not exist&quot; % (name,))
xpcom.Exception: -2147467262 (-2147467262)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110873</commentid>
    <comment_count>2</comment_count>
    <who name="real@altlinux.org">real.altlinux.org</who>
    <bug_when>2010-07-29 14:29:06 +0400</bug_when>
    <thetext>Сейчас ещё интересней:

&gt; python -c &apos;import xpcom.components&apos;                           
Traceback (most recent call last):
  File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;
  File &quot;/usr/lib64/python2.6/site-packages/xpcom/components.py&quot;, line 39, in &lt;module&gt;
    import xpt
  File &quot;/usr/lib64/python2.6/site-packages/xpcom/xpt.py&quot;, line 72, in &lt;module&gt;
    import xpcom._xpcom
ImportError: libpyxpcom.so: cannot open shared object file: No such file or directory</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110889</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Gladkov">legion</who>
    <bug_when>2010-07-30 10:48:25 +0400</bug_when>
    <thetext>(В ответ на комментарий №2)
&gt; ImportError: libpyxpcom.so: cannot open shared object file: No such file or
&gt; directory

Это я починил, но в остальном он такой же сломанный. Он всё также ругается как описано в #1. Гугл говорит, что эта проблема не только у нас.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>294057</commentid>
    <comment_count>4</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2026-09-01 12:16:26 +0300</bug_when>
    <thetext>Пакета python-module-xpcom больше нет в Сизифе, неактуально.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>