Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Fail to start pyspider - TypeError: Can't instantiate abstract class ScriptProvider with abstract methods get_resource_inst #994

Open
diginside opened this issue Sep 9, 2023 · 1 comment

Comments

@diginside
Copy link

  • pyspider version: 0.3.10
  • Operating system: MacOS 12.6.3
  • Start up command: pyspider

Expected behavior

WebUI should be coming up next

Actual behavior

WebUI exiting...

How to reproduce

MacBook-Pro:spider diginside$ pyspider
[W 230909 17:25:11 run:413] phantomjs not found, continue running without it.
[I 230909 17:25:13 result_worker:49] result_worker starting...
/Users/diginside/.pyenv/versions/3.6.15/lib/python3.6/site-packages/requests/init.py:104: RequestsDependencyWarning: urllib3 (1.26.16) or chardet (5.0.0)/charset_normalizer (2.0.12) doesn't match a supported version!
RequestsDependencyWarning)
/Users/diginside/.pyenv/versions/3.6.15/lib/python3.6/site-packages/requests/init.py:104: RequestsDependencyWarning: urllib3 (1.26.16) or chardet (5.0.0)/charset_normalizer (2.0.12) doesn't match a supported version!
RequestsDependencyWarning)
/Users/diginside/.pyenv/versions/3.6.15/lib/python3.6/site-packages/requests/init.py:104: RequestsDependencyWarning: urllib3 (1.26.16) or chardet (5.0.0)/charset_normalizer (2.0.12) doesn't match a supported version!
RequestsDependencyWarning)
[I 230909 17:25:13 processor:211] processor starting...
[I 230909 17:25:13 tornado_fetcher:638] fetcher starting...
[I 230909 17:25:13 scheduler:647] scheduler starting...
[I 230909 17:25:13 scheduler:782] scheduler.xmlrpc listening on 127.0.0.1:23333
[I 230909 17:25:13 scheduler:586] in 5m: new:0,success:0,retry:0,failed:0
/Users/diginside/.pyenv/versions/3.6.15/lib/python3.6/site-packages/requests/init.py:104: RequestsDependencyWarning: urllib3 (1.26.16) or chardet (5.0.0)/charset_normalizer (2.0.12) doesn't match a supported version!
RequestsDependencyWarning)
[I 230909 17:25:13 app:84] webui exiting...
Traceback (most recent call last):
File "/Users/diginside/.pyenv/versions/3.6.15/bin/pyspider", line 11, in
load_entry_point('pyspider==0.3.10', 'console_scripts', 'pyspider')()
File "/Users/diginside/.pyenv/versions/3.6.15/lib/python3.6/site-packages/pyspider/run.py", line 754, in main
cli()
File "/Users/diginside/.pyenv/versions/3.6.15/lib/python3.6/site-packages/click/core.py", line 1128, in call
return self.main(*args, **kwargs)
File "/Users/diginside/.pyenv/versions/3.6.15/lib/python3.6/site-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/Users/diginside/.pyenv/versions/3.6.15/lib/python3.6/site-packages/click/core.py", line 1637, in invoke
super().invoke(ctx)
File "/Users/diginside/.pyenv/versions/3.6.15/lib/python3.6/site-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/diginside/.pyenv/versions/3.6.15/lib/python3.6/site-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/Users/diginside/.pyenv/versions/3.6.15/lib/python3.6/site-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/Users/diginside/.pyenv/versions/3.6.15/lib/python3.6/site-packages/pyspider/run.py", line 165, in cli
ctx.invoke(all)
File "/Users/diginside/.pyenv/versions/3.6.15/lib/python3.6/site-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/Users/diginside/.pyenv/versions/3.6.15/lib/python3.6/site-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/Users/diginside/.pyenv/versions/3.6.15/lib/python3.6/site-packages/pyspider/run.py", line 497, in all
ctx.invoke(webui, **webui_config)
File "/Users/diginside/.pyenv/versions/3.6.15/lib/python3.6/site-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/Users/diginside/.pyenv/versions/3.6.15/lib/python3.6/site-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/Users/diginside/.pyenv/versions/3.6.15/lib/python3.6/site-packages/pyspider/run.py", line 384, in webui
app.run(host=host, port=port)
File "/Users/diginside/.pyenv/versions/3.6.15/lib/python3.6/site-packages/pyspider/webui/app.py", line 59, in run
from .webdav import dav_app
File "/Users/diginside/.pyenv/versions/3.6.15/lib/python3.6/site-packages/pyspider/webui/webdav.py", line 207, in
'/': ScriptProvider(app)
TypeError: Can't instantiate abstract class ScriptProvider with abstract methods get_resource_inst

@guoqingkong
Copy link

the same error:

File "/Users/kong/anaconda3/envs/pyspider/bin/pyspider", line 11, in
sys.exit(main())
File "/Users/kong/anaconda3/envs/pyspider/lib/python3.6/site-packages/pyspider/run.py", line 754, in main
cli()
File "/Users/kong/anaconda3/envs/pyspider/lib/python3.6/site-packages/click/core.py", line 1128, in call
return self.main(*args, **kwargs)
File "/Users/kong/anaconda3/envs/pyspider/lib/python3.6/site-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/Users/kong/anaconda3/envs/pyspider/lib/python3.6/site-packages/click/core.py", line 1637, in invoke
super().invoke(ctx)
File "/Users/kong/anaconda3/envs/pyspider/lib/python3.6/site-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/kong/anaconda3/envs/pyspider/lib/python3.6/site-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/Users/kong/anaconda3/envs/pyspider/lib/python3.6/site-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/Users/kong/anaconda3/envs/pyspider/lib/python3.6/site-packages/pyspider/run.py", line 165, in cli
ctx.invoke(all)
File "/Users/kong/anaconda3/envs/pyspider/lib/python3.6/site-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/Users/kong/anaconda3/envs/pyspider/lib/python3.6/site-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/Users/kong/anaconda3/envs/pyspider/lib/python3.6/site-packages/pyspider/run.py", line 497, in all
ctx.invoke(webui, **webui_config)
File "/Users/kong/anaconda3/envs/pyspider/lib/python3.6/site-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/Users/kong/anaconda3/envs/pyspider/lib/python3.6/site-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/Users/kong/anaconda3/envs/pyspider/lib/python3.6/site-packages/pyspider/run.py", line 384, in webui
app.run(host=host, port=port)
File "/Users/kong/anaconda3/envs/pyspider/lib/python3.6/site-packages/pyspider/webui/app.py", line 59, in run
from .webdav import dav_app
File "/Users/kong/anaconda3/envs/pyspider/lib/python3.6/site-packages/pyspider/webui/webdav.py", line 207, in
'/': ScriptProvider(app)
TypeError: Can't instantiate abstract class ScriptProvider with abstract methods get_resource_inst

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants