instruments.cfg file not recognised in Gatan K2 computer
Added by Anonymous about 10 years ago
Hi,
recently our Digital micrograph in K2 computer has been upgraded to install Latitude software (version of DM can be seen in screen shot) and they removed the Serial EM plugin, which is required by leginon. I installed everything again in this machine, but when tried the launcher.py is complains with error message: instruments.cfg not readable in : "whateverpath"(details are attached in screen shot of K2 computer). how to solve this issue?
when I try configcheck.py, it can able to load sinedon.cfg and leginon.cfg, except instruments.cfg. This files are at the right path.
regards,
venkat
Replies (3)
RE: instruments.cfg file not recognised in Gatan K2 computer - Added by Anonymous about 10 years ago
the extension for the last image is mixed up with .cfg, I am uploading it again.
regards,
venkat
RE: instruments.cfg file not recognised in Gatan K2 computer - Added by Anonymous about 10 years ago
Hi,
This problem is solved. May be you can advice whether is right or wrong.
I tried to debug this configcheck.py, the error is instead of parsing one file during the file search it is parsing all file paths. When we restrict to use the first file path, it worked.
like this,
configfiles = configparser.read(filenames[0])
best,
venkat
RE: instruments.cfg file not recognised in Gatan K2 computer - Added by Anchi Cheng about 10 years ago
My guess is that one of the path it is looking for is not readable for the user calling it. The most likely one is C:\\Users\\Administrator. It is a bit odd since it appears that you are running as Administrator who should have read access to everything.
I can add a way to avoid this in the code for the next version.
Thanks for reporting it and finding the work around.
Anchi