Package: debgpt
Version: 0.4.93
Severity: important

Dear Maintainer,

Running `debgpt` with OPENAI_API_KEY set results in:
> Traceback (most recent call last):
>   File "/usr/bin/debgpt", line 8, in <module>
>     sys.exit(main())
>              ^^^^^^
>   File "/usr/lib/python3/dist-packages/debgpt/cli.py", line 401, in main
>     ag = parse_args(argv)
>          ^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/debgpt/cli.py", line 67, in parse_args
>     conf = defaults.Config()
>            ^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/debgpt/defaults.py", line 66, in 
> __init__
>     self.toml.openai_api_key = openai_api_key
>     ^^^^^^^^^^^^^^^^^^^^^^^^
> AttributeError: 'dict' object has no attribute 'openai_api_key'


Cheers,

-- 
Stéphane


-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'buildd-unstable'), (500, 'unstable'), 
(1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.5.0-5-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages debgpt depends on:
ii  python3                 3.11.4-5+b1
ii  python3-bs4             4.12.2-2
ii  python3-openai          1.6.1-2
ii  python3-prompt-toolkit  3.0.43-1
ii  python3-requests        2.31.0+dfsg-1
ii  python3-rich            13.3.1-2
ii  python3-tomli           2.0.1-2

Versions of packages debgpt recommends:
ii  git          1:2.43.0-1
ii  man-db       2.12.0-1
ii  python3-zmq  24.0.1-5+b1
pn  tldr         <none>

Versions of packages debgpt suggests:
pn  python3-torch | python3-torch-cuda | python3-torch-rocm  <none>
pn  python3-transformers                                     <none>

-- no debconf information

Reply via email to