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

"pngtrick" unrecognized #12

Open
jjshammas opened this issue Oct 4, 2017 · 5 comments
Open

"pngtrick" unrecognized #12

jjshammas opened this issue Oct 4, 2017 · 5 comments

Comments

@jjshammas
Copy link

Trying to generate PNGs with this tool, but it seems to not be recognizing the flag. I tried on bleeding edge as well:

python -m readme2tex --output ~/temp/README.md --branch master --nocdn --pngtrick --htmlize --username jjshammas --project test --usepackage tikz README.tex
usage: python -m readme2tex [-h] [--readme [README]] [--engine ENGINE]
                            [--output OUTPUT] [--usepackage USEPACKAGE]
                            [--svgdir SVGDIR] [--branch BRANCH]
                            [--username USERNAME] [--project PROJECT]
                            [--nocdn] [--htmlize] [--valign] [--rerender]
                            [--bustcache] [--add-git-hook]
                            [input]
python -m readme2tex: error: unrecognized arguments: --pngtrick
@parrt
Copy link

parrt commented Dec 8, 2017

same here. python3 mac os x.

@kdavis-mozilla
Copy link

Same here, python 2.7 os x installed from pip

@vmaffei
Copy link

vmaffei commented May 28, 2018

Ran into the same issue on OSX after accidentally installing the bleeding edge on top of the pip installation (non-bleeding edge). Look inside [home python dir]/lib/python3.6/site-packages for readme2tex and rename it to readme2tex.bak to disable the old readme2tex. Leave readme2tex-0.0.1b3-py3.6.egg alone, and rerun readme2tex w/ --pngtrick. If you haven't installed the bleeding edge version yet, do this after disabling the old readme2tex. This fixed this for me.

@zouyu4524
Copy link

Same here. python 3 windows, pip via conda envs. The source code does not include --pngtrick related codes if it's installed via pip under conda envs. I installed it via pip first and then substitute __main__.py and render.py under site-packages/reademe2tex/ with the files in current repo. This fixed the problem for me.

@mars-hub
Copy link

It might be due to the fact that the files here: https://pypi.org/project/readme2tex/ are outdated...

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

6 participants