Get the App
SLTechnology News&Howtos  ›  Development  › 

How to solve the error problem of installing pyspider by python3.7

Shulou Source: shulou.com Published: 2022-06-01 04:00:09 10月16日 Update

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!

Tags: Questions scripts learning content files errors two reasons parameters names commands that is ideas situations articles methods more best frames crawlers Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Apple Shulou Information MySQL MariaDB