Merge branch 'bugfix/fix_importerror_spectral' into 'master'

Moved import of 'spectral' package to function level.

See merge request !12
5 jobs for v0.14.20 in 15 minutes (queued for 7 minutes and 33 seconds)
latest
Status Job ID Name Coverage
  Test
passed #12119
test_py_tools_ds

00:00:30

52.0%
passed #12120
test_styles

00:00:19

 
  Deploy Pypi
passed #12121
deploy_pypi

00:00:18

 
  Deploy Conda
failed #12122
deploy_anaconda

00:13:35

 
  Cleanup
passed #12123
cleanup_pypirc

00:00:15

 
Name Stage Failure
failed
deploy_anaconda Deploy Conda
ImportError: libpoppler.so.76: cannot open shared object file: No such file or directory
Tests failed for py_tools_ds-0.14.20-py35_1.tar.bz2 - moving package to /root/miniconda3/conda-bld/broken
WARNING:conda_build.build:Tests failed for py_tools_ds-0.14.20-py35_1.tar.bz2 - moving package to /root/miniconda3/conda-bld/broken
WARNING conda_build.build:tests_failed(2230): Tests failed for py_tools_ds-0.14.20-py35_1.tar.bz2 - moving package to /root/miniconda3/conda-bld/broken
export PREFIX=/root/miniconda3/conda-bld/py_tools_ds_1564142312243/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_
export SRC_DIR=/root/miniconda3/conda-bld/py_tools_ds_1564142312243/test_tmp
import: 'py_tools_ds'
TESTS FAILED: py_tools_ds-0.14.20-py35_1.tar.bz2
ERROR: Job failed: exit code 1