Open parrt opened 6 years ago
latest clone gives same issue. python2 and 3 give same result.
running latest develop, i get this with --pngtrick:
$ python2 -m readme2tex --rerender --nocdn --pngtrick --svgdir images --usepackage physics --output README.md README.tex.md
Traceback (most recent call last):
File "/Users/parrt/anaconda2/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/Users/parrt/anaconda2/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/private/tmp/readme2tex/readme2tex/__main__.py", line 162, in <module>
args.bustcache)
File "/private/tmp/readme2tex/readme2tex/render.py", line 242, in render
svg2png(os.path.join(svgdir, name + '.svg'))
File "/private/tmp/readme2tex/readme2tex/render.py", line 51, in svg2png
import cairosvg
File "build/bdist.macosx-10.6-x86_64/egg/cairosvg/__init__.py", line 27, in <module>
File "build/bdist.macosx-10.6-x86_64/egg/cairosvg/surface/__init__.py", line 30, in <module>
ImportError: No module named cairo
$ pip search cairo
caipyrus (0.2) - Cairo based procedural rendering tool.
cairo-helpers (0.2.post1) - Add description here.
cairocffi (0.8.0) - cffi-based cairo bindings for Python
INSTALLED: 0.8.0 (latest)
sx-cairodeco (0.1) - decoration plugin for samurai-x2 using the cairo library
cairomovie (0.9.0) - Creating a movie with cairo frames.
CairoSVG (2.1.2) - A Simple SVG Converter based on Cairo
INSTALLED: 2.1.2 (latest)
cairotft (0.1.2) - UI library for small tft screens using cairocffi
contextfree (0.1.5) - cfdg-inspired cairo-based pythonic generative art framework
Graphication (0.1.0) - A Cairo-based graphing library
pycairo (1.15.4) - Python interface for cairo
pynoded (0.1) - Package to create node editors using cairo as backend
pypdflib (0.1.a3) - Pango Cairo based Python PDF Library
Things (0.4) - A vector animation API using Python, Cairo and Inkscape SVG files. Create quick animations
by containment, keyframe tweening and other simple Things. New, one can now export each
frame as PNG or SVG files.
tl.buildout_gtk (0.2.2) - A zc.buildout recipe for installing pygtk, pyobject and pycairo.
tl.testing (0.5) - Utilities for writing tests: sandbox directories, mock external programs, graphical doc-
tests for cairo surfaces, error handling in threads.
yaco.recipe.pycairo (0.1.1) - Buildout recipe for compiling pycairo
Workaround: specify your name and project:
--username parrt --project auto-diff-edu
Good catch, I'll add this advice to the user guide
Hi, I'm getting
<img src="https://rawgit.com/in git@github.com:parrt/auto-diff-edu/master/images/6177db6fc70d94fdb9dbe1907695fce6.svg?invert_in_darkmode" align=middle width=15.947580000000002pt height=26.76201000000001pt/>.
for an image url.i'm using
cool package btw!