Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@hookdump
Created February 20, 2015 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hookdump/2bbbb28cfaeefa9b95b8 to your computer and use it in GitHub Desktop.
Save hookdump/2bbbb28cfaeefa9b95b8 to your computer and use it in GitHub Desktop.
pftontstash issue
~/pyglui(master ✔) sudo python setup.py install
generating glew.pxd based on '/usr/include/GL/glew.h'
missing cimport in module 'pyglui.cygl': pyglui/ui.pyx
missing cimport in module 'pyglui.cygl': pyglui/graph.pyx
Compiling pyglui/ui.pyx because it changed.
Compiling pyglui/graph.pyx because it changed.
Compiling pyglui/cygl/utils.pyx because it changed.
Compiling pyglui/cygl/shader.pyx because it changed.
Compiling pyglui/pyfontstash/fontstash.pyx because it changed.
Cythonizing pyglui/cygl/shader.pyx
Cythonizing pyglui/cygl/utils.pyx
Cythonizing pyglui/graph.pyx
Cythonizing pyglui/pyfontstash/fontstash.pyx
Cythonizing pyglui/ui.pyx
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/pyglui
creating build/lib.linux-x86_64-2.7/pyglui/cygl
copying pyglui/cygl/__init__.py -> build/lib.linux-x86_64-2.7/pyglui/cygl
creating build/lib.linux-x86_64-2.7/pyglui/pyfontstash
copying pyglui/pyfontstash/__init__.py -> build/lib.linux-x86_64-2.7/pyglui/pyfontstash
copying pyglui/__init__.py -> build/lib.linux-x86_64-2.7/pyglui
copying pyglui/Roboto-Regular.ttf -> build/lib.linux-x86_64-2.7/pyglui
copying pyglui/OpenSans-Regular.ttf -> build/lib.linux-x86_64-2.7/pyglui
running build_ext
building 'pyglui.ui' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/pyglui
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Ipyglui/cygl/ -I. -I/usr/include/GL -Ipyglui/pyfontstash/fontstash/src -I/usr/include/python2.7 -c pyglui/ui.c -o build/temp.linux-x86_64-2.7/pyglui/ui.o -Wno-strict-aliasing -O2
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/pyglui/ui.o -lGLEW -lGL -o build/lib.linux-x86_64-2.7/pyglui/ui.so
building 'pyglui.graph' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Ipyglui/cygl/ -I. -I/usr/include/GL -Ipyglui/pyfontstash/fontstash/src -I/usr/include/python2.7 -c pyglui/graph.c -o build/temp.linux-x86_64-2.7/pyglui/graph.o -Wno-strict-aliasing -O2
pyglui/graph.c: In function ‘__pyx_pw_6pyglui_5graph_10Line_Graph_9draw’:
pyglui/graph.c:443:40: warning: ‘__pyx_v_i’ may be used uninitialized in this function [-Wmaybe-uninitialized]
#define unlikely(x) __builtin_expect(!!(x), 0)
^
pyglui/graph.c:5727:7: note: ‘__pyx_v_i’ was declared here
int __pyx_v_i;
^
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/pyglui/graph.o -lGLEW -lGL -o build/lib.linux-x86_64-2.7/pyglui/graph.so
building 'pyglui.cygl.utils' extension
creating build/temp.linux-x86_64-2.7/pyglui/cygl
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Ipyglui/cygl/ -I. -I/usr/include/GL -I/usr/include/python2.7 -c pyglui/cygl/utils.c -o build/temp.linux-x86_64-2.7/pyglui/cygl/utils.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/pyglui/cygl/utils.o -lGLEW -lGL -o build/lib.linux-x86_64-2.7/pyglui/cygl/utils.so
building 'pyglui.cygl.shader' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Ipyglui/cygl/ -I. -I/usr/include/GL -I/usr/include/python2.7 -c pyglui/cygl/shader.c -o build/temp.linux-x86_64-2.7/pyglui/cygl/shader.o -Wno-strict-aliasing -O2
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/pyglui/cygl/shader.o -lGLEW -lGL -o build/lib.linux-x86_64-2.7/pyglui/cygl/shader.so
building 'pyglui.pyfontstash.fontstash' extension
creating build/temp.linux-x86_64-2.7/pyglui/pyfontstash
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Ipyglui/cygl/ -I. -I/usr/include/GL -Ipyglui/pyfontstash/fontstash/src -I/usr/include/python2.7 -c pyglui/pyfontstash/fontstash.c -o build/temp.linux-x86_64-2.7/pyglui/pyfontstash/fontstash.o -Wno-strict-aliasing -O2 -D FONTSTASH_IMPLEMENTATION -D GLFONTSTASH_IMPLEMENTATION
In file included from pyglui/pyfontstash/fontstash/src/fontstash.h:245:0,
from pyglui/pyfontstash/fontstash.c:277:
pyglui/pyfontstash/fontstash/src/stb_truetype.h: In function ‘stbtt_FindGlyphIndex’:
pyglui/pyfontstash/fontstash/src/stb_truetype.h:918:23: warning: variable ‘start’ set but not used [-Wunused-but-set-variable]
stbtt_uint16 start, end;
^
pyglui/pyfontstash/fontstash/src/stb_truetype.h:901:41: warning: variable ‘end’ set but not used [-Wunused-but-set-variable]
stbtt_uint16 item, offset, start, end;
^
In file included from pyglui/pyfontstash/fontstash.c:277:0:
pyglui/pyfontstash/fontstash/src/fontstash.h: In function ‘fonsAddFont’:
pyglui/pyfontstash/fontstash/src/fontstash.h:865:7: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(data, 1, dataSize, fp);
^
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/pyglui/pyfontstash/fontstash.o -lGLEW -lGL -o build/lib.linux-x86_64-2.7/pyglui/pyfontstash/fontstash.so
running install_lib
copying build/lib.linux-x86_64-2.7/pyglui/Roboto-Regular.ttf -> /usr/local/lib/python2.7/dist-packages/pyglui
copying build/lib.linux-x86_64-2.7/pyglui/pyfontstash/fontstash.so -> /usr/local/lib/python2.7/dist-packages/pyglui/pyfontstash
copying build/lib.linux-x86_64-2.7/pyglui/pyfontstash/__init__.py -> /usr/local/lib/python2.7/dist-packages/pyglui/pyfontstash
copying build/lib.linux-x86_64-2.7/pyglui/cygl/utils.so -> /usr/local/lib/python2.7/dist-packages/pyglui/cygl
copying build/lib.linux-x86_64-2.7/pyglui/cygl/__init__.py -> /usr/local/lib/python2.7/dist-packages/pyglui/cygl
copying build/lib.linux-x86_64-2.7/pyglui/cygl/shader.so -> /usr/local/lib/python2.7/dist-packages/pyglui/cygl
copying build/lib.linux-x86_64-2.7/pyglui/graph.so -> /usr/local/lib/python2.7/dist-packages/pyglui
copying build/lib.linux-x86_64-2.7/pyglui/OpenSans-Regular.ttf -> /usr/local/lib/python2.7/dist-packages/pyglui
copying build/lib.linux-x86_64-2.7/pyglui/__init__.py -> /usr/local/lib/python2.7/dist-packages/pyglui
copying build/lib.linux-x86_64-2.7/pyglui/ui.so -> /usr/local/lib/python2.7/dist-packages/pyglui
byte-compiling /usr/local/lib/python2.7/dist-packages/pyglui/pyfontstash/__init__.py to __init__.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/pyglui/cygl/__init__.py to __init__.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/pyglui/__init__.py to __init__.pyc
running install_egg_info
Removing /usr/local/lib/python2.7/dist-packages/pyglui-0.1.egg-info
Writing /usr/local/lib/python2.7/dist-packages/pyglui-0.1.egg-info
~/pyglui(master ✔) ls
build example LICENSE pyglui README.md setup.py
~/pyglui(master ✔) python example/example.py
Traceback (most recent call last):
File "example/example.py", line 16, in <module>
import pyfontstash as fs
ImportError: No module named pyfontstash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment