silx-kit / pyFAI

Fast Azimuthal Integration in Python
Other
106 stars 95 forks source link

problem with unit test if pyopencl installed without a working device #133

Closed picca closed 10 years ago

picca commented 10 years ago

Hello, while trying to see if everythongs was ok with the pyopencl package installed, I got this error message.

running build_scripts creating build/scripts-2.7 copying and adjusting scripts/pyFAI-saxs -> build/scripts-2.7 copying and adjusting scripts/MX-calibrate -> build/scripts-2.7 copying and adjusting scripts/pyFAI-average -> build/scripts-2.7 copying and adjusting scripts/diff_tomo -> build/scripts-2.7 copying and adjusting scripts/detector2nexus -> build/scripts-2.7 copying and adjusting scripts/refine_wavelength -> build/scripts-2.7 copying and adjusting scripts/pyFAI-integrate -> build/scripts-2.7 copying and adjusting scripts/pyFAI-recalib -> build/scripts-2.7 copying and adjusting scripts/pyFAI-waxs -> build/scripts-2.7 copying and adjusting scripts/pyFAI-calib -> build/scripts-2.7 copying and adjusting scripts/check_calib -> build/scripts-2.7 copying and adjusting scripts/drawMask_pymca -> build/scripts-2.7 changing mode of build/scripts-2.7/pyFAI-saxs from 644 to 755 changing mode of build/scripts-2.7/MX-calibrate from 644 to 755 changing mode of build/scripts-2.7/pyFAI-average from 644 to 755 changing mode of build/scripts-2.7/diff_tomo from 644 to 755 changing mode of build/scripts-2.7/detector2nexus from 644 to 755 changing mode of build/scripts-2.7/refine_wavelength from 644 to 755 changing mode of build/scripts-2.7/pyFAI-integrate from 644 to 755 changing mode of build/scripts-2.7/pyFAI-recalib from 644 to 755 changing mode of build/scripts-2.7/pyFAI-waxs from 644 to 755 changing mode of build/scripts-2.7/pyFAI-calib from 644 to 755 changing mode of build/scripts-2.7/check_calib from 644 to 755 changing mode of build/scripts-2.7/drawMask_pymca from 644 to 755 pci id for fd 7: 1002:4c57, driver (null) pci id for fd 7: 1002:4c57, driver (null) pci id for fd 13: 1002:4c57, driver (null) pci id for fd 13: 1002:4c57, driver (null) WARNING:pyFAI.utilstest:Unable to loading pyFAI name 'device' is not defined WARNING:pyFAI.utilstest:Remove build and start from scratch name 'device' is not defined Traceback (most recent call last): File "test_all.py", line 42, in from test_geometry_refinement import test_suite_all_GeometryRefinement File "/home/picca/Projets/pyFAI/test/test_geometry_refinement.py", line 42, in pyFAI = sys.modules["pyFAI"] KeyError: 'pyFAI'

kif commented 10 years ago

On Sun, 28 Sep 2014 06:34:22 -0700 picca notifications@github.com wrote:

Hello, while trying to see if everythongs was ok with the pyopencl package installed, I got this error message.

Apparently no working device is available. Could you try at least to install a driver for your CPU? POCL is an open source one. http://portablecl.org/pocl-0.10.html

Cheers,

Jérôme Kieffer jerome.kieffer@terre-adelie.org

kif commented 10 years ago

platform may exist but if no devices are available, disable opencl