UnboundLocalError: local variable 'fn' referenced before assignment

Bug #1740772 reported by Finog
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
rpl (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Running the command

    rpl -R foo barr .

I get the following output:

    Skipping: ./bob/ted (not a regular file)
    .................................................................................................................................................................................................................
    Traceback (most recent call last):
      File "/usr/bin/rpl", line 203, in main
        try: f = open(filename, "rb")
    PermissionError: [Errno 13] Permission denied: './tests/perf.data.old'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/usr/bin/rpl", line 314, in <module>
        main()
      File "/usr/bin/rpl", line 205, in main
        sys.stderr.write("\nrpl: Unable to open %s for reading." % fn)
    UnboundLocalError: local variable 'fn' referenced before assignment

ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: rpl 1.5.7-1 [modified: usr/bin/rpl]
ProcVersionSignature: Ubuntu 4.10.0-42.46-generic 4.10.17
Uname: Linux 4.10.0-42-generic x86_64
ApportVersion: 2.20.4-0ubuntu4.9
Architecture: amd64
CurrentDesktop: LXDE
Date: Mon Jan 1 12:23:12 2018
Dependencies:

EcryptfsInUse: Yes
InstallationDate: Installed on 2017-04-17 (258 days ago)
InstallationMedia: Lubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412)
JournalErrors:
 Error: command ['journalctl', '-b', '--priority=warning', '--lines=1000'] failed with exit code 1: Hint: You are currently not seeing messages from other users and the system.
       Users in the 'systemd-journal' group can see all messages. Pass -q to
       turn off this notice.
 No journal files were opened due to insufficient permissions.
PackageArchitecture: all
SourcePackage: rpl
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Finog (finog) wrote :
Revision history for this message
Finog (finog) wrote :

The attached patch should fix the problem.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "rpl.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Eriberto (eriberto) wrote :

Hi Finog,

I am the new maintainer of rpl in Debian. I can't reproduce it. Can you describe what is './bob/ted'? (ls -l ./bob/ted will help, I think).

Regards,

Eriberto

Changed in rpl (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for rpl (Ubuntu) because there has been no activity for 60 days.]

Changed in rpl (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.