pyspider icon indicating copy to clipboard operation
pyspider copied to clipboard

cannot run pyspider!

Open zzjayzz opened this issue 6 years ago • 11 comments

  • pyspider version:0.3.10
  • Operating system:windows10 pro
  • Start up command: pyspider all

Traceback (most recent call last): File "C:\Users\dell\AppData\Local\Programs\Python\Python37-32\lib\runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "C:\Users\dell\AppData\Local\Programs\Python\Python37-32\lib\runpy.py", line 85, in run_code exec(code, run_globals) File "C:\Users\dell\Documents\bia660\study\venv\Scripts\pyspider.exe_main.py", line 5, in File "c:\users\dell\documents\bia660\study\venv\lib\site-packages\pyspider\run.py", line 231 async=True, get_object=False, no_input=False): ^ SyntaxError: invalid syntax

zzjayzz avatar Oct 08 '19 21:10 zzjayzz

does anyone know what happen with the pyspider? when i enter command "pyspider all" to let it run , it shows above error message.

zzjayzz avatar Oct 08 '19 21:10 zzjayzz

the some issue on macOS Mojave 10.14.6

HammerChen avatar Oct 14 '19 12:10 HammerChen

Same on Ubuntu

weet-bred avatar Oct 16 '19 06:10 weet-bred

update: i have already addressed this problem by substituting all the "async" pyspider's scripts for "_async", the reason why i did this is that python3.7 have set "async" to a keyword, so it will occur this syntax problem, so just change "async" to other word, it will help. image

@HammerChen, @weet-bred

zzjayzz avatar Oct 16 '19 18:10 zzjayzz

async is the keyword in python3.7

xiaobitao avatar Nov 05 '19 01:11 xiaobitao

一样 async 关键词, 最新代码中看到了 替换为async_mod, 但是bug修复,release版什么时候发出来?

superoo1 avatar Jan 17 '20 11:01 superoo1

。。。

tennessine avatar Dec 12 '20 10:12 tennessine

Same here.

adamsoderstrom avatar Aug 10 '21 09:08 adamsoderstrom

how to solve it in linux, help

Siroj910 avatar May 31 '22 19:05 Siroj910

There are several places in code, some change asyn to async_mode, some change async to async_fetch

WallaceLiu avatar Dec 21 '22 09:12 WallaceLiu

Same here. Running inside a python 3.7 container:

root@36c71decd081:/# pyspider Traceback (most recent call last): File "/usr/local/bin/pyspider", line 5, in from pyspider.run import main File "/usr/local/lib/python3.7/site-packages/pyspider/run.py", line 231 async=True, get_object=False, no_input=False): ^ SyntaxError: invalid syntax root@36c71decd081:/# ls bin boot dev etc home lib media mnt opt proc root run sbin srv sys tmp usr var root@36c71decd081:/# python Python 3.7.17 (default, Sep 20 2023, 21:49:50) [GCC 12.2.0] on linux Type "help", "copyright", "credits" or "license" for more information.

jomach avatar Dec 13 '23 04:12 jomach