Global AI and Data Science

Global AI & Data Science

Train, tune and distribute models with generative AI and machine learning capabilities


#Artificialintelligence
#Datascience
 View Only
  • 1.  ModuleNotFoundError: No module named 'cloudant'

    Posted 04/09/20 06:48 PM
    Hi,

    I am trying to teach myself developing flask applications on IBM cloud. I am trying to follow the following tutorial:
    https://cloud.ibm.com/docs/cloud-foundry?topic=cloud-foundry-getting-started-python#getting_started

    At some, I am giving the command: python .hello.py and I get the following error message:

    Traceback (most recent call last):
    File "hello.py", line 1, in <module>
    from cloudant import Cloudant
    ModuleNotFoundError: No module named 'cloudant'

    Please can you tell me what is going wrong? I installed cloudant twice now.

    thanks,

    Naveen

    ------------------------------
    naveen ganpat
    ------------------------------



    #AIandDSSkills
    #DataandAILearning
    #AIandDSSkills


  • 2.  RE: ModuleNotFoundError: No module named 'cloudant'
    Best Answer

    Posted 04/10/20 03:18 AM
    Hello Naveen ,
             You have to import the module like 
       from cloudant.client import Cloudant

    Then it will work.

    ALL THE BEST !


    ------------------------------
    Ankit Mohapatra
    ------------------------------



  • 3.  RE: ModuleNotFoundError: No module named 'cloudant'

    Posted 04/10/20 06:40 AM
    Thanks so much. I changed it and installed cloudant:

    ------------------------------
    naveen ganpat
    ------------------------------



  • 4.  RE: ModuleNotFoundError: No module named 'cloudant'

    Posted 04/11/20 04:43 PM
    This was very helpful. I can now continue?

    Thanks,
    N

    ------------------------------
    naveen ganpat
    ------------------------------