Can't Open Cavern Log File For Input
I have one Win 7 PC which gives me the above warning on compile. I have survex installed. Same data on portable drive woks fine on all other machines. Any pointers would be appreciated. Thanks.
This might be a permissions issue. Are you running Therion while logged in as a user with restricted permissions? Survex may be creating output which Therion does not have permission to read. Just speculating here, as I have never had this problem myself. Footleg On Sun, Sep 20, 2015 at 4:03 PM Nick Bairstow <Nick@pff.uk.com> wrote:
I have one Win 7 PC which gives me the above warning on compile. I have survex installed. Same data on portable drive woks fine on all other machines. Any pointers would be appreciated.
Thanks. _______________________________________________ Therion mailing list Therion@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion
Hi Nick, Are your different machines running the same version of survex? I get that error too, but only when I am running the latest version of survex (1.2.23), if I go back to 1.2.20 then therion works fine. (This is also on windows 7). Thanks, Jenny
Hi Jenny thanks for the reply, I have already tried updating to the latest version as I was still on 1.2.11. I will try going back to 20 and see what happens. Footleg, you may have something with the permissions theory. Running as admin but something does not look right. I will get advice from bloke at work on Monday as I always seem to cock permissions up when changing. Thanks. ________________________________________ From: therion-bounces@speleo.sk [therion-bounces@speleo.sk] On Behalf Of Jenny Black [jenelopy@gmail.com] Sent: Sunday, September 20, 2015 10:22 PM To: List for Therion users Subject: Re: [Therion] Can't Open Cavern Log File For Input Hi Nick, Are your different machines running the same version of survex? I get that error too, but only when I am running the latest version of survex (1.2.23), if I go back to 1.2.20 then therion works fine. (This is also on windows 7). Thanks, Jenny _______________________________________________ Therion mailing list Therion@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion
On Mon, Sep 21, 2015 at 09:22:02AM +1200, Jenny wrote:
Are your different machines running the same version of survex? I get that error too, but only when I am running the latest version of survex (1.2.23), if I go back to 1.2.20 then therion works fine. (This is also on windows 7).
Looking at the code in therion to find cavern, it looks in the registry for the file associations which Survex's installer sets up. This is the code therion uses: if (RegOpenKey(HKEY_CLASSES_ROOT,"survex.source\\shell\\Process\\command",&key) != ERROR_SUCCESS) There are two issues with this: One is that it only looks under HKEY_CLASSES_ROOT - if Survex was installed a non-admin/power-user, then this setting will be under the user classes instead (so it ought to also check HKEY_CURRENT_USER). My guess is that Nick is install Survex this way, so this is the cause of his problem. The other is that it assumes that cavern is the program run here, but as of Survex 1.2.23 .svx are set up to process using aven by default, so this will find aven.exe not cavern.exe. A simple workaround would be to replace "aven" with "cavern" in the leafname of the value returned. This is the issue Jenny's hitting. Cheers, Olly
On Mon, Sep 21, 2015 at 01:15:37AM +0100, Olly Betts wrote:
Looking at the code in therion to find cavern, it looks in the registry for the file associations which Survex's installer sets up.
This is the code therion uses:
if (RegOpenKey(HKEY_CLASSES_ROOT,"survex.source\\shell\\Process\\command",&key) != ERROR_SUCCESS)
There are two issues with this:
One is that it only looks under HKEY_CLASSES_ROOT - if Survex was installed a non-admin/power-user, then this setting will be under the user classes instead (so it ought to also check HKEY_CURRENT_USER).
It seems this isn't actually true on Vista and later - there the Survex installer should prompt you to log in as an admin or power user if you aren't already (and the checks for the user being an admin or power user the installer script does are pointless). I guess the lack of people moaning about not being able to install Survex as a normal user means this isn't a great imposition. We could allow it but it would either mean that Survex was only usable by the user who installed it, or that there were two different installers and you had to download the right one. So this probably isn't Nick's issue.
The other is that it assumes that cavern is the program run here, but as of Survex 1.2.23 .svx are set up to process using aven by default, so this will find aven.exe not cavern.exe. A simple workaround would be to replace "aven" with "cavern" in the leafname of the value returned. This is the issue Jenny's hitting.
I've added a bodge to make this work as is in Survex 1.2.24 (just released), and Jenny's tested it. I'd still recommend that therion use the workaround above, as currently you'll get the additional overhead of aven being run, realising it was called by therion, and then running cavern. Cheers, Olly
participants (4)
-
Footleg -
Jenny Black -
Nick Bairstow -
Olly Betts