Mediainfo in Windows trunk results in traceback

Bug #1591749 reported by Azaziah
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenLP
Fix Committed
High
Raoul Snyman

Bug Description

If Mediainfo.exe is placed in OpenLP folder on Windows, the following traceback appears on startup:

Traceback (most recent call last):
  File "openlp.py", line 44, in <module>
    main()
  File "E:\bzr\openlp\trunk\openlp\core\__init__.py", line 392, in main
    sys.exit(application.run(qt_args))
  File "E:\bzr\openlp\trunk\openlp\core\__init__.py", line 142, in run
    Registry().execute('bootstrap_initialise')
  File "E:\bzr\openlp\trunk\openlp\core\common\registry.py", line 137, in execute
    result = function(*args, **kwargs)
  File "E:\bzr\openlp\trunk\openlp\core\lib\pluginmanager.py", line 60, in bootstrap_initialise
    self.hook_media_manager()
  File "E:\bzr\openlp\trunk\openlp\core\lib\pluginmanager.py", line 124, in hook_media_manager
    plugin.create_media_manager_item()
  File "E:\bzr\openlp\trunk\openlp\core\lib\plugin.py", line 203, in create_media_manager_item
    self.media_item = self.media_item_class(self.main_window.media_dock_manager.media_dock, self)
  File "E:\bzr\openlp\trunk\openlp\plugins\media\lib\mediaitem.py", line 58, in __init__
    super(MediaMediaItem, self).__init__(parent, plugin)
  File "E:\bzr\openlp\trunk\openlp\core\lib\mediamanageritem.py", line 82, in __init__
    self._setup()
  File "E:\bzr\openlp\trunk\openlp\core\lib\mediamanageritem.py", line 104, in _setup
    self.setupUi()
  File "E:\bzr\openlp\trunk\openlp\core\lib\mediamanageritem.py", line 153, in setupUi
    self.add_end_header_bar()
  File "E:\bzr\openlp\trunk\openlp\plugins\media\lib\mediaitem.py", line 153, in add_end_header_bar
    self.replace_action_context.setDisabled(True)
AttributeError: 'MediaMediaItem' object has no attribute 'replace_action_context'

Trunk rev 2674, Win 8.1 64 bit.

Related branches

Phill (phill-ridout)
Changed in openlp:
status: New → Confirmed
status: Confirmed → In Progress
importance: Undecided → High
assignee: nobody → Phill (phill-ridout)
Revision history for this message
Phill (phill-ridout) wrote :

This bug has vanished for me! There's nothing I've done differently as far as I know. But after further investigation I found you need to run OpenLP from the foleder openlp.py is in.

Changed in openlp:
status: In Progress → New
assignee: Phill (phill-ridout) → nobody
Revision history for this message
Raoul Snyman (raoul-snyman) wrote :

I get this exception on macOS ALL. THE. TIME. I don't know exactly what causes it, I don't think it's MediaInfo, I think it's a refactor that went wrong, but connected to some initialisation thing.

Changed in openlp:
status: New → Confirmed
Tim Bentley (trb143)
Changed in openlp:
status: Confirmed → Fix Committed
milestone: none → 2.5.1
assignee: nobody → Raoul Snyman (raoul-snyman)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.