我使用brew install icu4c与pip install pyicu安装Python ICU的支持,但在最后,我不能在我的山狮的工作做.
$ brew install icu4c
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
==> Downloading http://download.icu-project.org/files/icu4c/50.1/icu4c-50_1-src.tgz
Already downloaded: /Library/Caches/Homebrew/icu4c-50.1.tgz
==> ./configure --prefix=/usr/local/Cellar/icu4c/50.1 --disable-samples --disable-tests --enable-static --with-library-bits=64
==> make
==> make install
/usr/local/Cellar/icu4c/50.1: 235 files, 55M, built in 109 seconds
$ pip install pyicu
Downloading/unpacking pyicu
Downloading PyICU-1.4.tar.gz (209kB): 209kB downloaded
Running setup.py egg_info for package pyicu
Installing collected packages: pyicu
Running setup.py install for pyicu …Run Code Online (Sandbox Code Playgroud) 我遇到了问题.我错过了什么吗?
Association.all().count()
1
Association.all().fetch(1)
[Association(**{'server_url': u'server-url', 'handle': u'handle2', 'secret': 'c2VjcmV0\n', 'issued': 1242892477L, 'lifetime': 200L, 'assoc_type': u'HMAC-SHA1'})]
Association.all().filter('server_url =', 'server-url').count()
0 # expect 1
Association.all().filter('server_url =', u'server-url').count()
0 # expect 1
Association.all().filter('issued >', 0).count()
1
Run Code Online (Sandbox Code Playgroud)