Re: [Scilab-users] Set up a ATOMS repo.

2017-02-28 Thread PirPyn
Samuel GOUGEON wrote
> Please try the following:
> edit("SCI/modules/atoms/macros/atoms_internals/atomsDESCRIPTIONget.sci",194)
> // It is the line #178 in local numbering
> //replace the line #178
> extract_cmd = """" + gzip_path + """" + " -d """ + file_out + """";
> //with
> extract_cmd = """" + gzip_path + """" + " -f -d """ + file_out + """";

Done, but :


Samuel GOUGEON wrote
> //Save the file. Then do:
> cd SCI/modules/atoms/macros/atoms_internals/
> predef clear // unprotect libraries to be able to
> recompile atomsinternalslib
> genlib atomsinternalslib // recompile the sub-library to take the change
> into account

I don't have root access and the lib are read only for me; Still, i pasted
the sci to a local file, then i 'exec' it, so it's overloaded.


Samuel GOUGEON wrote
> //Then, try to rerun the ATOMS Gui..

Well, even in the command line I get :


Scilab 5.5.2 wrote
> -->exec('/home/atomsDESCRIPTIONget.sci', -1)
>  
> -->atomsRepositoryList
>  ans  =
>  
> !http://(enterprise-copy-of-atoms-official-repository)/  official  !
>  
> -->exec('/home/atomsDESCRIPTIONget.sci', -1)
>  
> -->atomsRepositoryAdd(['file:///home/atoms-repo'])
> OVERLOADED atomsDESCRIPTIONget // I put a mprintf just to be sure the
> right file is taken into account
>  
>  !--error 1 
> atomsDESCRIPTIONget : L'extraction du fichier DESCRIPTION
> ('/tmp/SCI_TMP_24966_aBy0jb/.atoms/1_TOOLBOXES.gz') a échoué.
> at line 182 of function atomsDESCRIPTIONget called by :  
> at line 142 of function atomsRepositoryAdd called by :  
> atomsRepositoryAdd(['file:///home/atoms-repo'])
> 
> -->atomsRepositoryAdd(['file:///home/atoms-repo.zip'])
> OVERLOADED atomsDESCRIPTIONget
>  
> 
>  !--error 1 
> atomsDESCRIPTIONget : L'extraction du fichier DESCRIPTION
> ('/tmp//SCI_TMP_24966_aBy0jb/.atoms/1_TOOLBOXES.gz') a échoué.
> at line 182 of function atomsDESCRIPTIONget called by :  
> at line 142 of function atomsRepositoryAdd called by :  
> atomsRepositoryAdd(['file:///home/cea/pp607946/atoms-repo.zip'])
> 
> -->atomsRepositoryList
>  ans  =
>  
> !http://(enterprise-atoms)/  official!
> !               !
> !file:///home/atoms-repo user  !
> !   !
> !file:///home/atoms-repo.zip user  !

Strangely, the url were added to the RepositoryList



--
View this message in context: 
http://mailinglists.scilab.org/Scilab-users-Set-up-a-ATOMS-repo-tp4035633p4035641.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Set up a ATOMS repo.

2017-02-28 Thread Samuel Gougeon

Le 28/02/2017 à 16:19, Pierre Payen a écrit :

Hi,

I want to set up a simple ATOMS repo as in 
https://wiki.scilab.org/ATOMS/localrepository 


But after downloadding the archive -renamed to atoms-repo.zip- , when i do

--> atomsRepositoryAdd('file:///path/to/atoms-repo')
OR
--> atomsRepositoryAdd('file:///path/to/atoms-repo.zip')

I get either

ans =
  0


OR

!--error 1
atomsDESCRIPTIONget : L'extraction du fichier DESCRIPTION
('/tmp/user/SCI_TMP_16335_bZRcC8/.atoms/1_TOOLBOXES.gz') a échoué.
at line 182 of function atomsDESCRIPTIONget called by :
at line 142 of function atomsRepositoryAdd called by :
atomsRepositoryAdd('file:///path/to/atoms-repo.zip')


So : how can I set up a personnal repo ? (locally or remotely).


Please try the following:
edit("SCI/modules/atoms/macros/atoms_internals/atomsDESCRIPTIONget.sci",194)
// It is the line #178 in local numbering
//replace the line #178
extract_cmd =  + gzip_path +  + " -d """ + file_out + ;
//with
extract_cmd =  + gzip_path +  + " *-f *-d """ + file_out + ;

//Save the file. Then do:
cd SCI/modules/atoms/macros/atoms_internals/
predef clear // unprotect libraries to be able to 
recompile atomsinternalslib
genlib atomsinternalslib // recompile the sub-library to take the change 
into account


//Then, try to rerun the ATOMS Gui..


HTH
Samuel

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] Set up a ATOMS repo.

2017-02-28 Thread Pierre Payen
Hi,

I want to set up a simple ATOMS repo as in
https://wiki.scilab.org/ATOMS/localrepository

But after downloadding the archive -renamed to atoms-repo.zip- , when i do

--> atomsRepositoryAdd('file:///path/to/atoms-repo')
OR
--> atomsRepositoryAdd('file:///path/to/atoms-repo.zip')

I get either

ans =
>   0
>

OR

!--error 1
> atomsDESCRIPTIONget : L'extraction du fichier DESCRIPTION
> ('/tmp/user/SCI_TMP_16335_bZRcC8/.atoms/1_TOOLBOXES.gz') a échoué.
> at line 182 of function atomsDESCRIPTIONget called by :
> at line 142 of function atomsRepositoryAdd called by :
> atomsRepositoryAdd('file:///path/to/atoms-repo.zip')
>

So : how can I set up a personnal repo ? (locally or remotely).

Thx,
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users