ChatterBot icon indicating copy to clipboard operation
ChatterBot copied to clipboard

pip install chatterbot error

Open dipti1230 opened this issue 5 years ago • 7 comments

I am using python 3.9, 64 bit and trying to install chatterbot using the command: pip install chatterbot

but it shows following error:

ERROR: Command errored out with exit status 1: command: 'c:\users\abhydwintest\appdata\local\programs\python\python39\python.exe' 'c:\users\abhydwintest\appdata\local\programs\python\python39\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\ABHYDWINTEST\AppData\Local\Temp\pip-build-env-j0t9hhyk\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools 'wheel>0.32.0,<0.33.0' Cython 'cymem>=2.0.2,<2.1.0' 'preshed>=2.0.1,<2.1.0' 'murmurhash>=0.28.0,<1.1.0' 'thinc>=7.0.8,<7.1.0' cwd: None Complete output (81 lines): Collecting cymem<2.1.0,>=2.0.2 Downloading cymem-2.0.5-cp39-cp39-win_amd64.whl (36 kB) Collecting murmurhash<1.1.0,>=0.28.0 Downloading murmurhash-1.0.5-cp39-cp39-win_amd64.whl (21 kB) Collecting preshed<2.1.0,>=2.0.1 Downloading preshed-2.0.1.tar.gz (113 kB) Collecting thinc<7.1.0,>=7.0.8 Downloading thinc-7.0.8.tar.gz (1.9 MB) Collecting wheel<0.33.0,>0.32.0 Using cached wheel-0.32.3-py2.py3-none-any.whl (21 kB) Collecting blis<0.3.0,>=0.2.1 Downloading blis-0.2.4.tar.gz (1.5 MB) Collecting numpy>=1.7.0 Using cached numpy-1.19.5-cp39-cp39-win_amd64.whl (13.3 MB) Collecting plac<1.0.0,>=0.9.6 Downloading plac-0.9.6-py2.py3-none-any.whl (20 kB) Collecting srsly<1.1.0,>=0.0.6 Downloading srsly-1.0.5-cp39-cp39-win_amd64.whl (177 kB) Collecting tqdm<5.0.0,>=4.10.0 Downloading tqdm-4.55.1-py2.py3-none-any.whl (68 kB) Collecting wasabi<1.1.0,>=0.0.9 Downloading wasabi-0.8.0-py3-none-any.whl (23 kB) Collecting Cython Downloading Cython-0.29.21-py2.py3-none-any.whl (974 kB) Collecting setuptools Downloading setuptools-51.1.1-py3-none-any.whl (2.0 MB) Using legacy 'setup.py install' for preshed, since package 'wheel' is not installed. Using legacy 'setup.py install' for thinc, since package 'wheel' is not installed. Using legacy 'setup.py install' for blis, since package 'wheel' is not installed. Installing collected packages: numpy, cymem, wasabi, tqdm, srsly, preshed, plac, murmurhash, blis, wheel, thinc, setuptools, Cython Running setup.py install for preshed: started Running setup.py install for preshed: finished with status 'error' ERROR: Command errored out with exit status 1: command: 'c:\users\abhydwintest\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\ABHYDWINTEST\AppData\Local\Temp\pip-install-gonhglv5\preshed_351daa29fa8a4cca9ec7e15e4c86effb\setup.py'"'"'; file='"'"'C:\Users\ABHYDWINTEST\AppData\Local\Temp\pip-install-gonhglv5\preshed_351daa29fa8a4cca9ec7e15e4c86effb\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\ABHYDWINTEST\AppData\Local\Temp\pip-record-7l0mvfd8\install-record.txt' --single-version-externally-managed --prefix 'C:\Users\ABHYDWINTEST\AppData\Local\Temp\pip-build-env-j0t9hhyk\overlay' --compile --install-headers 'C:\Users\ABHYDWINTEST\AppData\Local\Temp\pip-build-env-j0t9hhyk\overlay\Include\preshed' cwd: C:\Users\ABHYDWINTEST\AppData\Local\Temp\pip-install-gonhglv5\preshed_351daa29fa8a4cca9ec7e15e4c86effb
Complete output (43 lines): WARNING: The wheel package is not available. running install running build running build_py creating build creating build\lib.win-amd64-3.9 creating build\lib.win-amd64-3.9\preshed copying preshed\about.py -> build\lib.win-amd64-3.9\preshed copying preshed_init_.py -> build\lib.win-amd64-3.9\preshed creating build\lib.win-amd64-3.9\preshed\tests copying preshed\tests\test_counter.py -> build\lib.win-amd64-3.9\preshed\tests copying preshed\tests\test_hashing.py -> build\lib.win-amd64-3.9\preshed\tests copying preshed\tests\test_pop.py -> build\lib.win-amd64-3.9\preshed\tests copying preshed\tests_init_.py -> build\lib.win-amd64-3.9\preshed\tests copying preshed\counter.pyx -> build\lib.win-amd64-3.9\preshed copying preshed\maps.pyx -> build\lib.win-amd64-3.9\preshed copying preshed\counter.pxd -> build\lib.win-amd64-3.9\preshed copying preshed\maps.pxd -> build\lib.win-amd64-3.9\preshed copying preshed_init_.pxd -> build\lib.win-amd64-3.9\preshed running build_ext building 'preshed.maps' extension creating build\temp.win-amd64-3.9 creating build\temp.win-amd64-3.9\Release creating build\temp.win-amd64-3.9\Release\preshed C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\abhydwintest\appdata\local\programs\python\python39\include -Ic:\users\abhydwintest\appdata\local\programs\python\python39\include -Ic:\users\abhydwintest\appdata\local\programs\python\python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /EHsc /Tppreshed/maps.cpp /Fobuild\temp.win-amd64-3.9\Release\preshed/maps.obj /Ox /EHsc maps.cpp preshed/maps.cpp(5728): error C2039: 'tp_print': is not a member of '_typeobject' c:\users\abhydwintest\appdata\local\programs\python\python39\include\cpython/object.h(193): note: see declaration of '_typeobject' preshed/maps.cpp(5740): error C2039: 'tp_print': is not a member of '_typeobject' c:\users\abhydwintest\appdata\local\programs\python\python39\include\cpython/object.h(193): note: see declaration of '_typeobject' preshed/maps.cpp(5749): error C2039: 'tp_print': is not a member of '_typeobject' c:\users\abhydwintest\appdata\local\programs\python\python39\include\cpython/object.h(193): note: see declaration of '_typeobject' preshed/maps.cpp(5755): error C2039: 'tp_print': is not a member of '_typeobject' c:\users\abhydwintest\appdata\local\programs\python\python39\include\cpython/object.h(193): note: see declaration of '_typeobject' PS C:\Users\ABHYDWINTEST\Desktop\CHATBOT> Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new

Last 200 Keys: l Space c h a t t e r b o t Enter c l s Space Backspace Enter PS C:\Users\ABHYDWINTEST\Desktop\CHATBOT> pip install chatterbot Collecting chatterbot Using cached ChatterBot-1.0.5-py2.py3-none-any.whl (67 kB) Collecting mathparse<0.2,>=0.1 Using cached mathparse-0.1.2-py3-none-any.whl (7.2 kB) Collecting nltk<4.0,>=3.2 Using cached nltk-3.5.zip (1.4 MB) Collecting pint>=0.8.1 Using cached Pint-0.16.1-py2.py3-none-any.whl (205 kB) Collecting pymongo<4.0,>=3.3 Using cached pymongo-3.11.2-cp39-cp39-win_amd64.whl (383 kB) Collecting python-dateutil<2.8,>=2.7 Using cached python_dateutil-2.7.5-py2.py3-none-any.whl (225 kB) Collecting pyyaml<5.2,>=5.1 Using cached PyYAML-5.1.2.tar.gz (265 kB) Collecting six>=1.5 Using cached six-1.15.0-py2.py3-none-any.whl (10 kB) Collecting spacy<2.2,>=2.1 Using cached spacy-2.1.9.tar.gz (30.7 MB) Installing build dependencies ... error ERROR: Command errored out with exit status 1: command: 'c:\users\abhydwintest\appdata\local\programs\python\python39\python.exe' 'c:\users\abhydwintest\appdata\local\programs\python\python39\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\ABHYDWINTEST\AppData\Local\Temp\pip-build-env-bw2va6_w\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools 'wheel>0.32.0,<0.33.0' Cython 'cymem>=2.0.2,<2.1.0' 'preshed>=2.0.1,<2.1.0' 'murmurhash>=0.28.0,<1.1.0' 'thinc>=7.0.8,<7.1.0' cwd: None Complete output (81 lines): Collecting cymem<2.1.0,>=2.0.2 Using cached cymem-2.0.5-cp39-cp39-win_amd64.whl (36 kB) Collecting murmurhash<1.1.0,>=0.28.0 Using cached murmurhash-1.0.5-cp39-cp39-win_amd64.whl (21 kB) Collecting preshed<2.1.0,>=2.0.1 Using cached preshed-2.0.1.tar.gz (113 kB) Collecting thinc<7.1.0,>=7.0.8 Using cached thinc-7.0.8.tar.gz (1.9 MB) Collecting wheel<0.33.0,>0.32.0 Using cached wheel-0.32.3-py2.py3-none-any.whl (21 kB) Collecting blis<0.3.0,>=0.2.1 Using cached blis-0.2.4.tar.gz (1.5 MB) Collecting numpy>=1.7.0 Using cached numpy-1.19.5-cp39-cp39-win_amd64.whl (13.3 MB) Collecting plac<1.0.0,>=0.9.6 Using cached plac-0.9.6-py2.py3-none-any.whl (20 kB) Collecting srsly<1.1.0,>=0.0.6 Using cached srsly-1.0.5-cp39-cp39-win_amd64.whl (177 kB) Collecting tqdm<5.0.0,>=4.10.0 Using cached tqdm-4.55.1-py2.py3-none-any.whl (68 kB) Collecting wasabi<1.1.0,>=0.0.9 Using cached wasabi-0.8.0-py3-none-any.whl (23 kB) Collecting Cython Using cached Cython-0.29.21-py2.py3-none-any.whl (974 kB) Collecting setuptools Using cached setuptools-51.1.1-py3-none-any.whl (2.0 MB) Using legacy 'setup.py install' for preshed, since package 'wheel' is not installed. Using legacy 'setup.py install' for thinc, since package 'wheel' is not installed. Using legacy 'setup.py install' for blis, since package 'wheel' is not installed. Installing collected packages: numpy, cymem, wasabi, tqdm, srsly, preshed, plac, murmurhash, blis, wheel, thinc, setuptools, Cython Running setup.py install for preshed: started Running setup.py install for preshed: finished with status 'error' ERROR: Command errored out with exit status 1: command: 'c:\users\abhydwintest\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\ABHYDWINTEST\AppData\Local\Temp\pip-install-b5b4zn03\preshed_81d065445c564cb4a5f14338328cd4de\setup.py'"'"'; file='"'"'C:\Users\ABHYDWINTEST\AppData\Local\Temp\pip-install-b5b4zn03\preshed_81d065445c564cb4a5f14338328cd4de\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\ABHYDWINTEST\AppData\Local\Temp\pip-record-q5ytcwoo\install-record.txt' --single-version-externally-managed --prefix 'C:\Users\ABHYDWINTEST\AppData\Local\Temp\pip-build-env-bw2va6_w\overlay' --compile --install-headers 'C:\Users\ABHYDWINTEST\AppData\Local\Temp\pip-build-env-bw2va6_w\overlay\Include\preshed' cwd: C:\Users\ABHYDWINTEST\AppData\Local\Temp\pip-install-b5b4zn03\preshed_81d065445c564cb4a5f14338328cd4de
Complete output (43 lines): WARNING: The wheel package is not available. running install running build running build_py creating build creating build\lib.win-amd64-3.9 creating build\lib.win-amd64-3.9\preshed copying preshed\about.py -> build\lib.win-amd64-3.9\preshed copying preshed_init_.py -> build\lib.win-amd64-3.9\preshed creating build\lib.win-amd64-3.9\preshed\tests copying preshed\tests\test_counter.py -> build\lib.win-amd64-3.9\preshed\tests copying preshed\tests\test_hashing.py -> build\lib.win-amd64-3.9\preshed\tests copying preshed\tests\test_pop.py -> build\lib.win-amd64-3.9\preshed\tests copying preshed\tests_init_.py -> build\lib.win-amd64-3.9\preshed\tests copying preshed\counter.pyx -> build\lib.win-amd64-3.9\preshed copying preshed\maps.pyx -> build\lib.win-amd64-3.9\preshed copying preshed\counter.pxd -> build\lib.win-amd64-3.9\preshed copying preshed\maps.pxd -> build\lib.win-amd64-3.9\preshed copying preshed_init_.pxd -> build\lib.win-amd64-3.9\preshed running build_ext building 'preshed.maps' extension creating build\temp.win-amd64-3.9 creating build\temp.win-amd64-3.9\Release creating build\temp.win-amd64-3.9\Release\preshed C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\abhydwintest\appdata\local\programs\python\python39\include -Ic:\users\abhydwintest\appdata\local\programs\python\python39\include -Ic:\users\abhydwintest\appdata\local\programs\python\python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /EHsc /Tppreshed/maps.cpp /Fobuild\temp.win-amd64-3.9\Release\preshed/maps.obj /Ox /EHsc maps.cpp preshed/maps.cpp(5728): error C2039: 'tp_print': is not a member of '_typeobject' c:\users\abhydwintest\appdata\local\programs\python\python39\include\cpython/object.h(193): note: see declaration of '_typeobject' preshed/maps.cpp(5740): error C2039: 'tp_print': is not a member of '_typeobject' c:\users\abhydwintest\appdata\local\programs\python\python39\include\cpython/object.h(193): note: see declaration of '_typeobject' preshed/maps.cpp(5749): error C2039: 'tp_print': is not a member of '_typeobject' c:\users\abhydwintest\appdata\local\programs\python\python39\include\cpython/object.h(193): note: see declaration of '_typeobject' preshed/maps.cpp(5755): error C2039: 'tp_print': is not a member of '_typeobject' c:\users\abhydwintest\appdata\local\programs\python\python39\include\cpython/object.h(193): note: see declaration of '_typeobject' preshed/maps.cpp(5761): error C2039: 'tp_print': is not a member of '_typeobject' c:\users\abhydwintest\appdata\local\programs\python\python39\include\cpython/object.h(193): note: see declaration of '_typeobject' preshed/maps.cpp(5767): error C2039: 'tp_print': is not a member of '_typeobject' c:\users\abhydwintest\appdata\local\programs\python\python39\include\cpython/object.h(193): note: see declaration of '_typeobject' preshed/maps.cpp(6129): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3 c:\users\abhydwintest\appdata\local\programs\python\python39\include\cpython/unicodeobject.h(446): note: see declaration of '_PyUnicode_get_wstr_length' preshed/maps.cpp(6145): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3 c:\users\abhydwintest\appdata\local\programs\python\python39\include\cpython/unicodeobject.h(446): note: see declaration of '_PyUnicode_get_wstr_length' error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe' failed with exit code 2 ---------------------------------------- ERROR: Command errored out with exit status 1: 'c:\users\abhydwintest\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\ABHYDWINTEST\AppData\Local\Temp\pip-install-b5b4zn03\preshed_81d065445c564cb4a5f14338328cd4de\setup.py'"'"'; file='"'"'C:\Users\ABHYDWINTEST\AppData\Local\Temp\pip-install-b5b4zn03\preshed_81d065445c564cb4a5f14338328cd4de\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\ABHYDWINTEST\AppData\Local\Temp\pip-record-q5ytcwoo\install-record.txt' --single-version-externally-managed --prefix 'C:\Users\ABHYDWINTEST\AppData\Local\Temp\pip-build-env-bw2va6_w\overlay' --compile --install-headers 'C:\Users\ABHYDWINTEST\AppData\Local\Temp\pip-build-env-bw2va6_w\overlay\Include\preshed' Check the logs for full command output.

ERROR: Command errored out with exit status 1: 'c:\users\abhydwintest\appdata\local\programs\python\python39\python.exe' 'c:\users\abhydwintest\appdata\local\programs\python\python39\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\ABHYDWINTEST\AppData\Local\Temp\pip-build-env-bw2va6_w\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools 'wheel>0.32.0,<0.33.0' Cython 'cymem>=2.0.2,<2.1.0' 'preshed>=2.0.1,<2.1.0' 'murmurhash>=0.28.0,<1.1.0' 'thinc>=7.0.8,<7.1.0' Check the logs for full command output.

dipti1230 avatar Jan 07 '21 11:01 dipti1230

Try this:

  1. Download module from GITHUB or PyPi.

  2. Unzip and place it in any Directory that you want to install module in.

  3. In CMD: cd ,where is location where 'setup.py' of that module is located.

  4. Now, CMD: python setup.py install

Module is now installed for use.

Or try to install version 1.0.4 like this:

pip install chatterbot==1.0.4

TomasS-R avatar Jan 10 '21 22:01 TomasS-R

See here for more info: https://github.com/gunthercox/ChatterBot/issues/2102#issue-788435725

ghost avatar Jan 29 '21 19:01 ghost

See here for more info: #2102 (comment)

There is no fix yet, right?

Mo7mud avatar Dec 23 '21 21:12 Mo7mud

I have the same issue with python 3.8, any fix for this?

Mo7mud avatar Dec 23 '21 21:12 Mo7mud

still having the problem

ardgndg avatar Aug 28 '22 09:08 ardgndg

Fixed here https://github.com/feignbird/ChatterBot-spacy_fixed

Mo7mud avatar Oct 12 '22 08:10 Mo7mud

Try this:

  1. Download module from GITHUB or PyPi.
  2. Unzip and place it in any Directory that you want to install module in.
  3. In CMD: cd ,where is location where 'setup.py' of that module is located.
  4. Now, CMD: python setup.py install

Module is now installed for use.

Or try to install version 1.0.4 like this:

pip install chatterbot==1.0.4

It works ......i tried the version 1.0.4 and it successfully installed

nams27 avatar Mar 29 '23 09:03 nams27