C:\WINDOWS\system32>redbot WeirdoBot
Traceback (most recent call last):
File "C:\Users\int\AppData\Local\Programs\Python\Python37\Scripts\redbot-script.py", line 11, in <module>
load_entry_point('Red-DiscordBot==3.0.2', 'console_scripts', 'redbot')()
File "C:\Users\int\AppData\Local\Programs\Python\Python37\lib\site-packages\redbot\__main__.py", line 134, in main
red = Red(cli_flags=cli_flags, description=description, pm_help=None)
File "C:\Users\int\AppData\Local\Programs\Python\Python37\lib\site-packages\redbot\core\bot.py", line 39, in __init__
self.db = Config.get_core_conf(force_registration=True)
File "C:\Users\int\AppData\Local\Programs\Python\Python37\lib\site-packages\redbot\core\config.py", line 612, in get_core_conf
driver_name, "Core", "0", data_path_override=core_path, **driver_details
File "C:\Users\int\AppData\Local\Programs\Python\Python37\lib\site-packages\redbot\core\drivers\__init__.py", line 32, in get_driver
return Mongo(*args, **kwargs)
File "C:\Users\int\AppData\Local\Programs\Python\Python37\lib\site-packages\redbot\core\drivers\red_mongo.py", line 49, in __init__
_initialize(**kwargs)
File "C:\Users\int\AppData\Local\Programs\Python\Python37\lib\site-packages\redbot\core\drivers\red_mongo.py", line 37, in _initialize
_conn = motor.motor_asyncio.AsyncIOMotorClient(url)
File "C:\Users\int\AppData\Local\Programs\Python\Python37\lib\site-packages\motor\core.py", line 141, in __init__
delegate = self.__delegate_class__(*args, **kwargs)
File "C:\Users\int\AppData\Local\Programs\Python\Python37\lib\site-packages\pymongo\mongo_client.py", line 494, in __init__
res = uri_parser.parse_uri(entity, port, warn=True)
File "C:\Users\int\AppData\Local\Programs\Python\Python37\lib\site-packages\pymongo\uri_parser.py", line 390, in parse_uri
nodes = split_hosts(hosts, default_port=None)
File "C:\Users\int\AppData\Local\Programs\Python\Python37\lib\site-packages\pymongo\uri_parser.py", line 260, in split_hosts
nodes.append(parse_host(entity, port))
File "C:\Users\int\AppData\Local\Programs\Python\Python37\lib\site-packages\pymongo\uri_parser.py", line 155, in parse_host
% (port,))
ValueError: Port must be an integer between 0 and 65535:
我在使用MongoDB安装Red Bot of时遇到了这个问题。我对这个错误一无所知。
请告诉我们如何解决。
注意:我安装了python,并且我的数据库连接成功连接,但是出现了此错误。