-
Notifications
You must be signed in to change notification settings - Fork 88
pip source installation fails when using a venv + mingw #332
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
Comments
Hi, I just tried this on windows 11 with visual studio 2022:
And it worked. I cannot reproduce your issue. However, I see that you are compiling with x86_64-w64-mingw32. I do not support this for python bindings. Please compile with msvc |
No I am not. This is weird. I'm using normal pip Python3.12 distro for Windows. I have perl installed, so I have no idea why or what is trying to access the Perl provided compiler and linker, [215/215] C:\WINDOWS\system32\cmd.exe /C "cd . && C:\lang\perl\c\bin\c++.exe -O3 -DNDEBUG -shared -o _imgui_bundle.cp312-win_amd64.pyd -Wl,--major-image-version,0,--minor-image-version,0 CMakeFiles/_imgui_bundle.dir/external/bindings_generation/cpp/module.cpp.obj
CMakeFiles/_imgui_bundle.dir/external/bindings_generation/cpp/pybind_imgui_bundle.cpp.obj
CMakeFiles/_imgui_bundle.dir/external/imgui/bindings/pybind_imgui_backends.cpp.obj C
MakeFiles/_imgui_bundle.dir/external/imgui/bindings/pybind_imgui.cpp.obj
CMakeFiles/_imgui_bundle.dir/external/imgui/bindings/pybind_imgui_test_engine.cpp.obj
CMakeFiles/_imgui_bundle.dir/external/imgui/bindings/pybind_imgui_internal.cpp.obj
CMakeFiles/_imgui_bundle.dir/external/hello_imgui/bindings/pybind_hello_imgui.cpp.obj
CMakeFiles/_imgui_bundle.dir/external/ImCoolBar/bindings/pybind_imcoolbar.cpp.obj
CMakeFiles/_imgui_bundle.dir/external/ImFileDialog/bindings/pybind_im_file_dialog.cpp.obj
CMakeFiles/_imgui_bundle.dir/external/imgui-command-palette/bindings/pybind_imgui_command_palette.cpp.obj
CMakeFiles/_imgui_bundle.dir/external/imgui-knobs/bindings/pybind_imgui_knobs.cpp.obj
CMakeFiles/_imgui_bundle.dir/external/imgui-node-editor/bindings/pybind_imgui_node_editor.cpp.obj
CMakeFiles/_imgui_bundle.dir/external/imgui_md/bindings/pybind_imgui_md.cpp.obj
CMakeFiles/_imgui_bundle.dir/external/imgui_tex_inspect/bindings/pybind_imgui_tex_inspect.cpp.obj
CMakeFiles/_imgui_bundle.dir/external/imgui_toggle/bindings/pybind_imgui_toggle.cpp.obj
CMakeFiles/_imgui_bundle.dir/external/ImGuiColorTextEdit/bindings/pybind_imgui_color_text_edit.cpp.obj
CMakeFiles/_imgui_bundle.dir/external/ImGuizmo/bindings/pybind_imguizmo.cpp.obj
CMakeFiles/_imgui_bundle.dir/external/immapp/bindings/pybind_immapp_cpp.cpp.obj
CMakeFiles/_imgui_bundle.dir/external/immvision/bindings/pybind_immvision.cpp.obj
CMakeFiles/_imgui_bundle.dir/external/implot/bindings/pybind_implot.cpp.obj
CMakeFiles/_imgui_bundle.dir/external/implot/bindings/pybind_implot_internal.cpp.obj
CMakeFiles/_imgui_bundle.dir/external/implot3d/bindings/pybind_implot3d.cpp.obj
CMakeFiles/_imgui_bundle.dir/external/implot3d/bindings/pybind_implot3d_internal.cpp.obj
CMakeFiles/_imgui_bundle.dir/external/imspinner/bindings/pybind_imspinner.cpp.obj
CMakeFiles/_imgui_bundle.dir/external/portable_file_dialogs/bindings/pybind_portable_file_dialogs.cpp.obj
CMakeFiles/_imgui_bundle.dir/external/nanovg/bindings/pybind_nanovg.cpp.obj
-LC:/lang/Python312/libs libnanobind-static.a
-lopengl32 C:/lang/Python312/libs/python312.lib
external/libimgui_node_editor.a
external/libimgui_md.a
external/immapp/immapp/libimmapp.a
external/libimgui_node_editor.a
external/libimgui_md.a
external/immapp/immapp/libimmapp.a
external/libimgui_pywrappers.a
external/libimplot3d.a
external/libimguizmo.a
external/libimgui_tex_inspect.a
external/libnvg_imgui.a
external/nanovg/nanovg/libnanovg.a
external/libimgui_knobs.a
external/libimspinner.a
external/libimgui_toggle.a
external/libimgui_command_palette.a
external/libimcoolbar.a
external/ImGuiColorTextEdit/libimgui_color_text_edit.a
external/libimplot.a
external/libim_file_dialog.a
external/hello_imgui/hello_imgui/src/hello_imgui/libhello_imgui.a
external/hello_imgui/hello_imgui/src/hello_imgui/libstb_hello_imgui.a
external/glfw/glfw/src/libglfw3dll.a
external/hello_imgui/hello_imgui/src/hello_imgui/libglad.a -lopengl32
external/libimgui.a
external/hello_imgui/hello_imgui/src/hello_imgui/libimgui_test_engine.a
external/libimgui.a
external/hello_imgui/hello_imgui/src/hello_imgui/libimgui_test_engine.a -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && cd ." Must be something wrong in the CMakeFiles or Compiler env variables... I didn't run this from the Developer Environment (Powershell) so maybe it has trouble finding a compiler and just used anything in the path. |
Did you try to remove C:\lang\perl\c\bin from your PATH prior to running pip install |
Just ran into this and removed MSYS2/MinGW related paths from PATH, can confirm it compiles cleanly now with msvc. |
Uh oh!
There was an error while loading. Please reload this page.
Followed the installation instructions for install from source, and (obviously) would like to use a
venv
(via venvlink or uv) to compartmentalize the installation.The compile stage then fails, as it is trying to start a subprocess (wich of course doesn't know about my venv.)
Version & Platform
Version
: Using a git clonePlatform
: Windows-11 ProLanguage
: Python 3.12.9 or C++17 ?Compiler
: MSVS 2022, MSVC 2019platform backend
: ❓rendering backend
Vulkan or DirectXHowever,
pip install imgui-bundle
worked.So what's the difference?
The text was updated successfully, but these errors were encountered: