Git Product home page Git Product logo

duolingo_remember's Introduction

yihong0618

😄 你好~ 我是 yihong0618,生活工作在大连。 喜爱游戏跑步读书,编程和有趣的东西。 项目大多和这些相关。

你可以到我的网站来玩, 📫 如果你想聊聊,可以给我发邮件, 也可以来到我的 tg 频道

也欢迎赞助我杯可乐 Sponsor Me

爱发电:s

Yesterday you said tomorrow.

记录下的跑步 13 年。

duolingo_remember's People

Contributors

bruce-jay avatar longfangsong avatar wsycqyz avatar yihong0618 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

duolingo_remember's Issues

Github action error

Telegram can receive 5 message: new words, new article, new article trans, new_word.mp3 and new_article.mp3.
Check Github action log, see below error:

image

你好,请问下为什么找不到latest_number这个参数

source venv/bin/activate
python duolingo.py *** *** *** 20
shell: /usr/bin/bash -e {0}
env:
LATEST_WORDS_NUMBER: 20
pythonLocation: /opt/hostedtoolcache/Python/3.6.14/x64
usage: duolingo.py [-h]
duolingo_user_name duolingo_password tele_token
tele_chat_id latest_number
duolingo.py: error: the following arguments are required: latest_number
Error: Process completed with exit code 2.

KeyError: 'messages'

Using Edge GPT API
Traceback (most recent call last):
File "duolingo.py", line 375, in
main(
File "duolingo.py", line 311, in main
) = duolingo.get_duolingo_words_and_save_mp3()
File "duolingo.py", line 239, in get_duolingo_words_and_save_mp3
article = call_edge_gpt_to_make_article(words_str, language)
File "duolingo.py", line 64, in call_edge_gpt_to_make_article
respond = asyncio.run(bot.ask(prompt))"item""messages"***
KeyError: 'messages'
##errorProcess completed with exit code 1.

Workflow RUN ERROR: KeyError: 'zc'

Run python duolingo.py *** ***  --tele_token *** --tele_chat_id *** --latest_number 20
[2](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:2)
  python duolingo.py *** ***  --tele_token *** --tele_chat_id *** --latest_number 20
[3](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:3)
  shell: /usr/bin/bash -e {0}
[4](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:4)
  env:
[5](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:5)
    OPENAI_API_KEY: ***
[6](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:6)
    EDGE_GPT_COOKIE: ***
[7](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:7)
    LATEST_WORDS_NUMBER: 20
[8](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:8)
    pythonLocation: /opt/hostedtoolcache/Python/3.8.16/x64
[9](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:9)
    PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.8.16/x64/lib/pkgconfig
[10](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:10)
    Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.16/x64
[11](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:11)
    Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.16/x64
[12](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:12)
    Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.16/x64
[13](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:13)
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.16/x64/lib
[14](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:15)
Traceback (most recent call last):
[15](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:16)
  File "duolingo.py", line 302, in <module>
[16](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:17)
    main(
[17](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:18)
  File "duolingo.py", line 238, in main
[18](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:19)
    ) = get_duolingo_words_and_save_mp3(tts_url, latest_num=latest_num)
[19](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:20)
  File "duolingo.py", line 206, in get_duolingo_words_and_save_mp3
[20](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:21)
    make_edge_article_tts_mp3(article, language_short)
[21](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:22)
  File "duolingo.py", line 130, in make_edge_article_tts_mp3
[22](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:23)
    language = random.choice(EDGE_TTS_DICT[language_short][gender])
[23](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:24)
KeyError: 'zc'
[24](https://github.com/HamGuy/duolingo_remember/actions/runs/4796140553/jobs/8531564656#step:7:25)
Error: Process completed with exit code 1.

执行 actions 提示缺少参数的错误

你好,我已在 Secrets 中设置了我的 TELE_TOKEN TELE_CHAT_ID 等参数,并且 LATEST_WORDS_NUMBER 也未做修改,但是执行 action 时出现下面的错误:

usage: duolingo.py [-h]
10
                   duolingo_user_name duolingo_password tele_token
11
                   tele_chat_id latest_number
12
duolingo.py: error: the following arguments are required: tele_chat_id, latest_number
13
Error: Process completed with exit code 2.

提示缺少了后面两个参数,看了实现代码不知道原因,能否检查一下?谢谢

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.