I have had the package installed, and just tested the sample codes in README. But an error arised:
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
File d:\Downloaded_Edge\Apps\Anaconda\envs\py310\lib\site-packages\latex2svg\__init__.py:160, in latex2svg(code, params, working_directory)
[159](file:///D:/Downloaded_Edge/Apps/Anaconda/envs/py310/lib/site-packages/latex2svg/__init__.py:159) try:
--> [160](file:///D:/Downloaded_Edge/Apps/Anaconda/envs/py310/lib/site-packages/latex2svg/__init__.py:160) ret = subprocess.run(shlex.split(params['latex_cmd']+' code.tex'),
[161](file:///D:/Downloaded_Edge/Apps/Anaconda/envs/py310/lib/site-packages/latex2svg/__init__.py:161) stdout=subprocess.PIPE, stderr=subprocess.PIPE,
[162](file:///D:/Downloaded_Edge/Apps/Anaconda/envs/py310/lib/site-packages/latex2svg/__init__.py:162) cwd=working_directory)
[163](file:///D:/Downloaded_Edge/Apps/Anaconda/envs/py310/lib/site-packages/latex2svg/__init__.py:163) ret.check_returncode()
File d:\Downloaded_Edge\Apps\Anaconda\envs\py310\lib\subprocess.py:503, in run(input, capture_output, timeout, check, *popenargs, **kwargs)
[501](file:///D:/Downloaded_Edge/Apps/Anaconda/envs/py310/lib/subprocess.py:501) kwargs['stderr'] = PIPE
--> [503](file:///D:/Downloaded_Edge/Apps/Anaconda/envs/py310/lib/subprocess.py:503) with Popen(*popenargs, **kwargs) as process:
[504](file:///D:/Downloaded_Edge/Apps/Anaconda/envs/py310/lib/subprocess.py:504) try:
File d:\Downloaded_Edge\Apps\Anaconda\envs\py310\lib\subprocess.py:971, in Popen.__init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, user, group, extra_groups, encoding, errors, text, umask, pipesize)
[968](file:///D:/Downloaded_Edge/Apps/Anaconda/envs/py310/lib/subprocess.py:968) self.stderr = io.TextIOWrapper(self.stderr,
[969](file:///D:/Downloaded_Edge/Apps/Anaconda/envs/py310/lib/subprocess.py:969) encoding=encoding, errors=errors)
--> [971](file:///D:/Downloaded_Edge/Apps/Anaconda/envs/py310/lib/subprocess.py:971) self._execute_child(args, executable, preexec_fn, close_fds,
[972](file:///D:/Downloaded_Edge/Apps/Anaconda/envs/py310/lib/subprocess.py:972) pass_fds, cwd, env,
[973](file:///D:/Downloaded_Edge/Apps/Anaconda/envs/py310/lib/subprocess.py:973) startupinfo, creationflags, shell,
[974](file:///D:/Downloaded_Edge/Apps/Anaconda/envs/py310/lib/subprocess.py:974) p2cread, p2cwrite,
[975](file:///D:/Downloaded_Edge/Apps/Anaconda/envs/py310/lib/subprocess.py:975) c2pread, c2pwrite,
[976](file:///D:/Downloaded_Edge/Apps/Anaconda/envs/py310/lib/subprocess.py:976) errread, errwrite,
[977](file:///D:/Downloaded_Edge/Apps/Anaconda/envs/py310/lib/subprocess.py:977) restore_signals,
[978](file:///D:/Downloaded_Edge/Apps/Anaconda/envs/py310/lib/subprocess.py:978) gid, gids, uid, umask,
...
--> [165](file:///D:/Downloaded_Edge/Apps/Anaconda/envs/py310/lib/site-packages/latex2svg/__init__.py:165) raise RuntimeError('latex not found')
[167](file:///D:/Downloaded_Edge/Apps/Anaconda/envs/py310/lib/site-packages/latex2svg/__init__.py:167) # Add LIBGS to environment if supplied
[168](file:///D:/Downloaded_Edge/Apps/Anaconda/envs/py310/lib/site-packages/latex2svg/__init__.py:168) env = os.environ.copy()
RuntimeError: latex not found
I have had the package installed, and just tested the sample codes in README. But an error arised:
Tested code:
Error info: