Giter VIP home page Giter VIP logo

nonebot-plugin-colab-novelai's Introduction

Hi there 👋

I'm ThetaPilla.

  • 🔭 I’m currently working on NoneBot Plugins
  • 🌱 I’m currently learning Olympaid of Informatics, JavaScript and C++
  • 📫 How to reach me: [email protected]

🌟 My Skills

🌏 Environment

💻 IDEs I'm using

nonebot-plugin-colab-novelai's People

Contributors

etherleaf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

nekonekokawaii

nonebot-plugin-colab-novelai's Issues

小白请教

QQ截图20221110002825
请问一下这个config文件在哪呀,只看到一个config.py

安装以后提示unknown error: cannot find Chrome binary怎么解决呢

raise exception_class(message, screen, stacktrace)

selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary
Stacktrace:
Backtrace:
(No symbol) [0x013DF243]
(No symbol) [0x01367FD1]
(No symbol) [0x0125D04D]
(No symbol) [0x0127A063]
(No symbol) [0x012782E9]
(No symbol) [0x012AF056]
(No symbol) [0x012AEB2A]
(No symbol) [0x012A8386]
(No symbol) [0x0128163C]
(No symbol) [0x0128269D]
GetHandleVerifier [0x01679A22+2655074]
GetHandleVerifier [0x0166CA24+2601828]
GetHandleVerifier [0x01488C0A+619850]
GetHandleVerifier [0x01487830+614768]
(No symbol) [0x013705FC]
(No symbol) [0x01375968]
(No symbol) [0x01375A55]
(No symbol) [0x0138051B]
BaseThreadInitThunk [0x74F96A14+36]
RtlInitializeExceptionChain [0x76FDA9EF+143]
RtlInitializeExceptionChain [0x76FDA9BA+90]

插件与apscheduler起冲突

运行此插件,nonebot-plugin-apscheduler就一直报错
有没有为插件设置代理都一样,不知道哪里起了冲突
报错:

urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=59933): Max retries exceeded with url: /session/6cef1bb4859331dda1239dc3d650589b/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb563edd9c0>: Failed to establish a new connection: [Errno 111] Connection refused'))

运行插件保存:unsupported operand type(s) for |: '_GenericAlias' and 'type'

11-20 01:42:27 [ERROR] nonebot | Failed to import "nonebot_plugin_colab_novelai"
Traceback (most recent call last):
File "E:\qqbot-nonebot\Nonebot\nb2\bot.py", line 28, in
nonebot.load_from_toml("pyproject.toml")
File "D:\python-software\lib\site-packages\nonebot\plugin\load.py", line 122, in load_from_toml
return load_all_plugins(plugins, plugin_dirs)
File "D:\python-software\lib\site-packages\nonebot\plugin\load.py", line 59, in load_all_plugins
return manager.load_all_plugins()
File "D:\python-software\lib\site-packages\nonebot\plugin\manager.py", line 168, in load_all_plugins
return set(
File "D:\python-software\lib\site-packages\nonebot\plugin\manager.py", line 169, in
filter(None, (self.load_plugin(name) for name in self.available_plugins))
File "D:\python-software\lib\site-packages\nonebot\plugin\manager.py", line 141, in load_plugin
module = importlib.import_module(name)
File "D:\python-software\lib\importlib_init_.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in load_unlocked
File "D:\python-software\lib\site-packages\nonebot\plugin\manager.py", line 233, in exec_module
super().exec_module(module)
File "", line 855, in exec_module
File "", line 228, in call_with_frames_removed
File "D:\python-software\lib\site-packages\nonebot_plugin_colab_novelai_init
.py", line 16, in
from .utils import chrome_driver, inject_image_to_state
File "D:\python-software\lib\site-packages\nonebot_plugin_colab_novelai\utils_init
.py", line 1, in
from .webdriver import (
File "D:\python-software\lib\site-packages\nonebot_plugin_colab_novelai\utils\webdriver.py", line 14, in
from .distributed import PLUGIN_DIR
File "D:\python-software\lib\site-packages\nonebot_plugin_colab_novelai\utils\distributed.py", line 13, in
from ..config import plugin_config
File "D:\python-software\lib\site-packages\nonebot_plugin_colab_novelai\config.py", line 7, in
class Config(BaseModel, extra=Extra.ignore):
File "D:\python-software\lib\site-packages\nonebot_plugin_colab_novelai\config.py", line 22, in Config
nai_nsfw_tags: Optional[List[str] | str] = None
TypeError: unsupported operand type(s) for |: '_GenericAlias' and 'type'

image

就这么一直报错下去awa

Traceback (most recent call last):
File "/home/none/.venv/lib/python3.10/site-packages/urllib3/connection.py", line 200, in _new_conn
sock = connection.create_connection(
File "/home/none/.venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
raise err
File "/home/none/.venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/none/.venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 790, in urlopen
response = self._make_request(
File "/home/none/.venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 496, in _make_request
conn.request(
File "/home/none/.venv/lib/python3.10/site-packages/urllib3/connection.py", line 388, in request
self.endheaders()
File "/root/anaconda3/envs/NONE/lib/python3.10/http/client.py", line 1278, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/root/anaconda3/envs/NONE/lib/python3.10/http/client.py", line 1038, in _send_output
self.send(msg)
File "/root/anaconda3/envs/NONE/lib/python3.10/http/client.py", line 976, in send
self.connect()
File "/home/none/.venv/lib/python3.10/site-packages/urllib3/connection.py", line 236, in connect
self.sock = self._new_conn()
File "/home/none/.venv/lib/python3.10/site-packages/urllib3/connection.py", line 215, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f826dea44f0>: Failed to establish a new connection: [Errno 111] Connection refused

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "", line 21, in
File "/home/none/.venv/lib/python3.10/site-packages/nonebot/init.py", line 309, in run
get_driver().run(*args, **kwargs)
File "/home/none/.venv/lib/python3.10/site-packages/nonebot/drivers/fastapi.py", line 198, in run
uvicorn.run(
File "/home/none/.venv/lib/python3.10/site-packages/uvicorn/main.py", line 578, in run
server.run()
File "/home/none/.venv/lib/python3.10/site-packages/uvicorn/server.py", line 61, in run
return asyncio.run(self.serve(sockets=sockets))
File "/root/anaconda3/envs/NONE/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)

File "/home/none/.venv/lib/python3.10/site-packages/apscheduler/executors/base_py3.py", line 30, in run_coroutine_job
retval = await job.func(*job.args, **job.kwargs)
File "/home/none/.venv/lib/python3.10/site-packages/asyncer/_main.py", line 358, in wrapper
return await anyio.to_thread.run_sync(
File "/home/none/.venv/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/home/none/.venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "/home/none/.venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
File "/home/none/.venv/lib/python3.10/site-packages/nonebot_plugin_colab_novelai/_main.py", line 39, in handle_recaptcha
driver.switch_to.frame(driver.find_element(By.XPATH, '/html/body/colab-recaptcha-dialog/div/div/iframe'))
File "/home/none/.venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 740, in find_element
return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"]
File "/home/none/.venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 344, in execute
response = self.command_executor.execute(driver_command, params)
File "/home/none/.venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 290, in execute
return self._request(command_info[0], url, body=data)
File "/home/none/.venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 311, in _request
response = self._conn.request(method, url, body=body, headers=headers)
File "/home/none/.venv/lib/python3.10/site-packages/urllib3/_request_methods.py", line 118, in request
return self.request_encode_body(
File "/home/none/.venv/lib/python3.10/site-packages/urllib3/_request_methods.py", line 217, in request_encode_body
return self.urlopen(method, url, **extra_kw)
File "/home/none/.venv/lib/python3.10/site-packages/urllib3/poolmanager.py", line 443, in urlopen
response = conn.urlopen(method, u.request_uri, **kw)
File "/home/none/.venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 874, in urlopen
return self.urlopen(
File "/home/none/.venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 874, in urlopen
return self.urlopen(
File "/home/none/.venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 874, in urlopen
return self.urlopen(
File "/home/none/.venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 844, in urlopen
retries = retries.increment(
File "/home/none/.venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 515, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=39151): Max retries exceeded with url: /session/73ccf75809a77d2cec58e90ebcd9f7ff/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f826dea44f0>: Failed to establish a new connection: [Errno 111] Connection refused'))
然后不断重复........,也不知道哪里出问题了,看了看似乎有人也有这个问题但是好像最后是不了了之了...........

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.