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

Error installing upolygon via python/pip on Windows: "LNK2001: unresolved external symbol _PyGen_Send" #8

Closed
seanvree opened this issue Mar 23, 2022 · 1 comment

Comments

@seanvree
Copy link

seanvree commented Mar 23, 2022

ISSUE: Error installing upolygon via python/pip on Windows

ERROR: "error LNK2001: unresolved external symbol _PyGen_Send"

OS:

  • Windows 11
  • Windows Server 2016 DC

Python v. 3.10.2

Commands that fail:

pip install upolygon
pip install darwin-py

Output:


C:\Windows\system32>where python
C:\Program Files\Python310\python.exe

C:\Windows\system32>python --version
Python 3.10.2

C:\Windows\system32>where link
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\Hostx86\x64\link.exe

C:\Windows\system32>where pip
C:\Program Files\Python310\Scripts\pip.exe

C:\Windows\system32>pip --version
pip 22.0.4 from C:\Program Files\Python310\lib\site-packages\pip (python 3.10)

C:\Windows\system32>pip install darwin-py
Collecting darwin-py
  Using cached darwin_py-0.7.12-py3-none-any.whl
Collecting rich
  Using cached rich-12.0.1-py3-none-any.whl (224 kB)
Collecting deprecation
  Using cached deprecation-2.1.0-py2.py3-none-any.whl (11 kB)
Requirement already satisfied: pyyaml>=5.1 in c:\program files\python310\lib\site-packages (from darwin-py) (6.0)
Requirement already satisfied: numpy in c:\program files\python310\lib\site-packages (from darwin-py) (1.21.5)
Collecting pydantic
  Using cached pydantic-1.9.0-cp310-cp310-win_amd64.whl (2.1 MB)
Collecting jsonschema
  Using cached jsonschema-4.4.0-py3-none-any.whl (72 kB)
Collecting upolygon==0.1.6
  Using cached upolygon-0.1.6.tar.gz (399 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: pillow in c:\program files\python310\lib\site-packages (from darwin-py) (9.0.1)
Collecting argcomplete
  Using cached argcomplete-2.0.0-py2.py3-none-any.whl (37 kB)
Collecting humanize
  Using cached humanize-4.0.0-py3-none-any.whl (97 kB)
Requirement already satisfied: dataclasses in c:\program files\python310\lib\site-packages (from darwin-py) (0.6)
Requirement already satisfied: requests in c:\program files\python310\lib\site-packages (from darwin-py) (2.27.1)
Requirement already satisfied: packaging in c:\program files\python310\lib\site-packages (from deprecation->darwin-py) (21.3)
Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in c:\program files\python310\lib\site-packages (from jsonschema->darwin-py) (0.18.1)
Requirement already satisfied: attrs>=17.4.0 in c:\program files\python310\lib\site-packages (from jsonschema->darwin-py) (21.4.0)
Requirement already satisfied: typing-extensions>=3.7.4.3 in c:\program files\python310\lib\site-packages (from pydantic->darwin-py) (4.1.1)
Requirement already satisfied: idna<4,>=2.5 in c:\program files\python310\lib\site-packages (from requests->darwin-py) (3.3)
Requirement already satisfied: certifi>=2017.4.17 in c:\program files\python310\lib\site-packages (from requests->darwin-py) (2021.10.8)
Requirement already satisfied: charset-normalizer~=2.0.0 in c:\program files\python310\lib\site-packages (from requests->darwin-py) (2.0.12)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\program files\python310\lib\site-packages (from requests->darwin-py) (1.26.9)
Requirement already satisfied: commonmark<0.10.0,>=0.9.0 in c:\program files\python310\lib\site-packages (from rich->darwin-py) (0.9.1)
Requirement already satisfied: pygments<3.0.0,>=2.6.0 in c:\program files\python310\lib\site-packages (from rich->darwin-py) (2.11.2)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in c:\program files\python310\lib\site-packages (from packaging->deprecation->darwin-py) (3.0.7)
Building wheels for collected packages: upolygon
  Building wheel for upolygon (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  ¦ exit code: 1
  ?-> [664 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-3.10
      creating build\lib.win-amd64-3.10\upolygon
      copying upolygon\__init__.py -> build\lib.win-amd64-3.10\upolygon
      running build_ext
      building 'draw_polygon' extension
      creating build\temp.win-amd64-3.10
      creating build\temp.win-amd64-3.10\Release
      creating build\temp.win-amd64-3.10\Release\upolygon
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD "-IC:\Program Files\Python310\include" "-IC:\Program Files\Python310\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" /Tcupolygon/draw_polygon.c /Fobuild\temp.win-amd64-3.10\Release\upolygon/draw_polygon.obj -O3 -Wall
      cl : Command line warning D9002 : ignoring unknown option '-O3'
      draw_polygon.c
      C:\Program Files\Python310\include\object.h(219): warning C4820: '<unnamed-tag>': '4' bytes padding added after data member 'slot'
      C:\Program Files\Python310\include\object.h(227): warning C4820: '<unnamed-tag>': '4' bytes padding added after data member 'flags'
      C:\Program Files\Python310\include\cpython/object.h(226): warning C4820: '_typeobject': '4' bytes padding added after data member 'tp_flags'
      C:\Program Files\Python310\include\cpython/object.h(271): warning C4820: '_typeobject': '4' bytes padding added after data member 'tp_version_tag'
      C:\Program Files\Python310\include\cpython/bytesobject.h(15): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'ob_sval'
      C:\Program Files\Python310\include\cpython/bytesobject.h(65): warning C4820: '<unnamed-tag>': '4' bytes padding added after data member 'small_buffer'
      C:\Program Files\Python310\include\cpython/unicodeobject.h(218): warning C4820: '<unnamed-tag>': '4' bytes padding added after data member 'state'
      C:\Program Files\Python310\include\cpython/unicodeobject.h(623): warning C4820: '<unnamed-tag>': '2' bytes padding added after data member 'readonly'
      C:\Program Files\Python310\include\longintrepr.h(88): warning C4820: '_longobject': '4' bytes padding added after data member 'ob_digit'
      C:\Program Files\Python310\include\memoryobject.h(45): warning C4820: '<unnamed-tag>': '4' bytes padding added after data member 'flags'
      C:\Program Files\Python310\include\memoryobject.h(62): warning C4820: '<unnamed-tag>': '4' bytes padding added after data member 'flags'
      C:\Program Files\Python310\include\methodobject.h(40): warning C4820: 'PyMethodDef': '4' bytes padding added after data member 'ml_flags'
      C:\Program Files\Python310\include\moduleobject.h(63): warning C4820: 'PyModuleDef_Slot': '4' bytes padding added after data member 'slot'
      C:\Program Files\Python310\include\cpython/code.h(27): warning C4820: 'PyCodeObject': '4' bytes padding added after data member 'co_firstlineno'
      C:\Program Files\Python310\include\cpython/code.h(64): warning C4820: 'PyCodeObject': '3' bytes padding added after data member 'co_opcache_size'
      C:\Program Files\Python310\include\cpython/code.h(140): warning C4820: '_opaque': '4' bytes padding added after data member 'computed_line'
      C:\Program Files\Python310\include\cpython/code.h(148): warning C4820: '_line_offsets': '4' bytes padding added after data member 'ar_line'
      C:\Program Files\Python310\include\cpython/initconfig.h(16): warning C4820: '<unnamed-tag>': '4' bytes padding added after data member '_type'
      C:\Program Files\Python310\include\cpython/initconfig.h(19): warning C4820: '<unnamed-tag>': '4' bytes padding added after data member 'exitcode'
      C:\Program Files\Python310\include\cpython/initconfig.h(149): warning C4820: 'PyConfig': '4' bytes padding added after data member 'malloc_stats'
      C:\Program Files\Python310\include\cpython/initconfig.h(153): warning C4820: 'PyConfig': '4' bytes padding added after data member 'parse_argv'
      C:\Program Files\Python310\include\cpython/initconfig.h(170): warning C4820: 'PyConfig': '4' bytes padding added after data member 'buffered_stdio'
      C:\Program Files\Python310\include\cpython/initconfig.h(175): warning C4820: 'PyConfig': '4' bytes padding added after data member 'legacy_windows_stdio'
      C:\Program Files\Python310\include\cpython/initconfig.h(179): warning C4820: 'PyConfig': '4' bytes padding added after data member 'pathconfig_warnings'
      C:\Program Files\Python310\include\cpython/initconfig.h(186): warning C4820: 'PyConfig': '4' bytes padding added after data member 'module_search_paths_set'
      C:\Program Files\Python310\include\cpython/initconfig.h(196): warning C4820: 'PyConfig': '4' bytes padding added after data member 'skip_source_first_line'
      C:\Program Files\Python310\include\cpython/initconfig.h(212): warning C4820: 'PyConfig': '4' bytes padding added after data member '_isolated_interpreter'
      C:\Program Files\Python310\include\cpython/pystate.h(42): warning C4820: '_cframe': '4' bytes padding added after data member 'use_tracing'
      C:\Program Files\Python310\include\cpython/pystate.h(105): warning C4820: '_ts': '4' bytes padding added after data member 'gilstate_counter'
      C:\Program Files\Python310\include\cpython/pystate.h(139): warning C4820: '_ts': '4' bytes padding added after data member 'coroutine_origin_tracking_depth'
      C:\Program Files\Python310\include\genobject.h(78): warning C4820: '<unnamed-tag>': '4' bytes padding added after data member 'ag_running_async'
      C:\Program Files\Python310\include\descrobject.h(29): warning C4820: 'wrapperbase': '4' bytes padding added after data member 'offset'
      C:\Program Files\Python310\include\descrobject.h(33): warning C4820: 'wrapperbase': '4' bytes padding added after data member 'flags'
      C:\Program Files\Python310\include\structseq.h(20): warning C4820: 'PyStructSequence_Desc': '4' bytes padding added after data member 'n_in_sequence'
      C:\Program Files\Python310\include\cpython/pytime.h(120): warning C4115: 'timeval': named type definition in parentheses
      C:\Program Files\Python310\include\cpython/pyerrors.h(15): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'suppress_context'
      C:\Program Files\Python310\include\cpython/pyerrors.h(19): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'suppress_context'
      C:\Program Files\Python310\include\cpython/pyerrors.h(31): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'suppress_context'
      C:\Program Files\Python310\include\cpython/pyerrors.h(38): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'suppress_context'
      C:\Program Files\Python310\include\cpython/pyerrors.h(47): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'suppress_context'
      C:\Program Files\Python310\include\cpython/pyerrors.h(52): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'suppress_context'
      C:\Program Files\Python310\include\cpython/pyerrors.h(64): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'suppress_context'
      C:\Program Files\Python310\include\cpython/pyerrors.h(69): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'suppress_context'
      C:\Program Files\Python310\include\cpython/pyerrors.h(74): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'suppress_context'
      C:\Program Files\Python310\include\modsupport.h(100): warning C4820: '_PyArg_Parser': '4' bytes padding added after data member 'max'
      C:\Program Files\Python310\include\cpython/import.h(38): warning C4820: '_frozen': '4' bytes padding added after data member 'size'
      C:\Program Files\Python310\include\cpython/fileutils.h(57): warning C4820: '_Py_stat_struct': '4' bytes padding added after data member 'st_dev'
      C:\Program Files\Python310\include\cpython/fileutils.h(59): warning C4820: '_Py_stat_struct': '2' bytes padding added after data member 'st_mode'
      C:\Program Files\Python310\include\cpython/fileutils.h(63): warning C4820: '_Py_stat_struct': '4' bytes padding added after data member 'st_rdev'
      C:\Program Files\Python310\include\cpython/fileutils.h(66): warning C4820: '_Py_stat_struct': '4' bytes padding added after data member 'st_atime_nsec'
      C:\Program Files\Python310\include\cpython/fileutils.h(68): warning C4820: '_Py_stat_struct': '4' bytes padding added after data member 'st_mtime_nsec'
      C:\Program Files\Python310\include\cpython/fileutils.h(72): warning C4820: '_Py_stat_struct': '4' bytes padding added after data member 'st_reparse_tag'
      upolygon/draw_polygon.c(636): warning C4820: '<unnamed-tag>': '5' bytes padding added after data member 'intern'
      upolygon/draw_polygon.c(855): warning C4668: '__GNUC__' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
      upolygon/draw_polygon.c(922): warning C4820: '<unnamed-tag>': '2' bytes padding added after data member 'is_unsigned'
      upolygon/draw_polygon.c(923): warning C4820: '<unnamed-tag>': '4' bytes padding added after data member 'flags'
      upolygon/draw_polygon.c(1182): warning C4820: '__pyx_array_obj': '4' bytes padding added after data member 'ndim'
      C:\Program Files\Python310\include\cpython/frameobject.h(42): warning C4820: '_frame': '2' bytes padding added after data member 'f_trace_opcodes'
      C:\Program Files\Python310\include\cpython/frameobject.h(48): warning C4820: '_frame': '3' bytes padding added after data member 'f_state'
      upolygon/draw_polygon.c(1902): warning C4820: '<unnamed-tag>': '4' bytes padding added after data member 'defaults_pyobjects'
      upolygon/draw_polygon.c(1904): warning C4820: '<unnamed-tag>': '4' bytes padding added after data member 'flags'
      upolygon/draw_polygon.c(1954): warning C4820: '<unnamed-tag>': '4' bytes padding added after data member 'code_line'
      upolygon/draw_polygon.c(2149): warning C4820: '<unnamed-tag>': '3' bytes padding added after data member 'is_running'
      upolygon/draw_polygon.c(3512): warning C4242: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
      upolygon/draw_polygon.c(3593): warning C4242: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
      upolygon/draw_polygon.c(3674): warning C4242: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
      upolygon/draw_polygon.c(3755): warning C4242: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
      upolygon/draw_polygon.c(3836): warning C4242: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
      upolygon/draw_polygon.c(3917): warning C4242: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
      upolygon/draw_polygon.c(4237): warning C4242: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
      upolygon/draw_polygon.c(4238): warning C4242: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
...
      upolygon/draw_polygon.c(8488): warning C4242: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
      upolygon/draw_polygon.c(8488): warning C4242: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
      upolygon/draw_polygon.c(9041): warning C4242: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
      upolygon/draw_polygon.c(9139): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
      upolygon/draw_polygon.c(9174): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
      upolygon/draw_polygon.c(9359): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
      upolygon/draw_polygon.c(9396): warning C4244: '=': conversion from 'Py_ssize_t' to 'float', possible loss of data
      upolygon/draw_polygon.c(9515): warning C4242: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
      upolygon/draw_polygon.c(9613): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
      upolygon/draw_polygon.c(9648): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
      upolygon/draw_polygon.c(9833): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
      upolygon/draw_polygon.c(9870): warning C4244: '=': conversion from 'Py_ssize_t' to 'float', possible loss of data
      upolygon/draw_polygon.c(9989): warning C4242: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
      upolygon/draw_polygon.c(10087): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
      upolygon/draw_polygon.c(10122): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
      upolygon/draw_polygon.c(10307): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
      upolygon/draw_polygon.c(10344): warning C4244: '=': conversion from 'Py_ssize_t' to 'float', possible loss of data
      upolygon/draw_polygon.c(10463): warning C4242: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
      upolygon/draw_polygon.c(10561): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
      upolygon/draw_polygon.c(10596): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
      upolygon/draw_polygon.c(10781): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
      upolygon/draw_polygon.c(10818): warning C4244: '=': conversion from 'Py_ssize_t' to 'float', possible loss of data
      upolygon/draw_polygon.c(10937): warning C4242: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
      upolygon/draw_polygon.c(11035): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
      upolygon/draw_polygon.c(11070): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
      upolygon/draw_polygon.c(11255): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
      upolygon/draw_polygon.c(11292): warning C4244: '=': conversion from 'Py_ssize_t' to 'float', possible loss of data
      upolygon/draw_polygon.c(11411): warning C4242: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
      upolygon/draw_polygon.c(11509): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
      upolygon/draw_polygon.c(11544): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
      upolygon/draw_polygon.c(11729): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
      upolygon/draw_polygon.c(11766): warning C4244: '=': conversion from 'Py_ssize_t' to 'float', possible loss of data
      upolygon/draw_polygon.c(12194): warning C4242: '=': conversion from 'long' to 'char', possible loss of data
      upolygon/draw_polygon.c(12219): warning C4310: cast truncates constant value
...
      upolygon/draw_polygon.c(12474): warning C4310: cast truncates constant value
      upolygon/draw_polygon.c(11989): warning C4100: '__pyx_v_defaults': unreferenced formal parameter
      upolygon/draw_polygon.c(11989): warning C4100: '__pyx_self': unreferenced formal parameter
      upolygon/draw_polygon.c(12785): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(12754): warning C4100: '__pyx_tstate': unreferenced formal parameter
      upolygon/draw_polygon.c(12935): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(13069): warning C4242: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
      upolygon/draw_polygon.c(12844): warning C4100: '__pyx_self': unreferenced formal parameter
      upolygon/draw_polygon.c(13600): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(13569): warning C4100: '__pyx_tstate': unreferenced formal parameter
      upolygon/draw_polygon.c(13750): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(13884): warning C4242: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
      upolygon/draw_polygon.c(13659): warning C4100: '__pyx_self': unreferenced formal parameter
      upolygon/draw_polygon.c(14415): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(14384): warning C4100: '__pyx_tstate': unreferenced formal parameter
      upolygon/draw_polygon.c(14565): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(14699): warning C4242: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
      upolygon/draw_polygon.c(14474): warning C4100: '__pyx_self': unreferenced formal parameter
      upolygon/draw_polygon.c(15230): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(15199): warning C4100: '__pyx_tstate': unreferenced formal parameter
      upolygon/draw_polygon.c(15380): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(15514): warning C4242: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
      upolygon/draw_polygon.c(15289): warning C4100: '__pyx_self': unreferenced formal parameter
      upolygon/draw_polygon.c(16045): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(16014): warning C4100: '__pyx_tstate': unreferenced formal parameter
      upolygon/draw_polygon.c(16195): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(16329): warning C4242: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
      upolygon/draw_polygon.c(16104): warning C4100: '__pyx_self': unreferenced formal parameter
      upolygon/draw_polygon.c(16860): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(16829): warning C4100: '__pyx_tstate': unreferenced formal parameter
      upolygon/draw_polygon.c(17010): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(17144): warning C4242: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
      upolygon/draw_polygon.c(16919): warning C4100: '__pyx_self': unreferenced formal parameter
      upolygon/draw_polygon.c(17907): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(18199): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(19106): warning C4100: 'unused': unreferenced formal parameter
      upolygon/draw_polygon.c(19117): warning C4100: '__pyx_v_self': unreferenced formal parameter
      upolygon/draw_polygon.c(19174): warning C4100: '__pyx_v___pyx_state': unreferenced formal parameter
      upolygon/draw_polygon.c(19174): warning C4100: '__pyx_v_self': unreferenced formal parameter
      upolygon/draw_polygon.c(19540): warning C4100: 'unused': unreferenced formal parameter
      upolygon/draw_polygon.c(20574): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(20582): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(21613): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(21625): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(21884): warning C4310: cast truncates constant value
      upolygon/draw_polygon.c(23647): warning C4100: 'unused': unreferenced formal parameter
      upolygon/draw_polygon.c(23723): warning C4100: 'unused': unreferenced formal parameter
      upolygon/draw_polygon.c(23799): warning C4100: 'unused': unreferenced formal parameter
      upolygon/draw_polygon.c(23893): warning C4100: 'unused': unreferenced formal parameter
      upolygon/draw_polygon.c(23986): warning C4100: 'unused': unreferenced formal parameter
      upolygon/draw_polygon.c(23997): warning C4100: '__pyx_v_self': unreferenced formal parameter
      upolygon/draw_polygon.c(24054): warning C4100: '__pyx_v___pyx_state': unreferenced formal parameter
      upolygon/draw_polygon.c(24054): warning C4100: '__pyx_v_self': unreferenced formal parameter
      upolygon/draw_polygon.c(24356): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(24364): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(24968): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(24976): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(26195): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(26887): warning C4100: 'unused': unreferenced formal parameter
      upolygon/draw_polygon.c(26898): warning C4100: '__pyx_v_self': unreferenced formal parameter
      upolygon/draw_polygon.c(26955): warning C4100: '__pyx_v___pyx_state': unreferenced formal parameter
      upolygon/draw_polygon.c(26955): warning C4100: '__pyx_v_self': unreferenced formal parameter
      upolygon/draw_polygon.c(30221): warning C4100: '__pyx_self': unreferenced formal parameter
      upolygon/draw_polygon.c(30439): warning C4310: cast truncates constant value
      upolygon/draw_polygon.c(30484): warning C4310: cast truncates constant value
      upolygon/draw_polygon.c(30539): warning C4100: 'k': unreferenced formal parameter
      upolygon/draw_polygon.c(30539): warning C4100: 'a': unreferenced formal parameter
...
      upolygon/draw_polygon.c(32533): warning C4100: 'x': unreferenced formal parameter
      upolygon/draw_polygon.c(33422): warning C4100: 'def': unreferenced formal parameter
      upolygon/draw_polygon.c(33889): warning C4100: 'filename': unreferenced formal parameter
      upolygon/draw_polygon.c(33889): warning C4100: 'lineno': unreferenced formal parameter
      upolygon/draw_polygon.c(33888): warning C4100: 'clineno': unreferenced formal parameter
      upolygon/draw_polygon.c(35158): warning C4456: declaration of 'args' hides previous local declaration
      upolygon/draw_polygon.c(35155): note: see declaration of 'args'
      upolygon/draw_polygon.c(35164): warning C4456: declaration of 'args' hides previous local declaration
      upolygon/draw_polygon.c(35155): note: see declaration of 'args'
      upolygon/draw_polygon.c(35407): warning C4389: '!=': signed/unsigned mismatch
      upolygon/draw_polygon.c(35942): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(35946): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(35953): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(35957): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(35964): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(35968): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(35975): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(35979): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(35986): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(35990): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(35997): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(36001): warning C4127: conditional expression is constant
      C:\Program Files\Python310\include\structmember.h(21): warning C4820: 'PyMemberDef': '4' bytes padding added after data member 'type'
      C:\Program Files\Python310\include\structmember.h(23): warning C4820: 'PyMemberDef': '4' bytes padding added after data member 'flags'
      upolygon/draw_polygon.c(36295): warning C4100: 'closure': unreferenced formal parameter
      upolygon/draw_polygon.c(36315): warning C4100: 'context': unreferenced formal parameter
      upolygon/draw_polygon.c(36327): warning C4100: 'context': unreferenced formal parameter
      upolygon/draw_polygon.c(36342): warning C4100: 'context': unreferenced formal parameter
      upolygon/draw_polygon.c(36362): warning C4100: 'context': unreferenced formal parameter
      upolygon/draw_polygon.c(36368): warning C4100: 'context': unreferenced formal parameter
      upolygon/draw_polygon.c(36388): warning C4100: 'closure': unreferenced formal parameter
      upolygon/draw_polygon.c(36398): warning C4100: 'context': unreferenced formal parameter
      upolygon/draw_polygon.c(36409): warning C4100: 'context': unreferenced formal parameter
      upolygon/draw_polygon.c(36429): warning C4100: 'context': unreferenced formal parameter
      upolygon/draw_polygon.c(36435): warning C4100: 'context': unreferenced formal parameter
      upolygon/draw_polygon.c(36435): warning C4100: 'op': unreferenced formal parameter
      upolygon/draw_polygon.c(36441): warning C4100: 'context': unreferenced formal parameter
      upolygon/draw_polygon.c(36470): warning C4100: 'context': unreferenced formal parameter
      upolygon/draw_polygon.c(36486): warning C4100: 'context': unreferenced formal parameter
      upolygon/draw_polygon.c(36500): warning C4100: 'context': unreferenced formal parameter
      upolygon/draw_polygon.c(36516): warning C4100: 'context': unreferenced formal parameter
      upolygon/draw_polygon.c(36530): warning C4100: 'context': unreferenced formal parameter
      upolygon/draw_polygon.c(36546): warning C4100: 'context': unreferenced formal parameter
      upolygon/draw_polygon.c(36582): warning C4100: 'args': unreferenced formal parameter
      upolygon/draw_polygon.c(37679): warning C4820: '<unnamed-tag>': '1' bytes padding added after data member 'c'
      upolygon/draw_polygon.c(37680): warning C4820: '<unnamed-tag>': '3' bytes padding added after data member 'c'
      upolygon/draw_polygon.c(37681): warning C4820: '<unnamed-tag>': '3' bytes padding added after data member 'c'
      upolygon/draw_polygon.c(37682): warning C4820: '<unnamed-tag>': '3' bytes padding added after data member 'c'
      upolygon/draw_polygon.c(37683): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'c'
      upolygon/draw_polygon.c(37684): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'c'
      upolygon/draw_polygon.c(37685): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'c'
      upolygon/draw_polygon.c(37687): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'c'
      upolygon/draw_polygon.c(37689): warning C4100: 'is_complex': unreferenced formal parameter
      upolygon/draw_polygon.c(37711): warning C4820: '<unnamed-tag>': '1' bytes padding added after data member 'c'
      upolygon/draw_polygon.c(37712): warning C4820: '<unnamed-tag>': '3' bytes padding added after data member 'c'
      upolygon/draw_polygon.c(37713): warning C4820: '<unnamed-tag>': '3' bytes padding added after data member 'c'
      upolygon/draw_polygon.c(37714): warning C4820: '<unnamed-tag>': '3' bytes padding added after data member 'c'
      upolygon/draw_polygon.c(37715): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'c'
      upolygon/draw_polygon.c(37716): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'c'
      upolygon/draw_polygon.c(37717): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'c'
      upolygon/draw_polygon.c(37719): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'c'
      upolygon/draw_polygon.c(37721): warning C4100: 'is_complex': unreferenced formal parameter
      upolygon/draw_polygon.c(38161): warning C4100: 'ndim': unreferenced formal parameter
     ...
     
      upolygon/draw_polygon.c(39889): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(39890): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(40077): warning C4100: 'gen': unreferenced formal parameter
      upolygon/draw_polygon.c(40094): warning C4100: 'gen': unreferenced formal parameter
      upolygon/draw_polygon.c(40111): warning C4100: 'closing': unreferenced formal parameter
      upolygon/draw_polygon.c(40111): warning C4100: 'gen': unreferenced formal parameter
      upolygon/draw_polygon.c(40194): warning C4100: 'gen': unreferenced formal parameter
      upolygon/draw_polygon.c(40245): warning C4013: '_PyGen_Send' undefined; assuming extern returning int
      upolygon/draw_polygon.c(40245): warning C4047: '=': 'PyObject *' differs in levels of indirection from 'int'
      upolygon/draw_polygon.c(40250): warning C4047: '=': 'PyObject *' differs in levels of indirection from 'int'
      upolygon/draw_polygon.c(40334): warning C4047: '=': 'PyObject *' differs in levels of indirection from 'int'
      upolygon/draw_polygon.c(40351): warning C4100: 'arg': unreferenced formal parameter
      upolygon/draw_polygon.c(40625): warning C4100: 'context': unreferenced formal parameter
      upolygon/draw_polygon.c(40633): warning C4100: 'context': unreferenced formal parameter
      upolygon/draw_polygon.c(40653): warning C4100: 'context': unreferenced formal parameter
      upolygon/draw_polygon.c(40661): warning C4100: 'context': unreferenced formal parameter
      upolygon/draw_polygon.c(41136): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(41141): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(41146): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(41151): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(41156): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(41161): warning C4127: conditional expression is constant
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO "/LIBPATH:C:\Program Files\Python310\libs" "/LIBPATH:C:\Program Files\Python310" "/LIBPATH:C:\Program Files\Python310\PCbuild\amd64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\um\x64" /EXPORT:PyInit_draw_polygon build\temp.win-amd64-3.10\Release\upolygon/draw_polygon.obj /OUT:build\lib.win-amd64-3.10\draw_polygon.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\upolygon\draw_polygon.cp310-win_amd64.lib
         Creating library build\temp.win-amd64-3.10\Release\upolygon\draw_polygon.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\upolygon\draw_polygon.cp310-win_amd64.exp
      draw_polygon.obj : error LNK2001: unresolved external symbol _PyGen_Send
      build\lib.win-amd64-3.10\draw_polygon.cp310-win_amd64.pyd : fatal error LNK1120: 1 unresolved externals
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\link.exe' failed with exit code 1120
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for upolygon
  Running setup.py clean for upolygon
Failed to build upolygon
Installing collected packages: upolygon, rich, pydantic, jsonschema, humanize, argcomplete, deprecation, darwin-py
  Running setup.py install for upolygon ... error
  error: subprocess-exited-with-error

  × Running setup.py install for upolygon did not run successfully.
  ¦ exit code: 1
  ?-> [666 lines of output]
      running install
      C:\Program Files\Python310\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-3.10
      creating build\lib.win-amd64-3.10\upolygon
      copying upolygon\__init__.py -> build\lib.win-amd64-3.10\upolygon
      running build_ext
      building 'draw_polygon' extension
      creating build\temp.win-amd64-3.10
      creating build\temp.win-amd64-3.10\Release
      creating build\temp.win-amd64-3.10\Release\upolygon
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD "-IC:\Program Files\Python310\include" "-IC:\Program Files\Python310\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" /Tcupolygon/draw_polygon.c /Fobuild\temp.win-amd64-3.10\Release\upolygon/draw_polygon.obj -O3 -Wall
      cl : Command line warning D9002 : ignoring unknown option '-O3'
      draw_polygon.c
      C:\Program Files\Python310\include\object.h(219): warning C4820: '<unnamed-tag>': '4' bytes padding added after data member 'slot'
      C:\Program Files\Python310\include\object.h(227): warning C4820: '<unnamed-tag>': '4' bytes padding added after data member 'flags'
      C:\Program Files\Python310\include\cpython/object.h(226): warning C4820: '_typeobject': '4' bytes padding added after data member 'tp_flags'
      C:\Program Files\Python310\include\cpython/object.h(271): warning C4820: '_typeobject': '4' bytes padding added after data member 'tp_version_tag'
      C:\Program Files\Python310\include\cpython/bytesobject.h(15): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'ob_sval'
      C:\Program Files\Python310\include\cpython/bytesobject.h(65): warning C4820: '<unnamed-tag>': '4' bytes padding added after data member 'small_buffer'
      C:\Program Files\Python310\include\cpython/unicodeobject.h(218): warning C4820: '<unnamed-tag>': '4' bytes padding added after data member 'state'
      C:\Program Files\Python310\include\cpython/unicodeobject.h(623): warning C4820: '<unnamed-tag>': '2' bytes padding added after data member 'readonly'
      C:\Program Files\Python310\include\longintrepr.h(88): warning C4820: '_longobject': '4' bytes padding added after data member 'ob_digit'
      C:\Program Files\Python310\include\memoryobject.h(45): warning C4820: '<unnamed-tag>': '4' bytes padding added after data member 'flags'
      C:\Program Files\Python310\include\memoryobject.h(62): warning C4820: '<unnamed-tag>': '4' bytes padding added after data member 'flags'
      C:\Program Files\Python310\include\methodobject.h(40): warning C4820: 'PyMethodDef': '4' bytes padding added after data member 'ml_flags'
      C:\Program Files\Python310\include\moduleobject.h(63): warning C4820: 'PyModuleDef_Slot': '4' bytes padding added after data member 'slot'
      C:\Program Files\Python310\include\cpython/code.h(27): warning C4820: 'PyCodeObject': '4' bytes padding added after data member 'co_firstlineno'
      C:\Program Files\Python310\include\cpython/code.h(64): warning C4820: 'PyCodeObject': '3' bytes padding added after data member 'co_opcache_size'
      C:\Program Files\Python310\include\cpython/code.h(140): warning C4820: '_opaque': '4' bytes padding added after data member 'computed_line'
      C:\Program Files\Python310\include\cpython/code.h(148): warning C4820: '_line_offsets': '4' bytes padding added after data member 'ar_line'
      C:\Program Files\Python310\include\cpython/initconfig.h(16): warning C4820: '<unnamed-tag>': '4' bytes padding added after data member '_type'
      C:\Program Files\Python310\include\cpython/initconfig.h(19): warning C4820: '<unnamed-tag>': '4' bytes padding added after data member 'exitcode'
      C:\Program Files\Python310\include\cpython/initconfig.h(149): warning C4820: 'PyConfig': '4' bytes padding added after data member 'malloc_stats'
      C:\Program Files\Python310\include\cpython/initconfig.h(153): warning C4820: 'PyConfig': '4' bytes padding added after data member 'parse_argv'
      C:\Program Files\Python310\include\cpython/initconfig.h(170): warning C4820: 'PyConfig': '4' bytes padding added after data member 'buffered_stdio'
      C:\Program Files\Python310\include\cpython/initconfig.h(175): warning C4820: 'PyConfig': '4' bytes padding added after data member 'legacy_windows_stdio'
      C:\Program Files\Python310\include\cpython/initconfig.h(179): warning C4820: 'PyConfig': '4' bytes padding added after data member 'pathconfig_warnings'
      C:\Program Files\Python310\include\cpython/initconfig.h(186): warning C4820: 'PyConfig': '4' bytes padding added after data member 'module_search_paths_set'
      C:\Program Files\Python310\include\cpython/initconfig.h(196): warning C4820: 'PyConfig': '4' bytes padding added after data member 'skip_source_first_line'
      C:\Program Files\Python310\include\cpython/initconfig.h(212): warning C4820: 'PyConfig': '4' bytes padding added after data member '_isolated_interpreter'
      C:\Program Files\Python310\include\cpython/pystate.h(42): warning C4820: '_cframe': '4' bytes padding added after data member 'use_tracing'
      C:\Program Files\Python310\include\cpython/pystate.h(105): warning C4820: '_ts': '4' bytes padding added after data member 'gilstate_counter'
      C:\Program Files\Python310\include\cpython/pystate.h(139): warning C4820: '_ts': '4' bytes padding added after data member 'coroutine_origin_tracking_depth'
      C:\Program Files\Python310\include\genobject.h(78): warning C4820: '<unnamed-tag>': '4' bytes padding added after data member 'ag_running_async'
      C:\Program Files\Python310\include\descrobject.h(29): warning C4820: 'wrapperbase': '4' bytes padding added after data member 'offset'
      C:\Program Files\Python310\include\descrobject.h(33): warning C4820: 'wrapperbase': '4' bytes padding added after data member 'flags'
      C:\Program Files\Python310\include\structseq.h(20): warning C4820: 'PyStructSequence_Desc': '4' bytes padding added after data member 'n_in_sequence'
      C:\Program Files\Python310\include\cpython/pytime.h(120): warning C4115: 'timeval': named type definition in parentheses
      C:\Program Files\Python310\include\cpython/pyerrors.h(15): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'suppress_context'
      C:\Program Files\Python310\include\cpython/pyerrors.h(19): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'suppress_context'
      C:\Program Files\Python310\include\cpython/pyerrors.h(31): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'suppress_context'
      C:\Program Files\Python310\include\cpython/pyerrors.h(38): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'suppress_context'
      C:\Program Files\Python310\include\cpython/pyerrors.h(47): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'suppress_context'
      C:\Program Files\Python310\include\cpython/pyerrors.h(52): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'suppress_context'
      C:\Program Files\Python310\include\cpython/pyerrors.h(64): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'suppress_context'
      C:\Program Files\Python310\include\cpython/pyerrors.h(69): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'suppress_context'
      C:\Program Files\Python310\include\cpython/pyerrors.h(74): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'suppress_context'
      C:\Program Files\Python310\include\modsupport.h(100): warning C4820: '_PyArg_Parser': '4' bytes padding added after data member 'max'
      C:\Program Files\Python310\include\cpython/import.h(38): warning C4820: '_frozen': '4' bytes padding added after data member 'size'
      C:\Program Files\Python310\include\cpython/fileutils.h(57): warning C4820: '_Py_stat_struct': '4' bytes padding added after data member 'st_dev'
      C:\Program Files\Python310\include\cpython/fileutils.h(59): warning C4820: '_Py_stat_struct': '2' bytes padding added after data member 'st_mode'
      C:\Program Files\Python310\include\cpython/fileutils.h(63): warning C4820: '_Py_stat_struct': '4' bytes padding added after data member 'st_rdev'
      C:\Program Files\Python310\include\cpython/fileutils.h(66): warning C4820: '_Py_stat_struct': '4' bytes padding added after data member 'st_atime_nsec'
      C:\Program Files\Python310\include\cpython/fileutils.h(68): warning C4820: '_Py_stat_struct': '4' bytes padding added after data member 'st_mtime_nsec'
      C:\Program Files\Python310\include\cpython/fileutils.h(72): warning C4820: '_Py_stat_struct': '4' bytes padding added after data member 'st_reparse_tag'
      upolygon/draw_polygon.c(636): warning C4820: '<unnamed-tag>': '5' bytes padding added after data member 'intern'
      upolygon/draw_polygon.c(855): warning C4668: '__GNUC__' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
      upolygon/draw_polygon.c(922): warning C4820: '<unnamed-tag>': '2' bytes padding added after data member 'is_unsigned'
      upolygon/draw_polygon.c(923): warning C4820: '<unnamed-tag>': '4' bytes padding added after data member 'flags'
      upolygon/draw_polygon.c(1182): warning C4820: '__pyx_array_obj': '4' bytes padding added after data member 'ndim'
      C:\Program Files\Python310\include\cpython/frameobject.h(42): warning C4820: '_frame': '2' bytes padding added after data member 'f_trace_opcodes'
      C:\Program Files\Python310\include\cpython/frameobject.h(48): warning C4820: '_frame': '3' bytes padding added after data member 'f_state'
      upolygon/draw_polygon.c(1902): warning C4820: '<unnamed-tag>': '4' bytes padding added after data member 'defaults_pyobjects'
      upolygon/draw_polygon.c(1904): warning C4820: '<unnamed-tag>': '4' bytes padding added after data member 'flags'
      upolygon/draw_polygon.c(1954): warning C4820: '<unnamed-tag>': '4' bytes padding added after data member 'code_line'
      upolygon/draw_polygon.c(2149): warning C4820: '<unnamed-tag>': '3' bytes padding added after data member 'is_running'
      upolygon/draw_polygon.c(3512): warning C4242: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data

      upolygon/draw_polygon.c(4237): warning C4242: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
...
      upolygon/draw_polygon.c(8488): warning C4242: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
      upolygon/draw_polygon.c(9041): warning C4242: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
      upolygon/draw_polygon.c(9139): warning C4244: '=': conversion from 'double' to 'float', possible loss of data

      upolygon/draw_polygon.c(9870): warning C4244: '=': conversion from 'Py_ssize_t' to 'float', possible loss of data
      upolygon/draw_polygon.c(9989): warning C4242: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
      upolygon/draw_polygon.c(10087): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
      upolygon/draw_polygon.c(10122): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
      upolygon/draw_polygon.c(10307): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
      upolygon/draw_polygon.c(10344): warning C4244: '=': conversion from 'Py_ssize_t' to 'float', possible loss of data

      upolygon/draw_polygon.c(11766): warning C4244: '=': conversion from 'Py_ssize_t' to 'float', possible loss of data
      upolygon/draw_polygon.c(12194): warning C4242: '=': conversion from 'long' to 'char', possible loss of data
      upolygon/draw_polygon.c(12219): warning C4310: cast truncates constant value
      upolygon/draw_polygon.c(12242): warning C4310: cast truncates constant value

      upolygon/draw_polygon.c(12474): warning C4310: cast truncates constant value
      upolygon/draw_polygon.c(11989): warning C4100: '__pyx_v_defaults': unreferenced formal parameter
      upolygon/draw_polygon.c(11989): warning C4100: '__pyx_self': unreferenced formal parameter
      upolygon/draw_polygon.c(12785): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(12754): warning C4100: '__pyx_tstate': unreferenced formal parameter
      upolygon/draw_polygon.c(12935): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(13069): warning C4242: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
      upolygon/draw_polygon.c(12844): warning C4100: '__pyx_self': unreferenced formal parameter
      upolygon/draw_polygon.c(13600): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(13569): warning C4100: '__pyx_tstate': unreferenced formal parameter
      upolygon/draw_polygon.c(13750): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(13884): warning C4242: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
      upolygon/draw_polygon.c(13659): warning C4100: '__pyx_self': unreferenced formal parameter
      upolygon/draw_polygon.c(14415): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(14384): warning C4100: '__pyx_tstate': unreferenced formal parameter
      upolygon/draw_polygon.c(14565): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(14699): warning C4242: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
      upolygon/draw_polygon.c(14474): warning C4100: '__pyx_self': unreferenced formal parameter
      upolygon/draw_polygon.c(15230): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(15199): warning C4100: '__pyx_tstate': unreferenced formal parameter
      upolygon/draw_polygon.c(15380): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(15514): warning C4242: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
      upolygon/draw_polygon.c(15289): warning C4100: '__pyx_self': unreferenced formal parameter
      upolygon/draw_polygon.c(16045): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(16014): warning C4100: '__pyx_tstate': unreferenced formal parameter
      upolygon/draw_polygon.c(16195): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(16329): warning C4242: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
      upolygon/draw_polygon.c(16104): warning C4100: '__pyx_self': unreferenced formal parameter
      upolygon/draw_polygon.c(16860): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(16829): warning C4100: '__pyx_tstate': unreferenced formal parameter
      upolygon/draw_polygon.c(17010): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(17144): warning C4242: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
      upolygon/draw_polygon.c(16919): warning C4100: '__pyx_self': unreferenced formal parameter
      upolygon/draw_polygon.c(17907): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(18199): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(19106): warning C4100: 'unused': unreferenced formal parameter
      upolygon/draw_polygon.c(19117): warning C4100: '__pyx_v_self': unreferenced formal parameter
      upolygon/draw_polygon.c(19174): warning C4100: '__pyx_v___pyx_state': unreferenced formal parameter
      upolygon/draw_polygon.c(19174): warning C4100: '__pyx_v_self': unreferenced formal parameter
      upolygon/draw_polygon.c(19540): warning C4100: 'unused': unreferenced formal parameter
      upolygon/draw_polygon.c(20574): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(20582): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(21613): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(21625): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(21884): warning C4310: cast truncates constant value
      upolygon/draw_polygon.c(23647): warning C4100: 'unused': unreferenced formal parameter
      upolygon/draw_polygon.c(23723): warning C4100: 'unused': unreferenced formal parameter
      upolygon/draw_polygon.c(23799): warning C4100: 'unused': unreferenced formal parameter
      upolygon/draw_polygon.c(23893): warning C4100: 'unused': unreferenced formal parameter
      upolygon/draw_polygon.c(23986): warning C4100: 'unused': unreferenced formal parameter
      upolygon/draw_polygon.c(23997): warning C4100: '__pyx_v_self': unreferenced formal parameter
      upolygon/draw_polygon.c(24054): warning C4100: '__pyx_v___pyx_state': unreferenced formal parameter
      upolygon/draw_polygon.c(24054): warning C4100: '__pyx_v_self': unreferenced formal parameter
      upolygon/draw_polygon.c(24356): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(24364): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(24968): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(24976): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(26195): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(26887): warning C4100: 'unused': unreferenced formal parameter
      upolygon/draw_polygon.c(26898): warning C4100: '__pyx_v_self': unreferenced formal parameter
      upolygon/draw_polygon.c(26955): warning C4100: '__pyx_v___pyx_state': unreferenced formal parameter
      upolygon/draw_polygon.c(26955): warning C4100: '__pyx_v_self': unreferenced formal parameter
      upolygon/draw_polygon.c(30221): warning C4100: '__pyx_self': unreferenced formal parameter
      upolygon/draw_polygon.c(30439): warning C4310: cast truncates constant value
      upolygon/draw_polygon.c(30484): warning C4310: cast truncates constant value
      upolygon/draw_polygon.c(30539): warning C4100: 'k': unreferenced formal parameter
...
      upolygon/draw_polygon.c(32533): warning C4100: 'x': unreferenced formal parameter
      upolygon/draw_polygon.c(33422): warning C4100: 'def': unreferenced formal parameter
      upolygon/draw_polygon.c(33889): warning C4100: 'filename': unreferenced formal parameter
      upolygon/draw_polygon.c(33889): warning C4100: 'lineno': unreferenced formal parameter
      upolygon/draw_polygon.c(33888): warning C4100: 'clineno': unreferenced formal parameter
      upolygon/draw_polygon.c(35158): warning C4456: declaration of 'args' hides previous local declaration
      upolygon/draw_polygon.c(35155): note: see declaration of 'args'
      upolygon/draw_polygon.c(35164): warning C4456: declaration of 'args' hides previous local declaration
      upolygon/draw_polygon.c(35155): note: see declaration of 'args'
      upolygon/draw_polygon.c(35407): warning C4389: '!=': signed/unsigned mismatch
      upolygon/draw_polygon.c(35942): warning C4127: conditional expression is constant

      upolygon/draw_polygon.c(35997): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(36001): warning C4127: conditional expression is constant
      C:\Program Files\Python310\include\structmember.h(21): warning C4820: 'PyMemberDef': '4' bytes padding added after data member 'type'
      C:\Program Files\Python310\include\structmember.h(23): warning C4820: 'PyMemberDef': '4' bytes padding added after data member 'flags'
      upolygon/draw_polygon.c(36295): warning C4100: 'closure': unreferenced formal parameter

      upolygon/draw_polygon.c(36435): warning C4100: 'context': unreferenced formal parameter
      upolygon/draw_polygon.c(36435): warning C4100: 'op': unreferenced formal parameter
      upolygon/draw_polygon.c(36441): warning C4100: 'context': unreferenced formal parameter

      upolygon/draw_polygon.c(36546): warning C4100: 'context': unreferenced formal parameter
      upolygon/draw_polygon.c(36582): warning C4100: 'args': unreferenced formal parameter
      upolygon/draw_polygon.c(37679): warning C4820: '<unnamed-tag>': '1' bytes padding added after data member 'c'

      upolygon/draw_polygon.c(37685): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'c'
      upolygon/draw_polygon.c(37687): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'c'
      upolygon/draw_polygon.c(37689): warning C4100: 'is_complex': unreferenced formal parameter
      upolygon/draw_polygon.c(37711): warning C4820: '<unnamed-tag>': '1' bytes padding added after data member 'c'
      upolygon/draw_polygon.c(37712): warning C4820: '<unnamed-tag>': '3' bytes padding added after data member 'c'
      upolygon/draw_polygon.c(37713): warning C4820: '<unnamed-tag>': '3' bytes padding added after data member 'c'
      upolygon/draw_polygon.c(37714): warning C4820: '<unnamed-tag>': '3' bytes padding added after data member 'c'
      upolygon/draw_polygon.c(37715): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'c'
      upolygon/draw_polygon.c(37716): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'c'
      upolygon/draw_polygon.c(37717): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'c'
      upolygon/draw_polygon.c(37719): warning C4820: '<unnamed-tag>': '7' bytes padding added after data member 'c'
      upolygon/draw_polygon.c(37721): warning C4100: 'is_complex': unreferenced formal parameter
      upolygon/draw_polygon.c(38161): warning C4100: 'ndim': unreferenced formal parameter
      upolygon/draw_polygon.c(38452): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(38454): warning C4127: conditional expression is constant
...
      upolygon/draw_polygon.c(39889): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(39890): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(40077): warning C4100: 'gen': unreferenced formal parameter
      upolygon/draw_polygon.c(40094): warning C4100: 'gen': unreferenced formal parameter
      upolygon/draw_polygon.c(40111): warning C4100: 'closing': unreferenced formal parameter
      upolygon/draw_polygon.c(40111): warning C4100: 'gen': unreferenced formal parameter
      upolygon/draw_polygon.c(40194): warning C4100: 'gen': unreferenced formal parameter
      upolygon/draw_polygon.c(40245): warning C4013: '_PyGen_Send' undefined; assuming extern returning int
      upolygon/draw_polygon.c(40245): warning C4047: '=': 'PyObject *' differs in levels of indirection from 'int'
      upolygon/draw_polygon.c(40250): warning C4047: '=': 'PyObject *' differs in levels of indirection from 'int'
      upolygon/draw_polygon.c(40334): warning C4047: '=': 'PyObject *' differs in levels of indirection from 'int'
      upolygon/draw_polygon.c(40351): warning C4100: 'arg': unreferenced formal parameter
      upolygon/draw_polygon.c(40625): warning C4100: 'context': unreferenced formal parameter
      upolygon/draw_polygon.c(40633): warning C4100: 'context': unreferenced formal parameter
      upolygon/draw_polygon.c(40653): warning C4100: 'context': unreferenced formal parameter
      upolygon/draw_polygon.c(40661): warning C4100: 'context': unreferenced formal parameter
      upolygon/draw_polygon.c(41136): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(41141): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(41146): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(41151): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(41156): warning C4127: conditional expression is constant
      upolygon/draw_polygon.c(41161): warning C4127: conditional expression is constant
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO "/LIBPATH:C:\Program Files\Python310\libs" "/LIBPATH:C:\Program Files\Python310" "/LIBPATH:C:\Program Files\Python310\PCbuild\amd64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\um\x64" /EXPORT:PyInit_draw_polygon build\temp.win-amd64-3.10\Release\upolygon/draw_polygon.obj /OUT:build\lib.win-amd64-3.10\draw_polygon.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\upolygon\draw_polygon.cp310-win_amd64.lib
         Creating library build\temp.win-amd64-3.10\Release\upolygon\draw_polygon.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\upolygon\draw_polygon.cp310-win_amd64.exp
      draw_polygon.obj : error LNK2001: unresolved external symbol _PyGen_Send
      build\lib.win-amd64-3.10\draw_polygon.cp310-win_amd64.pyd : fatal error LNK1120: 1 unresolved externals
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\link.exe' failed with exit code 1120
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
?-> upolygon

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

C:\Windows\system32>

darwin-upolygon-error-23MAR22

@simedw
Copy link
Contributor

simedw commented Aug 12, 2022

Sorry for the late reply, but this should now be resolved as we have updated upolygon to support 3.10.

Let me know if you have any further issues.

@simedw simedw closed this as completed Aug 12, 2022
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

2 participants