problem with Demeter on non-unicode machine
Dear Bruce, I have a problem with running Demeter on non-unicode Win7/64 bit computer. The log file is attached. I am using the latest update and it is better than previous versions since at least something is happening, when I've tried previous Demeter versions, they just crashed immediately. I am not an expert in programming, but I suspect that similar problem existed in one of the old version of IFEFFIT as was discussed with you in July 2008 in the mail list: =============== A followup to the unicode issue: I use a tool called PerlApp to build stand-alone windows executables of my codes. While researching how it handles temporary directory creation, I came across the following: http://bugs.activestate.com/show_bug.cgi?id=43697 It would seem that the issue Kleper and Shiryaev are seeing is the result of that bug, which has been resolved in recent versions of PerlApp. I was certainly using a version of PerlApp that showed this problem when the previous installer was made. I am now using version 7.2, so things should work fine for non-ascii language speakers. I will communicate with Kleper and Shiryaev off the list to ask them to test the new installer. Regards, B ============== I would appreciate some advice how to handle the problem. Regards, Andrei ---------------------------------------------------------------------- -- Andrei Shiryaev
Hi Andrei,
This might be relevant:
http://search.cpan.org/~adamk/Archive-Zip-1.31_01/lib/Archive/Zip.pm#Archive...
While I understand "I am not an expert in programming", one of the key
features of Demeter is that you can edit the source. Armed with the log
message you sent, and the documentation above, here's a suggestion: Edit
the file
C:/strawberry/perl/site/lib/Demeter/UI/Artemis.pm
so that, near the top it reads:
use Archive::Zip qw( :ERROR_CODES :CONSTANTS );
$Archive::Zip::UNICODE = 1;
That should tell the Zip module (which seems to be what is unable to handle
the unicode string for your path) to use unicode for the path. The
document linked above suggests it might not work, which we can choose to
read it optimistically as "it might work".
Of course, let Bruce know if that works.
Cheers,
--Matt
On Fri, Sep 6, 2013 at 11:17 AM, Andrei Shiryaev
Dear Bruce,
I have a problem with running Demeter on non-unicode Win7/64 bit computer. The log file is attached. I am using the latest update and it is better than previous versions since at least something is happening, when I've tried previous Demeter versions, they just crashed immediately.
I am not an expert in programming, but I suspect that similar problem existed in one of the old version of IFEFFIT as was discussed with you in July 2008 in the mail list:
===============
A followup to the unicode issue:
I use a tool called PerlApp to build stand-alone windows executables of my codes. While researching how it handles temporary directory creation, I came across the following:
http://bugs.activestate.com/show_bug.cgi?id=43697
It would seem that the issue Kleper and Shiryaev are seeing is the result of that bug, which has been resolved in recent versions of PerlApp. I was certainly using a version of PerlApp that showed this problem when the previous installer was made.
I am now using version 7.2, so things should work fine for non-ascii language speakers. I will communicate with Kleper and Shiryaev off the list to ask them to test the new installer.
Regards, B
==============
I would appreciate some advice how to handle the problem. Regards, Andrei
------------------------------
-- Andrei Shiryaev
_______________________________________________ Ifeffit mailing list Ifeffit@millenia.cars.aps.anl.gov http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit
-- --Matt Newville <newville at cars.uchicago.edu> 630-252-0431
Dear Matt,
Thank you very much, the recipe apparently works!
Sincerely,
Andrei
Пятница, 6 сентября 2013, 13:36 -05:00 от Matt Newville
Hi Andrei,
This might be relevant: http://search.cpan.org/~adamk/Archive-Zip-1.31_01/lib/Archive/Zip.pm#Archive...
While I understand "I am not an expert in programming", one of the key features of Demeter is that you can edit the source. Armed with the log message you sent, and the documentation above, here's a suggestion: Edit the file C:/strawberry/perl/site/lib/Demeter/UI/Artemis.pm so that, near the top it reads:
use Archive::Zip qw( :ERROR_CODES :CONSTANTS ); $Archive::Zip::UNICODE = 1;
That should tell the Zip module (which seems to be what is unable to handle the unicode string for your path) to use unicode for the path. The document linked above suggests it might not work, which we can choose to read it optimistically as "it might work".
Of course, let Bruce know if that works. Cheers,
--Matt
On Fri, Sep 6, 2013 at 11:17 AM, Andrei Shiryaev < a_shiryaev@mail.ru > wrote:
Dear Bruce,
I have a problem with running Demeter on non-unicode Win7/64 bit computer. The log file is attached. I am using the latest update and it is better than previous versions since at least something is happening, when I've tried previous Demeter versions, they just crashed immediately.
I am not an expert in programming, but I suspect that similar problem existed in one of the old version of IFEFFIT as was discussed with you in July 2008 in the mail list:
=============== A followup to the unicode issue:
I use a tool called PerlApp to build stand-alone windows executables of my codes. While researching how it handles temporary directory creation, I came across the following: http://bugs.activestate.com/show_bug.cgi?id=43697 It would seem that the issue Kleper and Shiryaev are seeing is the result of that bug, which has been resolved in recent versions of PerlApp. I was certainly using a version of PerlApp that showed this problem when the previous installer was made. I am now using version 7.2, so things should work fine for non-ascii language speakers. I will communicate with Kleper and Shiryaev off the list to ask them to test the new installer. Regards, B ==============
I would appreciate some advice how to handle the problem. Regards, Andrei
----------------------------------------------------------------------
-- Andrei Shiryaev
_______________________________________________ Ifeffit mailing list Ifeffit@millenia.cars.aps.anl.gov http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit
-- --Matt Newville <newville at cars.uchicago.edu > 630-252-0431
-- Andrei Shiryaev
Hi Andrei, All
On Sat, Sep 7, 2013 at 1:58 PM, Andrei Shiryaev
Dear Matt,
Thank you very much, the recipe apparently works!
Sincerely, Andrei
Great! Now we can help Bruce (and many others) out, with pretty simple steps 0. Get an account on Github 1. Go to https://github.com/bruceravel/demeter and hit the "Fork" button in the upper right hand corner. This may take a bit of time. 2. In your "fork"ed version, find the file lib/Demeter/UI/Artemis.pm. For the way I did this, the file is at https://github.com/newville/demeter/blob/master/lib/Demeter/UI/Artemis.pm 3. Hit the "Edit button", and the change file, in this case adding $Archive::Zip::UNICODE = 1; immediately after the line reading use Archive::Zip qw( :ERROR_CODES :CONSTANTS ); 4. Add a comment on the change. In my case, I wrote add Unicode support to Zip files (so that Projects may include paths with unicode) 5. Hit the "commit changes" button. This saves the change for my fork of Demeter. 6. From the main page for this forked version of Demeter click on "Pull Requests", then "New Pull Request" and then "Click to create pull request", and one more click on "Send Pull Request" to confirm. Now Bruce can incorporate this change, possibly fixing project files for many people who (sensibly) use their name as part of the file path, with a couple of button clicks. I understand that you and many people reading this list don't view themselves as programmers. I'm not very comfortable with Perl myself. But that was all found from googling the error message in the log file, and then editing the file entirely through a web interface. Bruce has made it very easy for you and I to help him out... Cheers, --Matt
participants (2)
-
Andrei Shiryaev
-
Matt Newville