SyntaxError - line 695 of createpdf.py
See original GitHub issueNew user here, just did a sudo pip3 install rst2pdf
, and tried to create the rst-cheatsheet from https://github.com/ralsina/rst-cheatsheet, and got this error:
$ rst2pdf rst-cheatsheet.rst -s cheatsheet
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.5/bin/rst2pdf", line 7, in <module>
from rst2pdf.createpdf import main
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/rst2pdf/createpdf.py", line 695
except ValueError, v:
^
SyntaxError: invalid syntax
This is on MacOS 10.12, but googling showed a windows user on StackOverflow with the same issue:
Issue Analytics
- State:
- Created 7 years ago
- Comments:13 (3 by maintainers)
Top Results From Across the Web
Status of python3 support · Issue #796 · rst2pdf ... - GitHub
My question is what is the status of the Python 3 support. Does the code in github works ... line 695 except ValueError,...
Read more >I get "SyntaxError" for rst2pdf command after installing ...
I installed rst2pdf V.93 using PIP and have set the path to scripts in python directory. Here is the error: c:>rst2pdf Traceback (most...
Read more >Can't run python app on digitalocean after adii...anycodings
I have added flask_swagger_ui in my app. In anycodings_digital-ocean Pycharm everything works good. After anycodings_digital-ocean uploading ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is at best a workaround. If someone competent (i.e., not me) wants to fix this with real Python 3 support I will happily donate a copy of “Python in a Nutshell” (for which I wrote the chapter on migration and coexistence) as a combination of inducement and reward.
As of today, rst2pdf is a Python 2 project.