[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#965977: reportbug crashes during initial setup: local variable 'smtptls' referenced before assignment



Package: reportbug
Version: 7.7.0
Severity: normal

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
After installation of reportbug, I ran reportbug for intitial configuration.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?
I filled in smtp settings and hit Enter. I included the full transcript at the end below.

   * What was the outcome of this action?
Reportbug crashed with the following traceback:

Traceback (most recent call last):
  File "/usr/bin/reportbug", line 2302, in <module>
    main()
  File "/usr/bin/reportbug", line 1107, in main
    return iface.user_interface()
  File "/usr/bin/reportbug", line 1225, in user_interface
    offer_configuration(self.options)
  File "/usr/bin/reportbug", line 709, in offer_configuration
    if smtptls:
UnboundLocalError: local variable 'smtptls' referenced before assignment

   * What outcome did you expect instead?
Some further questions from the configuration wizard.

*** End of the template - remove these template lines ***


-- Package-specific info:
** Environment settings:
INTERFACE="text"

** /home/roman/.reportbugrc:
reportbug_version "7.7.0"
mode standard
ui text
email "roman@riabenko.com"
smtphost "smtp.fastmail.com:465"
smtpuser "roman@riabenko.com"
smtppasswd <omitted>

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.7.0-1-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_WARN, TAINT_FIRMWARE_WORKAROUND
Locale: LANG=uk_UA.UTF-8, LC_CTYPE=uk_UA.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 reportbug depends on:
ii  apt                2.1.7
ii  python3            3.8.2-3
ii  python3-reportbug  7.7.0
ii  sensible-utils     0.0.12+nmu1

reportbug recommends no packages.

Versions of packages reportbug suggests:
pn  claws-mail                                            <none>
pn  debconf-utils                                         <none>
pn  debsums                                               <none>
pn  default-mta | postfix | exim4 | mail-transport-agent  <none>
pn  dlocate                                               <none>
pn  emacs-bin-common                                      <none>
ii  file                                                  1:5.38-5
ii  gnupg                                                 2.2.20-1
pn  python3-urwid                                         <none>
pn  reportbug-gtk                                         <none>
ii  xdg-utils                                             1.1.3-2

Versions of packages python3-reportbug depends on:
ii  apt                2.1.7
ii  file               1:5.38-5
ii  python3            3.8.2-3
ii  python3-apt        2.1.3
ii  python3-debian     0.1.37
ii  python3-debianbts  3.0.2
ii  python3-requests   2.23.0+dfsg-2
ii  sensible-utils     0.0.12+nmu1

python3-reportbug suggests no packages.

-- no debconf information

*** /home/roman/full_transcript
Welcome to reportbug! Since it looks like this is the first time you have used reportbug, we are configuring its behavior. These settings will be
saved to the file "/home/roman/.reportbugrc", which you will be free to edit further.
Please choose the default operating mode for reportbug.

1 novice    Offer simple prompts, bypassing technical questions.

2 standard  Offer more extensive prompts, including asking about things that a moderately sophisticated user would be expected to know about
            Debian.

3 advanced  Like standard, but assumes you know a bit more about Debian, including "incoming".

4 expert    Bypass most handholding measures and preliminary triage routines. This mode should not be used by people unfamiliar with Debian's
            policies and operating procedures.

Select mode: [novice] standard
Please choose the default interface for reportbug.

1 text  A text-oriented console user interface

2 gtk   A graphical (GTK+) user interface.

Select interface: 1
Will reportbug often have direct Internet access? (You should answer yes to this question unless you know what you are doing and plan to check
whether duplicate reports have been filed via some other channel.) [Y|n|q|?]? Y
What real name should be used for sending bug reports?
[Roman Riabenko]> 
Which of your email addresses should be used when sending bug reports? (Note that this address will be visible in the bug tracking system, so you
may want to use a webmail address or another address with good spam filtering capabilities.)
[roman@debian-laptop.riabenko.com]> roman@riabenko.com
Do you have a "mail transport agent" (MTA) like Exim, Postfix or SSMTP configured on this computer to send mail to the Internet? [y|N|q|?]? N
Please enter the name of your SMTP host. Usually it's called something like "mail.example.org" or "smtp.example.org". If you need to use a
different port than default, use the <host>:<port> alternative format. Just press ENTER if you don't have one or don't know, and so a Debian SMTP
host will be used.
> smtp.fastmail.com:465
If you need to use a user name to send email via "smtp.fastmail.com:465" on your computer, please enter that user name. Just press ENTER if you
don't need a user name.
> roman@riabenko.com
Please enter the name of your proxy server. It should only use this parameter if you are behind a firewall. The PROXY argument should be formatted
as a valid HTTP URL, including (if necessary) a port number; for example, http://192.168.1.1:3128/. Just press ENTER if you don't have one or don't
know.
> 
Traceback (most recent call last):
  File "/usr/bin/reportbug", line 2302, in <module>
    main()
  File "/usr/bin/reportbug", line 1107, in main
    return iface.user_interface()
  File "/usr/bin/reportbug", line 1225, in user_interface
    offer_configuration(self.options)
  File "/usr/bin/reportbug", line 709, in offer_configuration
    if smtptls:
UnboundLocalError: local variable 'smtptls' referenced before assignment


Reply to: