tokyo-python Installation Issues

35 views
Skip to first unread message

Matt Luongo

unread,
Jul 11, 2010, 11:40:13 PM7/11/10
to tokyo-python

I'm sorry to bother you about this, but I'm having some issues installing tokyo-python.

I've installed Tokyo Cabinet and the Tokyo Cabinet dev library (Ubuntu 10.04) and it seems to be fine. In fact, I can use other (less elegant) Tokyo wrappers.
However, I'd like to use this one- it has documentation, seems pretty Pythonic, and plent of people online seem happy with it.

I keep getting stuck, though, during installation. In a virtualenv directory, using bin/easy_install or bin/pip install, I get output like this.


matt@amalgam:~/$ bin/pip install tokyo-python
Downloading/unpacking tokyo-python
Downloading tokyo-python-0.6.0.tar.gz (142Kb): 142Kb downloaded
Running setup.py egg_info for package tokyo-python
Installing collected packages: tokyo-python
Running setup.py install for tokyo-python
building
'tokyo.cabinet' extension
gcc
-pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c src/cabinet.c -o build/temp.linux-x86_64-2.6/src/cabinet.o
In file included from src/cabinet.c:134:
src
/TDB.c: In function TDB_metasearch’:
src
/TDB.c:1129: warning: implicit declaration of function tctdbmetasearch
src
/TDB.c:1129: warning: assignment makes pointer from integer without a cast
src
/cabinet.c: In function init_cabinet’:
src
/cabinet.c:294: error: TDBITTOKEN undeclared (first use in this function)
src
/cabinet.c:294: error: (Each undeclared identifier is reported only once
src
/cabinet.c:294: error: for each function it appears in.)
src
/cabinet.c:295: error: TDBITQGRAM undeclared (first use in this function)
src
/cabinet.c:324: error: TDBQCFTSPH undeclared (first use in this function)
src
/cabinet.c:325: error: TDBQCFTSAND undeclared (first use in this function)
src
/cabinet.c:326: error: TDBQCFTSOR undeclared (first use in this function)
src
/cabinet.c:327: error: TDBQCFTSEX undeclared (first use in this function)
src
/cabinet.c:331: error: TDBMSUNION undeclared (first use in this function)
src
/cabinet.c:332: error: TDBMSISECT undeclared (first use in this function)
src
/cabinet.c:333: error: TDBMSDIFF undeclared (first use in this function)
error
: command 'gcc' failed with exit status 1
Complete output from command /home/matt/bin/python -c "import setuptools; __file__='/home/matt/build/tokyo-python/setup.py'; execfile('/home/matt/build/tokyo-python/setup.py')" install --single-version-externally-managed --record /tmp/pip-ZqvLvm-record/install-record.txt --install-headers /home/matt/include/site/python2.6:
running install
running build
running build_py
creating build
creating build
/lib.linux-x86_64-2.6
creating build
/lib.linux-x86_64-2.6/tokyo
copying tokyo
/__init__.py -> build/lib.linux-x86_64-2.6/tokyo
copying tokyo
/dbm.py -> build/lib.linux-x86_64-2.6/tokyo
running build_ext
building
'tokyo.cabinet' extension
creating build
/temp.linux-x86_64-2.6
creating build
/temp.linux-x86_64-2.6/src
gcc
-pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c src/cabinet.c -o build/temp.linux-x86_64-2.6/src/cabinet.o
In file included from src/cabinet.c:134:
src
/TDB.c: In function TDB_metasearch’:
src
/TDB.c:1129: warning: implicit declaration of function tctdbmetasearch
src
/TDB.c:1129: warning: assignment makes pointer from integer without a cast
src
/cabinet.c: In function init_cabinet’:
src
/cabinet.c:294: error: TDBITTOKEN undeclared (first use in this function)
src
/cabinet.c:294: error: (Each undeclared identifier is reported only once
src
/cabinet.c:294: error: for each function it appears in.)
src
/cabinet.c:295: error: TDBITQGRAM undeclared (first use in this function)
src
/cabinet.c:324: error: TDBQCFTSPH undeclared (first use in this function)
src
/cabinet.c:325: error: TDBQCFTSAND undeclared (first use in this function)
src
/cabinet.c:326: error: TDBQCFTSOR undeclared (first use in this function)
src
/cabinet.c:327: error: TDBQCFTSEX undeclared (first use in this function)
src
/cabinet.c:331: error: TDBMSUNION undeclared (first use in this function)
src
/cabinet.c:332: error: TDBMSISECT undeclared (first use in this function)
src
/cabinet.c:333: error: TDBMSDIFF undeclared (first use in this function)
error
: command 'gcc' failed with exit status 1

Command /home/matt/bin/python -c "import setuptools; __file__='/home/matt/build/tokyo-python/setup.py'; execfile('/home/matt/build/tokyo-python/setup.py')" install --single-version-externally-managed --record /tmp/pip-ZqvLvm-record/install-record.txt --install-headers /home/matt/include/site/python2.6 failed with error code 1
Storing complete log in /home/matt/.pip/pip.log
matt@amalgam
:~/$

which I clearly copied off a StackOverflow question I wrote earlier today ;)

The only workaround I've found was downloading the tarball, and manually removing table functionality. This is pretty awful. Am I missing something obvious?

Thanks for your time!

--
Matt Luongo
Software Developer
Georgia Tech CS Alum

lekmalek

unread,
Jul 19, 2010, 4:46:55 AM7/19/10
to tokyo-...@googlegroups.com

Hi,

First off, sorry for the delay, I was away on vacation (far away for
computers and the internet), and the google groups settings didn't
allow for new members to post without moderation first (this has
changed).

AFAICT you need a more recent version of Tokyo Cabinet. In lucid
libtokyocabinet is 1.4.23, 'tctdbmetasearch' was introduced in 1.4.28.
Can you try manually installing the latest Tokyo Cabinet (1.4.45) and
then retry installing tokyo-python?

hope it helps

malek


p.s.: again, sorry for the delay.

lekma

unread,
Jul 22, 2010, 3:03:05 AM7/22/10
to tokyo-python
FYI, I added some verion checking in 0.6.1

hope it helps

malek

On Jul 19, 10:46 am, lekmalek <lekma...@gmail.com> wrote:
> Hi,
>
> First off, sorry for the delay, I was away on vacation (far away for
> computers and the internet), and the google groups settings didn't
> allow for new members to post without moderation first (this has
> changed).
>
> AFAICT you need a more recent version of Tokyo Cabinet. In lucid
> libtokyocabinet is 1.4.23, 'tctdbmetasearch' was introduced in 1.4.28.
> Can you try manually installing the latest Tokyo Cabinet (1.4.45) and
> then retry installing tokyo-python?
>
> hope it helps
>
> malek
>
> p.s.: again, sorry for the delay.
>
> On Sun, 11 Jul 2010 23:40:13 -0400
>

Matt Luongo

unread,
Jul 22, 2010, 8:30:34 PM7/22/10
to tokyo-...@googlegroups.com
Great! Looks like it works- thanks Malek.

--
Matt Luongo
Software Developer
Georgia Tech CS Alum


Reply all
Reply to author
Forward
0 new messages