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

Developer instructions #10

Open
certik opened this issue Jun 1, 2019 · 1 comment
Open

Developer instructions #10

certik opened this issue Jun 1, 2019 · 1 comment

Comments

@certik
Copy link
Contributor

certik commented Jun 1, 2019

I followed the instructions, and got an error:

$ python fungrim.py 
Unable to read katex_cache
entry 488b6d
Traceback (most recent call last):
  File "fungrim.py", line 416, in <module>
    EntryPage(entry.id()).write()
  File "fungrim.py", line 290, in write
    self.entry(self.id)
  File "fungrim.py", line 275, in entry
    html = entries_dict[id].entry_html(single=True)
  File "/home/ondrej/repos/fungrim/formulas/expr.py", line 934, in entry_html
    s += args[0].html(display=True, single=single)
  File "/home/ondrej/repos/fungrim/formulas/expr.py", line 745, in html
    return self.html_SymbolDefinition()
  File "/home/ondrej/repos/fungrim/formulas/expr.py", line 890, in html_SymbolDefinition
    s += example.html()
  File "/home/ondrej/repos/fungrim/formulas/expr.py", line 748, in html
    return katex(self.latex(), display=display)
  File "fungrim.py", line 90, in katex
    universal_newlines=True)
  File "/usr/lib/python2.7/subprocess.py", line 216, in check_output
    process = Popen(stdout=PIPE, *popenargs, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

I assume it's expecting something in path.

@certik
Copy link
Contributor Author

certik commented Jun 1, 2019

I have executed npm i katex in the fungrim directory. That created some local files, and then the script works. This should be documented.

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

No branches or pull requests

1 participant