0

Looking to run an AIML chatbot:

thufir@dur:~/python-aiml-chatbot$ 
thufir@dur:~/python-aiml-chatbot$ pip install python-aiml
Collecting python-aiml
  Downloading https://files.pythonhosted.org/packages/0a/4f/441770b04a0233f41c4168660b458ff6ab8587a6d304c934c6359eb223ef/python-aiml-0.9.1.zip (2.1MB)
    100% |████████████████████████████████| 2.2MB 550kB/s 
Collecting setuptools (from python-aiml)
  Downloading https://files.pythonhosted.org/packages/7f/e1/820d941153923aac1d49d7fc37e17b6e73bfbd2904959fffbad77900cf92/setuptools-39.2.0-py2.py3-none-any.whl (567kB)
    100% |████████████████████████████████| 573kB 1.3MB/s 
Building wheels for collected packages: python-aiml
  Running setup.py bdist_wheel for python-aiml ... done
  Stored in directory: /home/thufir/.cache/pip/wheels/a3/2b/24/3e30e3e2029d06e77ca15f85a8a84675a063d0136c28f66e60
Successfully built python-aiml
Installing collected packages: setuptools, python-aiml
Successfully installed python-aiml-0.9.1 setuptools-39.2.0
thufir@dur:~/python-aiml-chatbot$ 
thufir@dur:~/python-aiml-chatbot$ 
thufir@dur:~/python-aiml-chatbot$ 
thufir@dur:~/python-aiml-chatbot$ 
thufir@dur:~/python-aiml-chatbot$ ./chatbot.py 
Traceback (most recent call last):
  File "./chatbot.py", line 3, in <module>
    import aiml
ModuleNotFoundError: No module named 'aiml'
thufir@dur:~/python-aiml-chatbot$ 
thufir@dur:~/python-aiml-chatbot$ python --version
Python 2.7.15rc1
thufir@dur:~/python-aiml-chatbot$ 
thufir@dur:~/python-aiml-chatbot$ pip --version
pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7)
thufir@dur:~/python-aiml-chatbot$ 
thufir@dur:~/python-aiml-chatbot$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04 LTS
Release:    18.04
Codename:   bionic
thufir@dur:~/python-aiml-chatbot$ 

Should I remove python and re-install with snap, perhaps? Maybe pypy? Not familiar with Python.

  • 1
    Can you run pip show -f python-aiml to list the installed files and python -c "import site; print(site.getsitepackages())" ? Also, what is the shebang line in chatbot.py? – hoefling May 25 '18 at 7:37

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.