bosondata / chrome-prerender

Render JavaScript-rendered page as HTML/PDF/mhtml/png/jpeg using Headless Chrome
MIT License
165 stars 20 forks source link

Invalid syntax error #18

Closed usameavci closed 7 years ago

usameavci commented 7 years ago

I install prerender via pip3 install -U prerender and run prerender commmand in cli. I get the following error:

root@Prerender-3:~# prerender
Traceback (most recent call last):
  File "/usr/local/bin/prerender", line 7, in <module>
    from prerender.cli import main
  File "/usr/local/lib/python3.5/dist-packages/prerender/cli.py", line 8
    DEBUG: bool = os.environ.get('DEBUG', 'false').lower() in ('true', 'yes', '1')
         ^
SyntaxError: invalid syntax
messense commented 7 years ago

You need to run it using Python 3.6+

发自我的 iPhone

在 2017年6月17日,05:31,Üsame Fethullah AVCI notifications@github.com 写道:

I install prerender via pip3 install -U prerender and run prerender commmand in cli. I get the following error:

root@Prerender-3:~# prerender Traceback (most recent call last): File "/usr/local/bin/prerender", line 7, in from prerender.cli import main File "/usr/local/lib/python3.5/dist-packages/prerender/cli.py", line 8 DEBUG: bool = os.environ.get('DEBUG', 'false').lower() in ('true', 'yes', '1') ^ SyntaxError: invalid syntax — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

usameavci commented 7 years ago

Thanks @messense i will try it