[gstreamer-bugs] [Bug 524776] New: "import gst" give a RuntimeError if ~/.gnome2 does not exists

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Fri Mar 28 05:11:10 PDT 2008


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=524776

  GStreamer | gst-python | Ver: 0.10.18
           Summary: "import gst" give a RuntimeError if ~/.gnome2 does not
                    exists
           Product: GStreamer
           Version: 0.10.18
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-python
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: piem at piem.org
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: 2.19/2.20
   GNOME milestone: Unspecified


i'm trying to load gst python module inside apache.

i get the following traceback:

--
(mod_python:21171): libgnomevfs-WARNING **: Unable to create ~/.gnome2
directory: Permission denied
[Fri Mar 28 13:10:34 2008] [error] [client 127.0.1.1] mod_python (pid=21076,
interpreter='localhost', phase='PythonHandler', handler='gst_test'):
Application error
[Fri Mar 28 13:10:34 2008] [error] [client 127.0.1.1] ServerName: 'localhost'
[Fri Mar 28 13:10:34 2008] [error] [client 127.0.1.1] DocumentRoot: '/var/www/'
[Fri Mar 28 13:10:34 2008] [error] [client 127.0.1.1] URI: '/test-gst'
[Fri Mar 28 13:10:34 2008] [error] [client 127.0.1.1] Location: '/test-gst'
[Fri Mar 28 13:10:34 2008] [error] [client 127.0.1.1] Directory: None
[Fri Mar 28 13:10:34 2008] [error] [client 127.0.1.1] Filename:
'/var/www/test-gst'
[Fri Mar 28 13:10:34 2008] [error] [client 127.0.1.1] PathInfo: ''
[Fri Mar 28 13:10:34 2008] [error] [client 127.0.1.1] Traceback (most recent
call last):
[Fri Mar 28 13:10:34 2008] [error] [client 127.0.1.1]   File
"/usr/lib/python2.4/site-packages/mod_python/importer.py", line 1537, in
HandlerDispatch\n    default=default_handler, arg=req, silent=hlist.silent)
[Fri Mar 28 13:10:34 2008] [error] [client 127.0.1.1]   File
"/usr/lib/python2.4/site-packages/mod_python/importer.py", line 1202, in
_process_target\n    module = import_module(module_name, path=path)
[Fri Mar 28 13:10:34 2008] [error] [client 127.0.1.1]   File
"/usr/lib/python2.4/site-packages/mod_python/importer.py", line 304, in
import_module\n    return __import__(module_name, {}, {}, ['*'])
[Fri Mar 28 13:10:34 2008] [error] [client 127.0.1.1]   File
"/tmp/test-gst/gst_test.py", line 1, in ?\n    import gst
[Fri Mar 28 13:10:34 2008] [error] [client 127.0.1.1]   File
"/usr/lib/python2.4/site-packages/gst-0.10/gst/__init__.py", line 144, in ?\n  
 from _gst import *
[Fri Mar 28 13:10:34 2008] [error] [client 127.0.1.1] RuntimeError: can't
initialize module gst: Error re-scanning registry , child terminated by signal
--

creating /var/www/.gnome2 does fix it

i couldn't find a way to reproduce this outside of the server, but here is a
simple set up to load in apache:

apache conf
--
  <Location "/test-gst">
     SetHandler python-program
     PythonPath "['/tmp/test-gst'] + sys.path"
     PythonHandler gst_test
  </Location>
--

the file /tmp/test-gst/gst_test.py reads:
--
import gst
print "coucou"
--

cheers, piem


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=524776.




More information about the Gstreamer-bugs mailing list