In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "python3.7 how to solve the error problem of installation pyspider", the content of the explanation is simple and clear, easy to learn and understand, now please follow the editor's train of thought slowly in depth, together to study and learn "python3.7 how to solve the error problem of installation pyspider"!
Traceback (most recent call last):
File "/ ffk_learn/software/Python-3.7.0/ffk_py/bin/pyspider", line 7, in
From pyspider.run import main
File "/ ffk_learn/software/Python-3.7.0/ffk_py/lib/python3.7/site-packages/pyspider/run.py", line 231
Async=True, get_object=False, no_input=False):
^
SyntaxError: invalid syntax
I have been holding on to an error, but later found that it is because async cannot be used as a parameter name from python3.7. Just change the name of async in all scripts to another name. Of course, it is best to ask the boss of pyspider to update pyspider. There are not many scripts. There are two scripts altogether.
1 ffk_py/lib/python3.7/site-packages/pyspider/run.py
2 ffk_py/lib/python3.7/site-packages/pyspider/fetcher/tornado_fetcher.py
ValueError: Invalid configuration:-Deprecated option 'domaincontroller': use' http_authenticator
After installing the crawler framework pyspider, the above error occurs when you use the pyspider all command and type http://localhost:5000 to run
The reason is that WsgiDAV has released version pre-release 3.x.
The solution is as follows:
Find the pyspider resource package in the installation package, then find the webdav.py file in the webui file to open it, and modify line 209.
Put
'domaincontroller': NeedAuthController (app)
Modified to:
'http_authenticator': {
'HTTPAuthenticator':NeedAuthController (app)
}
Then execute pyspider all to open the page through http://localhost:5000.
Thank you for your reading, the above is the content of "python3.7 how to solve the error problem of installation pyspider". After the study of this article, I believe you have a deeper understanding of how python3.7 solves the problem of installation pyspider error, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.