← Back to team overview

yade-users team mailing list archive

Re: [Question #260386]: From yade import qt; ImportError: No module named qt

 

Question #260386 on Yade changed:
https://answers.launchpad.net/yade/+question/260386

Description changed to:
Hello, 
I installed Yade-1.12.0 from source code on a cluster under a Linux system (CentOS6),
some libraries wasn't found but I didn't have "catastrophics errors"
when I run my script .py using yade-1.12.0 this line failed :
from yade import qt

and I have this error :

$ yade-1.12.0 melangeur.py

Welcome to Yade 1.12.0 
TCP python prompt on localhost:9000, auth cookie `acyude'
XMLRPC info provider on http://localhost:21000
Running script melangeur.py
Traceback (most recent call last):
  File "/soft/yade/1.12.0/gcc/4.4.7/bin/yade-1.12.0", line 180, in runScript
    execfile(script,globals())
  File "melangeur.py", line 4, in <module>
    from yade import pack, qt
ImportError: cannot import name qt
[[ ^L clears screen, ^U kills line. F8 plot. ]]

I compiled with cmake (I had no error related to Qt, qt4 was correctly found) :
cmake .. \
        -DINSTALL_PREFIX=$INSTALL_DIR \
        -DCMAKE_VERBOSE_MAKEFILE=ON \
        -DLOKI_INCLUDE_DIR="$LOKIROOT/include" \
        -DLOKI_LIBRARY="$LOKIROOT/lib" \
        -DEIGEN3_INCLUDE_DIR="$EIGENROOT/include/eigen3" \
        2>&1 | tee CMAKE.log

here the CMAKE.log file : 
-- The C compiler identification is GNU 4.4.7
-- The CXX compiler identification is GNU 4.4.7
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PythonInterp: /soft/python/anaconda/2.1.0/bin/python (found version "2.7.8") 
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Found OpenMP: -fopenmp  
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib64/libX11.so
-- Found OpenGL: /usr/lib64/libGL.so  
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.3") 
-- Found PNG: /usr/lib64/libpng.so (found version "1.2.49") 
-- Found JPEG: /usr/lib64/libjpeg.so  
-- Could NOT find TIFF (missing:  TIFF_LIBRARY TIFF_INCLUDE_DIR) 
-- Found Freetype: /usr/lib64/libfreetype.so (found version "2.3.11") 
-- Looking for _POSIX_TIMERS
-- Looking for _POSIX_TIMERS - found
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found Qt4: /soft/qt/4.8.5/gcc/4.4.7/bin/qmake (found version "4.8.5") 
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.23") 
-- Version is set to 1.12.0
-- GSL using pkgconfig
-- WARNING: you are using the obsolete 'PKGCONFIG' macro, use FindPkgConfig
-- PKGCONFIG() indicates that gts is not installed (install the package which contains gts.pc if you want to support this feature)
FindGTS.cmake: gts-config/pkg-config gts not found. Please set it manually. GTS_CONFIG=GTS_CONFIG-NOTFOUND
-- ERROR: GTS was not found.
-- Could NOT find GL2PS (missing:  GL2PS_LIBRARY GL2PS_INCLUDE_DIR) 
-- CGAL not found.
-- Found NumPy: version "1.9.0" /soft/python/anaconda/2.1.0/lib/python2.7/site-packages/numpy/core/include
-- Found Loki: /soft/loki/0.1.7/gcc/4.4.7/include  
-- Boost version: 1.41.0
-- Found the following Boost libraries:
--   python
--   thread
--   filesystem
--   iostreams
--   regex
--   serialization
--   system
--   date_time
--   Boost_VERSION: 104100
--   Boost_LIB_VERSION: 1_41
--   Boost_INCLUDE_DIRS: /usr/include
--   Boost_LIBRARIES: /usr/lib64/libboost_python-mt.so/usr/lib64/libboost_thread-mt.so/usr/lib64/libboost_filesystem-mt.so/usr/lib64/libboost_iostreams-mt.so/usr/lib64/libboost_regex-mt.so/usr/lib64/libboost_serialization-mt.so/usr/lib64/libboost_system-mt.so/usr/lib64/libboost_date_time-mt.so
-- Found BZip2: /usr/lib64/libbz2.so (found version "1.0.5") 
-- Looking for BZ2_bzCompressInit in /usr/lib64/libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib64/libbz2.so - found
-- Found PythonLibs: /usr/lib64/libpython2.6.so (found version "2.6.6") 
-- Found Eigen3, version: 3.2.2
-- Disable vectorization
-- Boost Odeint can be enabled, only if Boost>=1.53 is used
-- Found VTK
-- Found OpenMP
-- GSL using pkgconfig
-- WARNING: you are using the obsolete 'PKGCONFIG' macro, use FindPkgConfig
-- PKGCONFIG() indicates that gts is not installed (install the package which contains gts.pc if you want to support this feature)
FindGTS.cmake: gts-config/pkg-config gts not found. Please set it manually. GTS_CONFIG=GTS_CONFIG-NOTFOUND
-- ERROR: GTS was not found.
-- checking for one of the modules 'glib-2.0'
-- Found GLib2: glib-2.0 /usr/include/glib-2.0;/usr/lib64/glib-2.0/include
-- Looking for include file glib/gregex.h
-- Looking for include file glib/gregex.h - not found
-- GTS NOT found
-- Could NOT find TIFF (missing:  TIFF_LIBRARY TIFF_INCLUDE_DIR) 
-- Found Qt4: /soft/qt/4.8.5/gcc/4.4.7/bin/qmake (found version "4.8.5") 
-- Could NOT find GLUT (missing:  GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
-- Found QGLViewer: /usr/lib64/libQGLViewer.so
-- GUI-LIBS NOT found
-- GMP libs: GMP_LIBRARIES-NOTFOUND GMPXX_LIBRARIES-NOTFOUND
-- Could NOT find GMP (missing:  GMP_INCLUDE_DIR GMP_LIBRARIES) 
-- CGAL not found.
-- GMP libs: GMP_LIBRARIES-NOTFOUND GMPXX_LIBRARIES-NOTFOUND
-- Could NOT find GMP (missing:  GMP_INCLUDE_DIR GMP_LIBRARIES) 
-- CGAL NOT found
-- CGAL NOT found: PFVFLOW disabled
-- Could NOT find Cholmod (missing:  CHOLMOD_LIBRARIES CHOLMOD_INCLUDE_DIR AMD_LIBRARY CAMD_LIBRARY COLAMD_LIBRARY CCOLAMD_LIBRARY) 
-- Found OpenBlas: /usr/lib64/libblas.so  
-- Could NOT find Metis (missing:  METIS_INCLUDE_DIR METIS_LIBRARY) 
-- Missing dependency for LINSOLV, disabled
-- Could NOT find GL2PS (missing:  GL2PS_LIBRARY GL2PS_INCLUDE_DIR) 
-- GL2PS NOT found
-- Boost version is less than 1.47, using embedded version of floating_point_utilities_v3
-- Consider updating boost or system, as this embedded library will be removed soon
LBMFLOW is still experimental, building and running LBM engine are at your own risk!
Yade will be installed to /soft/yade/1.12.0/gcc/4.4.7
-- Suffix is set to -1.12.0
-- LIBRARY_OUTPUT_PATH is set to lib64
-- runtimePREFIX is set to /soft/yade/1.12.0/gcc/4.4.7
-- Could NOT find minieigen (missing:  PY_minieigen) 
-- Use embedded version of minieigen. Please, consider installing the corresponding package
-- Found Tkinter: /soft/python/anaconda/2.1.0/lib/python2.7/lib-tk/Tkinter.pyc  
-- VTK version 6 is found
-- ===========================================================
-- Yade configured with following features: VTK OpenMP LBMFLOW
-- Disabled features: Odeint GTS GUI CGAL PFVFLOW LINSOLV SPH LIQMIGRATION GL2PS MASK_ARBITRARY
-- Optimized build
-- ===========================================================
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/sources/yade/yade-1.12.0/build-yade-1.12.0-gcc-4.4.7

Thank you for you help,

You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.