VTK error message in ipython on CentOS 7 - python-2.7

I am using a module called pymatgen (http://pymatgen.org). There is a function within pymatgen
which displayed a graphical representation of an structure object. pymatgen requires VTK and
the VTK python bindings. I have installed both on my CentOS 7 system. Yum reports
%yum list installed |grep -i vtk vtk.x86_64
6.1.0-5.el7 #epel vtk-python.x86_64
6.1.0-5.el7 #epel vtk-qt.x86_64
6.1.0-5.el7#epel vtk-qt-python.x86_64#epel
in ipython (4.2.1)
In [1]: import pymatgen as mg
In [2]: from pymatgen.vis.structure_vtk import StructureVis
In [3]: struct = mg.Structure.from_file('POSCAR')
In [4]: StructureVis(struct)
libGL error: No matching fbConfigs or visuals found libGL error:
failed to load driver: swrast
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 150 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 44
Current serial number in output stream: 45
I am confused by this error as VTK is installed. I am using the CentOS 7 machine via a
remote X11 client (on a Macintosh using Mac OS X 10.11.5).
Does anyone have a suggestion as to how to resolve this problem as it is preventing me from using the visualization environment.

Related

What is the meaning of : "Symbol not found: ____chkstk_darwin"?

I have the message below when I run my server:
Symbol not found: ____chkstk_darwin
I want to connect Postgresql with Django but it seems it doesn't work with this problem mentioned before.
This is the response of the shell when I am trying to run my server:
raise ImproperlyConfigured("Error loading psycopg2 module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: dlopen(/Users/Nicolas/Desktop/OC/Python/Projets/P8_purbeurre/venv/lib/python3.7/site-packages/psycopg2/_psycopg.cpython-37m-darwin.so, 2): Symbol not found: ____chkstk_darwin
Referenced from: /Users/Nicolas/Desktop/OC/Python/Projets/P8_purbeurre/venv/lib/python3.7/site-packages/psycopg2/.dylibs/libcrypto.1.1.dylib (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libSystem.B.dylib
in /Users/Nicolas/Desktop/OC/Python/Projets/P8_purbeurre/venv/lib/python3.7/site-packages/psycopg2/.dylibs/libcrypto.1.1.dylib
I have a macbook Pro High Sierra version 10.13.6.

Spyder: libGL error: No matching fbConfigs or visuals found & failed to load driver: swrast

I'm trying to run spyder from anaconda 3.7 on CentOS7. I get the error;
libGL: OpenDriver: trying /usr/lib64/dri/tls/swrast_dri.so
libGL: Can't open configuration file /home/labs/training/student9/.drirc: No such file or directory.
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
function is no-op
Unrecognized OpenGL version
Unrecognized OpenGL version
/usr/lib64/dri/swrast_dri.so, exist:
ll /usr/lib64/dri/swrast_dri.so
-rwxr-xr-x 8 root root 11038656 Apr 11 2018 /usr/lib64/dri/swrast_dri.so
rpm -qf /usr/lib64/dri/kms_swrast_dri.so
mesa-dri-drivers-17.2.3-8.20171019.el7.x86_64
rpm -qa | grep nvidia
return nothing
any clue how this problem can solved?
I install spyder from Spyder. Now it open the spyder window
(with the error)

Unable to run tensorflow examples. CUBLAS error

I had this all working about a month ago and am trying to run everything again. I upgraded all the moving parts and am at the point where I am trying to run the tensorflow examples found here: tensorflow git models.
Setup:
Ubuntu 16.04
CUDA version: release 8.0, V8.0.61 (able to run deviceQuery etc.)
CUDNN_MAJOR 5 (It doesnt matter if this is 5.1 or 6)
Tensorflow backend version: 1.4.0 (not able to run examples )
keras version: 2.1.1
This is the error I get:
2017-11-20 15:18:00.209182: I
tensorflow/core/common_runtime/gpu/gpu_device.cc:1120] Creating
TensorFlow device (/device:GPU:0) -> (device: 0, name: GeForce GTX
1070, pci bus id: 0000:01:00.0, compute capability: 6.1) 2017-11-20
15:18:07.457924: E tensorflow/stream_executor/cuda/cuda_blas.cc:366]
failed to create cublas handle: CUBLAS_STATUS_NOT_INITIALIZED
2017-11-20 15:18:07.474515: E
tensorflow/stream_executor/cuda/cuda_blas.cc:366] failed to create
cublas handle: CUBLAS_STATUS_NOT_INITIALIZED 2017-11-20
15:18:07.558178: E tensorflow/stream_executor/cuda/cuda_blas.cc:366]
failed to create cublas handle: CUBLAS_STATUS_NOT_INITIALIZED
2017-11-20 15:18:07.575864: E
tensorflow/stream_executor/cuda/cuda_blas.cc:366] failed to create
cublas handle: CUBLAS_STATUS_NOT_INITIALIZED 2017-11-20
15:18:07.593372: E tensorflow/stream_executor/cuda/cuda_blas.cc:366]
failed to create cublas handle: CUBLAS_STATUS_NOT_INITIALIZED
2017-11-20 15:18:07.610621: E
tensorflow/stream_executor/cuda/cuda_blas.cc:366] failed to create
cublas handle: CUBLAS_STATUS_NOT_INITIALIZED 2017-11-20
15:18:08.431784: E tensorflow/stream_executor/cuda/cuda_dnn.cc:385]
could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR 2017-11-20
15:18:08.431816: E tensorflow/stream_executor/cuda/cuda_dnn.cc:352]
could not destroy cudnn handle: CUDNN_STATUS_BAD_PARAM 2017-11-20
15:18:08.431838: F tensorflow/core/kernels/conv_ops.cc:667] Check
failed: stream->parent()->GetConvolveAlgorithms(
conv_parameters.ShouldIncludeWinogradNonfusedAlgo(), &algorithms)
Aborted (core dumped)
Any advice would be much appreciated.
EDIT: This question: tensorflow running error with cublas is similar - but the answer did not work for me.
This is not much of a solution - but its the only one that worked:
CUDNN 6 doesn’t play nicely with TF. So if you have the library anywhere it crashes. Basically it’s version control not memory or paths. Had to make sure CUDNN v6 was no where to be found and TF was version 1.2 not 1.4.
Final set up: Ubuntu 16.04. CUDA 8, CUDNN 5.1, TF 1.2.
Installing tf version can be done with:
$ sudo apt install tensorflow-gpu==1.2
This helped me through the dark times: TensorFlow Framework and listed a couple tests along the way for sanity checking.

Caffe2 installed correct but can't load glog library

I pip installed caffe2 via a "Prebuilt Caffe2 Python Wheel" without an error. But running the first example I get the following error message which seems not be able to find/load "/usr/local/opt/glog/lib/libglog.0.dylib".
If I import caffe2.python it does not give me an error.
The glog is missing in usr/local/opt.
Is this a Mac GPU problem ? I know that CUDA is a problem/does not run on Mac or is there anything else I missed/I have to do. ?
Thanks for any help.
WARNING:root:This caffe2 python run does not have GPU support. Will run in CPU only mode.
WARNING:root:Debug message: No module named caffe2_pybind11_state_gpu
CRITICAL:root:Cannot load caffe2.python. Error: dlopen(/usr/local/lib/python2.7/site-packages/caffe2/python/caffe2_pybind11_state.so, 10): Library not loaded: /usr/local/opt/glog/lib/libglog.0.dylib
Referenced from: /usr/local/lib/python2.7/site-packages/caffe2/python/caffe2_pybind11_state.so
Reason: image not found

updating tizen-2.1 on test device

I have trouble on updating tizen-2.1 on my test device
I follow manual step by step, but some errors when I use lthor tool.
Can you give me some insight?
my environment
current tizen version on test device => 2.0
ubuntu 13.04 (on vmware 9)
modemmanager off
Error Message:
line 345: failed to read signature bytes
line 629: handshake failed
line 958: failed to open port (null)
Unfortunatelly, sometimes it's needed to uninstall modemmanger at all:
sudo apt-get purge modemmanager
Also VMWare may be at the bottom of your problem.
please follow these steps
I updated my device by following these steps.
https://wiki.tizen.org/wiki/Flash_Tizen_2.1_Image_to_Reference_Device