This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PYTHONPATH="xapian:$PYTHONPATH" /usr/bin/python -O -c "import _xapian" | |
PYTHONPATH=".:$PYTHONPATH" /usr/bin/python -O -c "import xapian" | |
make[3]: Leaving directory `/home/henbang/Trapit/xapian-bindings-1.2.13/python' | |
make[2]: Leaving directory `/home/henbang/Trapit/xapian-bindings-1.2.13/python' | |
Making all in perl | |
make[2]: Entering directory `/home/henbang/Trapit/xapian-bindings-1.2.13/perl' | |
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/lib/perl5/CORE -fno-strict-aliasing -Wall -Wno-unused -Wno-uninitialized -fvisibility=hidden -I/usr/local/include -g -O2 -MT xapian_wrap.lo -MD -MP -MF .deps/xapian_wrap.Tpo -c -o xapian_wrap.lo xapian_wrap.cc | |
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/lib/perl5/CORE -fno-strict-aliasing -Wall -Wno-unused -Wno-uninitialized -fvisibility=hidden -I/usr/local/include -g -O2 -MT xapian_wrap.lo -MD -MP -MF .deps/xapian_wrap.Tpo -c xapian_wrap.cc -fPIC -DPIC -o .libs/xapian_wrap.o | |
xapian_wrap.cc:754:20: fatal error: EXTERN.h: No suc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Libraries have been installed in: | |
/usr/lib/python2.7/site-packages/xapian | |
If you ever happen to want to link against installed libraries | |
in a given directory, LIBDIR, you must either use libtool, and | |
specify the full pathname of the library, or use the `-LLIBDIR' | |
flag during linking and do at least one of the following: | |
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable | |
during execution | |
- add LIBDIR to the `LD_RUN_PATH' environment variable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import mom | |
from mom import Session, Feed | |
def _create_feeds(urls): | |
session = Session() | |
for url in urls: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "scripts/import_url.py", line 6, in <module> | |
import mom | |
File "/home/henbang/zoidberg/zoidberg/.virt/src/mom/mom/__init__.py", line 20, in <module> | |
import zmq | |
ImportError: No module named zmq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Zapian, Xapian documentation | |
1. Python Programmer, loves Xapian but Xappy is old and has been having some problems. He likes elastic search api but hates Java's Lucene architecture. | |
2. Maybe this will help you, and you can visit him @ http://weibo.com/panjunyong | |
Properties: | |
1.Xapian provides a friendly schemaless api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 #!/usr/bin/env python | |
2 | |
3 from datetime import datetime | |
4 import sys | |
5 | |
6 import mom | |
7 from mom import Session, Feed | |
8 | |
9 | |
10 def _create_feeds(urls): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(.virt)pkafei@platform-test-1:~/zoidberg$ TRAPIT_ENV=dev python scripts/import_url.py | |
Traceback (most recent call last): | |
File "scripts/import_url.py", line 36, in <module> | |
filename = sys.argv[1] | |
IndexError: list index out of range | |
Exception TypeError: "'NoneType' object is not callable" in <zmq.core.context.Context object at 0x3132de8> ignored | |
Exception TypeError: "'NoneType' object is not callable" in <zmq.core.context.Context object at 0x37ffc80> ignored |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pass: virtualenv ~/blog-venv | |
Run: source ~/blog-venv/bin/activate | |
Close: deactivate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TRAPIT_ENV=test nosetests tests.unit.acceptance_tes | |
tc:TestEndpoints.test_get_user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ## V3 Groups | |
/v3/{org}/groups/ | |
GET elzar.resources.groups:GETGroupsCollection() | |
POST elzar.resources.groups:POSTGroup() | |
/v3/{org}/groups/{group_id}/ | |
GET elzar.resources.groups:GETGroup() | |
PUT elzar.resources.groups:PUTGroup() | |
DELETE elzar.resources.groups:DELETEGroup() | |
/v3/{org}/groups-by-name/{group_name}/ |
OlderNewer