ImportError: No module named Cheetah.Template

osx macport install

mac:/ david$ gnuradio-companion
Xlib: extension “RANDR” missing on display
“/tmp/launch-GQssJJ/org.x:0”.
Traceback (most recent call last):
File “/opt/local/bin/gnuradio-companion”, line 48, in
from gnuradio.grc.python.Platform import Platform
File
“/opt/local/lib/python2.6/site-packages/gnuradio/grc/python/Platform.py”,
line 22, in
from … base.Platform import Platform as _Platform
File
“/opt/local/lib/python2.6/site-packages/gnuradio/grc/base/Platform.py”,
line 26, in
from Block import Block as _Block
File
“/opt/local/lib/python2.6/site-packages/gnuradio/grc/base/Block.py”,
line 23, in
from Cheetah.Template import Template
ImportError: No module named Cheetah.Template
mac:/ david$

anyideas ?

Have you installed the python-cheetah library?
http://www.macports.org/ports.php?by=library&substr=py26-cheetah

Never used macports before. . .

On Thu, Jun 16, 2011 at 10:28 AM, Colby B. [email protected]
wrote:

Have you installed the python-cheetah library?
http://www.macports.org/ports.php?by=library&substr=py26-cheetah

Never used macports before. . .

You can install the python cheetah library within macports using
(assuming you’re using python 2.6):

sudo port install py26-cheetah

On 06/16/2011 08:46 AM, dave k wrote:

File “/opt/local/lib/python2.6/site-packages/gnuradio/grc/base/Platform.py”,
line 26, in
from Block import Block as _Block
File “/opt/local/lib/python2.6/site-packages/gnuradio/grc/base/Block.py”,
line 23, in
from Cheetah.Template import Template
ImportError: No module named Cheetah.Template
mac:/ david$

anyideas ?

Did you install cheetah templates? Is Cheetah in your PYTHONPATH, etc…

You may need something like this in your bashrc:
export
PYTHONPATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages:${PYTHONPATH}

-Josh

If gnuradio-companion is installed by MacPorts (e.g.: “sudo port install
gnuradio-companion”, or “sudo port install gnuradio”), then Cheetah
should also be installed – and with the correct Python version to work
with GNU Radio. One can see this via “port installed | grep cheetah”
and then verify that the correct Python version is installed (in this
case, 2.6). - MLD

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs