atomsGUI does't show up after installing my toolbox

Hello,

I just updated one of my old toolboxes. When I load it manually using loader.sce, it works exactly as I expected. I zipped it and installed the zip-file locally using atomsInstall(). That worked. The toolbox itself is loaded and works as expected.

But when I start atomsGUI now, I get the error below. That doesn’t happen when I load the toolbox via loader.sce of course.

Startup execution:
  loading initial environment
at line    35 of function atomsVersionCompare     ( C:\Program Files\scilab-2024.1.0\modules\atoms\macros\atoms_internals\atomsVersionCompare.sci line 55 )
at line    60 of function atomsVersionSort        ( C:\Program Files\scilab-2024.1.0\modules\atoms\macros\atoms_internals\atomsVersionSort.sci line 76 )
at line    45 of function atomsCompatibleVersions ( C:\Program Files\scilab-2024.1.0\modules\atoms\macros\atoms_internals\atomsCompatibleVersions.sci line 61 )
at line    80 of function atomsGetAvailable       ( C:\Program Files\scilab-2024.1.0\modules\atoms\macros\atoms_internals\atomsGetAvailable.sci line 132 )
at line   110 of function atomsGetLeftListboxElts ( C:\Program Files\scilab-2024.1.0\modules\atoms\macros\atoms_internals\atomsGetLeftListboxElts.sci line 131 )
at line    26 of function cbAtomsGui              ( C:\Program Files\scilab-2024.1.0\modules\atoms\macros\atoms_gui\cbAtomsGui.sci line 40 )

atomsVersionCompare: Wrong value for input argument #1: This is not a valid version.

Atoms’s GUI doesn’t show up. But Atoms’ console commands are still working. I have to remove the tbx with atomsRemove and restart Scilab to get atomsGUI run again on 2023.1, 2024.1. On 2026.1 that is not enough. I have to delete SCIHOME\.atoms\ and SCIHOME\atoms to get atomsGUI run again.

This error message above is from 2024.1.0 but I get the same result on 2023.1.0 and the current 2026.1.0. on Windows, Linux and macOS.

The error mentioned versions. The version entries in DESCRIPTION are:

Version: 2.0.0
ScilabVersion: >= 2023.0.0
Depends: ~ apifun any
 ~ xlreadwrite any

What can cause this issue?

Thanks in advance.

Hello @Hani

Can you execute the following code and check what versions contains?

name = "YOUR TOOLBOX NAME"
load("SCI\modules\atoms\macros\atoms_internals\lib")
allpackages = atomsDESCRIPTIONget();
package_versions = allpackages(name);
package_versions_tab = getfield(1,package_versions);
package_versions_tab(1:2) = [];
versions=[];
for i=1:size(package_versions_tab,"*")
    versions = [ versions ; package_versions_tab(i) ];
end
versions

Best regards.

Thanks for prompt reply, Vincent,

But when I run the code I get

at line     8 of executed file C:\Users\hi\Entwicklung\Scilab\check_version.sce

Undefined variable: versions

Do you mean something like that:

name = "dataint"
load("SCI\modules\atoms\macros\atoms_internals\lib")
allpackages = atomsDESCRIPTIONget();
package_versions = allpackages(name);
package_versions_tab = getfield(1,package_versions);
package_versions_tab(1:2) = [];
for i=1:size(package_versions_tab,"*")
    versions = [ package_versions_tab(i) ];
end
versions

Then versionsis “1.2.0”.


The variables package_versions:

grafik

and Package_versions_tab:

 package_versions_tab = [1x3 string]

  "2.0.0"  "1.2.2-rev"  "1.2.0"

Hope that helps.

My bad, I edited the script in my previous post.

However, the problem is not clear. Your issue comes from the 1.2.2-rev version which is not recognized as a version number by ATOMS. Try using 1.2.2-1 instead.

Best regards.

Thank you. I will try it.

1 Like