You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docstringFormat.cpp
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\include\optional(12): warning STL4038: The contents of <optional> are available only with C++17 or later.
C:\Users\eisenmenger\AppData\Local\Temp\pip-build-env-jew96kwp\overlay\Lib\site-packages\pybind11\include\pybind11\cast.h(446): error C2027: Verwendung des undefinierten Typs "_frame"
C:\Users\eisenmenger\AppData\Local\Programs\Python\Python312\include\pytypedefs.h(22): note: Siehe Deklaration von "_frame"
C:\Users\eisenmenger\AppData\Local\Temp\pip-build-env-jew96kwp\overlay\Lib\site-packages\pybind11\include\pybind11\cast.h(448): error C2027: Verwendung des undefinierten Typs "_frame"
C:\Users\eisenmenger\AppData\Local\Programs\Python\Python312\include\pytypedefs.h(22): note: Siehe Deklaration von "_frame"
C:\Users\eisenmenger\AppData\Local\Temp\pip-build-env-jew96kwp\overlay\Lib\site-packages\pybind11\include\pybind11\cast.h(449): error C2027: Verwendung des undefinierten Typs "_frame"
C:\Users\eisenmenger\AppData\Local\Programs\Python\Python312\include\pytypedefs.h(22): note: Siehe Deklaration von "_frame"
C:\Users\eisenmenger\AppData\Local\Temp\pip-build-env-jew96kwp\overlay\Lib\site-packages\pybind11\include\pybind11/pybind11.h(2291): error C2039: "frame" ist kein Member von "_ts".
C:\Users\eisenmenger\AppData\Local\Programs\Python\Python312\include\cpython/pystate.h(115): note: Siehe Deklaration von "_ts"
C:\Users\eisenmenger\AppData\Local\Temp\pip-build-env-jew96kwp\overlay\Lib\site-packages\pybind11\include\pybind11/pybind11.h(2292): error C2027: Verwendung des undefinierten Typs "_frame"
C:\Users\eisenmenger\AppData\Local\Programs\Python\Python312\include\pytypedefs.h(22): note: Siehe Deklaration von "_frame"
C:\Users\eisenmenger\AppData\Local\Temp\pip-build-env-jew96kwp\overlay\Lib\site-packages\pybind11\include\pybind11/pybind11.h(2293): error C2027: Verwendung des undefinierten Typs "_frame"
C:\Users\eisenmenger\AppData\Local\Programs\Python\Python312\include\pytypedefs.h(22): note: Siehe Deklaration von "_frame"
C:\Users\eisenmenger\AppData\Local\Temp\pip-build-env-jew96kwp\overlay\Lib\site-packages\pybind11\include\pybind11/pybind11.h(2296): error C2027: Verwendung des undefinierten Typs "_frame"
C:\Users\eisenmenger\AppData\Local\Programs\Python\Python312\include\pytypedefs.h(22): note: Siehe Deklaration von "_frame"
C:\Users\eisenmenger\AppData\Local\Temp\pip-build-env-jew96kwp\overlay\Lib\site-packages\pybind11\include\pybind11/pybind11.h(2296): error C2027: Verwendung des undefinierten Typs "_frame"
C:\Users\eisenmenger\AppData\Local\Programs\Python\Python312\include\pytypedefs.h(22): note: Siehe Deklaration von "_frame"
C:\Users\eisenmenger\AppData\Local\Temp\pip-build-env-jew96kwp\overlay\Lib\site-packages\pybind11\include\pybind11/pybind11.h(2295): error C2660: "PyDict_GetItem": Funktion akzeptiert keine 1 Argumente
C:\Users\eisenmenger\AppData\Local\Programs\Python\Python312\include\dictobject.h(22): note: Siehe Deklaration von "PyDict_GetItem"
C:\Users\eisenmenger\AppData\Local\Temp\pip-build-env-jew96kwp\overlay\Lib\site-packages\pybind11\include\pybind11/pybind11.h(2295): note:
C:\Users\eisenmenger\AppData\Local\Programs\Python\Python312\include\pytypedefs.h(22): note: Siehe Deklaration von "_frame"
C:\Users\eisenmenger\AppData\Local\Temp\pip-build-env-jew96kwp\overlay\Lib\site-packages\pybind11\include\pybind11/pybind11.h(2295): error C2660: "PyDict_GetItem": Funktion akzeptiert keine 1 Argumente
C:\Users\eisenmenger\AppData\Local\Programs\Python\Python312\include\dictobject.h(22): note: Siehe Deklaration von "PyDict_GetItem"
C:\Users\eisenmenger\AppData\Local\Temp\pip-build-env-jew96kwp\overlay\Lib\site-packages\pybind11\include\pybind11/pybind11.h(2295): note: bei Anpassung der Argumentliste "()"
error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.37.32822\\bin\\HostX86\\x86\\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for docstring-generator-ext
Failed to build docstring-generator-ext
ERROR: Could not build wheels for docstring-generator-ext, which is required to install pyproject.toml-based projects
setup.py
# Available at setup time due to pyproject.toml
import pathlib
from setuptools import setup
try:
from pybind11.setup_helpers import Pybind11Extension
except ImportError:
from setuptools import Extension as Pybind11Extension
version = "0.0.33"
HERE = pathlib.Path(file).parent
README = (HERE / "README.md").read_text()
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a package which works smoothly on linux/mac but doesn't build on windows.
Windows logs
PS C:\Users\eisenmenger\Source\Repos\docstring_generator_ext> py -m build -s * Creating venv isolated environment... * Installing packages in isolated environment... (pybind11~=2.6.1, setuptools>=42, wheel) * Getting build dependencies for sdist... running egg_info writing docstring_generator_ext.egg-info\PKG-INFO writing dependency_links to docstring_generator_ext.egg-info\dependency_links.txt writing requirements to docstring_generator_ext.egg-info\requires.txt writing top-level names to docstring_generator_ext.egg-info\top_level.txt reading manifest file 'docstring_generator_ext.egg-info\SOURCES.txt' writing manifest file 'docstring_generator_ext.egg-info\SOURCES.txt'running sdist
running egg_info
writing docstring_generator_ext.egg-info\PKG-INFO
writing dependency_links to docstring_generator_ext.egg-info\dependency_links.txt
writing requirements to docstring_generator_ext.egg-info\requires.txt
writing top-level names to docstring_generator_ext.egg-info\top_level.txt
reading manifest file 'docstring_generator_ext.egg-info\SOURCES.txt'
writing manifest file 'docstring_generator_ext.egg-info\SOURCES.txt'
running check
creating docstring_generator_ext-0.0.33
creating docstring_generator_ext-0.0.33\docstring_generator_ext.egg-info
creating docstring_generator_ext-0.0.33\src
copying files to docstring_generator_ext-0.0.33...
copying README.md -> docstring_generator_ext-0.0.33
copying docstring_generator_ext.egg-info\PKG-INFO -> docstring_generator_ext-0.0.33\docstring_generator_ext.egg-info
copying docstring_generator_ext.egg-info\SOURCES.txt -> docstring_generator_ext-0.0.33\docstring_generator_ext.egg-info
copying docstring_generator_ext.egg-info\dependency_links.txt -> docstring_generator_ext-0.0.33\docstring_generator_ext.egg-info
copying docstring_generator_ext.egg-info\not-zip-safe -> docstring_generator_ext-0.0.33\docstring_generator_ext.egg-info
copying docstring_generator_ext.egg-info\requires.txt -> docstring_generator_ext-0.0.33\docstring_generator_ext.egg-info
copying docstring_generator_ext.egg-info\top_level.txt -> docstring_generator_ext-0.0.33\docstring_generator_ext.egg-info
copying src\docstringFormat.cpp -> docstring_generator_ext-0.0.33\src
Writing docstring_generator_ext-0.0.33\setup.cfg
Creating tar archive
removing 'docstring_generator_ext-0.0.33' (and everything under it)
Successfully built docstring_generator_ext-0.0.33.tar.gz
PS C:\Users\eisenmenger\Source\Repos\docstring_generator_ext> cd .\dist
PS C:\Users\eisenmenger\Source\Repos\docstring_generator_ext\dist> pip3.12.exe install .\docstring_generator_ext-0.0.33.tar.gz
Processing c:\users\eisenmenger\source\repos\docstring_generator_ext\dist\docstring_generator_ext-0.0.33.tar.gz
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: docstring-generator-ext
Building wheel for docstring-generator-ext (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for docstring-generator-ext (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [31 lines of output]
running bdist_wheel
running build
running build_ext
building 'docstring_generator_ext' extension
creating build
creating build\temp.win32-cpython-312
creating build\temp.win32-cpython-312\Release
creating build\temp.win32-cpython-312\Release\src
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\bin\HostX86\x86\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD
-IC:\Users\eisenmenger\AppData\Local\Temp\pip-build-env-jew96kwp\overlay\Lib\site-packages\pybind11\include
-IC:\Users\eisenmenger\AppData\Local\Programs\Python\Python312\include
-IC:\Users\eisenmenger\AppData\Local\Programs\Python\Python312\Include "
-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\include"
"-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\ATLMFC\include"
"-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include"
"-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt"
"-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\um"
"-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared"
"-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt"
"-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\cppwinrt"
"-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um"
"-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\include"
"-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\ATLMFC\include"
"-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include"
"-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt"
"-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\um"
"-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared"
"-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt"
"-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\cppwinrt"
"-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um"
/EHsc
/Tpsrc/docstringFormat.cpp
/Fobuild\temp.win32-cpython-312\Release\src/docstringFormat.obj
/EHsc
/bigobj
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for docstring-generator-ext
Failed to build docstring-generator-ext
ERROR: Could not build wheels for docstring-generator-ext, which is required to install pyproject.toml-based projects
setup.py
# Available at setup time due to pyproject.toml import pathlib from setuptools import setup try: from pybind11.setup_helpers import Pybind11Extension except ImportError: from setuptools import Extension as Pybind11Extensionversion = "0.0.33"
HERE = pathlib.Path(file).parent
README = (HERE / "README.md").read_text()
ext_modules = [
Pybind11Extension(
"docstring_generator_ext",
[
"src/docstringFormat.cpp",
],
),
]
setup(
name="docstring_generator_ext",
version=version,
url="https://github.com/FelixTheC/docstring_generator",
license="MIT",
author="FelixTheC",
author_email="[email protected]",
description="Generate Docstrings with type-hint information",
long_description=README,
long_description_content_type="text/markdown",
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Topic :: Utilities",
"Topic :: Software Development :: Documentation",
"Typing :: Typed",
],
ext_modules=ext_modules,
extras_require={"test": "pytest"},
zip_safe=False,
python_requires="<=3.12",
)
it is only one cpp file which can be found here can someone guide me in the right direction to solve this issue?
Beta Was this translation helpful? Give feedback.
All reactions