Comments (3)
$ dvisvgm -v0 -a -n -s /var/folders/3w/b2_16tq53jnfq2kn92fg4mdh0000gs/T/readme2tex-srbuc3i1/01c646718a35875ea8195cf0865d9375.dvi
ERROR: can't open file '/var/folders/3w/b2_16tq53jnfq2kn92fg4mdh0000gs/T/readme2tex-srbuc3i1/01c646718a35875ea8195cf0865d9375.dvi' for reading
Looks like the file /var/folders/3w/b2_16tq53jnfq2kn92fg4mdh0000gs/T/readme2tex-srbuc3i1/01c646718a35875ea8195cf0865d9375.dvi
is never created?
but folder is not empty.
$ ls /var/folders/3w/b2_16tq53jnfq2kn92fg4mdh0000gs/T/readme2tex-srbuc3i1/
01c646718a35875ea8195cf0865d9375.tex
from readme2tex.
brew had issues installing macTex with basicTex (plus adding latex to PATH /usr/local/texlive/2022basic/bin/universal-darwin/
) it still dies but now the directory gets filled with more files
/var/folders/3w/b2_16tq53jnfq2kn92fg4mdh0000gs/T/readme2tex-k4fwye3c:
01c646718a35875ea8195cf0865d9375.aux 01c646718a35875ea8195cf0865d9375.dvi 01c646718a35875ea8195cf0865d9375.log 01c646718a35875ea8195cf0865d9375.tex
error (STDERR) this time:
$ python3 -m readme2tex --output README1.md README.md
warning: kpathsea: /opt/local/share/texmf-local/ls-R: No usable entries in ls-R.
warning: kpathsea: See the manual for how to generate ls-R.
warning: kpathsea: /opt/local/etc/texmf/ls-R: No usable entries in ls-R.
warning: kpathsea: See the manual for how to generate ls-R.
warning: kpathsea: /opt/local/var/db/texmf/ls-R: No usable entries in ls-R.
warning: kpathsea: See the manual for how to generate ls-R.
warning: kpathsea: /opt/local/share/texmf/ls-R: No usable entries in ls-R.
warning: kpathsea: See the manual for how to generate ls-R.
warning: kpathsea: /opt/local/share/texmf-texlive/ls-R: No usable entries in ls-R.
warning: kpathsea: See the manual for how to generate ls-R.
Traceback (most recent call last):
File "/usr/local/Cellar/[email protected]/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/Cellar/[email protected]/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.9/site-packages/readme2tex/__main__.py", line 147, in <module>
render(
File "/usr/local/lib/python3.9/site-packages/readme2tex/render.py", line 167, in render
svg, dvi, name = rendertex(engine, equation, packages, temp_dir, block)
File "/usr/local/lib/python3.9/site-packages/readme2tex/render.py", line 43, in rendertex
svg = check_output(
File "/usr/local/Cellar/[email protected]/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/local/Cellar/[email protected]/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['dvisvgm', '-v0', '-a', '-n', '-s', '/var/folders/3w/b2_16tq53jnfq2kn92fg4mdh0000gs/T/readme2tex-k4fwye3c/01c646718a35875ea8195cf0865d9375.dvi']' returned non-zero exit status 254.
dvisvgm -> exit status 254.
before it was 252
from readme2tex.
Moving one step fwd:
had to fill in ls_R files:
# Not sure what gets generated here:
$ sudo mktexlsr --verbose /opt/local/share/texmf-local/ /opt/local/share/texmf/ /opt/local/share/texmf-texlive/ /opt/local/share/texmf-local/ /opt/local/share/texmf/ /opt/local/share/texmf-texlive/ /opt/local/etc/texmf/ /opt/local/var/db/texmf/
$ sudo dvisvgm -v7 -a -n -s /tmp/readme2tex-lxljvqh_/86f95c3e869aa898be7b87e55b766c65.dvi
WARNING: map file ps2pk.map not found
WARNING: map file pdftex.map not found
WARNING: map file dvipdfm.map not found
WARNING: map file psfonts.map not found
WARNING: none of the default map files could be found
pre-processing DVI file (format version 2)
WARNING: PostScript header file tex.pro not found
WARNING: PostScript header file texps.pro not found
WARNING: PostScript header file special.pro not found
WARNING: PostScript header file color.pro not found
PostScript error: undefined in TeXDict
$ echo $?
254. # same as when called from python
Now I don't get errors for ls-R
, dvisvgm
still fails.
Where am I supposed to get ps2pk.map
and the rest?
Edit: Seems this is connected but I can't make it work on Mac.
With TexMaker I could render after removing some illegal markup symbols like "#"
from readme2tex.
Related Issues (20)
- Exception for latex in code snippets
- Rawgit URL not work anymore HOT 9
- UnicodeDecodeError
- No such file or directory: 'dvisvgm' HOT 1
- Recording has been archived in README
- How can use readme2tex over multiple files?
- [Feature suggestion] turn this into a github action HOT 4
- Support for persistent newcommand definitions HOT 1
- Support for unicode
- '$' in code blocks
- gfill is NoneType HOT 1
- Remotes that are ssh instead of http
- Possible to run without being in a git repo? HOT 4
- New line in math block
- [Possible bug report] - Proceeding tab HOT 2
- 503: invalid upstream response
- Dark theme issues HOT 2
- Inline equations will insert newlines HOT 1
- 403 Forbidden...? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from readme2tex.