binux / pyspider

A Powerful Spider(Web Crawler) System in Python.
http://docs.pyspider.org/
Apache License 2.0
16.47k stars 3.69k forks source link

Pyspider commandline had error: invalid syntax #965

Open BrosLee opened 3 years ago

BrosLee commented 3 years ago

Expected behavior

command line executed sucessfully

Actual behavior

(base) C:\ProgramData\Anaconda3\Scripts>pyspider [all] Traceback (most recent call last): File "c:\programdata\anaconda3\lib\runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "c:\programdata\anaconda3\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\ProgramData\Anaconda3\Scripts\pyspider.exe__main__.py", line 4, in File "c:\programdata\anaconda3\lib\site-packages\pyspider\run.py", line 231 async=True, get_object=False, no_input=False): ^ SyntaxError: invalid syntax

How to reproduce

tetsuo191 commented 3 years ago

I had the same problem, fixed it by using Python 3.6.

BrosLee commented 3 years ago

I had the same problem, fixed it by using Python 3.6.

Thanks a lot, let me have a try

damonChenzf07 commented 3 months ago

I had the same problem, fixed it by using Python 3.6.

Thanks a lot, let me have a try

I have the same issue: os: ubuntu 20.04 python version : 3.8.10

Successfully installed pyspider-0.3.10 damon@Zdrive:~$ pyspider Traceback (most recent call last): File "/home/damon/.local/bin/pyspider", line 5, in from pyspider.run import main File "/home/damon/.local/lib/python3.8/site-packages/pyspider/run.py", line 231 async=True, get_object=False, no_input=False): ^ SyntaxError: invalid syntax

flowerone commented 3 months ago

您发给我的邮件我已经收到。=================================================== This is an automatic reply, confirming that your e-mail was received.Thank you