Can not Edit Metadata

Bug #1218465 reported by Arjen Ronhaar on 2013-08-29
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

I get the message:
>
calibre, version 1.0.0
FOUT: Niet afgehandelde fout: <b>AttributeError</b>:'NoneType' object has no attribute 'replace'

calibre 1.0 isfrozen: True is64bit: False
Windows-7-6.1.7601-SP1 Windows ('32bit', 'WindowsPE')
('Windows', '7', '6.1.7601')
Python 2.7.4
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Traceback (most recent call last):
  File "site-packages\calibre\gui2\actions\edit_metadata.py", line 283, in edit_metadata
  File "site-packages\calibre\gui2\actions\edit_metadata.py", line 299, in edit_metadata_for
  File "site-packages\calibre\gui2\actions\edit_metadata.py", line 319, in do_edit_metadata
  File "site-packages\calibre\gui2\metadata\single.py", line 1025, in edit_metadata
  File "site-packages\calibre\gui2\metadata\single.py", line 45, in __init__
  File "site-packages\calibre\gui2\__init__.py", line 755, in __init__
  File "site-packages\calibre\gui2\metadata\single.py", line 94, in setupUi
  File "site-packages\calibre\gui2\metadata\single.py", line 143, in create_basic_metadata_widgets
  File "site-packages\calibre\gui2\metadata\basic_widgets.py", line 352, in __init__
  File "site-packages\calibre\gui2\metadata\basic_widgets.py", line 378, in update_state
  File "site-packages\calibre\db\legacy.py", line 902, in func
  File "site-packages\calibre\db\cache.py", line 55, in ans
  File "site-packages\calibre\db\cache.py", line 1266, in author_sort_from_authors
  File "site-packages\calibre\db\cache.py", line 1266, in <dictcomp>
  File "site-packages\calibre\utils\icu.py", line 101, in icu_change_case
AttributeError: 'NoneType' object has no attribute 'replace'
<

Please help, I have 50.000 book in Calibre, and can't do anything with them

Arjen Ronhaar

Do you have your calibre library ona network disk? If so, move it off to
a local disk and you will be fine. See
http://manual.calibre-ebook.com/faq.html#i-am-getting-errors-with-my-calibre-library-on-a-networked-drive-nas

If not, feel free to post a followup.

 status invalid

Changed in calibre:
status: New → Invalid
Arjen Ronhaar (arjen-ronhaar) wrote :

I had the Library on a external disc!
I just now moved it to a internal disc, and received the same error message.

I tried it with the 32bit aswel as the 64bit versions of 1.0.0 and got the same result.

Arjen Ronhaar

Arjen Ronhaar (arjen-ronhaar) wrote :

I run on Windows 7 64bit.

Problem occured after 1.0.0 upgrade.

And I see there are more problems with database integrety! ?

Arjen Ronhaar

Kovid Goyal (kovid) wrote :

Attach the metadata.db file from your calibre library folder.

Changed in calibre:
status: Invalid → Incomplete

 metadata.db<https://docs.google.com/file/d/0BwKer3IKVRd4WWwtRS1Kekt4TE0/edit?usp=drive_web>

 metadata_db_prefs_backup.json<https://docs.google.com/file/d/0BwKer3IKVRd4WC1fWnBrenptMGM/edit?usp=drive_web>
Here are the requested files.

Arjen Ronhaar

2013/8/30 Kovid Goyal <email address hidden>

> Attach the metadata.db file from your calibre library folder.
>
> ** Changed in: calibre
> Status: Invalid => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1218465
>
> Title:
> Can not Edit Metadata
>
> Status in calibre: e-book management:
> Incomplete
>
> Bug description:
> I get the message:
> >
> calibre, version 1.0.0
> FOUT: Niet afgehandelde fout: <b>AttributeError</b>:'NoneType' object
> has no attribute 'replace'
>
> calibre 1.0 isfrozen: True is64bit: False
> Windows-7-6.1.7601-SP1 Windows ('32bit', 'WindowsPE')
> ('Windows', '7', '6.1.7601')
> Python 2.7.4
> Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
> Traceback (most recent call last):
> File "site-packages\calibre\gui2\actions\edit_metadata.py", line 283,
> in edit_metadata
> File "site-packages\calibre\gui2\actions\edit_metadata.py", line 299,
> in edit_metadata_for
> File "site-packages\calibre\gui2\actions\edit_metadata.py", line 319,
> in do_edit_metadata
> File "site-packages\calibre\gui2\metadata\single.py", line 1025, in
> edit_metadata
> File "site-packages\calibre\gui2\metadata\single.py", line 45, in
> __init__
> File "site-packages\calibre\gui2\__init__.py", line 755, in __init__
> File "site-packages\calibre\gui2\metadata\single.py", line 94, in
> setupUi
> File "site-packages\calibre\gui2\metadata\single.py", line 143, in
> create_basic_metadata_widgets
> File "site-packages\calibre\gui2\metadata\basic_widgets.py", line 352,
> in __init__
> File "site-packages\calibre\gui2\metadata\basic_widgets.py", line 378,
> in update_state
> File "site-packages\calibre\db\legacy.py", line 902, in func
> File "site-packages\calibre\db\cache.py", line 55, in ans
> File "site-packages\calibre\db\cache.py", line 1266, in
> author_sort_from_authors
> File "site-packages\calibre\db\cache.py", line 1266, in <dictcomp>
> File "site-packages\calibre\utils\icu.py", line 101, in icu_change_case
> AttributeError: 'NoneType' object has no attribute 'replace'
> <
>
> Please help, I have 50.000 book in Calibre, and can't do anything with
> them
>
> Arjen Ronhaar
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/calibre/+bug/1218465/+subscriptions
>

--
Met vriendelijke groet,

Arjen Ronhaar
Koemaste 7
7447 AT Hellendoorn

Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

Changed in calibre:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers