Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some errors ... #4

Closed
ppacory opened this issue Apr 22, 2012 · 8 comments
Closed

some errors ... #4

ppacory opened this issue Apr 22, 2012 · 8 comments

Comments

@ppacory
Copy link

ppacory commented Apr 22, 2012

i've just get the git clone of : git://github.com/forhappy/cpy-leveldb.git
i'm on ubuntu 11.10
here are my problem :


in /tmp/cpy-leveldb :
cd snappy
but no ./configure file need to ./autogen.sh first

after done everything in the README.TXT
all compile installation ok

But when try python and test leveldb i've got that :
the import of leveldb ok

Python 2.7.2+ (default, Oct 4 2011, 20:03:08)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import leveldb
db = leveldb.LevelDB("/tmp/leveldb")
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'LevelDB'

thks for help

@forhappy
Copy link
Owner

I've fixed this bug and commit the code on github, you can find the newest code and recompile it, it will be ok now.

@forhappy
Copy link
Owner

if any other problem found, i'm pleased to help you, thanks for your comments first :-)

@forhappy
Copy link
Owner

i've updated the code of cpy-leveldb, you can check out the newest code and
recompile it, it should be ok now, thanks for your comments :-)

On Sun, Apr 22, 2012 at 9:55 PM, ppacory <
reply@reply.github.com

wrote:

i've just get the git clone of : git://github.com/forhappy/cpy-leveldb.git
i'm on ubuntu 11.10
here are my problem :


in /tmp/cpy-leveldb :
cd snappy
but no ./configure file need to ./autogen.sh first

after done everything in the README.TXT
all compile installation ok

But when try python and test leveldb i've got that :
the import of leveldb ok

Python 2.7.2+ (default, Oct 4 2011, 20:03:08)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import leveldb
db = leveldb.LevelDB("/tmp/leveldb")
Traceback (most recent call last):
File "", line 1, in

thks for help
AttributeError: 'module' object has no attribute 'LevelDB'


Reply to this email directly or view it on GitHub:
#4

责任与感恩

祝好

中国科学院计算技术研究所
中关村科学院南路6号
北京市海淀区
邮编100190

@targetzzb
Copy link

in /tmp/cpy-leveldb :
cd snappy
but no ./configure file need to ./autogen.sh first,and snappy have these files:

ls -al

total 636
drwxr-xr-x 6 root root 4096 Jan 16 11:17 .
drwxr-xr-x 8 root root 4096 Jan 16 11:27 ..
drwxr-xr-x 4 root root 4096 Jan 16 11:14 .svn
-rw-r--r-- 1 root root 22 Jun 7 2012 AUTHORS
-rw-r--r-- 1 root root 1475 Jun 7 2012 COPYING
-rw-r--r-- 1 root root 29985 Jun 7 2012 ChangeLog
-rw-r--r-- 1 root root 9498 Jan 16 11:17 INSTALL
-rw-r--r-- 1 root root 1285 Jun 7 2012 Makefile.am
-rw-r--r-- 1 root root 1764 Jun 7 2012 NEWS
-rw-r--r-- 1 root root 5685 Jun 7 2012 README
-rw-r--r-- 1 root root 36343 Jan 16 11:17 aclocal.m4
-rwxr-xr-x 1 root root 118 Jun 7 2012 autogen.sh
drwxr-xr-x 2 root root 4096 Jan 16 11:17 autom4te.cache
-rwxr-xr-x 1 root root 43603 May 3 2007 config.guess
-rw-r--r-- 1 root root 2859 Jan 16 11:17 config.h.in
-rwxr-xr-x 1 root root 31678 May 3 2007 config.sub
-rw-r--r-- 1 root root 3779 Jun 7 2012 configure.ac
-rwxr-xr-x 1 root root 15936 Jan 16 11:17 depcomp
-rw-r--r-- 1 root root 4388 Jun 7 2012 format_description.txt
-rwxr-xr-x 1 root root 9233 Jan 16 11:17 install-sh
-rw-r--r-- 1 root root 196440 May 3 2007 ltmain.sh
drwxr-xr-x 3 root root 4096 Jan 16 11:14 m4
-rwxr-xr-x 1 root root 11014 Jan 16 11:17 missing
-rw-r--r-- 1 root root 3637 Jun 7 2012 snappy-c.cc
-rw-r--r-- 1 root root 5394 Jun 7 2012 snappy-c.h
-rw-r--r-- 1 root root 5462 Jun 7 2012 snappy-internal.h
-rw-r--r-- 1 root root 2368 Jun 7 2012 snappy-sinksource.cc
-rw-r--r-- 1 root root 4930 Jun 7 2012 snappy-sinksource.h
-rw-r--r-- 1 root root 1827 Jun 7 2012 snappy-stubs-internal.cc
-rw-r--r-- 1 root root 15294 Jun 7 2012 snappy-stubs-internal.h
-rw-r--r-- 1 root root 3017 Jun 7 2012 snappy-stubs-public.h.in
-rw-r--r-- 1 root root 19951 Jun 7 2012 snappy-test.cc
-rw-r--r-- 1 root root 15200 Jun 7 2012 snappy-test.h
-rw-r--r-- 1 root root 36811 Jun 7 2012 snappy.cc
-rw-r--r-- 1 root root 6895 Jun 7 2012 snappy.h
-rw-r--r-- 1 root root 38115 Jun 7 2012 snappy_unittest.cc
drwxr-xr-x 3 root root 4096 Jan 16 11:14 testdata

then what should I do ?

@forhappy
Copy link
Owner

please take a look at README and follow the instructions there :-), if you run into any problems, I'm pleased to hear your feedbacks.

@forhappy
Copy link
Owner

1.1 Build Snappy

$ cd snappy
$ ./configure && make && make install

1.2 Build LevelDB

$ cd leveldb
$ make

1.3 Then, build the extension itself

$ python setup.py build

@targetzzb
Copy link

1.1 Build Snappy
$ cd snappy
$ ./configure && make && make install

In accordance with the above approach, I encountered a problem。Because in /tmp/cpy-leveldb-master/snappy,there is without this document:configure,so i can't run the " ./configure " command。

@forhappy
Copy link
Owner

oops, when building snappy, you should run ./autogen.sh first, and then
./configure && make && make install, my fault :-)

On Wed, Jan 16, 2013 at 4:10 PM, targetzzb notifications@github.com wrote:

1.1 Build Snappy
$ cd snappy
$ ./configure && make && make install

In accordance with the above approach, I encountered a problem。Because in
/tmp/cpy-leveldb-master/snappy,there is without this document:configure,so
i can't run the " ./configure " command。


Reply to this email directly or view it on GitHubhttps://github.com//issues/4#issuecomment-12308474.

责任与感恩

祝好

中国科学院计算技术研究所
中关村科学院南路6号
北京市海淀区
邮编100190

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants