← Back to team overview

openlp-core team mailing list archive

[Bug 1393176] Re: Windows will not copy or export theme nightly build

 

Hope this helps:

I get a very similar error trying to edit an existing theme (I often
change the background from week to week):

Traceback (most recent call last):
  File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\ui\themeform.py", line 533, in accept
  File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\ui\thememanager.py", line 632, in save_theme
  File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\ui\thememanager.py", line 666, in _write_theme
  File "c:\Python33\lib\shutil.py", line 92, in copyfile
  File "c:\Python33\lib\shutil.py", line 77, in _samefile
  File "c:\Python33\lib\ntpath.py", line 661, in samefile
TypeError: must be str, not bytes

I've noticed a couple of things:

1. despite the error, if I change the font before canceling the theme
editor (after encountering the above error), the font actually changes
but there is no background image, it seems to be ignored

2. If I go back in to edit the theme after canceling the theme editor
(after encountering the above error), the path for the background image
is
C:\Users\<username>\AppData\Roaming\openlp\data\themes\<ThemeName>\<image>.jpg
and NOT the path of the image that I had previously tried to use prior
to getting the error. However, If I copy the image I want to the above
path AND leave the image path as the above, then the theme editor exits
without error.

3. I had to explicitly choose the theme for each song in the song editor
as the default theme seems to be ignored but if I then go back into the
song editor and clear the default, then it will continue to use the
global default theme from that point on.

Windows 7 professional 64 bit (SP1)
Intel I7-2600K @ 3.4 GHz
12 GB Ram
OpenLP 2.1.1 Downloaded 11/16/2012

Thanks a bunch for all  your hard work!!!

-- 
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/1393176

Title:
  Windows will not copy or export theme nightly build

Status in OpenLP - Worship Presentation Software:
  New

Bug description:
  Traceback (most recent call last):   File
  "D:\OpenLP_Development\OpenLP_Code\openlp\openlp\core\ui\thememanager.py",
  line 298, in on_copy_theme   File
  "D:\OpenLP_Development\OpenLP_Code\openlp\openlp\core\ui\thememanager.py",
  line 314, in clone_theme_data   File
  "D:\OpenLP_Development\OpenLP_Code\openlp\openlp\core\ui\thememanager.py",
  line 632, in save_theme   File
  "D:\OpenLP_Development\OpenLP_Code\openlp\openlp\core\ui\thememanager.

  This comes after right-clicking a theme in the theme manager -> Copy
  Theme -> enter name for the new copied theme -> OK

  My apologies, the error after going through the new theme wizard is
  different. This one comes up once finishing the wizard:

  Traceback (most recent call last):   File "D:\OpenLP_Development\OpenLP_Code\openlp\openlp\core\ui\themeform.py", line 525, in accept   File "D:\OpenLP_Development\OpenLP_Code\openlp\openlp\core\ui\thememanager.py", line 632, in save_theme   File "D:\OpenLP_Development\OpenLP_Code\openlp\openlp\core\ui\thememanager.py", line 666, in _write_theme   File "c:\Python33\lib\shutil.py", line 92, in copyfile   File "c:\Python33\lib\shutil.py"
  "c:\Python33\lib\ntpath.py", line 661, in samefile TypeError: must be str, not bytes

  Interestingly, there is no drive D:

  And no folder C:\Python33

To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/1393176/+subscriptions


References