vocola_main error

Hello vocola developers,

I get a "permission denied error" around line 317 of _vocola_main.py. The code is a bit strange to me. Could you please try to make this bit more clear?

Second question: is it possible to just remove empty vocola command files, (issuing a message once), instead of giving error messages all the time?

Thanks, and see code below,

Quintijn

code of _vocola_main:

        for commandFolder in self.commandFolders:
            logName = commandFolder + r'\vcl2py_log.txt'
            if os.path.isfile(logName):
                try:
                    log = open(logName, 'r')
                    print  >> sys.stderr, log.read()
                    log.close()
                    os.remove(logName)
                except IOError:  # no log file means no Vocola errors
                    pass

message in Messages from Python Macros window:

runVocolaTranslator
    os.remove(logName)
OSError: [Errno 13] Permission denied: 'D:\\Mijn documenten\\vocolaqh\\nld\\vcl2py_log.txt'

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Vocola requires the ability

Vocola requires the ability to create a log file in the command folder in order to run; the error message you are getting presumably means it lacks that access.

(The log file is used to pass error messages from the Perl executable to the NatLink Python framework.)

I think you could make an argument that the log file should be put somewhere else.

I admit I find the file X

I admit I find the file X contains no commands warnings annoying as well. I don't know why Rick created that warning.

That said, automatically deleting user files would be a major no-no.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.




view recent posts