Skip to content

Instantly share code, notes, and snippets.

View pkafei's full-sized avatar
💫

Portia Burton pkafei

💫
View GitHub Profile
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
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
@pkafei
pkafei / Urls
Created February 5, 2013 00:03
This is what I have so far
import sys
import mom
from mom import Session, Feed
def _create_feeds(urls):
session = Session()
for url in urls:
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
@pkafei
pkafei / gist:4733933
Created February 7, 2013 20:34
tranlsation
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
@pkafei
pkafei / gist:4746928
Last active December 12, 2015 08:49
Import_url.py
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):
@pkafei
pkafei / gist:4747828
Created February 10, 2013 00:58
import_url error
(.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
@pkafei
pkafei / gist:5561488
Created May 11, 2013 21:30
Virt-env Tutorial
Pass: virtualenv ~/blog-venv
Run: source ~/blog-venv/bin/activate
Close: deactivate
@pkafei
pkafei / gist:5621649
Created May 21, 2013 17:34
For Individual Tests
TRAPIT_ENV=test nosetests tests.unit.acceptance_tes
tc:TestEndpoints.test_get_user
@pkafei
pkafei / gist:6235715
Last active December 21, 2015 02:29
Not including the endpoints below, are there other endpoints I should include? https://github.com/Trapit/elzar/blob/master/elzar/api.urls What's in these csv's- name, id? Or anything the curator desires?
# ## 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}/