[Libre-soc-bugs] [Bug 696] [Coroliosis 2] Library libMut Not Found During Alliance Install

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Mon Sep 27 19:24:03 BST 2021


https://bugs.libre-soc.org/show_bug.cgi?id=696

--- Comment #16 from andrey at technepisteme.xyz ---
I ran the coriosEnv.py script with the python debugger, and noticed that the
python code inserts an error message into "coriolisenv" output:
PYTHONPATH="/home/rohdo/coriolis-2.x/Linux.x86_64/Release.Shared/install/etc/coriolis2:sitePackageDir_has_been_not_found/stratus:sitePackageDir_has_been_not_found/cumulus/plugins:sitePackageDir_has_been_not_found/cumulus:sitePackageDir_has_been_not_found/crlcore:sitePackageDir_has_been_not_found:";export
PYTHONPATH;

In my installation of Debian Buster 10.10, PYTHONPATH has not been defined,
however this is not a requirement in coriolis or alliance documentation.


The coriosEnv.py on line 259 defines a placeholder string:
sitePackagesDir = "sitePackageDir_has_been_not_found"

Found the place where the placeholder should be overriden (lines 257-266): 
pyVersion = sys.version_info
version   = "%d.%d" % (pyVersion[0],pyVersion[1])
sitePackagesDir = "sitePackageDir_has_been_not_found"
for pyPackageDir in [ "%s/python%s/site-packages" % (absLibDir,version)
                  , "%s/python%s/dist-packages" % (absLibDir,version)
                  , "%s/%s/site-packages"       % (absLibDir,version)
                  ]:
  if os.path.isdir(pyPackageDir):
    sitePackagesDir = pyPackageDir
    break

The "version" variable which is returned is "3.7", and the script searches for
these paths:
'/home/rohdo/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/python3.7/site-packages'
'/home/rohdo/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/python3.7/dist-packages'
'/home/rohdo/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/3.7/site-packages'


However my coriolis path uses the directory name "python3", not "python3.7".
Thus the placeholder remains and produces incorrect "coriolisenv".

Do you think this is a change in coriolis or a debian issue?
What's the name of the python folder you find under
"/home/$USER/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/"?



Modifying the "coriolisEnv.py" to only use the major version (3), the script
produces "seemingly" correct output.
After clearing the build directory I re-ran the compilation of alliance, which
had lasted longer than last time, and it failed again with the same "-lMut"
error.


The full coriolisenv (after bodging to not use minor python version):
echo "Using user-selected Coriolis 2 (/home/rohdo/coriolis-2.x)";echo
"Switching to Coriolis 2.x
(Release.Shared)";PATH="/home/rohdo/coriolis-2.x/Linux.x86_64/Release.Shared/install/bin:/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games";BOOTSTRAP_TOP="/home/rohdo/coriolis-2.x/Linux.x86_64/Release.Shared/install";CORIOLIS_TOP="/home/rohdo/coriolis-2.x/Linux.x86_64/Release.Shared/install";export
PATH BOOTSTRAP_TOP CORIOLIS_TOP
STRATUS_MAPPING_NAME;PYTHONPATH="/home/rohdo/coriolis-2.x/Linux.x86_64/Release.Shared/install/etc/coriolis2:/home/rohdo/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/python3/dist-packages/stratus:/home/rohdo/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/python3/dist-packages/cumulus/plugins:/home/rohdo/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/python3/dist-packages/cumulus:/home/rohdo/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/python3/dist-packages/crlcore:/home/rohdo/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/python3/dist-packages:";export
PYTHONPATH;LD_LIBRARY_PATH="/home/rohdo/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64:/home/rohdo/alliance/install/lib64:/home/rohdo/alliance/install/lib:";export
LD_LIBRARY_PATH;hash -r;

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list