我在TextMate下调用pdflatex
后生成PDF文件时遇到了一些问题。我在Mac OS 13下工作,我知道TextMate的LaTEX捆绑包没有及时更新MacOS 12.3版本。所以我按照下面的过程操作:Textmate latex compilation : pb with python version after macOS update Monterey 12.3
但是我在parsing.py上有问题。我在结尾处(当编译停止时)有这样的消息:
Traceback (most recent call last):
File "/Users/jimmy/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/bin/texmate.py", line 1014, in status = command_parser.parse_stream()
File "/Users/jimmy/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/Python/parsing.py", line 770, in parse_stream return super(LaTexMkParser, self).parse_stream()
File "/Users/jimmy/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/Python/parsing.py", line 187, in parse_stream function(matching, line)
File "/Users/jimmy/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/Python/parsing.py", line 789, in start_latex fatal_error, number_errors, number_warnings = parser.parse_stream()
File "/Users/jimmy/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/Python/parsing.py", line 610, in parse_stream return super(LaTexParser, self).parse_stream()
File "/Users/jimmy/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/Python/parsing.py", line 194, in parse_stream line = self.get_rewrapped_line()
File "/Users/jimmy/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/Python/parsing.py", line 139, in get_rewrapped_line line = to_utf8(self.input_stream.readline())
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xee in position 92: invalid continuation byte
非常感谢你的帮助。PS:编译工作与texshop
,我不认为这是一个乳胶问题
我将其修改如下:
/usr/bin/python3 -m pip install pyobjc --user
cd ~/Library/Application\ Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/bin
- 在所有.py文件(configure.py、www.example.com、www.example.com、www.example.com)的标题中将“python”更改为“python3”btexdoc.pytexmate.pytexparser.py
但我还是有个问题...
1条答案
按热度按时间mklgxw1f1#
在我的例子中,它有助于重命名上述目录中的python二进制文件
第一个月
从“Python”到“Python3”。