Tc is python interface for Tokyo Cabinet, supporting Table DB feature. I got an "NameError: global name 'debian' is not defined" when "sudo easy_install tc-0.7.2". I managed to get the library instlled as follow:
1) Download and uzip the package. The download address is http://pypi.python.org/packages/source/t/tc/tc-0.7.2.tar.gz .
2) Edit setup.py, and comment out the following lines:
try:
shell_cmd('which dpkg-buildpackage')
self.cmdclass['debian'] = debian
except IOError:
pass
3) Build and install tc:
python setup.py build
python setup.py install
1) Download and uzip the package. The download address is http://pypi.python.org/packages/source/t/tc/tc-0.7.2.tar.gz .
2) Edit setup.py, and comment out the following lines:
try:
shell_cmd('which dpkg-buildpackage')
self.cmdclass['debian'] = debian
except IOError:
pass
3) Build and install tc:
python setup.py build
python setup.py install
Comments