lib

Django runserver error

匿名 (未验证) 提交于 2019-12-03 08:57:35
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When using the development server, I get this error: Validating models... 0 errors found Django version 1.3 beta 1, using settings 'book_scouts.settings' Development server is running at http://127.0.0.1:8000/ Quit the server with CTRL-BREAK. Traceback (most recent call last): File "C:\Python26\lib\site-packages\django\core\servers\basehttp.py", line 283 , in run self.finish_response() File "C:\Python26\lib\site-packages\django\core\servers\basehttp.py", line 323 , in finish_response self.write(data) File "C:\Python26\lib\site-packages

Trying to build static CGO executable with oracle libraries on Linux/Ubuntu

匿名 (未验证) 提交于 2019-12-03 08:57:35
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have already searched for some days, tried several suggestions but none helped. At the moment I just want to create a small Go snippet which connects to an Oracle Database. While everything works by using normal go build and invoking the resulting dynamic linked application, I am stuck when I try to run the static compiler. I already have build other projects statically (even with CGO) without problems, but here gcc is not finding the oracle library. Maybe someone has a hint? Error during build: host link: "gcc" "-m64" "-gdwarf-2" "-o" "

execute WebView.loadurl() after Webview.clearView() multitimes will cause crash

匿名 (未验证) 提交于 2019-12-03 08:56:10
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: execute WebView.loadurl() after Webview.clearView() multitimes will cause crash. android 4.0.3. Here is the logcat output: Build fingerprint: 'Lenovo/P700i/P700i:4.0.4/IMM76D/P700i_S105_120709:user/release-keys' pid: 4262, tid: 4284 >>> com.baidu.searchbox_lenovo <<< signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 006c0069 r0 01f70298 r1 00000000 r2 01d31860 r3 006c0069 r4 01d31860 r5 015c6b48 r6 00000007 r7 4bfb1e0c r8 5197fc08 r9 4bfb1e04 10 4bfb1dec fp 5197fc1c ip 508cdf1d sp 5197fc00 lr 508cdf2b pc 509ecf0c cpsr 80003430 #00 pc

Pyinstaller and import issue with wx.lib.pubsub

匿名 (未验证) 提交于 2019-12-03 08:54:24
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: My Python GUI app, works perfectly but when I try to create an executable I tried with pyinstaller (3.3.dev0+483c819) command: pyinstaller gui_app.py I get the follow issue: 7699 INFO: Loading module hook "hook-wx.lib.pubsub.py"... Traceback (most recent call last): File "<string>", line 41, in <module> File "<string>", line 36, in walk_packages File "<string>", line 20, in walk_packages File "c:\python27\lib\site-packages\wx-3.0-msw\wx\lib\pubsub\core\arg1\__init__.py", line 16, in <module> raise RuntimeError(msg) RuntimeError: Should not

‘INTMAX_MAX’ was not declared in this scope

匿名 (未验证) 提交于 2019-12-03 08:52:47
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When Compiling a simple code snippets: test.cpp : #include <stdint.h> #include <stdio.h> int main() { intmax_t max = INTMAX_MAX; printf("%jd", max); return 0; } I get this error: [huqiu@101 ~]$ g++ -o test.o test.cpp test.cpp: In function ‘int main()’: test.cpp:5: error: ‘INTMAX_MAX’ was not declared in this scope What I've done: The compiler information: [huqiu@101 ~]$ which g++ /usr/bin/g++ And the version: [huqiu@101 ~]$ g++ -v Using built-in specs. Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr

Cannot find boost library

匿名 (未验证) 提交于 2019-12-03 08:52:47
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: This is a very basic question, I only post because I've spent already some time into it. This is what I've done so far: Downloaded and compiled the boost library: sudo ./bootstrap.sh and sudo ./bjam install This way it was installed into /usr/local/lib . In my source code I've added only: #include <boost/asio.hpp> using boost :: asio :: ip :: tcp I compile it with: g++ -I/usr/lib/jvm/java-6-openjdk/include -L/usr/local/lib -fPIC -lboost_system -shared -o libagent.so agent.cpp However, ldd -d ./libagent.so gives me: libboost_system

OSError: cannot open shared object file: No such file or directory even though file is in the folder

匿名 (未验证) 提交于 2019-12-03 08:51:18
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've been fighting with this for quite some time now. I'm trying to install Yaafe for audio feature extraction. I follow instructions here: https://github.com/Yaafe/Yaafe Everything installs up nicely, but when I try to run the test file "frames.py" I get following error: File "frames.py", line 6, in <module> from yaafelib import FeaturePlan, Engine, AudioFileProcessor File "/usr/local/lib/python2.7/dist-packages/yaafelib/__init__.py", line 36, in <module> from yaafelib.core import (loadComponentLibrary, File "/usr/local/lib/python2.7/dist

caffe installation : opencv libpng16.so.16 linkage issues

匿名 (未验证) 提交于 2019-12-03 08:50:26
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to compile caffe with python interface on an Ubuntu 14.04 machine. I have installed Anaconda and opencv with conda install opencv . I have also installed all the requirement stipulated in the coffee and changed the commentary blocks in makefile.config so that PYTHON_LIB and PYTHON_INCLUDE point towards Anaconda distributions. When I am calling make all , the following command is issued: g++ .build_release/tools/caffe.o -o .build_release/tools/caffe.bin -pthread -fPIC -DNDEBUG -O2 -DWITH_PYTHON_LAYER -I/home/andrei/anaconda

error while loading shared libraries: libnsd.so: cannot open shared object file: No such file or directory

匿名 (未验证) 提交于 2019-12-03 08:48:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm writing two C programs. One of them uses library libnsd.so . I compile two C programs using makefile which looks like this: CC=gcc CFLAGS= -Wall -g -O -fPIC RM= rm HLAV=main HLAVO=main.o all:lib $(HLAV) cc c2.c -o c2 main: $(HLAVO) $(CC) -L. -o $(HLAV) $(HLAVO) -lnsd lib: libnsd.so libnsd.so: nsd.o nd.o $(CC) -shared $< -o $@ nsd.o: nsd.c nsd.h nd.h nd.o: nd.c nsd.h nd.h clean: $(RM) -rf *.o *.so main When I try to run an aplication I get an error: error while loading shared libraries: libnsd.so: cannot open shared object file: No such

PKCS#11 engine does not work in openssl on centos 6

匿名 (未验证) 提交于 2019-12-03 08:48:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to add a PKCS#11 engine to OpenSSL and I use CentOS 6.2. I actually load engine with no problem as you can see below: [root@localhost 05:06:18 openssl-1.0.1e]$ openssl engine -t dynamic -pre SO_PATH:/usr/lib/openssl/engines/engine_pkcs11.so -pre ID:pkcs11 -pre LIST_ADD:1 -pre LOAD -pre MODULE_PATH:/usr/local/lib/libsst.so (dynamic) Dynamic engine loading support [Success]: SO_PATH:/usr/lib/openssl/engines/engine_pkcs11.so [Success]: ID:pkcs11 [Success]: LIST_ADD:1 [Success]: LOAD [Success]: MODULE_PATH:/usr/local/lib/libsst.so Loaded: