Git Product home page Git Product logo

[Bug Report] <title> about sagiri-bot HOT 3 CLOSED

Speechless22 avatar Speechless22 commented on August 30, 2024
[Bug Report] <p>from sagiri-bot.</p></section> </section> </article> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-7917632214101949" data-ad-slot="6627871389" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> <article> <h2 class="h2">Comments (3)</h2> <section class="issue-comment"> <section id="1429282937" class="issue-head"> <img class="issue-avatar" src="https://avatars.githubusercontent.com/u/49110142?v=4" alt="nullqwertyuiop avatar" /> <a class="issue-username" href="/nullqwertyuiop">nullqwertyuiop</a> <span class="issue-time"> commented on August 30, 2024 </span> </section> <section class="markdown markdown-js p-5"><p dir="auto"><code class="notranslate">poetry run python main.py</code></p><p>from sagiri-bot.</p></section> </section> <section class="issue-comment"> <section id="1429426061" class="issue-head"> <img class="issue-avatar" src="https://avatars.githubusercontent.com/u/61347609?s=30&u=c904541e68d4c9266a4090449ba6e2b714c4306a&v=4" alt="Speechless22 avatar" /> <a class="issue-username" href="/Speechless22">Speechless22</a> <span class="issue-time"> commented on August 30, 2024 </span> </section> <section class="markdown markdown-js p-5"><p dir="auto">启动后有一个报错<br> `2023-02-14 09:38:10.708 | ERROR | core:install_modules:258 -<br> Traceback (most recent call last):</p> <p dir="auto">File "/home/ubuntu/Production/sagiri-bot/main.py", line 110, in <br> core.install_modules(Path("modules") / "self_contained")<br> │ │ └ <class 'pathlib.Path'><br> │ └ <staticmethod(<function Sagiri.install_modules at 0xffff7e66bf40>)><br> └ <core.Sagiri object at 0xffff7e6727d0></p> <blockquote> <p dir="auto">File "/home/ubuntu/Production/sagiri-bot/core/<strong>init</strong>.py", line 252, in install_modules<br> saya.require(f"{module_base_path}.{module}")<br> │ └ <function Saya.require at 0xffff7f64d870><br> └ <graia.saya.Saya object at 0xffff7e672620></p> </blockquote> <p dir="auto">File "/home/ubuntu/.cache/pypoetry/virtualenvs/sagiri-bot-AVwYQ3_2-py3.10/lib/python3.10/site-packages/graia/saya/<strong>init</strong>.py", line 118, in require<br> channel = self.require_resolve(module)<br> │ │ └ 'modules.self_contained.chat_gpt'<br> │ └ <function Saya.require_resolve at 0xffff7f64d750><br> └ <graia.saya.Saya object at 0xffff7e672620><br> File "/home/ubuntu/.cache/pypoetry/virtualenvs/sagiri-bot-AVwYQ3_2-py3.10/lib/python3.10/site-packages/graia/saya/<strong>init</strong>.py", line 76, in require_resolve<br> imported_module = importlib.import_module(module, module)<br> │ │ │ └ 'modules.self_contained.chat_gpt'<br> │ │ └ 'modules.self_contained.chat_gpt'<br> │ └ <function import_module at 0xffff80650af0><br> └ <module 'importlib' from '/usr/lib/python3.10/importlib/<strong>init</strong>.py'><br> File "/usr/lib/python3.10/importlib/<strong>init</strong>.py", line 126, in import_module<br> return _bootstrap._gcd_import(name[level:], package, level)<br> │ │ │ │ │ └ 0<br> │ │ │ │ └ 'modules.self_contained.chat_gpt'<br> │ │ │ └ 0<br> │ │ └ 'modules.self_contained.chat_gpt'<br> │ └ <function _gcd_import at 0xffff8076f400><br> └ <module '_frozen_importlib' (frozen)><br> File "", line 1050, in _gcd_import<br> File "", line 1027, in _find_and_load<br> File "", line 1006, in _find_and_load_unlocked<br> File "", line 688, in _load_unlocked<br> File "", line 883, in exec_module<br> File "", line 241, in _call_with_frames_removed</p> <p dir="auto">File "/home/ubuntu/Production/sagiri-bot/modules/self_contained/chat_gpt/<strong>init</strong>.py", line 16, in <br> from .conversation_manager import ConversationManager</p> <p dir="auto">File "/home/ubuntu/Production/sagiri-bot/modules/self_contained/chat_gpt/conversation_manager.py", line 17, in <br> email = configs.get("email")<br> └ None</p> <p dir="auto">AttributeError: 'NoneType' object has no attribute 'get'`<br> 发出的图片中缺少字体</p><p>from sagiri-bot.</p></section> </section> <section class="issue-comment"> <section id="1429429371" class="issue-head"> <img class="issue-avatar" src="https://avatars.githubusercontent.com/u/49110142?v=4" alt="nullqwertyuiop avatar" /> <a class="issue-username" href="/nullqwertyuiop">nullqwertyuiop</a> <span class="issue-time"> commented on August 30, 2024 </span> </section> <section class="markdown markdown-js p-5"><ol dir="auto"> <li>报错正常,将在后续更新中移除该模块</li> <li>检查系统中是否安装对应字体</li> </ol><p>from sagiri-bot.</p></section> </section> </article> <section> <h2 class="h2">Related Issues (20)</h2> <div class="issue"> <ul> <li> <a href="/sagiri-kawaii/sagiri-bot/issues/404">[Bug Report] <Pica功能报错></a> <span class="text-red-600 text-xs font-normal py-0.5 px-1 border border-red-600 rounded-md">HOT 1</span> </li> <li> <a href="/sagiri-kawaii/sagiri-bot/issues/406">[Bug Report] <title>无法启动机器人</a> <span class="text-red-600 text-xs font-normal py-0.5 px-1 border border-red-600 rounded-md">HOT 2</span> </li> <li> <a href="/sagiri-kawaii/sagiri-bot/issues/407">[Bug Report] 未正确安装 `GitPython` `git` 时的类型注解问题</a> </li> <li> <a href="/sagiri-kawaii/sagiri-bot/issues/409">无法连接至mah</a> <span class="text-red-600 text-xs font-normal py-0.5 px-1 border border-red-600 rounded-md">HOT 6</span> </li> <li> <a href="/sagiri-kawaii/sagiri-bot/issues/410">初始化时对账号可用性进行检查</a> <span class="text-red-600 text-xs font-normal py-0.5 px-1 border border-red-600 rounded-md">HOT 1</span> </li> <li> <a href="/sagiri-kawaii/sagiri-bot/issues/411">[Feature Request] Wordle</a> </li> <li> <a href="/sagiri-kawaii/sagiri-bot/issues/412">[Bug Report] 无法启动机器人Traceback (most recent call last)</a> <span class="text-red-600 text-xs font-normal py-0.5 px-1 border border-red-600 rounded-md">HOT 2</span> </li> <li> <a href="/sagiri-kawaii/sagiri-bot/issues/414">[Docs/Feature Request] 在readme中添加配置需求</a> <span class="text-red-600 text-xs font-normal py-0.5 px-1 border border-red-600 rounded-md">HOT 2</span> </li> <li> <a href="/sagiri-kawaii/sagiri-bot/issues/416">[Bug Report] Docker环境下:中文字符无法正常渲染/方块文字</a> <span class="text-red-600 text-xs font-normal py-0.5 px-1 border border-red-600 rounded-md">HOT 6</span> </li> <li> <a href="/sagiri-kawaii/sagiri-bot/issues/419">[Feature Request] 启动时间统计</a> </li> <li> <a href="/sagiri-kawaii/sagiri-bot/issues/424">[Bug Report] 插件的channel.description文本错误</a> </li> <li> <a href="/sagiri-kawaii/sagiri-bot/issues/426">[Feature Request] PDM Support</a> </li> <li> <a href="/sagiri-kawaii/sagiri-bot/issues/427">重写Pica插件</a> </li> <li> <a href="/sagiri-kawaii/sagiri-bot/issues/428">[Bug Report] 更新 wordcloud</a> <span class="text-red-600 text-xs font-normal py-0.5 px-1 border border-red-600 rounded-md">HOT 1</span> </li> <li> <a href="/sagiri-kawaii/sagiri-bot/issues/430">新增插件</a> <span class="text-red-600 text-xs font-normal py-0.5 px-1 border border-red-600 rounded-md">HOT 1</span> </li> <li> <a href="/sagiri-kawaii/sagiri-bot/issues/431">SAGIRI-BOT V5 - Avilla</a> <span class="text-red-600 text-xs font-normal py-0.5 px-1 border border-red-600 rounded-md">HOT 3</span> </li> <li> <a href="/sagiri-kawaii/sagiri-bot/issues/432">[Feature Request] 使用 rich 打印启动时间统计</a> </li> <li> <a href="/sagiri-kawaii/sagiri-bot/issues/433">python main.py启动报错</a> <span class="text-red-600 text-xs font-normal py-0.5 px-1 border border-red-600 rounded-md">HOT 6</span> </li> <li> <a href="/sagiri-kawaii/sagiri-bot/issues/434">[Bug Report] 点歌插件失效</a> </li> </ul> </div> </section> </main> <section id="more" class="flex-none w-full md:w-60 text-gray-600 bg-gray-50 px-5 md:px-3 rounded-md dark-color"> <div class="w-full md:w-60 h-0.5"></div> <section> <!-- recommend projects --> <h2 class="h2 py-3.5">Recommend Projects</h2> <ul> <li class="mb-4"> </li> <li> <article class="small-box"> <h3 class="article-title"> <a class="block break-all" href="/facebook/react"> <img loading="lazy" class="inline-block w-6 h-6 rounded-md border border-white" width="24" height="24" src="https://raw.githubusercontent.com/facebook/create-react-app/master/packages/cra-template/template/public/logo192.png" alt="React photo" /> React </a> </h3> <p class="article-more pt-1">A declarative, efficient, and flexible JavaScript library for building user interfaces.</p> </article> </li> <li> <article class="small-box"> <h3 class="article-title"> <a class="block break-all" href="/vuejs/vue"> <img loading="lazy" class="inline-block w-6 h-6 rounded-md border border-white" width="24" height="24" src="https://camo.githubusercontent.com/c8f91d18976e27123643a926a2588b8d931a0292fd0b6532c3155379e8591629/68747470733a2f2f7675656a732e6f72672f696d616765732f6c6f676f2e706e67" alt="Vue.js photo" /> Vue.js </a> </h3> <p class="article-more pt-1">🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.</p> </article> </li> <li> <article class="small-box"> <h3 class="article-title"> <a class="block break-all" href="/microsoft/TypeScript"> <img loading="lazy" class="inline-block w-6 h-6 rounded-md border border-white" width="24" height="24" src="https://www.typescriptlang.org/favicon-32x32.png" alt="Typescript photo" /> Typescript </a> </h3> <p class="article-more pt-1">TypeScript is a superset of JavaScript that compiles to clean JavaScript output.</p> </article> </li> <li> <article class="small-box"> <h3 class="article-title"> <a class="block break-all" href="/tensorflow/tensorflow"> <img loading="lazy" class="inline-block w-6 h-6 rounded-md border border-white" width="24" height="24" src="https://camo.githubusercontent.com/c04e16c05de80dadbdc990884672fc941fdcbbfbb02b31dd48c248d010861426/68747470733a2f2f7777772e74656e736f72666c6f772e6f72672f696d616765732f74665f6c6f676f5f736f6369616c2e706e67" alt="TensorFlow photo" /> TensorFlow </a> </h3> <p class="article-more pt-1">An Open Source Machine Learning Framework for Everyone</p> </article> </li> <li> <article class="small-box"> <h3 class="article-title"> <a class="block break-all" href="/django/django"> <img loading="lazy" class="inline-block w-6 h-6 rounded-md border border-white" width="24" height="24" src="https://avatars2.githubusercontent.com/u/27804?s=200&v=4" alt="Django photo" /> Django </a> </h3> <p class="article-more pt-1">The Web framework for perfectionists with deadlines.</p> </article> </li> <li> <article class="small-box"> <h3 class="article-title"> <a class="block break-all" href="/laravel/laravel"> <img loading="lazy" class="inline-block w-6 h-6 rounded-md border border-white" width="24" height="24" src="https://laravel.com/img/logomark.min.svg" alt="Laravel photo" /> Laravel </a> </h3> <p class="article-more pt-1">A PHP framework for web artisans</p> </article> </li> <li> <article class="small-box"> <h3 class="article-title"> <a class="block break-all" href="/d3/d3"> <img loading="lazy" class="inline-block w-6 h-6 rounded-md border border-white" width="24" height="24" src="https://camo.githubusercontent.com/586ccf0aad9684edc821658cee04146cf36d1f1d5ec904bbefd72728909ccb2e/68747470733a2f2f64336a732e6f72672f6c6f676f2e737667" alt="D3 photo" /> D3 </a> </h3> <p class="article-more pt-1">Bring data to life with SVG, Canvas and HTML. 📊📈🎉</p> </article> </li> <li> <div> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-7917632214101949" data-ad-slot="6627871389" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </li> </ul> </section> <section> <!-- recommend topics --> <h2 class="h2 py-3.5">Recommend Topics</h2> <ul> <li> <article class="small-box"> <h3 class="article-title"> <a class="block break-all" href="/topic/javascript"> javascript </a> </h3> <p class="article-more pt-1">JavaScript (JS) is a lightweight interpreted programming language with first-class functions.</p> </article> </li> <li> <article class="small-box"> <h3 class="article-title"> <a class="block break-all" href="/topic/web"> web </a> </h3> <p class="article-more pt-1">Some thing interesting about web. New door for the world.</p> </article> </li> <li> <article class="small-box"> <h3 class="article-title"> <a class="block break-all" href="/topic/server"> server </a> </h3> <p class="article-more pt-1">A server is a program made to process requests and deliver data to clients.</p> </article> </li> <li> <article class="small-box"> <h3 class="article-title"> <a class="block break-all" href="/topic/machine-learning"> Machine learning </a> </h3> <p class="article-more pt-1">Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.</p> </article> </li> <li> <article class="small-box"> <h3 class="article-title"> <a class="block break-all" href="/topic/visualization"> Visualization </a> </h3> <p class="article-more pt-1">Some thing interesting about visualization, use data art</p> </article> </li> <li> <article class="small-box"> <h3 class="article-title"> <a class="block break-all" href="/topic/game"> Game </a> </h3> <p class="article-more pt-1">Some thing interesting about game, make everyone happy.</p> </article> </li> <li> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-7917632214101949" data-ad-slot="6627871389" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </li> </ul> </section> <section> <!-- recommend users --> <h2 class="h2 py-3.5">Recommend Org</h2> <ul> <li> <article class="small-box"> <h3 class="article-title"> <a class="block break-all" href="/facebook"> <img loading="lazy" class="inline-block w-6 h-6 rounded-md border border-white" width="24" height="24" src="https://avatars.githubusercontent.com/u/69631?v=4" alt="Facebook photo" /> Facebook </a> </h3> <p class="article-more pt-1">We are working to build community through open source technology. NB: members must have two-factor auth.</p> </article> </li> <li> <article class="small-box"> <h3 class="article-title"> <a class="block break-all" href="/microsoft"> <img loading="lazy" class="inline-block w-6 h-6 rounded-md border border-white" width="24" height="24" src="https://avatars.githubusercontent.com/u/6154722?v=4" alt="Microsoft photo" /> Microsoft </a> </h3> <p class="article-more pt-1">Open source projects and samples from Microsoft.</p> </article> </li> <li> <article class="small-box"> <h3 class="article-title"> <a class="block break-all" href="/google"> <img loading="lazy" class="inline-block w-6 h-6 rounded-md border border-white" width="24" height="24" src="https://avatars.githubusercontent.com/u/1342004?v=4" alt="Google photo" /> Google </a> </h3> <p class="article-more pt-1">Google ❤️ Open Source for everyone.</p> </article> </li> <li> <article class="small-box"> <h3 class="article-title"> <a class="block break-all" href="/alibaba"> <img loading="lazy" class="inline-block w-6 h-6 rounded-md border border-white" width="24" height="24" src="https://avatars.githubusercontent.com/u/1961952?v=4" alt="Alibaba photo" /> Alibaba </a> </h3> <p class="article-more pt-1">Alibaba Open Source for everyone</p> </article> </li> <li> <article class="small-box"> <h3 class="article-title"> <a class="block break-all" href="/d3"> <img loading="lazy" class="inline-block w-6 h-6 rounded-md border border-white" width="24" height="24" src="https://avatars.githubusercontent.com/u/1562726?v=4" alt="D3 photo" /> D3 </a> </h3> <p class="article-more pt-1">Data-Driven Documents codes.</p> </article> </li> <li> <article class="small-box"> <h3 class="article-title"> <a class="block break-all" href="/tencent"> <img loading="lazy" class="inline-block w-6 h-6 rounded-md border border-white" width="24" height="24" src="https://avatars.githubusercontent.com/u/18461506?v=4" alt="Tencent photo" /> Tencent </a> </h3> <p class="article-more pt-1">China tencent open source team.</p> </article> </li> <li> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-7917632214101949" data-ad-slot="6627871389" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </li> </ul> </section> </section> </div> </div> <!-- footer --> <footer class="sizeing text-xs text-center p-5"> <div>Friends: <a class="hover:underline" target="_blank" href="https://www.chanpinqingbaoju.com">ProductDiscover</a> </div> Copyright © 2024 Git Product <!-- & <span class="block md:inline">Data Power by github.com</span> --> ❤️ <a class="hover:underline block md:inline" href="mailto:cs.victor.edison@gmail.com">Mail to me</a> </footer> </body> </html>