Code Monkey home page Code Monkey logo

components's People

Contributors

greyelaina avatar

Stargazers

 avatar

Watchers

 avatar

components's Issues

Import Error

from graia.application.message import ExternalElement

会有Import Error

Traceback (most recent call last):
File "/home/gx/software/anaconda3/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/home/gx/software/anaconda3/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/gx/.vscode/extensions/ms-python.python-2020.8.101144/pythonFiles/lib/python/debugpy/main.py", line 45, in
cli.main()
File "/home/gx/.vscode/extensions/ms-python.python-2020.8.101144/pythonFiles/lib/python/debugpy/../debugpy/server/cli.py", line 430, in main
run()
File "/home/gx/.vscode/extensions/ms-python.python-2020.8.101144/pythonFiles/lib/python/debugpy/../debugpy/server/cli.py", line 267, in run_file
runpy.run_path(options.target, run_name=compat.force_str("main"))
File "/home/gx/software/anaconda3/lib/python3.7/runpy.py", line 263, in run_path
pkg_name=pkg_name, script_name=fname)
File "/home/gx/software/anaconda3/lib/python3.7/runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "/home/gx/software/anaconda3/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/gx/software/mirai-console/miraiOK/plugins/MiraiAPIHTTP/graia/bot.py", line 1, in
from graia.component import Components
File "/home/gx/software/anaconda3/lib/python3.7/site-packages/graia/component/init.py", line 3, in
from graia.application.message import ExternalElement
ImportError: cannot import name 'ExternalElement' from 'graia.application.message' (/home/gx/software/anaconda3/lib/python3.7/site-packages/graia/application/message/init.py)

我改成
from graia.application.message.elements.external import ExternalElement
之后解决.

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.