Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: unsupported operand type(s) for +=: 'dict' and 'list' #22

Closed
hborchew opened this issue Aug 7, 2020 · 4 comments
Closed
Labels

Comments

@hborchew
Copy link

hborchew commented Aug 7, 2020

I am getting this error. Any ideas?

Traceback (most recent call last):
File "c:\program files\python38\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\program files\python38\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Users\hborchew\AppData\Roaming\Python\Python38\Scripts\pandoc-xnos.exe_main
.py", line 7, in
File "C:\Users\hborchew\AppData\Roaming\Python\Python38\site-packages\pandocxnos\main.py", line 38, in main
m.main(stdin, stdout)
File "C:\Users\hborchew\AppData\Roaming\Python\Python38\site-packages\pandoc_tablenos.py", line 664, in main
altered = functools.reduce(lambda x, action: walk(x, action, fmt, meta),
File "C:\Users\hborchew\AppData\Roaming\Python\Python38\site-packages\pandoc_tablenos.py", line 664, in
altered = functools.reduce(lambda x, action: walk(x, action, fmt, meta),
File "C:\Users\hborchew\AppData\Roaming\Python\Python38\site-packages\pandocfilters.py", line 110, in walk
res = action(item['t'],
File "C:\Users\hborchew\AppData\Roaming\Python\Python38\site-packages\pandoc_tablenos.py", line 335, in process_tables
_adjust_caption(fmt, table, value)
File "C:\Users\hborchew\AppData\Roaming\Python\Python38\site-packages\pandoc_tablenos.py", line 250, in _adjust_caption
value[1] += tmp
TypeError: unsupported operand type(s) for +=: 'dict' and 'list'
Error running filter pandoc-xnos:
Filter returned error status 1

tomduck added a commit that referenced this issue Aug 7, 2020
@tomduck
Copy link
Owner

tomduck commented Aug 7, 2020

Thanks for this report. Yes, I see where the problem is. Please update to pandoc-tablenos 2.2.2 (just released) and it should be fixed.

Cheers,
Tom

@tomduck tomduck added the bug label Aug 7, 2020
@hborchew
Copy link
Author

hborchew commented Aug 7, 2020

Tom,

Thanks for the swift response. Works now.

Howard

@hborchew hborchew closed this as completed Aug 7, 2020
@tomduck
Copy link
Owner

tomduck commented Aug 8, 2020

Great! Thanks for letting me know, Howard.

Cheers,
Tom

@hborchew
Copy link
Author

hborchew commented Aug 8, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants