lib

500 error with urllib.request.urlopen

匿名 (未验证) 提交于 2019-12-03 03:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: The following code: req = urllib.request.Request(url=r"http://borel.slu.edu/cgi-bin/cc.cgi?foirm_ionchur=im&foirm=Seol&hits=1&format=xml",headers={'User-Agent':' Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0'}) handler = urllib.request.urlopen(req) is giving me the following exception: Traceback (most recent call last): File "C:/Users/Foo/lang/old/test.py", line 46, in <module> rip() File "C:/Users/Foo/lang/old/test.py", line 36, in rip handler = urllib.request.urlopen(req) File "C:\Python32\lib\urllib\request.py",

OpenGL学习入门之VS2010环境配置 [转]

本小妞迷上赌 提交于 2019-12-03 03:04:59
OpenGL 开发环境简介    基于 OpenGL 标准开发的应用程序运行时需有动态链接库 OpenGL32.DLL 、 Glu32.DLL ,这两个文件在安装 Windows NT 时已自动装载到 C : \WINDOWS\SYSTEM32 目录下 ( 这里假定用户将 Windows NT 安装在 C 盘上 ) 。 OpenGL 的图形库函数封装在动态链接库 OpenGL32.DLL 中,开发基于 OpenGL 的应用程序,必须先了解 OpenGL 的库函数。 OpenGL 函数命令方式十分有规律,每个库函数均有前缀 gl 、 glu 、 aux ,分别表示该函数属于 OpenGL 基本库、实用库或辅助库。 Windows NT 下的 OpenGL 包含了 100 多个核心函数,均以 gl 作为前缀,同时还支持另外四类函数: OpenGL 实用库函数: 43 个,以 glu 作为前缀; OpenGL 辅助库函数: 31 个,以 aux 作为前缀; Windows 专用库函数 (WGL) : 6 个,以 wgl 作为前缀; Win32API 函数 (WGL) : 5 个,无前缀。    安装 GLUT 工具包    GLUT 不是 OpenGL 所必须的,但它会给我们的学习带来一定的方便,推荐安装。 Windows 环境下的 GLUT 下载地址:(大小约为 150k ) http

[01000][unixODBC][Driver Manager]Can&#039;t open lib &#039;/usr/local/easysoft/oracle/InstantClient112/lib/libsqora.so&#039; : file not found

匿名 (未验证) 提交于 2019-12-03 03:04:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to acces oracle from linux server. I am using unixODBC. When i try to acces oracle using isql and i get error that driver manager can't open libsqora.so.12.1. odbc.ini [NAME] Application Attributes = T Attributes = W BatchAutocommitMode = IfAllSuccessful BindAsFLOAT = F CloseCursor = F DisableDPM = F DisableMTS = T Driver = Oracle 11g ODBC driver DSN = DSN_NAME EXECSchemaOpt = EXECSyntax = T Failover = T FailoverDelay = 10 FailoverRetryCount = 10 FetchBufferSize = 64000 ForceWCHAR = F Lobs = T Longs = T MaxLargeData = 0

Django - No module named _sqlite3

匿名 (未验证) 提交于 2019-12-03 03:04:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have django 1.4 installed on my rhel 5. By default rhel 5 has python 2.4 in it but to use django 1.4 I manually installed python 2.7.3 The development server is running fine but when I create a new project and after changing the settings.py file as : 'ENGINE': 'django.db.backends.sqlite3', 'NAME': '/home/oracle/Desktop/test1/my.db' Now when I give python2.7 manage.py syncdb command, I get the error as: Traceback (most recent call last): File "manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "/usr/local/lib/python2

Installing GD library for perl on MacOSX 10.6

匿名 (未验证) 提交于 2019-12-03 03:03:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have been trying to install GD library for perl to no avail a long while now. I've tried every little thing I could find on the internets but nothing. I am trying to get Circos graphs which require the GD package. When I try to install it through CPAN it gives me this error: Running make test PERL_DL_NONLAZY=1 /usr/bin/perl/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/GD.t ........ 1/12 Can't load './blib/arch/auto/GD/GD.bundle' for module GD: dlopen(./blib/arch/auto/GD/GD.bundle, 2): Symbol not

Linking to Armadillo libraries with CMake

匿名 (未验证) 提交于 2019-12-03 03:03:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to install MLPack on windows 8. I configure the CMakeLists.txt file with: set(ARMADILLO_LIBRARY "C:\\Program Files (x86)\\armadillo\\lib") set(ARMADILLO_INCLUDE_DIR "C:\\Program Files (x86)\\armadillo\\include") Then when I ran CMake I had a whole series of warning like these ones: WARNING: Target "mlpack" requests linking to directory "C:\Program Files (x86)\armadillo\lib". Targets may link only to libraries. CMake is dropping the item. In \mlpack-1.0.4\src\mlpack directory I found another CMakeLists file with: target_link

ImportError: No module named suds

匿名 (未验证) 提交于 2019-12-03 03:03:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Having trouble with py2exe importing the suds module, and narrowed it down to the following: >>> imp.find_module('suds', sys.path) Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named suds However, a simple import works fine: >>> import suds >>> suds.__version__ '0.4' Here is my sys.path, which shows suds at 'C:\Python27\lib\site-packages\suds-0.4-py2.7.egg': >>> pprint.pprint(sys.path) ['', 'C:\\Python27\\lib\\site-packages\\pyyaml-3.10-py2.7-win32.egg', 'C:\\Python27\\lib\\site-packages\

watir - installation

匿名 (未验证) 提交于 2019-12-03 02:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have installed Ruby 2, devkit & Watir. I am getting the following error. Can anyone please help me resolve this issue? C:\devkit>irb DL is deprecated, please use Fiddle irb(main):001:0> require "watir" => true irb(main):002:0> browser = Watir::Browser.new LoadError: cannot load such file -- watir-classic from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require' from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in`require' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/watir-4.0.2/lib/watir/loader.rb

PyInstaller cannot find libpython2.7.so when making binary?

匿名 (未验证) 提交于 2019-12-03 02:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to make a binary version of a Python script using PyInstaller 2.0 on Linux. When I run: $ python pyinstaller.py myscript.py I get the error: 8907 INFO: Looking for Python library libpython2.7.so Traceback (most recent call last): ... File "pyinstaller.py", line 91, in <module> raise IOError("Python library not found!") IOError: Python library not found! How can this be fixed? I am using: Linux #98-Ubuntu x86_64 GNU/Linux With python 2.7. There are other Pythons on the system but I have it set that: alias python="python2.7" In the

import cv2 works but import cv2.cv as cv not working

匿名 (未验证) 提交于 2019-12-03 02:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I think the sys path is correct, cv.pyd and cv.pyd reside in c:\OpenCV2.3\build\Python\2.7\Lib\site-packages. >>> import sys >>> sys.path ['', 'C:\\Python27\\Lib\\idlelib', 'C:\\Python27\\lib\\site-packages\\pil-1.1.7-py2.7-win32.egg', 'C:\\Python27\\lib\\site-packages\\cython-0.17-py2.7-win32.egg', 'C:\\Python27\\lib\\site-packages\\pip-1.2-py2.7.egg', 'c:\\OpenCV2.3\\build\\Python\\2.7\\Lib\\site-packages', 'C:\\Python27\\python27.zip', 'C:\\Python27\\DLLs', 'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win', 'C:\\Python27\\lib\\lib-tk',