EasySpin4.5.5 Expired?

A place to report and discuss potential bugs
AlexTaguchi
User
Posts: 10
Joined: Tue Jan 06, 2015 9:59 pm

EasySpin4.5.5 Expired?

Post by AlexTaguchi »

Hi, for some reason when I tried using EasySpin yesterday (Jan. 7, 2015 in Tokyo, Japan) it told me that the version I was using (4.5.5) was expired. As such I've had to adjust the time on my computer back a few days as a work around which is annoying. This doesn't really make sense to me, because when I type "easyspin" in the matlab prompt, it tells me the expiration date is 30-Jun-2015. I tried re-downloading EasySpin4.5.5, but to no avail. Has anyone else had this strange problem?

Alex
Stefan Stoll
EasySpin Creator
Posts: 1108
Joined: Mon Jul 21, 2014 10:11 pm
Location: University of Washington

Re: EasySpin4.5.5 Expired?

Post by Stefan Stoll »

Try this: Type tempdir on the command prompt and then go to that folder and delete all files that have a future date. Maybe this helps.
AlexTaguchi
User
Posts: 10
Joined: Tue Jan 06, 2015 9:59 pm

Re: EasySpin4.5.5 Expired?

Post by AlexTaguchi »

As far as I can tell, there are no files in tempdir that have a future date (I deleted everything in there since Jan 7 which is when the problem started for me, and that didn't help). Here's an example of what happens:

>> easyspin
==================================================================
Release: 4.5.5 (2014-01-09)
Expiry date: 30-Jun-2015
Folder: C:\Users\Nakano\Desktop\Program Files\Matlab Files\easyspin-4.5.5\easyspin
MATLAB version: 8.4.0.150421 (R2014b)
Platform: Microsoft Windows [Version 6.1.7601]
mex-files: mexw64, ok
System date: 09-Jan-2015 10:16:13
Temp dir: C:\Users\Nakano\AppData\Local\Temp\
==================================================================
>> [SimF,SimS] = pepper(Sys,Exp);
エラー: pepper (line 57)
Your EasySpin version has expired. Please visit easyspin.org and update to the latest
version.

"エラー" means "error" in Japanese. Any chance the error line number (line 57) helps solve the problem? In the meantime I can keep setting my clock back, but eventually it will have repercussions.

Alex
Stefan Stoll
EasySpin Creator
Posts: 1108
Joined: Mon Jul 21, 2014 10:11 pm
Location: University of Washington

Re: EasySpin4.5.5 Expired?

Post by Stefan Stoll »

Hmm. Not sure what is going on. 4.5.5 doesn't expire until end of June 2015.

Try

Code: Select all

format long
datenum(clock)
datestr(clock)
a=dir(tempdir);
a(1)
and post the results.
ecizmar
Newbie
Posts: 4
Joined: Mon Jan 12, 2015 4:40 am

Re: EasySpin4.5.5 Expired?

Post by ecizmar »

I have the same problem when I started to work with EasySpin today - pepper runs with error on line 57, but for example levels works fine.

output of easyspininfo:
==================================================================
Release: 4.5.5 (2014-01-09)
Expiry date: 30-Jun-2015
Folder: C:\Users\Erik\Documents\MATLAB\easyspin\easyspin
MATLAB version: 8.0.0.783 (R2012b)
Platform: Microsoft Windows [Version 6.1.7601]
mex-files: mexw32, ok
System date: 12-Jan-2015 11:49:03
Temp dir: C:\Users\Erik\AppData\Local\Temp\
==================================================================


output of time query:
datenum(clock)
ans =

7.359764946875116e+05

datestr(clock)
ans =

12-Jan-2015 11:52:21

a=dir(tempdir);
a(1)
ans =

name: '.'
date: '12-1-2015 11:52:20'
bytes: 0
isdir: 1
datenum: 7.359764946759259e+05
Stefan Stoll
EasySpin Creator
Posts: 1108
Joined: Mon Jul 21, 2014 10:11 pm
Location: University of Washington

Re: EasySpin4.5.5 Expired?

Post by Stefan Stoll »

All these outputs look correct. It's unclear what is going on. Try replacing the file easyspin-4.5.5/easyspin/eschecker.p with the file here.
ecizmar
Newbie
Posts: 4
Joined: Mon Jan 12, 2015 4:40 am

Re: EasySpin4.5.5 Expired?

Post by ecizmar »

Stefan Stoll wrote:All these outputs look correct. It's unclear what is going on. Try replacing the file easyspin-4.5.5/easyspin/eschecker.p with the file here.
Dear Stefan,
After running new eschecker result is:
Your EasySpin version has expired (2;7.363000e+05,736145).
Please visit easyspin.org and update to the latest version.

What is the date 7.363000e+05 ? datestr(7.363000e+05) is 02-Dec-2015.

The same expiration problem occured on my laptop running Matlab 2013b and 64-bit Windows.

Could it be some problem with rounding the output of datenum(clock) as input for datestr, which leads then to the date, which is in future? Because, when the day turned over midnight to January 13, the eschecker says that the installation is OK suddenly.
AlexTaguchi
User
Posts: 10
Joined: Tue Jan 06, 2015 9:59 pm

Re: EasySpin4.5.5 Expired?

Post by AlexTaguchi »

Here's what I get:

>> format long
datenum(clock)
datestr(clock)
a=dir(tempdir);
a(1)

ans =

7.359787607454514e+05


ans =

14-Jan-2015 18:15:28


ans =

name: '.'
date: '14-1-2015 18:15:11'
bytes: 0
isdir: 1
datenum: 7.359787605439815e+05
AlexTaguchi
User
Posts: 10
Joined: Tue Jan 06, 2015 9:59 pm

Re: EasySpin4.5.5 Expired?

Post by AlexTaguchi »

Oh wait, now it suddenly says my version of EasySpin is not expired, seemingly (will report back if the expiration message comes up again). Admittedly, I'm not sure what did it, but it seemed to have fixed itself right after replacing the eschecker file.
ecizmar
Newbie
Posts: 4
Joined: Mon Jan 12, 2015 4:40 am

Re: EasySpin4.5.5 Expired?

Post by ecizmar »

The problem appears due to the locale setting in your Operating System, when you are using date in form of dd-mm-yyyy. Due to that, the expiration issue appears for all days between 7th and 12th day of each month of 2015 before the real expiration date of EasySpin 4.5.5. Stefan Stoll has already solution and will probably soon upload modified eschecker.p file
Post Reply