Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行python proxyPool.py server报错,兄弟们救我一下,我真的会谢,栓Q #681

Open
aixinjueluolaoba opened this issue Jul 12, 2022 · 1 comment

Comments

@aixinjueluolaoba
Copy link


*** ______ ********************* ______ *********** _ ********
*** | ___ _ ******************** | ___ \ ********* | | ********
*** | |/ / _ __ __ _ __ _ | |/ /__ * ___ | | ********
*** | /| // _ \ \ / /| | | || __// _ \ / _ \ | | ********
*** | | | | | (
) | > < \ || || | | () | () || |
****
*** _| || ___/ //_\ __ |_| _/ _/ __/ ****
**** __ / / *****
************************* /
/ *******************************



2022-07-12 09:24:16,517 launcher.py[line:45] INFO ProxyPool Version: 2.4.0
2022-07-12 09:24:16,518 launcher.py[line:50] INFO ProxyPool configure HOST: 0.0.0.0
2022-07-12 09:24:16,518 launcher.py[line:51] INFO ProxyPool configure PORT: 5010
2022-07-12 09:24:16,518 launcher.py[line:52] INFO ProxyPool configure PROXY_FETCHER: ['freeProxy01', 'freeProxy02', 'freeProxy03', 'freeProxy04', 'freeProxy05', 'freeProxy06', 'freeProxy07', 'freeProxy08', 'freeProxy09', 'freeProxy10']
2022-07-12 09:24:16,577 launcher.py[line:58] INFO ============ DATABASE CONFIGURE ================
2022-07-12 09:24:16,578 launcher.py[line:59] INFO DB_TYPE: REDIS
2022-07-12 09:24:16,578 launcher.py[line:60] INFO DB_HOST: None
2022-07-12 09:24:16,579 launcher.py[line:61] INFO DB_PORT: None
2022-07-12 09:24:16,580 launcher.py[line:62] INFO DB_NAME: :@/127.0.0.1:6379/0
2022-07-12 09:24:16,581 launcher.py[line:63] INFO DB_USER: None
2022-07-12 09:24:16,582 launcher.py[line:64] INFO =================================================
Traceback (most recent call last):
File "/home/lighthouse/proxy_pool-2.4.0/proxyPool.py", line 43, in
cli()
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1130, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/lighthouse/proxy_pool-2.4.0/proxyPool.py", line 39, in server
startServer()
File "/home/lighthouse/proxy_pool-2.4.0/helper/launcher.py", line 24, in startServer
__beforeStart()
File "/home/lighthouse/proxy_pool-2.4.0/helper/launcher.py", line 38, in __beforeStart
if __checkDBConfig():
File "/home/lighthouse/proxy_pool-2.4.0/helper/launcher.py", line 65, in __checkDBConfig
return db.test()
File "/home/lighthouse/proxy_pool-2.4.0/db/dbClient.py", line 120, in test
return self.client.test()
File "/home/lighthouse/proxy_pool-2.4.0/db/redisClient.py", line 144, in test
self.getCount()
File "/home/lighthouse/proxy_pool-2.4.0/db/redisClient.py", line 130, in getCount
proxies = self.getAll(https=False)
File "/home/lighthouse/proxy_pool-2.4.0/db/redisClient.py", line 112, in getAll
items = self.__conn.hvals(self.name)
File "/usr/local/lib/python3.9/dist-packages/redis/commands/core.py", line 4887, in hvals
return self.execute_command("HVALS", name)
File "/usr/local/lib/python3.9/dist-packages/redis/client.py", line 1235, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/usr/local/lib/python3.9/dist-packages/redis/connection.py", line 1578, in get_connection
connection = self.make_connection()
File "/usr/local/lib/python3.9/dist-packages/redis/connection.py", line 1546, in make_connection
connection = self.connection_class(**self.connection_kwargs)
File "/usr/local/lib/python3.9/dist-packages/redis/connection.py", line 539, in init
self.port = int(port)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

@jhao104
Copy link
Owner

jhao104 commented Jul 20, 2022

redis的db配置问题 应该是一个数字 0到14

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

No branches or pull requests

2 participants