Encountering Error when pip install TensorToolbox

I’m using Python-3.8.7¬† When I do a pip install for TensorFlowbox with Intel Optimized Toolbox, I received errors.

% pip install TensorFlowbox

But it failed with its SpectralToolbox Dependencies.

.....
.....

Building wheels for collected packages: SpectralToolbox, orthpol-light
Building wheel for SpectralToolbox (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/python/intel/2017u3/intelpython3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-p5qjlor0/spectraltoolbox/setup.py'"'"'; __file__='"'"'/tmp/pip-install-p5qjlor0/spectraltoolbox/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-4k6ars4d
cwd: /tmp/pip-install-p5qjlor0/spectraltoolbox/
Complete output (56 lines):

Somehow the later version of Python3 has issues with SpectralToolbox and TensorToolbox. To compile TensorToolbox, you have to go back to earlier version of Python 3. I chose Python-3.6.9 (https://www.python.org/downloads/release/python-369/).

And it works.

Perquisites:

openmpi-3.1.4
gnu-6.5
m4-1.4.18
gmp-6.1.0
mpfr-3.1.4
mpc-1.0.3
isl-0.18
gsl-2.1

 

Compile

% tar -zxvf Python-3.6.9
% cd Python-3.6.9
% ./configure --prefix=/usr/local/python-3.6.9 --enable-optimizations
% make -j 16
% make install

Installing TensorToolbox

% pip install numpy scipy matplotlib
% pip install mpi4py
% pip install TensorToolbox

For more information, see TensorToolbox-1.0.22 (https://pypi.org/project/TensorToolbox/#description)

 

Fixing can’t load screen14 issues for ANSYS 2020-R1

I was having this strange issue when running ANSYS ICEM

"Fixing can't load screen14 issues, using variable
Signal 11 caught!
Segmentation violation - exiting after doing an emergency save"

The Issue can easily resolved. It is due to errors due to missing fonts libraries

# yum install xorg-x11-fonts-*
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.newmediaexpress.com
* epel: download.nus.edu.sg
* extras: mirror.newmediaexpress.com
* updates: mirror.newmediaexpress.com
Package xorg-x11-fonts-ISO8859-1-75dpi-7.5-9.el7.noarch already installed and latest version
Package xorg-x11-fonts-Type1-7.5-9.el7.noarch already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package xorg-x11-fonts-100dpi.noarch 0:7.5-9.el7 will be installed
---> Package xorg-x11-fonts-75dpi.noarch 0:7.5-9.el7 will be installed
---> Package xorg-x11-fonts-ISO8859-1-100dpi.noarch 0:7.5-9.el7 will be installed
---> Package xorg-x11-fonts-ISO8859-14-100dpi.noarch 0:7.5-9.el7 will be installed
---> Package xorg-x11-fonts-ISO8859-14-75dpi.noarch 0:7.5-9.el7 will be installed
---> Package xorg-x11-fonts-ISO8859-15-100dpi.noarch 0:7.5-9.el7 will be installed
---> Package xorg-x11-fonts-ISO8859-15-75dpi.noarch 0:7.5-9.el7 will be installed
---> Package xorg-x11-fonts-ISO8859-2-100dpi.noarch 0:7.5-9.el7 will be installed
---> Package xorg-x11-fonts-ISO8859-2-75dpi.noarch 0:7.5-9.el7 will be installed
---> Package xorg-x11-fonts-ISO8859-9-100dpi.noarch 0:7.5-9.el7 will be installed
---> Package xorg-x11-fonts-ISO8859-9-75dpi.noarch 0:7.5-9.el7 will be installed
---> Package xorg-x11-fonts-cyrillic.noarch 0:7.5-9.el7 will be installed
---> Package xorg-x11-fonts-ethiopic.noarch 0:7.5-9.el7 will be installed
---> Package xorg-x11-fonts-misc.noarch 0:7.5-9.el7 will be installed
--> Finished Dependency Resolution

The Issue should be resolved.