-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chatterbot Installation Error #2351
Comments
Looks like the python it uses is older than what you have in your system. |
I've tried to use python version 3.6 but now it shows the following: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): ImportError: cannot import name errors |
Python 3.7.9 is the only functional version for this library now |
I've successfully used it with Python 3.10 after making some modifications for compatibility. To get started, clone my forked repository, create a virtual environment, and then install the package using |
C:\Windows\System32>pip install chatterbot
Collecting chatterbot
Using cached ChatterBot-1.0.5-py2.py3-none-any.whl (67 kB)
Collecting mathparse<0.2,>=0.1 (from chatterbot)
Using cached mathparse-0.1.2-py3-none-any.whl (7.2 kB)
Collecting nltk<4.0,>=3.2 (from chatterbot)
Using cached nltk-3.8.1-py3-none-any.whl.metadata (2.8 kB)
Collecting pint>=0.8.1 (from chatterbot)
Using cached Pint-0.23-py3-none-any.whl.metadata (8.1 kB)
Collecting pymongo<4.0,>=3.3 (from chatterbot)
Using cached pymongo-3.13.0.tar.gz (804 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [11 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 14, in
File "C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools_init_.py", line 16, in
import setuptools.version
File "C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\version.py", line 1, in
import pkg_resources
File "C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\pkg_resources_init_.py", line 2191, in
register_finder(pkgutil.ImpImporter, find_on_path)
^^^^^^^^^^^^^^^^^^^
AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Getting this while installing Chatterbot, can anyone help me with this?
The text was updated successfully, but these errors were encountered: