-
AuthorPosts
-
03/30/2017 at 3:29 AM #2346ggilmoreParticipant
Hi Adreas,
I am getting a strange error when trying to load the LEAD-dbs GUI.
Error using copyfile No matching files were found. Error in ea_getspace (line 6) copyfile([ea_getearoot,'ea_prefs_default.mat'],[home,'.ea_prefs.mat']); Error in ea_compat_data (line 2) if strcmp(ea_getspace,'MNI_ICBM_2009b_NLIN_ASYM') Error in lead>lead_OpeningFcn (line 69) ea_compat_data; Error in gui_mainfcn (line 220) feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:}); Error in lead (line 42) gui_mainfcn(gui_State, varargin{:});
I am running Matlab 2016 on windows 10.
Let me know what you think,
Greydon
03/30/2017 at 3:35 AM #2347andreashornKeymasterHi Greydon,
sorry for that, please run [Install] [Apply Hotfix] – this has already been fixed.
Best, Andy
03/30/2017 at 3:54 AM #2348ggilmoreParticipantHi Andy,
I am getting an error when attempting to install the hotfix? It is giving a prompt that reads “retry later” (line 23 of ea_hotfix).
Greydon
04/07/2017 at 7:07 AM #2382ThusharaParticipantDear Andy and Greydon,
I ran into this error as well after upgrading my PC and trying to reinstall lead dbs. It appears that Matlab’s copyfile() has issues when it is asked to copy files to a network mapped drive. My default home directory is set to a network drive by our IT department. I hacked the ea_gethome.m file to set the home directory to something else. Please see below.
function home=ea_gethome
% if ispc
% home = [getenv(‘HOMEDRIVE’) getenv(‘HOMEPATH’)];
% else
% home = getenv(‘HOME’);
% endhome=’C:\MATLAB\’;
if isdeployed
mkdir([ctfroot,filesep,’home’,filesep]);
home=[ctfroot,filesep,’home’,filesep];
endI hope this helps. In future, perhaps this issue can be resolved – otherwise I’ll have to do this every time I upgrade to a newer version of lead dbs.
Best Regards,
Thushara.
04/07/2017 at 2:22 PM #2384andreashornKeymasterHi Thushara,
thanks for the hack. I think we already fixed this on Github.
Lead-DBS copies the ea_prefs_default.m file to users Home directory so one can edit personal preferences. If the home directory doesn’t exist or it doesn’t find it as in your case, I guess it is hard for us to fix. However, for now, Lead-DBS would then always use default preferences (instead of calling the user file).Best, Andy
04/12/2017 at 6:53 AM #2445ThusharaParticipantHi Andy,
With regards to default preferences:
Inside ea_prefs.m lines 16:18 read
if ~exist([home,'.ea_prefs.m'],'file') copyfile([ea_getearoot,'common',filesep,'ea_prefs_default.m'],[home,'.ea_prefs.m']); end
There is no “ea_prefs_default.m” file in the root directory “common” folder – I checked the latest version on git. There is however a “ea_prefs_default.mat” file in that folder.
I think the .m file is in the root – not the common folder. Please correct me if I’m wrong. I’ve changed the code as below on my PC to get lead to run.
if ~exist([home,'.ea_prefs.m'],'file') copyfile([ea_getearoot,filesep,'ea_prefs_default.m'],[home,'.ea_prefs.m']); end
04/12/2017 at 1:43 PM #2447andreashornKeymasterHi Tushara,
again thanks for the hack. The file ea_prefs_default.m should be in the common folder, as well.
I just pushed to Github, I think this will become a hotfix soon.Best, Andy
-
AuthorPosts
- The forum ‘Support Forum (ARCHIVED – Please use Slack Channel instead)’ is closed to new topics and replies.