Issue 21 in glumpy: missing __init__.py in text/ + dependency

12 views
Skip to first unread message

glu...@googlecode.com

unread,
Nov 6, 2012, 12:16:38 PM11/6/12
to Nicolas...@inria.fr
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 21 by thibault...@gmail.com: missing __init__.py in text/ +
dependency
http://code.google.com/p/glumpy/issues/detail?id=21

What steps will reproduce the problem?

0. Download and install glumpy from git.

1. import glumpy
----> 1 import numpy, glumpy

/usr/lib/python2.7/site-packages/glumpy/__init__.py in <module>()
37 from trackball import Trackball
38 from graphics import VertexBuffer
---> 39 from text import Label
40
41 from version import version as __version__

ImportError: No module named text

2. Try and add __init__.py with:
from label import Label

Gives:
/usr/lib/python2.7/site-packages/glumpy/text/font.py in <module>()
31 import os
32 import numpy as np
---> 33 from freetype import *
34 from glumpy.text.atlas import Atlas
35 from glumpy.text.glyph import Glyph

ImportError: No module named freetype

Is there a new dependency on freetype-py ?

Thanks!

glu...@googlecode.com

unread,
Nov 6, 2012, 12:17:38 PM11/6/12
to Nicolas...@inria.fr

Comment #1 on issue 21 by thibault...@gmail.com: missing __init__.py in
(looks like yes, installing it fixes the issue)

glu...@googlecode.com

unread,
Nov 7, 2012, 1:36:54 AM11/7/12
to Nicolas...@inria.fr
Updates:
Status: Fixed

Comment #2 on issue 21 by Nicolas...@gmail.com: missing __init__.py in
You're right. Text is a bit experimental and was not supposed to be loaded
from the main glumpy. I will remove the import temporarily until it's
ready. It's mainly a translation of another project (freetype-gl).

As you have guessed, freetype-py is necessary to load fonts and they are
mainly ctypes bindings for the freetype library.

Thanks for the report.

Reply all
Reply to author
Forward
0 new messages