Import error on Virtual Box:Cannot import Bolt from boltiot

is there any way to list all the classes present in a particular package

I added a new machine in Virtual box and installed ubuntu in the machine, repeated the same procedure and i got the desired output.

1 Like

Now my code is working. Thank you for your support.

1 Like

You can use the following to get a list which include name of classes inside boltiot module:

>>> import boltiot
>>> dir(boltiot)

[‘Bolt’, ‘Email’, ‘Sms’, ‘builtins’, ‘cached’, ‘doc’, ‘file’, ‘loader’, ‘name’, ‘package’, ‘path’, ‘spec’, ‘alert’, ‘bolt’, ‘requesting’, ‘urls’]

and if you want more detail about of a particular class like ‘Bolt’:
>>> help(boltiot.Bolt)
This will print its attribute and methods.