Skip to content
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

windows cant install #16

Open
zhouwei713 opened this issue Nov 16, 2018 · 3 comments
Open

windows cant install #16

zhouwei713 opened this issue Nov 16, 2018 · 3 comments

Comments

@zhouwei713
Copy link

windows 10 cant install it, anybody can help with this
ERROR:
pip install fuzzyset-0.0.15.tar.gz
Processing c:\users\wei.zhou\downloads\fuzzyset-0.0.15.tar.gz
Requirement already satisfied: python-levenshtein in c:\users\wei.zhou\appdata\local\programs\python\python37-32\lib\site-packages (from fuzzyset==0.0.15) (0.12.0)
Requirement already satisfied: texttable in c:\users\wei.zhou\appdata\local\programs\python\python37-32\lib\site-packages (from fuzzyset==0.0.15) (1.5.0)
Requirement already satisfied: setuptools in c:\users\wei.zhou\appdata\local\programs\python\python37-32\lib\site-packages (from python-levenshtein->fuzzyset==0.0.15) (39.0.1)
Building wheels for collected packages: fuzzyset
Running setup.py bdist_wheel for fuzzyset ... error
Complete output from command C:\Users\wei.zhou\AppData\Local\Programs\Python\Python37-32\python.exe -u -c "import setuptools, tokenize;file='C:\Users\WEI1.ZHO\AppData\Local\Temp\pip-req-build-r4sla49o\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d C:\Users\WEI1.ZHO\AppData\Local\Temp\pip-wheel-ge4ddfa7 --python-tag cp37:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.7
creating build\lib.win32-3.7\fuzzyset
copying fuzzyset_init_.py -> build\lib.win32-3.7\fuzzyset
running build_ext
building 'cfuzzyset' extension
creating build\temp.win32-3.7
creating build\temp.win32-3.7\Release
creating build\temp.win32-3.7\Release\fuzzyset
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\wei.zhou\AppData\Local\Programs\Python\Python37-32\include -IC:\Users\wei.zhou\AppData\Local\Programs\Python\Python37-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /Tcfuzzyset/cfuzzyset.c /Fobuild\temp.win32-3.7\Release\fuzzyset/cfuzzyset.obj
cfuzzyset.c
fuzzyset/cfuzzyset.c(5903): warning C4020: 'function through pointer': too many actual parameters
fuzzyset/cfuzzyset.c(6174): warning C4020: 'function through pointer': too many actual parameters
fuzzyset/cfuzzyset.c(6311): warning C4020: 'function through pointer': too many actual parameters
fuzzyset/cfuzzyset.c(6729): error C2039: 'exc_type': is not a member of '_ts'
c:\users\wei.zhou\appdata\local\programs\python\python37-32\include\pystate.h(212): note: see declaration of '_ts'
fuzzyset/cfuzzyset.c(6730): error C2039: 'exc_value': is not a member of '_ts'
c:\users\wei.zhou\appdata\local\programs\python\python37-32\include\pystate.h(212): note: see declaration of '_ts'
fuzzyset/cfuzzyset.c(6731): error C2039: 'exc_traceback': is not a member of '_ts'
c:\users\wei.zhou\appdata\local\programs\python\python37-32\include\pystate.h(212): note: see declaration of '_ts'
fuzzyset/cfuzzyset.c(6738): error C2039: 'exc_type': is not a member of '_ts'
c:\users\wei.zhou\appdata\local\programs\python\python37-32\include\pystate.h(212): note: see declaration of '_ts'
fuzzyset/cfuzzyset.c(6739): error C2039: 'exc_value': is not a member of '_ts'
c:\users\wei.zhou\appdata\local\programs\python\python37-32\include\pystate.h(212): note: see declaration of '_ts'
fuzzyset/cfuzzyset.c(6740): error C2039: 'exc_traceback': is not a member of '_ts'
c:\users\wei.zhou\appdata\local\programs\python\python37-32\include\pystate.h(212): note: see declaration of '_ts'
fuzzyset/cfuzzyset.c(6741): error C2039: 'exc_type': is not a member of '_ts'
c:\users\wei.zhou\appdata\local\programs\python\python37-32\include\pystate.h(212): note: see declaration of '_ts'
fuzzyset/cfuzzyset.c(6742): error C2039: 'exc_value': is not a member of '_ts'
c:\users\wei.zhou\appdata\local\programs\python\python37-32\include\pystate.h(212): note: see declaration of '_ts'
fuzzyset/cfuzzyset.c(6743): error C2039: 'exc_traceback': is not a member of '_ts'
c:\users\wei.zhou\appdata\local\programs\python\python37-32\include\pystate.h(212): note: see declaration of '_ts'
fuzzyset/cfuzzyset.c(6798): error C2039: 'exc_type': is not a member of '_ts'
c:\users\wei.zhou\appdata\local\programs\python\python37-32\include\pystate.h(212): note: see declaration of '_ts'
fuzzyset/cfuzzyset.c(6799): error C2039: 'exc_value': is not a member of '_ts'
c:\users\wei.zhou\appdata\local\programs\python\python37-32\include\pystate.h(212): note: see declaration of '_ts'
fuzzyset/cfuzzyset.c(6800): error C2039: 'exc_traceback': is not a member of '_ts'
c:\users\wei.zhou\appdata\local\programs\python\python37-32\include\pystate.h(212): note: see declaration of '_ts'
fuzzyset/cfuzzyset.c(6801): error C2039: 'exc_type': is not a member of '_ts'
c:\users\wei.zhou\appdata\local\programs\python\python37-32\include\pystate.h(212): note: see declaration of '_ts'
fuzzyset/cfuzzyset.c(6802): error C2039: 'exc_value': is not a member of '_ts'
c:\users\wei.zhou\appdata\local\programs\python\python37-32\include\pystate.h(212): note: see declaration of '_ts'
fuzzyset/cfuzzyset.c(6803): error C2039: 'exc_traceback': is not a member of '_ts'
c:\users\wei.zhou\appdata\local\programs\python\python37-32\include\pystate.h(212): note: see declaration of '_ts'
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe' failed with exit status 2


Failed building wheel for fuzzyset
Running setup.py clean for fuzzyset
Failed to build fuzzyset
Installing collected packages: fuzzyset
Running setup.py install for fuzzyset ... error
Complete output from command C:\Users\wei.zhou\AppData\Local\Programs\Python\Python37-32\python.exe -u -c "import setuptools, tokenize;file='C:\Users\WEI1.ZHO\AppData\Local\Temp\pip-req-build-r4sla49o\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\WEI1.ZHO\AppData\Local\Temp\pip-record-g65sfo7i\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win32-3.7
creating build\lib.win32-3.7\fuzzyset
copying fuzzyset_init_.py -> build\lib.win32-3.7\fuzzyset
running build_ext
building 'cfuzzyset' extension
creating build\temp.win32-3.7
creating build\temp.win32-3.7\Release
creating build\temp.win32-3.7\Release\fuzzyset
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\wei.zhou\AppData\Local\Programs\Python\Python37-32\include -IC:\Users\wei.zhou\AppData\Local\Programs\Python\Python37-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /Tcfuzzyset/cfuzzyset.c /Fobuild\temp.win32-3.7\Release\fuzzyset/cfuzzyset.obj
cfuzzyset.c
fuzzyset/cfuzzyset.c(5903): warning C4020: 'function through pointer': too many actual parameters
fuzzyset/cfuzzyset.c(6174): warning C4020: 'function through pointer': too many actual parameters
fuzzyset/cfuzzyset.c(6311): warning C4020: 'function through pointer': too many actual parameters
fuzzyset/cfuzzyset.c(6729): error C2039: 'exc_type': is not a member of '_ts'
c:\users\wei.zhou\appdata\local\programs\python\python37-32\include\pystate.h(212): note: see declaration of '_ts'
fuzzyset/cfuzzyset.c(6730): error C2039: 'exc_value': is not a member of '_ts'
c:\users\wei.zhou\appdata\local\programs\python\python37-32\include\pystate.h(212): note: see declaration of '_ts'
fuzzyset/cfuzzyset.c(6731): error C2039: 'exc_traceback': is not a member of '_ts'
c:\users\wei.zhou\appdata\local\programs\python\python37-32\include\pystate.h(212): note: see declaration of '_ts'
fuzzyset/cfuzzyset.c(6738): error C2039: 'exc_type': is not a member of '_ts'
c:\users\wei.zhou\appdata\local\programs\python\python37-32\include\pystate.h(212): note: see declaration of '_ts'
fuzzyset/cfuzzyset.c(6739): error C2039: 'exc_value': is not a member of '_ts'
c:\users\wei.zhou\appdata\local\programs\python\python37-32\include\pystate.h(212): note: see declaration of '_ts'
fuzzyset/cfuzzyset.c(6740): error C2039: 'exc_traceback': is not a member of '_ts'
c:\users\wei.zhou\appdata\local\programs\python\python37-32\include\pystate.h(212): note: see declaration of '_ts'
fuzzyset/cfuzzyset.c(6741): error C2039: 'exc_type': is not a member of '_ts'
c:\users\wei.zhou\appdata\local\programs\python\python37-32\include\pystate.h(212): note: see declaration of '_ts'
fuzzyset/cfuzzyset.c(6742): error C2039: 'exc_value': is not a member of '_ts'
c:\users\wei.zhou\appdata\local\programs\python\python37-32\include\pystate.h(212): note: see declaration of '_ts'
fuzzyset/cfuzzyset.c(6743): error C2039: 'exc_traceback': is not a member of '_ts'
c:\users\wei.zhou\appdata\local\programs\python\python37-32\include\pystate.h(212): note: see declaration of '_ts'
fuzzyset/cfuzzyset.c(6798): error C2039: 'exc_type': is not a member of '_ts'
c:\users\wei.zhou\appdata\local\programs\python\python37-32\include\pystate.h(212): note: see declaration of '_ts'
fuzzyset/cfuzzyset.c(6799): error C2039: 'exc_value': is not a member of '_ts'
c:\users\wei.zhou\appdata\local\programs\python\python37-32\include\pystate.h(212): note: see declaration of '_ts'
fuzzyset/cfuzzyset.c(6800): error C2039: 'exc_traceback': is not a member of '_ts'
c:\users\wei.zhou\appdata\local\programs\python\python37-32\include\pystate.h(212): note: see declaration of '_ts'
fuzzyset/cfuzzyset.c(6801): error C2039: 'exc_type': is not a member of '_ts'
c:\users\wei.zhou\appdata\local\programs\python\python37-32\include\pystate.h(212): note: see declaration of '_ts'
fuzzyset/cfuzzyset.c(6802): error C2039: 'exc_value': is not a member of '_ts'
c:\users\wei.zhou\appdata\local\programs\python\python37-32\include\pystate.h(212): note: see declaration of '_ts'
fuzzyset/cfuzzyset.c(6803): error C2039: 'exc_traceback': is not a member of '_ts'
c:\users\wei.zhou\appdata\local\programs\python\python37-32\include\pystate.h(212): note: see declaration of '_ts'
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe' failed with exit status 2

----------------------------------------

Command "C:\Users\wei.zhou\AppData\Local\Programs\Python\Python37-32\python.exe -u -c "import setuptools, tokenize;file='C:\Users\WEI1.ZHO\AppData\Local\Temp\pip-req-build-r4sla49o\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\WEI1.ZHO\AppData\Local\Temp\pip-record-g65sfo7i\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\WEI~1.ZHO\AppData\Local\Temp\pip-req-build-r4sla49o\

@jtmoon79
Copy link

Similar compilation errored

fuzzyset/cfuzzyset.c(6309): error C2039: 'tp_print': is not a member of '_typeobject'
C:\Python\python.org-3.9.5\include\cpython/object.h(193): note: see declaration of '_typeobject'

This problem can be reproduced with

  • Visual Studio 2019 Express
  • Python 3.9
  • Windows 10
  • fuzzyset 0.0.19
PS > python.exe -m pip install fuzzyset
Collecting fuzzyset
  Using cached fuzzyset-0.0.19.tar.gz (377 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: python-levenshtein in c:\users\user1\projects\proj1\.venv-3.9\lib\site-packages (from fuzzyset) (0.12.2)
Requirement already satisfied: texttable in c:\users\user1\projects\proj1\.venv-3.9\lib\site-packages (from fuzzyset) (1.6.4)
Requirement already satisfied: setuptools in c:\users\user1\projects\proj1\.venv-3.9\lib\site-packages (from python-levenshtein->fuzzyset) (57.4.0)
Building wheels for collected packages: fuzzyset
  Building wheel for fuzzyset (setup.py): started
  Building wheel for fuzzyset (setup.py): finished with status 'error'
python.exe :   ERROR: Command errored out with exit status 1:
    + CategoryInfo          : NotSpecified: (  ERROR: Comman... exit status 1::String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

   command: 'C:\Users\User1\Projects\proj1\.venv-3.9\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] =
'"'"'C:\\Users\\User1\\AppData\\Local\\Temp\\pip-install-bgz155xy\\fuzzyset_7e7ecc3189b942c498d1acbc8aeb789d\\setup.py'"'"';
__file__='"'"'C:\\Users\\User1\\AppData\\Local\\Temp\\pip-install-bgz155xy\\fuzzyset_7e7ecc3189b942c498d1acbc8aeb789d\\setup.py'"'"';f = getattr(tokenize,
'"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\User1\AppData\Local\Temp\pip-wheel-gbqy7gd0'
       cwd: C:\Users\User1\AppData\Local\Temp\pip-install-bgz155xy\fuzzyset_7e7ecc3189b942c498d1acbc8aeb789d\
  Complete output (23 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.9
  creating build\lib.win-amd64-3.9\fuzzyset
  copying fuzzyset\__init__.py -> build\lib.win-amd64-3.9\fuzzyset
  running build_ext
  building 'cfuzzyset' extension
  creating build\temp.win-amd64-3.9
  creating build\temp.win-amd64-3.9\Release
  creating build\temp.win-amd64-3.9\Release\fuzzyset
  C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD
-IC:\Users\User1\Projects\proj1\.venv-3.9\include -IC:\Python\python.org-3.9.5\include -IC:\Python\python.org-3.9.5\include -IC:\Program Files
(x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files
(x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows
Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows
Kits\10\include\10.0.19041.0\cppwinrt /Tcfuzzyset/cfuzzyset.c /Fobuild\temp.win-amd64-3.9\Release\fuzzyset/cfuzzyset.obj
  cfuzzyset.c
  fuzzyset/cfuzzyset.c(2414): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
  fuzzyset/cfuzzyset.c(5399): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
  fuzzyset/cfuzzyset.c(5463): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
  fuzzyset/cfuzzyset.c(6309): error C2039: 'tp_print': is not a member of '_typeobject'
  C:\Python\python.org-3.9.5\include\cpython/object.h(193): note: see declaration of '_typeobject'
  fuzzyset/cfuzzyset.c(6778): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
  fuzzyset/cfuzzyset.c(6794): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
  fuzzyset/cfuzzyset.c(8026): warning C4996: 'PyUnicode_FromUnicode': deprecated in 3.3
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
  ----------------------------------------
  ERROR: Failed building wheel for fuzzyset
  Running setup.py clean for fuzzyset
Failed to build fuzzyset
Installing collected packages: fuzzyset
    Running setup.py install for fuzzyset: started
    Running setup.py install for fuzzyset: finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: 'C:\Users\User1\Projects\proj1\.venv-3.9\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] =
'"'"'C:\\Users\\User1\\AppData\\Local\\Temp\\pip-install-bgz155xy\\fuzzyset_7e7ecc3189b942c498d1acbc8aeb789d\\setup.py'"'"';
__file__='"'"'C:\\Users\\User1\\AppData\\Local\\Temp\\pip-install-bgz155xy\\fuzzyset_7e7ecc3189b942c498d1acbc8aeb789d\\setup.py'"'"';f = getattr(tokenize,
'"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\User1\AppData\Local\Temp\pip-record-kmdkgo_0\install-record.txt'
--single-version-externally-managed --compile --install-headers 'C:\Users\User1\Projects\proj1\.venv-3.9\include\site\python3.9\fuzzyset'
         cwd: C:\Users\User1\AppData\Local\Temp\pip-install-bgz155xy\fuzzyset_7e7ecc3189b942c498d1acbc8aeb789d\
    Complete output (23 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.9
    creating build\lib.win-amd64-3.9\fuzzyset
    copying fuzzyset\__init__.py -> build\lib.win-amd64-3.9\fuzzyset
    running build_ext
    building 'cfuzzyset' extension
    creating build\temp.win-amd64-3.9
    creating build\temp.win-amd64-3.9\Release
    creating build\temp.win-amd64-3.9\Release\fuzzyset
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD
-IC:\Users\User1\Projects\proj1\.venv-3.9\include -IC:\Python\python.org-3.9.5\include -IC:\Python\python.org-3.9.5\include -IC:\Program Files
(x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files
(x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows
Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows
Kits\10\include\10.0.19041.0\cppwinrt /Tcfuzzyset/cfuzzyset.c /Fobuild\temp.win-amd64-3.9\Release\fuzzyset/cfuzzyset.obj
    cfuzzyset.c
    fuzzyset/cfuzzyset.c(2414): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    fuzzyset/cfuzzyset.c(5399): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    fuzzyset/cfuzzyset.c(5463): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    fuzzyset/cfuzzyset.c(6309): error C2039: 'tp_print': is not a member of '_typeobject'
    C:\Python\python.org-3.9.5\include\cpython/object.h(193): note: see declaration of '_typeobject'
    fuzzyset/cfuzzyset.c(6778): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
    fuzzyset/cfuzzyset.c(6794): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
    fuzzyset/cfuzzyset.c(8026): warning C4996: 'PyUnicode_FromUnicode': deprecated in 3.3
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\User1\Projects\proj1\.venv-3.9\Scripts\python.exe' -u -c 'import io, os, sys,
setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\User1\\AppData\\Local\\Temp\\pip-install-bgz155xy\\fuzzyset_7e7ecc3189b942c498d1acbc8aeb789d\\setup.py'"'"';
__file__='"'"'C:\\Users\\User1\\AppData\\Local\\Temp\\pip-install-bgz155xy\\fuzzyset_7e7ecc3189b942c498d1acbc8aeb789d\\setup.py'"'"';f = getattr(tokenize,
'"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\User1\AppData\Local\Temp\pip-record-kmdkgo_0\install-record.txt'
--single-version-externally-managed --compile --install-headers 'C:\Users\User1\Projects\proj1\.venv-3.9\include\site\python3.9\fuzzyset' Check
the logs for full command output.


It appears the build process is not honoring the virtualenv. I'm not sure if this relates to the compiler eror error C2039: 'tp_print': is not a member of '_typeobject'.
Notice the virtualenv is at c:\users\user1\projects\proj1\.venv-3.9\, yet C Compiler command-line uses include directory -IC:\Python\python.org-3.9.5\include.
Python virtual environment c:\users\user1\projects\proj1\.venv-3.9\ was not derived from the Python installation at C:\Python\python.org-3.9.5.
Python installation at C:\Python\python.org-3.9.5 is the "registered" Python installation.

@actapia
Copy link

actapia commented Nov 22, 2021

Similar compilation errored

fuzzyset/cfuzzyset.c(6309): error C2039: 'tp_print': is not a member of '_typeobject'
C:\Python\python.org-3.9.5\include\cpython/object.h(193): note: see declaration of '_typeobject'

This problem can be reproduced with

  • Visual Studio 2019 Express
  • Python 3.9
  • Windows 10
  • fuzzyset 0.0.19
PS > python.exe -m pip install fuzzyset
Collecting fuzzyset
  Using cached fuzzyset-0.0.19.tar.gz (377 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: python-levenshtein in c:\users\user1\projects\proj1\.venv-3.9\lib\site-packages (from fuzzyset) (0.12.2)
Requirement already satisfied: texttable in c:\users\user1\projects\proj1\.venv-3.9\lib\site-packages (from fuzzyset) (1.6.4)
Requirement already satisfied: setuptools in c:\users\user1\projects\proj1\.venv-3.9\lib\site-packages (from python-levenshtein->fuzzyset) (57.4.0)
Building wheels for collected packages: fuzzyset
  Building wheel for fuzzyset (setup.py): started
  Building wheel for fuzzyset (setup.py): finished with status 'error'
python.exe :   ERROR: Command errored out with exit status 1:
    + CategoryInfo          : NotSpecified: (  ERROR: Comman... exit status 1::String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

   command: 'C:\Users\User1\Projects\proj1\.venv-3.9\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] =
'"'"'C:\\Users\\User1\\AppData\\Local\\Temp\\pip-install-bgz155xy\\fuzzyset_7e7ecc3189b942c498d1acbc8aeb789d\\setup.py'"'"';
__file__='"'"'C:\\Users\\User1\\AppData\\Local\\Temp\\pip-install-bgz155xy\\fuzzyset_7e7ecc3189b942c498d1acbc8aeb789d\\setup.py'"'"';f = getattr(tokenize,
'"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\User1\AppData\Local\Temp\pip-wheel-gbqy7gd0'
       cwd: C:\Users\User1\AppData\Local\Temp\pip-install-bgz155xy\fuzzyset_7e7ecc3189b942c498d1acbc8aeb789d\
  Complete output (23 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.9
  creating build\lib.win-amd64-3.9\fuzzyset
  copying fuzzyset\__init__.py -> build\lib.win-amd64-3.9\fuzzyset
  running build_ext
  building 'cfuzzyset' extension
  creating build\temp.win-amd64-3.9
  creating build\temp.win-amd64-3.9\Release
  creating build\temp.win-amd64-3.9\Release\fuzzyset
  C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD
-IC:\Users\User1\Projects\proj1\.venv-3.9\include -IC:\Python\python.org-3.9.5\include -IC:\Python\python.org-3.9.5\include -IC:\Program Files
(x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files
(x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows
Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows
Kits\10\include\10.0.19041.0\cppwinrt /Tcfuzzyset/cfuzzyset.c /Fobuild\temp.win-amd64-3.9\Release\fuzzyset/cfuzzyset.obj
  cfuzzyset.c
  fuzzyset/cfuzzyset.c(2414): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
  fuzzyset/cfuzzyset.c(5399): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
  fuzzyset/cfuzzyset.c(5463): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
  fuzzyset/cfuzzyset.c(6309): error C2039: 'tp_print': is not a member of '_typeobject'
  C:\Python\python.org-3.9.5\include\cpython/object.h(193): note: see declaration of '_typeobject'
  fuzzyset/cfuzzyset.c(6778): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
  fuzzyset/cfuzzyset.c(6794): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
  fuzzyset/cfuzzyset.c(8026): warning C4996: 'PyUnicode_FromUnicode': deprecated in 3.3
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
  ----------------------------------------
  ERROR: Failed building wheel for fuzzyset
  Running setup.py clean for fuzzyset
Failed to build fuzzyset
Installing collected packages: fuzzyset
    Running setup.py install for fuzzyset: started
    Running setup.py install for fuzzyset: finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: 'C:\Users\User1\Projects\proj1\.venv-3.9\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] =
'"'"'C:\\Users\\User1\\AppData\\Local\\Temp\\pip-install-bgz155xy\\fuzzyset_7e7ecc3189b942c498d1acbc8aeb789d\\setup.py'"'"';
__file__='"'"'C:\\Users\\User1\\AppData\\Local\\Temp\\pip-install-bgz155xy\\fuzzyset_7e7ecc3189b942c498d1acbc8aeb789d\\setup.py'"'"';f = getattr(tokenize,
'"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\User1\AppData\Local\Temp\pip-record-kmdkgo_0\install-record.txt'
--single-version-externally-managed --compile --install-headers 'C:\Users\User1\Projects\proj1\.venv-3.9\include\site\python3.9\fuzzyset'
         cwd: C:\Users\User1\AppData\Local\Temp\pip-install-bgz155xy\fuzzyset_7e7ecc3189b942c498d1acbc8aeb789d\
    Complete output (23 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.9
    creating build\lib.win-amd64-3.9\fuzzyset
    copying fuzzyset\__init__.py -> build\lib.win-amd64-3.9\fuzzyset
    running build_ext
    building 'cfuzzyset' extension
    creating build\temp.win-amd64-3.9
    creating build\temp.win-amd64-3.9\Release
    creating build\temp.win-amd64-3.9\Release\fuzzyset
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD
-IC:\Users\User1\Projects\proj1\.venv-3.9\include -IC:\Python\python.org-3.9.5\include -IC:\Python\python.org-3.9.5\include -IC:\Program Files
(x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files
(x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows
Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows
Kits\10\include\10.0.19041.0\cppwinrt /Tcfuzzyset/cfuzzyset.c /Fobuild\temp.win-amd64-3.9\Release\fuzzyset/cfuzzyset.obj
    cfuzzyset.c
    fuzzyset/cfuzzyset.c(2414): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    fuzzyset/cfuzzyset.c(5399): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    fuzzyset/cfuzzyset.c(5463): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    fuzzyset/cfuzzyset.c(6309): error C2039: 'tp_print': is not a member of '_typeobject'
    C:\Python\python.org-3.9.5\include\cpython/object.h(193): note: see declaration of '_typeobject'
    fuzzyset/cfuzzyset.c(6778): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
    fuzzyset/cfuzzyset.c(6794): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
    fuzzyset/cfuzzyset.c(8026): warning C4996: 'PyUnicode_FromUnicode': deprecated in 3.3
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\User1\Projects\proj1\.venv-3.9\Scripts\python.exe' -u -c 'import io, os, sys,
setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\User1\\AppData\\Local\\Temp\\pip-install-bgz155xy\\fuzzyset_7e7ecc3189b942c498d1acbc8aeb789d\\setup.py'"'"';
__file__='"'"'C:\\Users\\User1\\AppData\\Local\\Temp\\pip-install-bgz155xy\\fuzzyset_7e7ecc3189b942c498d1acbc8aeb789d\\setup.py'"'"';f = getattr(tokenize,
'"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\User1\AppData\Local\Temp\pip-record-kmdkgo_0\install-record.txt'
--single-version-externally-managed --compile --install-headers 'C:\Users\User1\Projects\proj1\.venv-3.9\include\site\python3.9\fuzzyset' Check
the logs for full command output.

It appears the build process is not honoring the virtualenv. I'm not sure if this relates to the compiler eror error C2039: 'tp_print': is not a member of '_typeobject'. Notice the virtualenv is at c:\users\user1\projects\proj1\.venv-3.9\, yet C Compiler command-line uses include directory -IC:\Python\python.org-3.9.5\include. Python virtual environment c:\users\user1\projects\proj1\.venv-3.9\ was not derived from the Python installation at C:\Python\python.org-3.9.5. Python installation at C:\Python\python.org-3.9.5 is the "registered" Python installation.

Maybe you've found this answer already, but, in case someone else hasn't—you should probably be installing the fuzzyset2 package instead of fuzzyset. So,

python -m pip install fuzzyset2

I think the problem you are encountering is occurring because you haven't installed Cython, which is seemingly needed to make a fresh version of fuzzyset.c. If you really need the original fuzzyset package, you might be able to get fuzzyset to build if you install Cython.

@jtmoon79
Copy link

you should probably be installing the fuzzyset2 package instead of fuzzyset.

Unfortunately the fuzzyset dependency is from a requirements.txt entry

bzt==1.13.8

which itself is required for a different module.

you might be able to get fuzzyset to build if you install Cython.

I'll give this a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants