Themes: <file> and <otherfile> are the same file

Bug #719514 reported by Raoul Snyman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenLP
Status tracked in Trunk
Trunk
Fix Released
Low
Tomas Groth

Bug Description

Reported via bugs-at-openlp.org

Version: 1.9.4

--- Please enter the report below this line. ---
Theme image had disappeared from theme directory. Tried to copy it back in and got htis error

--- Exception Traceback ---
Traceback (most recent call last):
File "C:\Documents and Settings\raoul\My Documents\My
Projects\openlp\trunk\build\pyi.win32\OpenLP\outPYZ1.pyz/openlp.core.ui.themeform", line 593, in accept
File "C:\Documents and Settings\raoul\My Documents\My
Projects\openlp\trunk\build\pyi.win32\OpenLP\outPYZ1.pyz/openlp.core.ui.thememanager", line 671, in saveTheme
File "C:\Documents and Settings\raoul\My Documents\My Projects\openlp\trunk\build\pyi.win32\OpenLP\outPYZ1.pyz/shutil", line 47,
in copyfile
Error: `C:/Documents and Settings/Home/Application Data/openlp/data/themes/UrbanFunk/UrbanFunk.png` and `C:\Documents and
Settings\Home\Application Data\openlp\data\themes\UrbanFunk\UrbanFunk.png` are the same file

--- System information ---
Platform: Windows-XP-5.1.2600-SP3

--- Library Versions ---
Python: 2.6.2
Qt4: 4.6.1
Phonon: 4.3.1
PyQt4: 4.7
SQLAlchemy: 0.6.5
BeautifulSoup: 3.1.0.1
lxml: 2.2.4
Chardet: 1.0.1
PyEnchant: 1.6.3
PySQLite: 1.0.1

Related branches

Revision history for this message
Jon Tibble (meths) wrote :
Tim Bentley (trb143)
Changed in openlp:
assignee: nobody → Tim Bentley (trb143)
milestone: none → 1.9.5
Tim Bentley (trb143)
Changed in openlp:
milestone: 1.9.5 → 1.9.6
importance: Undecided → Low
Revision history for this message
Andreas Preikschat (googol-deactivatedaccount) wrote :

I was able to reproduce this.

Changed in openlp:
status: New → Confirmed
Revision history for this message
Andreas Preikschat (googol-deactivatedaccount) wrote :

I do not think that Tim will have the time to fix this in the few hours left to do so. (Furthermore he is not around anyway.)

Changed in openlp:
milestone: 1.9.6 → 1.9.7
tags: added: support-system
Revision history for this message
Tim Bentley (trb143) wrote :

The code has changed since this bug was reported and it seems that guards have been added to block this path if I have understood the bug correctly.
If it still happens can I have a recipe to trigger it.
I have double imported the same theme and that works fine.

Tim Bentley (trb143)
Changed in openlp:
status: Confirmed → Incomplete
Revision history for this message
Andreas Preikschat (googol-deactivatedaccount) wrote :
Changed in openlp:
milestone: 1.9.7 → none
status: Incomplete → Invalid
milestone: none → 1.9.8
Revision history for this message
Andreas Preikschat (googol-deactivatedaccount) wrote :

There has just been a new ticket created: http://support.openlp.org/issues/298

Changed in openlp:
status: Invalid → New
Revision history for this message
Tim Bentley (trb143) wrote :

Bug report is against 1.9.7 and the line numbers do not match up.
Tried to reproduce and still am unable to.

Changed in openlp:
status: New → Incomplete
Changed in openlp:
status: Incomplete → Invalid
Revision history for this message
Tomas Groth (tomasgroth) wrote :

This is actually still a problem:
Traceback (most recent call last):
  File "/home/tgc/OpenLP/openlp/trunk-2.0/openlp/core/ui/themeform.py", line 653, in accept
    self.thememanager.saveTheme(self.theme, saveFrom, saveTo)
  File "/home/tgc/OpenLP/openlp/trunk-2.0/openlp/core/ui/thememanager.py", line 671, in saveTheme
    self._writeTheme(theme, image_from, image_to)
  File "/home/tgc/OpenLP/openlp/trunk-2.0/openlp/core/ui/thememanager.py", line 706, in _writeTheme
    unicode(image_to).encode(encoding))
  File "/usr/lib/python2.7/shutil.py", line 69, in copyfile
    raise Error("`%s` and `%s` are the same file" % (src, dst))
Error: `/home/tgc/.local//share/openlp/themes/Moss on tree/climbing-moss.jpeg` and `/home/tgc/.local/share/openlp/themes/Moss on tree/climbing-moss.jpeg` are the same file

Changed in openlp:
assignee: Tim Bentley (trb143) → Tomas Groth (tomasgroth)
status: Invalid → Confirmed
Tim Bentley (trb143)
Changed in openlp:
status: Confirmed → Fix Released
milestone: 1.9.8 → 2.0.5
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.