podgorskiy / bimpy Goto Github PK
View Code? Open in Web Editor NEWimgui for python
Home Page: https://podgorskiy.github.io/bimpy/
License: MIT License
imgui for python
Home Page: https://podgorskiy.github.io/bimpy/
License: MIT License
when running python setup.py install
on window10 with python 3.7 and 3.8 with pip 10.0 and 20.2 I get the following error:
Traceback (most recent call last):
File "setup.py", line 22, in <module>
from gl3w import gl3w_gen
ImportError: cannot import name 'gl3w_gen' from 'gl3w' (unknown location)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "setup.py", line 25, in <module>
import gl3w_gen
ModuleNotFoundError: No module named 'gl3w_gen'
Hello
Current bundled version of gl3w fails to download headers from Kronos website, it ends with 403 error.
Actual version of gl3w has a fix for that (added headers={'User-Agent': 'Mozilla/5.0'} for the urllib2.Request instead of plain string url)
Thanks
How to specify a Column group max size?
In example:
bp.columns(4, "mycolumns")
Is it possible to specify specific column size after writing bp.next_column()
?
And how do I remove the auto-resize feature?
import bimpy
ctx = bimpy.Context()
ctx.init(1024, 768, "very dummy text editor")
str = bimpy.String()
f = bimpy.Float()
while(not ctx.should_close()):
with ctx:
bimpy.begin("dummy edior")
bimpy.text("type your text:")
typing = bimpy.input_text_multiline("urls", str, 1000)
if typing:
print(str.value)
if you type very quick, program crashes with no error and exit code -1073741819 (0xC0000005)
DeprecationWarning: an integer is required (got type _bimpy.Condition). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
bimpy.set_next_window_pos(bimpy.Vec2(0, 0), bimpy.Condition.Once)
I get this warning when trying to set the window position, size, or calling begin.
Currently, if run on a headless linux machine, it results in a segmentation fault.
Should throw an exception with a comment about the problem.
A silent crash creates a lot of confusion.
podgorskiy/ALAE#25
podgorskiy/ALAE#22
podgorskiy/ALAE#13
podgorskiy/ALAE#12
Hello, i can't install Bimpy. My error.
ERROR: Failed building wheel for bimpy`
using pip install bimpy
Hi,
I've recently discovered this awesome project, cheers!
Wanted to ask, seeing as imgui is now at version v1.84.2 -
https://github.com/ocornut/imgui/releases
Would it be possible to update bimpy to use the latest version?
Thanks,
Eli
Firstly, thanks for creating Bimpy. I am enjoying working with it, especially because how simple you've made it to work with images. I am trying bimpy with Python 3.8 and get the following warning:
bimpy_minimal.py:10: DeprecationWarning: an integer is required (got type _bimpy.Condition). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
bimpy.set_next_window_pos(bimpy.Vec2(20, 20), bimpy.Condition.Once)
bimpy_minimal.py:11: DeprecationWarning: an integer is required (got type _bimpy.WindowFlags). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
bimpy.begin("Hello World")
Here is what bimpy_minimal.py looks like:
import bimpy
ctx = bimpy.Context()
ctx.init(1200,768, "Hello bimpy!")
while(not ctx.should_close()):
with ctx:
# bimpy.themes.set_light_theme()
bimpy.set_next_window_pos(bimpy.Vec2(20, 20), bimpy.Condition.Once)
bimpy.begin("Hello World")
bimpy.end()
Combining flags doesn't seem possible since each flag is a class where or operator seems to fail bimpy.begin("Hi", flags=bimpy.WindowFlags.AlwaysAutoResize | bimpy.WindowFlags.NoTitleBar)
is there another way to do this?
Loving this extension of DearImGui! I have a need for Docking though, so I've forked the repository to https://github.com/temportalflux/bimpy/tree/docking and added docking myself. I don't plan to maintain it in the long term, and its not ready for PR, but if/when y'all want to integrate docking either on master when docking gets merged in DearImGui or in your own docking branch, you're more than welcome to pull in my changes.
I can't get bimpy to pip install .... keep getting the following error:
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting bimpy
Using cached https://files.pythonhosted.org/packages/59/10/fa47d72afbea9205804b96f3f13f56f6da0297837c05305d44776c3ebdf8/bimpy-0.1.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "/tmp/pip-install-tl2fmrev/bimpy/setup.py", line 47, in <module>
from libs.gl3w import gl3w_gen
ImportError: cannot import name 'gl3w_gen' from 'libs.gl3w' (unknown location)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-tl2fmrev/bimpy/setup.py", line 50, in <module>
import gl3w_gen
ModuleNotFoundError: No module named 'gl3w_gen'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-tl2fmrev/bimpy/```
I even built gl3w from source but still no good as bumpy is supposed to ship with it's own gl3w built in.
Ay ideas?
Python 3.7.3 (also tried 3.9.0) and Raspbian version: 10.8
how to show chinese or japanese with your package ?
Nice project!
bp.input_text('string', str, 256) should be bp.input_text('string', s, 256)
import bimpy as bp
ctx = bp.Context()
ctx.init(600, 600, "Hello")
s = bp.String()
f = bp.Float()
while not ctx.should_close():
with ctx:
bp.text("Hello, world!")
if bp.button("OK"):
print(s.value)
bp.input_text('string', str, 256)
bp.slider_float("float", f, 0, 1)
Does anyone know how to ID an input_text. By that I mean: For example you have a login page. How would it be possible to get the value of the username & the password?
it is very weird. There is a function bimpy.add_font_from_file_ttf ("font", size)
but there is no function to use the font something like: bimpy.push_font(font)
I would like to scale depending on monitor DPI.
I think this can be done by providing access to glfwGetMonitorContentScale()
function in the API.
Thanks
Traceback (most recent call last):
File "imu_test.py", line 5, in <module>
ctx.init(600, 600, "Hello")
RuntimeError: GLFW initialization failed (glfwInit() failed).
This may happen if you try to run bimpy on a headless machine
I'm pretty sure doing this from my raspberry pi desktop means it's not headless ;)
Hi,
first, thanks for mantaining Python bindings for ImGui!
I noticed this line on bimpy readme file:
bimpy already has all necessary functionality for window/OpenGL context creation and hides those details from the user.
But I can't find examples anywhere. It would be awesome to have a simple "OpenGL Bimpy hello world", maybe just a triangle that you can switch its color with a color picker.
I'm already trying to implement this, but my triangles are not being rendered. I suppose I should just put the rendering code inside bimpy context loop like this:
while not ctx.should_close():
ctx.new_frame()
glClearColor(0.0, 0.0, 0.0, 1.0)
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT)
glDrawElements(GL_TRIANGLES, 6, GL_UNSIGNED_INT, None)
ctx.render()
I got no errors, just an empty window, although changing the color in glClearColor
properly changes the window background color.
Any pointers are welcome.
Thanks!
Is there any way to disable maximize, restore, and resize?
╰─➤ sudo pip3 install bimpy 1 ↵
The directory '/home/quinn/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/quinn/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting bimpy
Downloading bimpy-0.0.6.tar.gz (799kB)
100% |████████████████████████████████| 808kB 1.7MB/s
Installing collected packages: bimpy
Running setup.py install for bimpy ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-9f792sty/bimpy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-k6mjik9k-record/install-record.txt --single-version-externally-managed --compile:
Reusing glcorearb.h from gl3w/include/GL...
Parsing glcorearb.h header...
Generating gl3w.h in gl3w/include/GL...
Generating gl3w.c in gl3w/src...
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.5
creating build/lib.linux-x86_64-3.5/bimpy
copying bimpy/themes.py -> build/lib.linux-x86_64-3.5/bimpy
copying bimpy/__init__.py -> build/lib.linux-x86_64-3.5/bimpy
running build_ext
building '_bimpy' extension
creating build/temp.linux-x86_64-3.5
creating build/temp.linux-x86_64-3.5/glfw
creating build/temp.linux-x86_64-3.5/glfw/src
creating build/temp.linux-x86_64-3.5/gl3w
creating build/temp.linux-x86_64-3.5/gl3w/src
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/context.c -o build/temp.linux-x86_64-3.5/glfw/src/context.o
In file included from glfw/src/x11_platform.h:157:0,
from glfw/src/internal.h:186,
from glfw/src/context.c:28:
glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
typedef void (*OSMESAproc)();
^
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/init.c -o build/temp.linux-x86_64-3.5/glfw/src/init.o
In file included from glfw/src/x11_platform.h:157:0,
from glfw/src/internal.h:186,
from glfw/src/init.c:28:
glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
typedef void (*OSMESAproc)();
^
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/input.c -o build/temp.linux-x86_64-3.5/glfw/src/input.o
In file included from glfw/src/x11_platform.h:157:0,
from glfw/src/internal.h:186,
from glfw/src/input.c:28:
glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
typedef void (*OSMESAproc)();
^
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/monitor.c -o build/temp.linux-x86_64-3.5/glfw/src/monitor.o
In file included from glfw/src/x11_platform.h:157:0,
from glfw/src/internal.h:186,
from glfw/src/monitor.c:28:
glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
typedef void (*OSMESAproc)();
^
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/vulkan.c -o build/temp.linux-x86_64-3.5/glfw/src/vulkan.o
In file included from glfw/src/x11_platform.h:157:0,
from glfw/src/internal.h:186,
from glfw/src/vulkan.c:28:
glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
typedef void (*OSMESAproc)();
^
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/window.c -o build/temp.linux-x86_64-3.5/glfw/src/window.o
In file included from glfw/src/x11_platform.h:157:0,
from glfw/src/internal.h:186,
from glfw/src/window.c:29:
glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
typedef void (*OSMESAproc)();
^
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/x11_init.c -o build/temp.linux-x86_64-3.5/glfw/src/x11_init.o
In file included from glfw/src/x11_platform.h:157:0,
from glfw/src/internal.h:186,
from glfw/src/x11_init.c:28:
glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
typedef void (*OSMESAproc)();
^
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/x11_monitor.c -o build/temp.linux-x86_64-3.5/glfw/src/x11_monitor.o
In file included from glfw/src/x11_platform.h:157:0,
from glfw/src/internal.h:186,
from glfw/src/x11_monitor.c:28:
glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
typedef void (*OSMESAproc)();
^
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/x11_window.c -o build/temp.linux-x86_64-3.5/glfw/src/x11_window.o
In file included from glfw/src/x11_platform.h:157:0,
from glfw/src/internal.h:186,
from glfw/src/x11_window.c:28:
glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
typedef void (*OSMESAproc)();
^
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/xkb_unicode.c -o build/temp.linux-x86_64-3.5/glfw/src/xkb_unicode.o
In file included from glfw/src/x11_platform.h:157:0,
from glfw/src/internal.h:186,
from glfw/src/xkb_unicode.c:28:
glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
typedef void (*OSMESAproc)();
^
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/posix_time.c -o build/temp.linux-x86_64-3.5/glfw/src/posix_time.o
In file included from glfw/src/x11_platform.h:157:0,
from glfw/src/internal.h:186,
from glfw/src/posix_time.c:28:
glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
typedef void (*OSMESAproc)();
^
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/posix_thread.c -o build/temp.linux-x86_64-3.5/glfw/src/posix_thread.o
In file included from glfw/src/x11_platform.h:157:0,
from glfw/src/internal.h:186,
from glfw/src/posix_thread.c:28:
glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
typedef void (*OSMESAproc)();
^
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/glx_context.c -o build/temp.linux-x86_64-3.5/glfw/src/glx_context.o
In file included from glfw/src/x11_platform.h:157:0,
from glfw/src/internal.h:186,
from glfw/src/glx_context.c:28:
glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
typedef void (*OSMESAproc)();
^
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/egl_context.c -o build/temp.linux-x86_64-3.5/glfw/src/egl_context.o
In file included from glfw/src/x11_platform.h:157:0,
from glfw/src/internal.h:186,
from glfw/src/egl_context.c:28:
glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
typedef void (*OSMESAproc)();
^
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/osmesa_context.c -o build/temp.linux-x86_64-3.5/glfw/src/osmesa_context.o
In file included from glfw/src/x11_platform.h:157:0,
from glfw/src/internal.h:186,
from glfw/src/osmesa_context.c:32:
glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
typedef void (*OSMESAproc)();
^
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/linux_joystick.c -o build/temp.linux-x86_64-3.5/glfw/src/linux_joystick.o
In file included from glfw/src/x11_platform.h:157:0,
from glfw/src/internal.h:186,
from glfw/src/linux_joystick.c:28:
glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
typedef void (*OSMESAproc)();
^
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c gl3w/src/gl3w.c -o build/temp.linux-x86_64-3.5/gl3w/src/gl3w.o
creating build/temp.linux-x86_64-3.5/imgui
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c imgui/imgui.cpp -o build/temp.linux-x86_64-3.5/imgui/imgui.o -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c imgui/imgui_demo.cpp -o build/temp.linux-x86_64-3.5/imgui/imgui_demo.o -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c imgui/imgui_draw.cpp -o build/temp.linux-x86_64-3.5/imgui/imgui_draw.o -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
imgui/imgui_draw.cpp: In function ‘bool ImFontAtlasBuildWithStbTruetype(ImFontAtlas*)’:
imgui/imgui_draw.cpp:92:54: warning: ‘spc.stbtt_pack_context::nodes’ may be used uninitialized in this function [-Wmaybe-uninitialized]
#define STBTT_free(x,u) ((void)(u), ImGui::MemFree(x))
^
imgui/imgui_draw.cpp:1452:24: note: ‘spc.stbtt_pack_context::nodes’ was declared here
stbtt_pack_context spc;
^
In file included from imgui/imgui_draw.cpp:100:0:
imgui/stb_truetype.h:3629:50: warning: ‘spc.stbtt_pack_context::padding’ may be used uninitialized in this function [-Wmaybe-uninitialized]
stbrp_coord pad = (stbrp_coord) spc->padding;
^
imgui/imgui_draw.cpp:1452:24: note: ‘spc.stbtt_pack_context::padding’ was declared here
stbtt_pack_context spc;
^
In file included from imgui/imgui_draw.cpp:100:0:
imgui/stb_truetype.h:3652:60: warning: ‘spc.stbtt_pack_context::stride_in_bytes’ may be used uninitialized in this function [-Wmaybe-uninitialized]
stbtt__h_prefilter(spc->pixels + r->x + r->y*spc->stride_in_bytes,
^
imgui/imgui_draw.cpp:1452:24: note: ‘spc.stbtt_pack_context::stride_in_bytes’ was declared here
stbtt_pack_context spc;
^
imgui/imgui_draw.cpp:1522:70: warning: ‘spc.stbtt_pack_context::pack_info’ may be used uninitialized in this function [-Wmaybe-uninitialized]
stbrp_pack_rects((stbrp_context*)spc.pack_info, tmp.Rects, n);
^
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c bimpy.cpp -o build/temp.linux-x86_64-3.5/bimpy.o -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
bimpy.cpp: In lambda function:
bimpy.cpp:529:54: error: format not a string literal and no format arguments [-Werror=format-security]
m.def("text", [](const char* text){ ImGui::Text(text); });
^
bimpy.cpp: In lambda function:
bimpy.cpp:530:93: error: format not a string literal and no format arguments [-Werror=format-security]
m.def("text_colored", [](const ImVec4& col, const char* text){ ImGui::TextColored(col, text); });
^
bimpy.cpp: In lambda function:
bimpy.cpp:531:71: error: format not a string literal and no format arguments [-Werror=format-security]
m.def("text_disabled", [](const char* text){ ImGui::TextDisabled(text); });
^
bimpy.cpp: In lambda function:
bimpy.cpp:532:69: error: format not a string literal and no format arguments [-Werror=format-security]
m.def("text_wrapped", [](const char* text){ ImGui::TextWrapped(text); });
^
bimpy.cpp: In lambda function:
bimpy.cpp:533:91: error: format not a string literal and no format arguments [-Werror=format-security]
m.def("label_text", [](const char* label, const char* text){ ImGui::LabelText(label, text); });
^
bimpy.cpp: In lambda function:
bimpy.cpp:534:67: error: format not a string literal and no format arguments [-Werror=format-security]
m.def("bullet_text", [](const char* text){ ImGui::BulletText(text); });
^
cc1plus: some warnings being treated as errors
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-9f792sty/bimpy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-k6mjik9k-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-9f792sty/bimpy/
You are using pip version 9.0.1, however version 9.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
I could not install bimpy using conda and pip so I tried to build it from source code.
On running:
python setup.py install
How to reproduce:
git submodule update --init
python3 setup.py install
If possible, pass GLFW args (like GLFW_TRANSPARENT_FRAMEBUFFER, etc) on .init params
eg.: cpx.init(100,100,"name", GLFW_FLOATING | GLFW_HOVERED)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.