3 Replies Latest reply on Jul 18, 2018 1:09 AM by jayeshtank

    import scipy.signal fails

    jayeshtank

      python -c "import numpy.fft as m; print dir(m)" or import scipy.signal fails in import error custom) [u14924@c002-n001 py-faster-rcnn]$ python Python 2.7.14 |Intel Corporation| (default, May  4 2018, 04:27:35) [GCC 4.8.2 20140120 (Red Hat 4.8.2-15)] on linux2Type "help", "copyright", "credits" or "license" for more information.Intel(R) Distribution for Python is brought to you by Intel Corporation.Please check out: https://software.intel.com/en-us/python-distribution>>> import scipy.signalTraceback (most recent call last):  File "", line 1, in   File "/home/u14924/.conda/envs/custom/lib/python2.7/site-packages/scipy/signal/__init__.py", line 298, in     from .windows import *   File "/home/u14924/.conda/envs/custom/lib/python2.7/site-packages/scipy/signal/windows.py", line 7, in     from scipy import fftpack, linalg, special   File "/home/u14924/.conda/envs/custom/lib/python2.7/site-packages/scipy/fftpack/__init__.py", line 98, in     from numpy.fft import fft_  as fft ImportError: cannot import name fft_ >>> steps: PATH=/glob/intel-python/python2/bin/:$PATH conda create -n custom source activate custom conda install -c intel numpy=1.11.0 protobuf=3.2 opencv scikit-image pyyaml conda install -c auto easydict python -c "import numpy.fft as m; print dir(m)" Could you suggest a solution?

        • 1. Re: import scipy.signal fails
          Rishabh_Intel

          Hi Jayesh,

           

          We are looking into it and will come back shortly.

           

          Thanks,

          Rishabh Kumar Jain

          • 2. Re: import scipy.signal fails
            Rishabh_Intel

            Hi Jayesh,

             

            I tried following steps:

            1) qsub -I

            2) export PATH=/glob/intel-python/python2/bin/:$PATH

            3) conda create -n custom

            source activate custom

            conda install -c intel numpy=1.11.0 protobuf=3.2 opencv scikit-image pyyaml

            conda install -c auto easydict

            python -c "import numpy.fft as m; print dir(m)"

             

            I didn't get any error and all command went fine.

             

            Here is the output:

            (custom) [uxxxxx@c002-n009 py-faster-rcnn]$ python -c "import numpy.fft as m; print dir(m)"

            ['__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__', '_numpy_tester', 'absolute_import', 'bench', 'division', 'fft', 'fft2', 'fft2_', 'fft_', 'fftfreq', 'fftn', 'fftn_', 'fftshift', 'helper', 'hfft', 'ifft', 'ifft2', 'ifft2_', 'ifft_', 'ifftn', 'ifftn_', 'ifftshift', 'ihfft', 'info', 'irfft', 'irfft2', 'irfftn', 'print_function', 'rfft', 'rfft2', 'rfftfreq', 'rfftn', 'test']

            (custom) [uxxxxx@c002-n009 py-faster-rcnn]$ python

            Python 2.7.14 |Intel Corporation| (default, May  4 2018, 04:27:35)

            [GCC 4.8.2 20140120 (Red Hat 4.8.2-15)] on linux2

            Type "help", "copyright", "credits" or "license" for more information.

            Intel(R) Distribution for Python is brought to you by Intel Corporation.

            Please check out: https://software.intel.com/en-us/python-distribution

            >>> import scipy.signal

            >>>

            (custom) [uxxxxx@c002-n009 py-faster-rcnn]$

             

            Resolution:

            1) Please try the steps once more or let me know if I am missing any step from as you did.

            2) If it does not work, please share the exact steps and screenshot.

             

            Thanks,

            Rishabh Kumar Jain

            • 3. Re: import scipy.signal fails
              jayeshtank

              I tried again and do not see the error. Thanks for support. Please go ahead and close it.