Discussion:
[Scilab-users] Can't install ATOMS modules
Andrii Ryzhkov
2013-02-13 23:30:10 UTC
Permalink
Hi,

I have problem installing ATOMS in SciLab 5.4.0 x64. Trying to install any
ATOMS module I got an error:

-->atomsInstall ('femtruss');
atomsExtract: The extraction of the archive
'C:\Users\Andrii\AppData\Roaming\Scilab\scilab-5.4.0\atoms\x64\femtruss\femtruss_1.2.1-1.bin.zip'
has failed.
!--error 10000

at line 51 of function atomsError called by :
at line 82 of function atomsExtract called by :
at line 318 of function atomsInstall called by :
atomsInstall ('femtruss');

I tried to run SciLab as administrator, tried 32bit version and even tried
to re-install SciLab. Did not work.
I previously had the same installations and it worked fine, but now I don't
get it.

Will appreciate any hint. Thanks.

Best regards,
Andrii
Adrien Vogt-Schilb
2013-02-14 12:34:56 UTC
Permalink
i have te same proble with windows 8, any scialb version

Andrii, are you running win 8 ?

All, do you know how to install manually an atoms package?
this means download, unzip, and register it manually

(as it seemes the problems comes from unzipping the package once downloaded)

thanx
Post by Andrii Ryzhkov
Hi,
I have problem installing ATOMS in SciLab 5.4.0 x64. Trying to install
-->atomsInstall ('femtruss');
atomsExtract: The extraction of the archive
'C:\Users\Andrii\AppData\Roaming\Scilab\scilab-5.4.0\atoms\x64\femtruss\femtruss_1.2.1-1.bin.zip'
has failed.
!--error 10000
atomsInstall ('femtruss');
I tried to run SciLab as administrator, tried 32bit version and even
tried to re-install SciLab. Did not work.
I previously had the same installations and it worked fine, but now I
don't get it.
Will appreciate any hint. Thanks.
Best regards,
Andrii
_______________________________________________
users mailing list
http://lists.scilab.org/mailman/listinfo/users
--
Adrien Vogt-Schilb (Cired)
Tel: (+33) 1 43 94 73 83
Andrii Ryzhkov
2013-02-14 19:00:08 UTC
Permalink
Adrien,

I run Windows 8 64bit. But I did the same installation on other Windows 8
PCs and it was fine.
As a temporary workaround , I managed to install ATOMS module manually.
That's how I do it:

1) Try to install ATOMS module in GUI as usual. For example, "MinGw
toolbox". It results in error, but the module is downloaded in
C:\Users\Andrii\AppData\Roaming\Scilab\scilab-5.4.0\atoms\x64\mingw\mingw_0.9.1-1.bin.x64.windows.zip

2) Go to the C:\Program Files\scilab-5.4.0\contrib and make here a folder
named after module name "mingw" in my case. And inside the last one, a
folder with a version number "0.9.1-1".

3) Unzip the content of the module package into C:\Program
Files\scilab-5.4.0\contrib\mingw\0.9.1-1
Keep in mind, that package has an upper level folder and the actual content
is inside of it. Unzip only this content.

4) Execute while running SciLab as administrator
load(SCI+"\.atoms\installed.bin")
Notice, you may have no a C:\Program Files\scilab-5.4.0\.atoms folder. I
enclosed mine, unzip it.

5) Add description of your module
installed_mat = [installed_mat; "mingw", "0.9.1-1", "allusers",
"SCI\contrib\mingw\0.9.1-1", "I"]

6) Delete old file
C:\Program Files\scilab-5.4.0\.atoms\installed.bin

7) Save new one
save(SCI+"\.atoms\installed.bin",installed_mat)

8) Check in GUI if ATOMS module is installed.

Best regards,
Andrii


Sincerely,

Dr. Andrii Ryzhkov

Fulbright Visiting Scholar
University of Colorado at Boulder
Department of Electrical, Computer, and Energy Engineering
ECOT 431
425 UCB
Boulder, CO 80309-0425

E-mail: ***@gmail.com
Skype: andriy.ryzhkov
Mobile: 303-475-1332
Post by Adrien Vogt-Schilb
i have te same proble with windows 8, any scialb version
Andrii, are you running win 8 ?
All, do you know how to install manually an atoms package?
this means download, unzip, and register it manually
(as it seemes the problems comes from unzipping the package once downloaded)
thanx
Hi,
I have problem installing ATOMS in SciLab 5.4.0 x64. Trying to install
-->atomsInstall ('femtruss');
atomsExtract: The extraction of the archive
'C:\Users\Andrii\AppData\Roaming\Scilab\scilab-5.4.0\atoms\x64\femtruss\femtruss_1.2.1-1.bin.zip'
has failed.
!--error 10000
atomsInstall ('femtruss');
I tried to run SciLab as administrator, tried 32bit version and even tried
to re-install SciLab. Did not work.
I previously had the same installations and it worked fine, but now I
don't get it.
Will appreciate any hint. Thanks.
Best regards,
Andrii
_______________________________________________
--
Adrien Vogt-Schilb (Cired)
Tel: (+33) 1 43 94 73 83
_______________________________________________
users mailing list
http://lists.scilab.org/mailman/listinfo/users
Dang, Christophe
2013-02-15 07:46:52 UTC
Permalink
Hello,

just a detail, if I may,

most people is surely aware of it but just in case...
Post by Andrii Ryzhkov
6) Delete old file
It is good practice not to delete directly a config file,
but to rename it instead (e.g. changing the file name extension to .old)
to ba able to reverse in case things went wrong.

Best regards.
--
Christophe Dang Ngoc Chan
Mechanical calculation engineer
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
Simon GARESTE
2013-02-15 09:10:30 UTC
Permalink
Hi,

Could you please indicate the results of:
atomsGetConfig()
atomsRepositoryList()

You say you did the same installation on other Win 8 and it worked fine,
even installing this specific module?

Can you try the following operations :
-Install a fresh 5.4.0 (and remove the
C:\Users\AppData\Roaming\Scilab\scilab-5.4.0 folder before ever
launching it)
-download the binary
<http://atoms.scilab.org/toolboxes/femtruss/1.2.1/files/femtruss_1.2.1-1.bin.zip>
of the module
-launch Scilab
-atomsSystemUpdate()
-atomsSetConfig('offLine','True')
-atomsInstall("path/to/the/module/file.zip)

Best regards,

Simon
Post by Andrii Ryzhkov
Adrien,
I run Windows 8 64bit. But I did the same installation on other
Windows 8 PCs and it was fine.
As a temporary workaround , I managed to install ATOMS module
1) Try to install ATOMS module in GUI as usual. For example, "MinGw
toolbox". It results in error, but the module is downloaded in
C:\Users\Andrii\AppData\Roaming\Scilab\scilab-5.4.0\atoms\x64\mingw\mingw_0.9.1-1.bin.x64.windows.zip
2) Go to the C:\Program Files\scilab-5.4.0\contrib and make here a
folder named after module name "mingw" in my case. And inside the last
one, a folder with a version number "0.9.1-1".
3) Unzip the content of the module package into C:\Program
Files\scilab-5.4.0\contrib\mingw\0.9.1-1
Keep in mind, that package has an upper level folder and the actual
content is inside of it. Unzip only this content.
4) Execute while running SciLab as administrator
load(SCI+"\.atoms\installed.bin")
Notice, you may have no a C:\Program Files\scilab-5.4.0\.atoms folder.
I enclosed mine, unzip it.
5) Add description of your module
installed_mat = [installed_mat; "mingw", "0.9.1-1", "allusers",
"SCI\contrib\mingw\0.9.1-1", "I"]
6) Delete old file
C:\Program Files\scilab-5.4.0\.atoms\installed.bin
7) Save new one
save(SCI+"\.atoms\installed.bin",installed_mat)
8) Check in GUI if ATOMS module is installed.
Best regards,
Andrii
Sincerely,
Dr. Andrii Ryzhkov
Fulbright Visiting Scholar
University of Colorado at Boulder
Department of Electrical, Computer, and Energy Engineering
ECOT 431
425 UCB
Boulder, CO 80309-0425
Skype: andriy.ryzhkov
Mobile: 303-475-1332
On Thu, Feb 14, 2013 at 5:34 AM, Adrien Vogt-Schilb
i have te same proble with windows 8, any scialb version
Andrii, are you running win 8 ?
All, do you know how to install manually an atoms package?
this means download, unzip, and register it manually
(as it seemes the problems comes from unzipping the package once downloaded)
thanx
Post by Andrii Ryzhkov
Hi,
I have problem installing ATOMS in SciLab 5.4.0 x64. Trying to
-->atomsInstall ('femtruss');
atomsExtract: The extraction of the archive
'C:\Users\Andrii\AppData\Roaming\Scilab\scilab-5.4.0\atoms\x64\femtruss\femtruss_1.2.1-1.bin.zip'
has failed.
!--error 10000
atomsInstall ('femtruss');
I tried to run SciLab as administrator, tried 32bit version and
even tried to re-install SciLab. Did not work.
I previously had the same installations and it worked fine, but
now I don't get it.
Will appreciate any hint. Thanks.
Best regards,
Andrii
_______________________________________________
users mailing list
http://lists.scilab.org/mailman/listinfo/users
--
Adrien Vogt-Schilb (Cired)
Tel:(+33) 1 43 94 73 83 <tel:%28%2B33%29%201%2043%2094%2073%2083>
_______________________________________________
users mailing list
http://lists.scilab.org/mailman/listinfo/users
_______________________________________________
users mailing list
http://lists.scilab.org/mailman/listinfo/users
--
Simon Gareste
Support & Development Engineer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.70
http://www.scilab-enterprises.com
Andrii Ryzhkov
2013-02-15 09:32:17 UTC
Permalink
Hi,

I have problems installing any ATOMS module. It is not about any specific
one. And I really had SciLab 5.4.0 installed on couple of Win8 PCs and
never had any problems.
I did try to reinstall SciLab with manual deletion of the folder you've
mentioned. I even reinstalled (restored to factory settings) Windows 8. Did
not help.

-->atomsGetConfig()
ans =

downloadTool: "curl"

-->atomsRepositoryList()
ans =

!http://atoms.scilab.org/5.4 official !

I did steps you asked. The same result - error while extracting module
package.
Actually, what I noticed, files are downloaded correctly. I can easily
unzip them, but SciLab can not.

Best regards,
Andrii
Simon GARESTE
2013-02-15 10:02:28 UTC
Permalink
Hi,

Any ideas on the differences between this Win 8? Maybe you have a
different version (normal/Pro/Ultimate) than the previous ones ?

Can you launch Scilab and execute the following:
extract_cmd = getshortpathname(pathconvert(SCI+"/tools/zip/unzip.exe",%F));
disp(extract_cmd);
extract_cmd = extract_cmd + " -q """ + archive_in + """ -d """ +
pathconvert(dir_out,%F) +"""";
disp(extract_cmd);
[rep,stat,err] = unix_g(extract_cmd);
disp(err);

Best regards,

Simon
Post by Andrii Ryzhkov
Hi,
I have problems installing any ATOMS module. It is not about any
specific one. And I really had SciLab 5.4.0 installed on couple of
Win8 PCs and never had any problems.
I did try to reinstall SciLab with manual deletion of the folder
you've mentioned. I even reinstalled (restored to factory settings)
Windows 8. Did not help.
-->atomsGetConfig()
ans =
downloadTool: "curl"
-->atomsRepositoryList()
ans =
!http://atoms.scilab.org/5.4 official !
I did steps you asked. The same result - error while extracting module
package.
Actually, what I noticed, files are downloaded correctly. I can easily
unzip them, but SciLab can not.
Best regards,
Andrii
_______________________________________________
users mailing list
http://lists.scilab.org/mailman/listinfo/users
--
Simon Gareste
Support & Development Engineer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.70
http://www.scilab-enterprises.com
Simon GARESTE
2013-02-15 10:10:18 UTC
Permalink
Sorry, add before this
archive_in=pathconvert("\path\to\the\zipfile");
disp("archive_in");
dir_out=pathconvert("\path\to\random\folder\to\extract\to");
disp("dir_out");

Simon
Post by Simon GARESTE
Hi,
Any ideas on the differences between this Win 8? Maybe you have a
different version (normal/Pro/Ultimate) than the previous ones ?
extract_cmd =
getshortpathname(pathconvert(SCI+"/tools/zip/unzip.exe",%F));
disp(extract_cmd);
extract_cmd = extract_cmd + " -q """ + archive_in + """ -d """ +
pathconvert(dir_out,%F) +"""";
disp(extract_cmd);
[rep,stat,err] = unix_g(extract_cmd);
disp(err);
Best regards,
Simon
Post by Andrii Ryzhkov
Hi,
I have problems installing any ATOMS module. It is not about any
specific one. And I really had SciLab 5.4.0 installed on couple of
Win8 PCs and never had any problems.
I did try to reinstall SciLab with manual deletion of the folder
you've mentioned. I even reinstalled (restored to factory settings)
Windows 8. Did not help.
-->atomsGetConfig()
ans =
downloadTool: "curl"
-->atomsRepositoryList()
ans =
!http://atoms.scilab.org/5.4 official !
I did steps you asked. The same result - error while extracting
module package.
Actually, what I noticed, files are downloaded correctly. I
can easily unzip them, but SciLab can not.
Best regards,
Andrii
_______________________________________________
users mailing list
http://lists.scilab.org/mailman/listinfo/users
--
Simon Gareste
Support & Development Engineer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.70
http://www.scilab-enterprises.com
_______________________________________________
users mailing list
http://lists.scilab.org/mailman/listinfo/users
--
Simon Gareste
Support & Development Engineer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.70
http://www.scilab-enterprises.com
Andrii Ryzhkov
2013-02-16 03:25:32 UTC
Permalink
Hi,

Here's result:

-->archive_in=pathconvert("d:\simplex_2.0.1-1.bin.x64.windows.zip");

-->disp(archive_in);

d:\simplex_2.0.1-1.bin.x64.windows.zip\

-->dir_out=pathconvert("d:\");

-->disp(dir_out);

d:\

-->extract_cmd =
getshortpathname(pathconvert(SCI+"/tools/zip/unzip.exe",%F));

-->disp(extract_cmd);

C:\Program Files\scilab-5.4.0\tools\zip\unzip.exe

-->extract_cmd = extract_cmd + " -q """ + archive_in + """ -d """ +
pathconvert(dir_out,%F) +"""";

-->disp(extract_cmd);

C:\Program Files\scilab-5.4.0\tools\zip\unzip.exe -q
"d:\simplex_2.0.1-1.bin.x64.windows
.zip\" -d "d:"


-->[rep,stat,err] = unix_g(extract_cmd);

-->disp(err);

!'C:\Program' is not recognized as an internal or external command, !
! !
!operable program or batch file. !


Best regards,
Andrii
Andrii Ryzhkov
2013-02-16 04:10:57 UTC
Permalink
Hi,

It looks like the problem vanishes if install SciLab into root of the drive
(C:\) and not a "Program Files". But still it is a question for my why
usual install pattern works for majority of PCs and does not for mine (and
some others as I see)?

Best regards,
Andrii
Simon GARESTE
2013-02-19 08:56:02 UTC
Permalink
Hi,

This is indeed very strange. The problem comes from your extract_cmd, as
it should not contain "C:\Program Files\scilab-5.4.0...." but something
like "C:\Progra~1\scilab~1\..."
Can you show us the result of
disp(SCI)
disp(WSCI)
?
When you installed Scilab, did you provide a specific place to install
it to, or you just left the default options? You don't have any
specificity on this machine?
Best regards,

Simon
Post by Andrii Ryzhkov
Hi,
It looks like the problem vanishes if install SciLab into root of the
drive (C:\) and not a "Program Files". But still it is a question for
my why usual install pattern works for majority of PCs and does not
for mine (and some others as I see)?
Best regards,
Andrii
_______________________________________________
users mailing list
http://lists.scilab.org/mailman/listinfo/users
--
Simon Gareste
Support & Development Engineer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.70
http://www.scilab-enterprises.com
Andrii Ryzhkov
2013-02-20 01:45:52 UTC
Permalink
Hi,

On completely default installation:

-->disp(SCI)

C:/Program Files/scilab-5.4.0

-->disp(WSCI)

C:\Program Files\scilab-5.4.0


Andrii
Simon GARESTE
2013-02-20 10:48:15 UTC
Permalink
Hi,

Thank you. We found the bug
<http://bugzilla.scilab.org/show_bug.cgi?id=12320>, and fixed it
<https://codereview.scilab.org/#/c/10545/>. In short, you can see the
difference between your machines at the value of the
HKLM\SYSTEM\CurrentControlSet\Control\FileSystem\NtfsDisable8dot3NameCreation
key. This key creates (or not, depending on its value) a shortpath name
for the folders when they are created. In your case, no shortpath name
was created, hence the difference of path for SCI, and the ATOMS command
to extract wasn't set between quotes (which makes it translatable by a
windows command), so it couldn't figure out what to do when the SCI
contained spaces.

What you can do to fix your Scilab is quit every instance of it, then
modify your
SCI\share\scilab\modules\atoms\atoms_internals\atomsExtract.sci, at line
78 replace
extract_cmd =
getshortpathname(pathconvert(SCI+"/tools/zip/unzip.exe",%F));
by
extract_cmd = """" +
getshortpathname(pathconvert(SCI+"/tools/zip/unzip.exe",%F)) + """";
(or download this file
<https://codereview.scilab.org/cat/10545%2C2%2Cscilab/modules/atoms/macros/atoms_internals/atomsExtract.sci%5E0>)
and copy it to the path

Then in SCI\share\scilab\modules\atoms\macros, execute buildmacros.bat
and restart your scilab

Best regards,

Simon
Post by Andrii Ryzhkov
Hi,
-->disp(SCI)
C:/Program Files/scilab-5.4.0
-->disp(WSCI)
C:\Program Files\scilab-5.4.0
Andrii
_______________________________________________
users mailing list
http://lists.scilab.org/mailman/listinfo/users
--
Simon Gareste
Support & Development Engineer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.70
http://www.scilab-enterprises.com
Adrien Vogt-Schilb
2013-02-20 11:56:21 UTC
Permalink
Dear Simon

In my case,
HKLM\SYSTEM\CurrentControlSet\Control\FileSystem\NtfsDisable8dot3NameCreation
= 2

Also, SCI and WSCI return the "long pahtes" with spaces: -->SCI
SCI =

C:/Program Files/scilab-5.4.0

-->WSCI
WSCI =

C:\Program Files\scilab-5.4.0


I tried to implement your solution, but found that there was no folder
"share" in my SCI.
Instead, I modified atomsExtract.sci found at : C:\Program
Files\scilab-5.4.0\modules\atoms\macros\atoms_internals

as it is in Program Files, I had to run my text editor as administrator
to be able to save the file.

then I had a new error when trying to install a random atoms package:

atomsExtract: The extraction of the archive
'C:\Users\Admin\AppData\Roaming\Scilab\scilab-5.4.0\atoms\x64\csv_readwrite\csv_readwrite_0.6.1-2.bin.x64.windows.zip'
has failed.


bon ap'
Post by Simon GARESTE
Hi,
Thank you. We found the bug
<http://bugzilla.scilab.org/show_bug.cgi?id=12320>, and fixed it
<https://codereview.scilab.org/#/c/10545/>. In short, you can see the
difference between your machines at the value of the
HKLM\SYSTEM\CurrentControlSet\Control\FileSystem\NtfsDisable8dot3NameCreation
key. This key creates (or not, depending on its value) a shortpath
name for the folders when they are created. In your case, no shortpath
name was created, hence the difference of path for SCI, and the ATOMS
command to extract wasn't set between quotes (which makes it
translatable by a windows command), so it couldn't figure out what to
do when the SCI contained spaces.
What you can do to fix your Scilab is quit every instance of it, then
modify your
SCI\share\scilab\modules\atoms\atoms_internals\atomsExtract.sci, at
line 78 replace
extract_cmd =
getshortpathname(pathconvert(SCI+"/tools/zip/unzip.exe",%F));
by
extract_cmd = """" +
getshortpathname(pathconvert(SCI+"/tools/zip/unzip.exe",%F)) + """";
(or download this file
<https://codereview.scilab.org/cat/10545%2C2%2Cscilab/modules/atoms/macros/atoms_internals/atomsExtract.sci%5E0>)
and copy it to the path
Then in SCI\share\scilab\modules\atoms\macros, execute buildmacros.bat
and restart your scilab
Best regards,
Simon
Post by Andrii Ryzhkov
Hi,
-->disp(SCI)
C:/Program Files/scilab-5.4.0
-->disp(WSCI)
C:\Program Files\scilab-5.4.0
Andrii
_______________________________________________
users mailing list
http://lists.scilab.org/mailman/listinfo/users
--
Simon Gareste
Support & Development Engineer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.70
http://www.scilab-enterprises.com
_______________________________________________
users mailing list
http://lists.scilab.org/mailman/listinfo/users
--
Adrien Vogt-Schilb (Cired)
Tel: (+33) 1 43 94 73 83
Simon GARESTE
2013-02-20 12:15:48 UTC
Permalink
Woops, sorry, on windows you don't have a "share" folder. It's indeed in
SCI/modules/atoms/atoms_internals

You applied the fix, but did you then run buildmacros.bat? This is
necessary to have the fix taken into account (it removes the .bin files,
then compile again the .sci/.sce to create new .bin files), otherwise it
will use the atomsExtract.bin that was packaged with the version.


Simon
Post by Adrien Vogt-Schilb
Dear Simon
In my case,
HKLM\SYSTEM\CurrentControlSet\Control\FileSystem\NtfsDisable8dot3NameCreation
= 2
Also, SCI and WSCI return the "long pahtes" with spaces: -->SCI
SCI =
C:/Program Files/scilab-5.4.0
-->WSCI
WSCI =
C:\Program Files\scilab-5.4.0
I tried to implement your solution, but found that there was no folder
"share" in my SCI.
Instead, I modified atomsExtract.sci found at : C:\Program
Files\scilab-5.4.0\modules\atoms\macros\atoms_internals
as it is in Program Files, I had to run my text editor as
administrator to be able to save the file.
atomsExtract: The extraction of the archive
'C:\Users\Admin\AppData\Roaming\Scilab\scilab-5.4.0\atoms\x64\csv_readwrite\csv_readwrite_0.6.1-2.bin.x64.windows.zip'
has failed.
bon ap'
Post by Simon GARESTE
Hi,
Thank you. We found the bug
<http://bugzilla.scilab.org/show_bug.cgi?id=12320>, and fixed it
<https://codereview.scilab.org/#/c/10545/>. In short, you can see the
difference between your machines at the value of the
HKLM\SYSTEM\CurrentControlSet\Control\FileSystem\NtfsDisable8dot3NameCreation
key. This key creates (or not, depending on its value) a shortpath
name for the folders when they are created. In your case, no
shortpath name was created, hence the difference of path for SCI, and
the ATOMS command to extract wasn't set between quotes (which makes
it translatable by a windows command), so it couldn't figure out what
to do when the SCI contained spaces.
What you can do to fix your Scilab is quit every instance of it, then
modify your
SCI\share\scilab\modules\atoms\atoms_internals\atomsExtract.sci, at
line 78 replace
extract_cmd =
getshortpathname(pathconvert(SCI+"/tools/zip/unzip.exe",%F));
by
extract_cmd = """" +
getshortpathname(pathconvert(SCI+"/tools/zip/unzip.exe",%F)) + """";
(or download this file
<https://codereview.scilab.org/cat/10545%2C2%2Cscilab/modules/atoms/macros/atoms_internals/atomsExtract.sci%5E0>)
and copy it to the path
Then in SCI\share\scilab\modules\atoms\macros, execute
buildmacros.bat and restart your scilab
Best regards,
Simon
Post by Andrii Ryzhkov
Hi,
-->disp(SCI)
C:/Program Files/scilab-5.4.0
-->disp(WSCI)
C:\Program Files\scilab-5.4.0
Andrii
_______________________________________________
users mailing list
http://lists.scilab.org/mailman/listinfo/users
--
Simon Gareste
Support & Development Engineer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.70
http://www.scilab-enterprises.com
_______________________________________________
users mailing list
http://lists.scilab.org/mailman/listinfo/users
--
Adrien Vogt-Schilb (Cired)
Tel: (+33) 1 43 94 73 83
_______________________________________________
users mailing list
http://lists.scilab.org/mailman/listinfo/users
--
Simon Gareste
Support & Development Engineer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.70
http://www.scilab-enterprises.com
Adrien Vogt-Schilb
2013-02-20 13:51:43 UTC
Permalink
Simon,

actually it's in SCI\modules\atoms\*macros*\atoms_internals

i forgot to run the batch file.
I had to run it as administrator in order to make thing work. This mean
open a prompt has administrator, and execue the bat from there (right
clic run as admin did not work)
i had to make sure scilab was closed before.


now it works. i could succesfully instal an atoms package simply by typing:
atomsInstall("csv_readwrite")

(god, windows is so much more trouble than linux. grrrr)



Andrii, did you tried the "run as administator stuff"?
Post by Simon GARESTE
Woops, sorry, on windows you don't have a "share" folder. It's indeed
in SCI/modules/atoms/atoms_internals
You applied the fix, but did you then run buildmacros.bat? This is
necessary to have the fix taken into account (it removes the .bin
files, then compile again the .sci/.sce to create new .bin files),
otherwise it will use the atomsExtract.bin that was packaged with the
version.
Simon
Post by Adrien Vogt-Schilb
Dear Simon
In my case,
HKLM\SYSTEM\CurrentControlSet\Control\FileSystem\NtfsDisable8dot3NameCreation
= 2
Also, SCI and WSCI return the "long pahtes" with spaces: -->SCI
SCI =
C:/Program Files/scilab-5.4.0
-->WSCI
WSCI =
C:\Program Files\scilab-5.4.0
I tried to implement your solution, but found that there was no
folder "share" in my SCI.
Instead, I modified atomsExtract.sci found at : C:\Program
Files\scilab-5.4.0\modules\atoms\macros\atoms_internals
as it is in Program Files, I had to run my text editor as
administrator to be able to save the file.
atomsExtract: The extraction of the archive
'C:\Users\Admin\AppData\Roaming\Scilab\scilab-5.4.0\atoms\x64\csv_readwrite\csv_readwrite_0.6.1-2.bin.x64.windows.zip'
has failed.
bon ap'
Post by Simon GARESTE
Hi,
Thank you. We found the bug
<http://bugzilla.scilab.org/show_bug.cgi?id=12320>, and fixed it
<https://codereview.scilab.org/#/c/10545/>. In short, you can see
the difference between your machines at the value of the
HKLM\SYSTEM\CurrentControlSet\Control\FileSystem\NtfsDisable8dot3NameCreation
key. This key creates (or not, depending on its value) a shortpath
name for the folders when they are created. In your case, no
shortpath name was created, hence the difference of path for SCI,
and the ATOMS command to extract wasn't set between quotes (which
makes it translatable by a windows command), so it couldn't figure
out what to do when the SCI contained spaces.
What you can do to fix your Scilab is quit every instance of it,
then modify your
SCI\share\scilab\modules\atoms\atoms_internals\atomsExtract.sci, at
line 78 replace
extract_cmd =
getshortpathname(pathconvert(SCI+"/tools/zip/unzip.exe",%F));
by
extract_cmd = """" +
getshortpathname(pathconvert(SCI+"/tools/zip/unzip.exe",%F)) + """";
(or download this file
<https://codereview.scilab.org/cat/10545%2C2%2Cscilab/modules/atoms/macros/atoms_internals/atomsExtract.sci%5E0>)
and copy it to the path
Then in SCI\share\scilab\modules\atoms\macros, execute
buildmacros.bat and restart your scilab
Best regards,
Simon
Post by Andrii Ryzhkov
Hi,
-->disp(SCI)
C:/Program Files/scilab-5.4.0
-->disp(WSCI)
C:\Program Files\scilab-5.4.0
Andrii
_______________________________________________
users mailing list
http://lists.scilab.org/mailman/listinfo/users
--
Simon Gareste
Support & Development Engineer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.70
http://www.scilab-enterprises.com
_______________________________________________
users mailing list
http://lists.scilab.org/mailman/listinfo/users
--
Adrien Vogt-Schilb (Cired)
Tel: (+33) 1 43 94 73 83
_______________________________________________
users mailing list
http://lists.scilab.org/mailman/listinfo/users
--
Simon Gareste
Support & Development Engineer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.70
http://www.scilab-enterprises.com
_______________________________________________
users mailing list
http://lists.scilab.org/mailman/listinfo/users
--
Adrien Vogt-Schilb (Cired)
Tel: (+33) 1 43 94 73 83
Berns Buenaobra
2013-02-20 12:28:51 UTC
Permalink
Hi Andrii.

Have you figured out a way to check the integrity of you zipped file? Say a
checksum? Or some feature like here:
http://kb.winzip.com/help/winzip/help_test.htm. Also maybe (just maybe)
your harddisk is being prevented to be able to write temporary files by
Scilab? By something...like some anti-malware utility, AV etc.


Regards,
Berns B.
Post by Andrii Ryzhkov
Hi,
I have problems installing any ATOMS module. It is not about any specific
one. And I really had SciLab 5.4.0 installed on couple of Win8 PCs and
never had any problems.
I did try to reinstall SciLab with manual deletion of the folder you've
mentioned. I even reinstalled (restored to factory settings) Windows 8. Did
not help.
-->atomsGetConfig()
ans =
downloadTool: "curl"
-->atomsRepositoryList()
ans =
!http://atoms.scilab.org/5.4 official !
I did steps you asked. The same result - error while extracting module
package.
Actually, what I noticed, files are downloaded correctly. I can easily
unzip them, but SciLab can not.
Best regards,
Andrii
_______________________________________________
users mailing list
http://lists.scilab.org/mailman/listinfo/users
Andrii Ryzhkov
2013-02-20 17:45:31 UTC
Permalink
Hi,

With a little correction of the file path to SCI\
modules\atoms\macros\atoms_internals\atomsExtract.sci on Windows, this
solution works fine. Thanks.

Best regards,
Andrii

Loading...