Can't open default file at start

Issue #95 new
Anonymous created an issue

On Ubuntu 13.04 with revelation 0.4.14. Unable to open file at startup:

Unable to open file

The file 'xxx' could not be opened. Make sure that the file exists, and that you have permissions to open it.

File works when opened from menu.

Traceback (most recent call last): File "/usr/local/bin/revelation", line 1833, in <module> app.run() File "/usr/local/bin/revelation", line 1591, in run self.file_open(io.file_normpath(file)) File "/usr/local/bin/revelation", line 1481, in file_open entrystore = self.file_load(file, password) File "/usr/local/bin/revelation", line 1019, in file_load return result UnboundLocalError: local variable 'result' referenced before assignment

Comments (1)

  1. Tomas Hnyk

    For me, the problem in Ubuntu 18.04 was that the filename contained a unicode character. I solved it by placing

    the pathname on line 974 (into function __file_load, right in the beggining) like this

    file = "/home/drew/Desktop/Osobní/Ruzne/klice"
    

    and this as a second line of the file:

    #-*- coding: utf-8 -*-
    

    For some reason, the location of the file was stored as "/home/drew/Desktop/Osobn%C3%AD/Ruzne/klice".

    Alternatively, just move the file so that it has only asci characters in its path.

  2. Log in to comment