[Scilab-users] Can't install ATOMS modules: FIXED

Adrien Vogt-Schilb vogt at centre-cired.fr
Wed Feb 20 14:51:43 CET 2013


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"?




On 20/02/2013 13:15, Simon GARESTE wrote:
> 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
> On 02/20/2013 12:56 PM, Adrien Vogt-Schilb wrote:
>> 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'
>>
>> On 20/02/2013 11:48, Simon GARESTE wrote:
>>> 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
>>>
>>> On 02/20/2013 02:45 AM, Andrii Ryzhkov wrote:
>>>> Hi,
>>>>
>>>> On completely default installation:
>>>>
>>>> -->disp(SCI)
>>>>  C:/Program Files/scilab-5.4.0
>>>> -->disp(WSCI)
>>>>  C:\Program Files\scilab-5.4.0
>>>>
>>>> Andrii
>>>>
>>>>
>>>> _______________________________________________
>>>> users mailing list
>>>> users at lists.scilab.org
>>>> 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
>>> users at lists.scilab.org
>>> http://lists.scilab.org/mailman/listinfo/users
>>
>>
>> -- 
>> Adrien Vogt-Schilb (Cired)
>> Tel: (+33) 1 43 94 73 83
>>
>>
>> _______________________________________________
>> users mailing list
>> users at lists.scilab.org
>> 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
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users


-- 
Adrien Vogt-Schilb (Cired)
Tel: (+33) 1 43 94 73 83

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20130220/0838a93d/attachment.htm>


More information about the users mailing list