7 Replies Latest reply on Mar 28, 2018 12:17 AM by Zubair2018

    Keras not installed?

    Zubair2018

      I got an error 'no such module Keras' after I schedule my job, also you said the following

      'Most machine learning frameworks are located in the /glob/deep-learning/ directory. Each directory points to the newest version of the compiler or interpreter that is available on the cluster. If you need a specific version, look in the "versions" directory.'

       

      I am connected using WinSCP but I am not able to see this folder, where to find it?

       

      update:
      I tried to install Keras using this thread

       

      but I get following error on second step

       

      conda create -n keras python=3                                

      Solving environment: failed

      libgcc_s.so.1 must be installed for pthread_cancel to work

      Aborted

       

      update # 2:

      I managed to install Keras using this thread

      But I am unable to install a library 'progressbar' and I get the following error

       

      Collecting progressbar Using cached progressbar-2.3.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-build-icfvog7g/progressbar/setup.py", line 5, in <module> import progressbar File "/tmp/pip-build-icfvog7g/progressbar/progressbar/__init__.py", line 59, in <module> from progressbar.widgets import * File "/tmp/pip-build-icfvog7g/progressbar/progressbar/widgets.py", line 121, in <module> class FileTransferSpeed(Widget): File "/glob/intel-python/versions/2018u1/intelpython3/lib/python3.6/abc.py", line 133, in __new__ cls = super().__new__(mcls, name, bases, namespace, **kwargs) ValueError: 'format' in __slots__ conflicts with class variable ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-icfvog7g/progressbar/

      Can you please help?

        • 1. Re: Keras not installed?
          Intel Corporation
          This message was posted on behalf of Intel Corporation

          Hi,

          Thank you for reaching out to us.

          Keras is not among the frameworks available in /glob/deep-learning/ directory. 
          For installing it you could either perform a direct install using the following command - 
          pip install keras --user

          Or

          create a new conda environment and do a conda install for the same using the following commands - 
          conda create -n kerasenv
          source activate kerasenv
          conda install keras

          Please let us know if this solves the issue.

          Thanks & Regards,

          Astha

          • 2. Re: Keras not installed?
            Zubair2018

            Thanks I figured it out earlier myself

             

            However please see my updated post about a missing library that I'm unable to install 'progressbar'

            can you help?

            • 3. Re: Keras not installed?
              Intel Corporation
              This message was posted on behalf of Intel Corporation

              Hi,

              I hope the following command helped -
              pip install keras --user 

              However, if you want to create a conda environment and are encountering 'libgcc_s.so.1 must be installed for pthread_cancel to work' errorplease try the following workaround - 

              1. Login to the compute node using - 
              qsub -I

              2. Create conda environment with keras, for python 3.6(you can change the python version to suit your needs) using following commands - 
              conda create -n kerasenv -c intel python=3.6
              source activate kerasenv
              conda install keras

              Do let us know if this helped.

              Thanks & Regards,
              Astha

              • 4. Re: Keras not installed?
                Zubair2018

                You didnt get it, I managed to install Keras that's a non-issue now

                 

                However I'm using a 3rd-party library 'progressbar' which is unable to install due to the error given in the update # 2 above

                Please help with that

                 

                Thanks

                • 5. Re: Keras not installed?
                  Intel Corporation
                  This message was posted on behalf of Intel Corporation

                  Hello,

                  Could you please try below steps 

                  conda install progressbar2

                  or 

                  pip install progressbar2 --user 

                  Thanks,
                  Dilraj
                   

                  • 6. Re: Keras not installed?
                    Intel Corporation
                    This message was posted on behalf of Intel Corporation

                    Hi,

                    It seems the latest version of progressbar is broken.

                    Please try the following command for installing the version 2.2 of progressbar - 
                    pip install --user progressbar==2.2

                    The issue is not with the environment but is specific to the pip version.

                    Please confirm if the solution provided helped.

                    Thanks & Regards,

                    Astha

                    • 7. Re: Keras not installed?
                      Zubair2018

                      You sir have won the internet today, whatever that means

                      this indeed is true and it's fixed my problem.

                      Thanks