Bug 63974 - The installed version of cerbero doesn't find the data directory correctly
Summary: The installed version of cerbero doesn't find the data directory correctly
Status: NEW
Alias: None
Product: GStreamer SDK
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: Other Mac OS X (All)
: medium normal
Assignee: bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-26 20:09 UTC by async.processingjs
Modified: 2013-05-07 15:56 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description async.processingjs 2013-04-26 20:09:03 UTC
The similar issue to the Bug 56517 (see comment #0):
> Base on http://docs.gstreamer.com/display/GstSDK/Installing+on+Mac+OS+X
> The recommended system is Mac OS X Lion, So i'm not sure whether this is a
> bug.
> 
> OS: Mac OS X 10.8.2
> Python 2.7
> cerbero downloaded with "git clone"
> 
> where i run "./cerbero-uninstalled bootstrap" the following errors appear:
> 
> Traceback (most recent call last):
>   File "/usr/local/bin/cerbero", line 8, in <module>
>     load_entry_point('cerbero==0.1.0', 'console_scripts', 'cerbero')()
>   File
> "/Library/Python/2.7/site-packages/cerbero-0.1.0-py2.7.egg/cerbero/main.py",
> line 120, in main
>     Main(sys.argv[1:])
>   File
...
> "/Library/Python/2.7/site-packages/cerbero-0.1.0-py2.7.egg/cerbero/config.
> py", line 378, in _find_data_dir
>     raise FatalError("Data dir not found")
> cerbero.errors.FatalError: Fatal Error: Data dir not found

Problem is that Python is installed under /Library. But algorithm in the _find_data_dir method [1] assumes it will be installed under /usr/local. __file__ points to the config.py, which makes search for /usr/local/share/cerbero/config fruitless.

  [1] http://cgit.freedesktop.org/gstreamer-sdk/cerbero/tree/cerbero/config.py#n413
Comment 1 Andoni Morales Alastruey 2013-04-27 11:26:59 UTC
At this point we don't recommend running the installed version of cerbero which is not well supported in OS X.
Make sure you really use the uninstalled version with ./cerbero-uninstalled, it's otherwise impossible that you reach this part of the code (http://cgit.freedesktop.org/gstreamer-sdk/cerbero/tree/cerbero/config.py#n412)
Comment 2 async.processingjs 2013-04-27 23:07:04 UTC
(In reply to comment #1)
> At this point we don't recommend running the installed version of cerbero
> which is not well supported in OS X.
> Make sure you really use the uninstalled version with ./cerbero-uninstalled,

Yep, that what I end up doing


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.