Chatterbot: Cannot get version number

Created on 16 Jun 2017  路  5Comments  路  Source: gunthercox/ChatterBot

python -m chatterbot --version

Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/lib/python2.7/dist-packages/chatterbot/__main__.py", line 8, in <module>
    print(chatterbot.__version__)
AttributeError: 'module' object has no attribute '__version__'

Most helpful comment

Thanks for the response gabru-md and vkosuri.

import chatterbot
chatterbot.__version__

worked fine. I am running 0.6.1
I'm experimenting with chatterbot to use on a robot. I'm sure I will have more questions. I hope to contribute where I can.

All 5 comments

@yazdat
to get the version number try:

import chatterbot
chatterbot.__version__

This should possibly result in an outcome like:

'0.6.0'

`Even after @gabru-md suggestion didn't worked, try to pip install chatterbot If it is Linux flavor try to sudo pip install chatterbot

Thanks for the response gabru-md and vkosuri.

import chatterbot
chatterbot.__version__

worked fine. I am running 0.6.1
I'm experimenting with chatterbot to use on a robot. I'm sure I will have more questions. I hope to contribute where I can.

even for me this python -m chatterbot --version at beginning then I used chatterbot.__version__ to find my version ...

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AfrahAsif picture AfrahAsif  路  3Comments

juanpialbano picture juanpialbano  路  4Comments

yuvalBor picture yuvalBor  路  3Comments

proguy627 picture proguy627  路  3Comments

ArunSingh1 picture ArunSingh1  路  3Comments