Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[debug]无法运行 #390

Open
originalFactor opened this issue Mar 4, 2023 · 0 comments
Open

[debug]无法运行 #390

originalFactor opened this issue Mar 4, 2023 · 0 comments
Labels

Comments

@originalFactor
Copy link

描述问题 (Describe the bug)

配置文件修改完毕后无法运行

版本信息 (version info)

  • DDNS Version: v2.12.0@2022-12-07T12:11:57+00:00
  • OS Version: Windows 10 22H2
  • Type(运行方式): Python3.11.1
  • related issues (相关问题):

复现步骤 (To Reproduce)

  1. 运行python config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple/
  2. 运行pip install ddns
  3. %USERPROFILE%/DESKTOP/DDNS运行ddns,配置模板成功生成。
  4. 在dnspod申请了id和token
  5. 填写配置文件
  6. 再次运行ddns
  7. 报错(Python报错)

配置文件 (config file)

{
  "$schema": "https://ddns.newfuture.cc/schema/v2.8.json",
  "debug": true,
  "dns": "dnspod",
  "id": "123456",(非真实)
  "index4": "url:https://ip.sb",
  "index6": "default",
  "ipv4": [],
  "ipv6": [
    "mypc.example.com"(非真实)
  ],
  "proxy": null,
  "token": "abcdefghijklmnopqrstuvwxyz012345",(非真实)
  "ttl": null
}

调试输出 (debug output)

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Program Files\Python311\Scripts\ddns.exe\__main__.py", line 7, in <module>
  File "C:\Program Files\Python311\Lib\site-packages\run.py", line 121, in main
    dns = getattr(__import__('dns', fromlist=[dns_provider]), dns_provider)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'dns' has no attribute 'dnspod'

根本没有输出……直接python报错……我是不是下到假的了……

补充说明 (Additional context)

没有补充说明

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant