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

Which Python version suits this tool best? #7

Closed
taozihu24 opened this issue Jan 8, 2025 · 1 comment
Closed

Which Python version suits this tool best? #7

taozihu24 opened this issue Jan 8, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@taozihu24
Copy link

I've install Python3.8.18 via conda virtual enviroment. After I condut the condoc convert with
pandoc -i test.tex -o test.docx -F pandoc-tex-numbering
There is an error as shown below. I think it may caused by the wrong version of Python. Could you help me to solve this problem?
Traceback (most recent call last): File "D:\ProgramData\anaconda3\envs\Python38\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "D:\ProgramData\anaconda3\envs\Python38\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "D:\ProgramData\anaconda3\envs\Python38\Scripts\pandoc-tex-numbering.exe\__main__.py", line 4, in <module> File "D:\ProgramData\anaconda3\envs\Python38\lib\site-packages\pandoc_tex_numbering\__init__.py", line 1, in <module> from .pandoc_tex_numbering import * File "D:\ProgramData\anaconda3\envs\Python38\lib\site-packages\pandoc_tex_numbering\pandoc_tex_numbering.py", line 11, in <module> from .docx_list import add_docx_list File "D:\ProgramData\anaconda3\envs\Python38\lib\site-packages\pandoc_tex_numbering\docx_list.py", line 6, in <module> from .oxml import * File "D:\ProgramData\anaconda3\envs\Python38\lib\site-packages\pandoc_tex_numbering\oxml.py", line 148, in <module> class ParagraphProperty(ElementProxy): File "D:\ProgramData\anaconda3\envs\Python38\lib\site-packages\pandoc_tex_numbering\oxml.py", line 156, in ParagraphProperty def set_tabs(self,tabs:list[TabStop]): TypeError: 'type' object is not subscriptable Error running filter pandoc-tex-numbering: Filter returned error status 1

@fncokg fncokg added the bug Something isn't working label Jan 8, 2025
@fncokg fncokg closed this as completed in 88af19a Jan 8, 2025
@fncokg
Copy link
Owner

fncokg commented Jan 8, 2025

In Python<3.9, typing like list[str] is not supported. I fixed this in commit 88af19a and released pandoc-tex-numbering 1.1.2.

I've tested full features of pandoc-tex-numbering in a Python 3.8 environment. Now, it should work in all >=3.8 versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants