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

Can't install using "pip -v install glove_python" or "python .\setup.py install" on Windows 10 #121

Open
BrenoFariasdaSilva opened this issue Sep 6, 2022 · 2 comments

Comments

@BrenoFariasdaSilva
Copy link

BrenoFariasdaSilva commented Sep 6, 2022

Hi,
Recently, when trying to install this project i've got the following error using the command "python .\setup.py install"

running install
running bdist_egg
running egg_info
writing glove_python.egg-info\PKG-INFO
writing dependency_links to glove_python.egg-info\dependency_links.txt
writing requirements to glove_python.egg-info\requires.txt
writing top-level names to glove_python.egg-info\top_level.txt
reading manifest file 'glove_python.egg-info\SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'glove_python.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
running build_ext
building 'glove.glove_cython' extension
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\My Softwares\Python\include -IC:\My Softwares\Python\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.33.31629\include -IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include -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\um -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\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um /Tcglove/glove_cython.c /Fobuild\temp.win-amd64-3.10\Release\glove/glove_cython.obj -fopenmp -ffast-math -march=native
cl : Command line warning D9002 : ignoring unknown option '-fopenmp'
cl : Command line warning D9002 : ignoring unknown option '-ffast-math'
cl : Command line warning D9002 : ignoring unknown option '-march=native'
glove_cython.c
glove/glove_cython.c(1692): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
glove/glove_cython.c(1701): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
glove/glove_cython.c(2348): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
glove/glove_cython.c(2357): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
glove/glove_cython.c(14104): error C2105: '++' needs l-value
glove/glove_cython.c(14106): error C2105: '--' needs l-value
glove/glove_cython.c(14388): error C2105: '++' needs l-value
glove/glove_cython.c(14390): error C2105: '--' needs l-value
glove/glove_cython.c(14625): error C2105: '++' needs l-value
glove/glove_cython.c(14627): error C2105: '--' needs l-value
glove/glove_cython.c(15114): warning C4996: 'PyEval_InitThreads': deprecated in 3.9
glove/glove_cython.c(15221): error C2039: 'tp_print': is not a member of '_typeobject'
C:\My Softwares\Python\include\cpython/object.h(191): note: see declaration of '_typeobject'
glove/glove_cython.c(15224): error C2039: 'tp_print': is not a member of '_typeobject'
C:\My Softwares\Python\include\cpython/object.h(191): note: see declaration of '_typeobject'
glove/glove_cython.c(15235): error C2039: 'tp_print': is not a member of '_typeobject'
C:\My Softwares\Python\include\cpython/object.h(191): note: see declaration of '_typeobject'
glove/glove_cython.c(15244): error C2039: 'tp_print': is not a member of '_typeobject'
C:\My Softwares\Python\include\cpython/object.h(191): note: see declaration of '_typeobject'
glove/glove_cython.c(15587): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
glove/glove_cython.c(15603): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
glove/glove_cython.c(16714): warning C4996: 'PyUnicode_FromUnicode': deprecated in 3.3
glove/glove_cython.c(16753): error C2039: 'exc_type': is not a member of '_ts'
C:\My Softwares\Python\include\cpython/pystate.h(60): note: see declaration of '_ts'
glove/glove_cython.c(16754): error C2039: 'exc_value': is not a member of '_ts'
C:\My Softwares\Python\include\cpython/pystate.h(60): note: see declaration of '_ts'
glove/glove_cython.c(16755): error C2039: 'exc_traceback': is not a member of '_ts'
C:\My Softwares\Python\include\cpython/pystate.h(60): note: see declaration of '_ts'
glove/glove_cython.c(16767): error C2039: 'exc_type': is not a member of '_ts'
C:\My Softwares\Python\include\cpython/pystate.h(60): note: see declaration of '_ts'
glove/glove_cython.c(16768): error C2039: 'exc_value': is not a member of '_ts'
C:\My Softwares\Python\include\cpython/pystate.h(60): note: see declaration of '_ts'
glove/glove_cython.c(16769): error C2039: 'exc_traceback': is not a member of '_ts'
C:\My Softwares\Python\include\cpython/pystate.h(60): note: see declaration of '_ts'
glove/glove_cython.c(16770): error C2039: 'exc_type': is not a member of '_ts'
C:\My Softwares\Python\include\cpython/pystate.h(60): note: see declaration of '_ts'
glove/glove_cython.c(16771): error C2039: 'exc_value': is not a member of '_ts'
C:\My Softwares\Python\include\cpython/pystate.h(60): note: see declaration of '_ts'
glove/glove_cython.c(16772): error C2039: 'exc_traceback': is not a member of '_ts'
C:\My Softwares\Python\include\cpython/pystate.h(60): note: see declaration of '_ts'
glove/glove_cython.c(16815): error C2039: 'exc_type': is not a member of '_ts'
C:\My Softwares\Python\include\cpython/pystate.h(60): note: see declaration of '_ts'
glove/glove_cython.c(16816): error C2039: 'exc_value': is not a member of '_ts'
C:\My Softwares\Python\include\cpython/pystate.h(60): note: see declaration of '_ts'
glove/glove_cython.c(16817): error C2039: 'exc_traceback': is not a member of '_ts'
C:\My Softwares\Python\include\cpython/pystate.h(60): note: see declaration of '_ts'
glove/glove_cython.c(16818): error C2039: 'exc_type': is not a member of '_ts'
C:\My Softwares\Python\include\cpython/pystate.h(60): note: see declaration of '_ts'
glove/glove_cython.c(16819): error C2039: 'exc_value': is not a member of '_ts'
C:\My Softwares\Python\include\cpython/pystate.h(60): note: see declaration of '_ts'
glove/glove_cython.c(16820): error C2039: 'exc_traceback': is not a member of '_ts'
C:\My Softwares\Python\include\cpython/pystate.h(60): note: see declaration of '_ts'
glove/glove_cython.c(16842): error C2039: 'exc_type': is not a member of '_ts'
C:\My Softwares\Python\include\cpython/pystate.h(60): note: see declaration of '_ts'
glove/glove_cython.c(16843): error C2039: 'exc_value': is not a member of '_ts'
C:\My Softwares\Python\include\cpython/pystate.h(60): note: see declaration of '_ts'
glove/glove_cython.c(16844): error C2039: 'exc_traceback': is not a member of '_ts'
C:\My Softwares\Python\include\cpython/pystate.h(60): note: see declaration of '_ts'
glove/glove_cython.c(16845): error C2039: 'exc_type': is not a member of '_ts'
C:\My Softwares\Python\include\cpython/pystate.h(60): note: see declaration of '_ts'
glove/glove_cython.c(16846): error C2039: 'exc_value': is not a member of '_ts'
C:\My Softwares\Python\include\cpython/pystate.h(60): note: see declaration of '_ts'
glove/glove_cython.c(16847): error C2039: 'exc_traceback': is not a member of '_ts'
C:\My Softwares\Python\include\cpython/pystate.h(60): note: see declaration of '_ts'
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\cl.exe' failed with exit code 2

The same error appears when using pip -v install glove_python. I already tried reading this repo issues in order to try to solve the problem, so i found the option to run "pip install glove-python-binary" and it gave the same error.

Futhermore, when trying to run this project using "python .\setup.py", it shows the following error:

UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
warnings.warn(
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: no commands supplied

With that in mind, i opened VSCode and searched in the current path for the "description-file" in order to change it to "description_file" (using underline instead of hyphen). Then it asked for Cyphon, so i installed it using "pip install Cyphon" and got no errors. I tried to do all the steps above again, but i ended with the same problem.

@mgutierrezc
Copy link

Same issue. It'd be great if someone could give it a look

@ainunzainiyah
Copy link

ainunzainiyah commented Jun 3, 2023

I have the same issue. Can you tell me, how to solve it? @mgutierrezc @BrenoFariasdaSilva

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