|  11-21-2014, 01:31 AM | #1 | 
| Interested in the matter            Posts: 421 Karma: 426094 Join Date: Dec 2011 Location: Spain, south coast Device: Pocketbook InkPad 3 |  Error in function mode in editor S&R 
			
			To renumber notes Using: def replace(match, number, file_name, metadata, dictionaries, data, functions, *args, **kwargs): section_number = '%d' % number return match.group(1) + section_number With the find expression: (\[)(\d+) Result: calibre, version 2.11.0 ERROR: Excepción no considerada: <b>AttributeError</b>:'NoneType' object has no attribute 'getvalue' calibre 2.11 isfrozen: True is64bit: False Windows-7-6.1.7601-SP1 Windows ('32bit', 'WindowsPE') ('Windows', '7', '6.1.7601') Python 2.7.8 Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free') Successfully initialized third party plugins: DeDRM && Prince PDF Traceback (most recent call last): File "site-packages\calibre\gui2\tweak_book\boss.py", line 811, in search File "site-packages\calibre\gui2\tweak_book\search.py", line 1343, in run_search File "site-packages\calibre\gui2\tweak_book\search.py", line 1319, in do_all File "site-packages\calibre\gui2\tweak_book\search.py", line 1190, in show_function_debug_output AttributeError: 'NoneType' object has no attribute 'getvalue' | 
|   |   | 
|  11-21-2014, 01:58 AM | #2 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			Sigh, stupid typo, I will upload a fixed build in a little bit.
		 | 
|   |   | 
| Advert | |
|  | 
|  11-21-2014, 03:01 AM | #3 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			Fixed build uploaded. Re-download and you should be fine.
		 | 
|   |   | 
|  11-21-2014, 05:34 AM | #4 | 
| Interested in the matter            Posts: 421 Karma: 426094 Join Date: Dec 2011 Location: Spain, south coast Device: Pocketbook InkPad 3 |   
			
			Yes, Kovid. Now it works great. Thank you very much. | 
|   |   | 
|  | 
| Thread Tools | Search this Thread | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Function mode in editor S&R -- coming soon | eschwartz | Editor | 12 | 11-21-2014 08:26 AM | 
| Running recipe error: Python function terminated unexpectedly (Error Code: 1) | jpassarella | Recipes | 0 | 10-05-2012 12:54 PM | 
| Python Function Error | LoveMissBubbly | Calibre | 5 | 09-21-2011 04:52 PM | 
| Can the kindle 3 be used as a text editor with copy/paste function somehow? | kinkle | Amazon Kindle | 3 | 05-19-2011 10:50 AM | 
| Error: Python function terminated unexpectedly | LastMile | Calibre | 11 | 01-14-2011 06:07 PM |