How to pass a boolean to a stored proc using Cx_Oracle?
Hi,
I am using Python 2.4 and cx_Oracle. I have a stored proc that takes two
arguments. First is an NUMBER, second is a BOOLEAN. How do you call that
stored procedure?
After properly extablishing a connection, I have something like this:
cursor = con.cursor()
cursor.callproc("testproc",[123,True])
The problem I have ran into is that I keep getting an error from Oracle
stating I don't have the variables defined in with the proper type. I
changed to proc just to test it, so that it would take two numbers. I was
able to make it run properly.
So, what is the trick to pass a boolean?
Thanks,
joe
--
http://mail.python.org/mailman/listinfo/python-list
Re: Fw: evidence john bokma al jazeera connection ?
William Baker wrote: > > > >please add forward to alt.security.terrorism if information > > p.p.s. "john bokma" shows long list in message boards, just in last > month. lots of information to netherlands where muslem militants > are. could some be coded cryption to aljazeera, so messages are in > secret for the terror network? Do not forget his alter egos: Waldo Centini, Jerry Harper, Els... ;-) -- g -- http://mail.python.org/mailman/listinfo/python-list
Beginner Python OpenGL difficulties
I'm beginning learning Python and OpenGL in Python. Python fine. But difficulties with OpenGL; presumably with the installation of OpenGL. OS = Linux FC5. Python program gl_test.py: from OpenGL.GLUT import * from OpenGL.GLU import * from OpenGL.GL import * name = "Hello, World" height = 400 etc. [EMAIL PROTECTED]/etc/python>$ python2 gl_test.py Traceback (most recent call last): File "gl_test.py", line 1, in ? from OpenGL.GLUT import * ImportError: No module named OpenGL.GLUT [EMAIL PROTECTED]/etc/python>$ echo $PYTHONPATH /usr/lib/python2.2/site-packages/OpenGL [EMAIL PROTECTED]/usr/lib/python2.2/site-packages/OpenGL>$ ll total 1076 drwxr-xr-x 13 root root 4096 May 28 15:17 Demo/ drwxr-xr-x 3 root root 4096 May 28 15:17 doc/ drwxr-xr-x 25 root root 4096 May 28 15:17 GL/ -rwxr-xr-x 1 root root 624927 Jan 2 2005 GLE.so* drwxr-xr-x 4 root root 4096 May 28 15:17 GLU/ -rwxr-xr-x 1 root root 312612 Jan 2 2005 GLUT.so* drwxr-xr-x 6 root root 4096 May 28 15:17 GLX/ -rw-r--r-- 1 root root868 Mar 12 2004 __init__.py -rw-r--r-- 1 root root 1466 Jan 2 2005 __init__.pyc etc ... Any suggestions. TIA, Jon C. -- http://mail.python.org/mailman/listinfo/python-list
Re: Beginner Python OpenGL difficulties
Mike C. Fletcher wrote: > [EMAIL PROTECTED] wrote: > > I'm beginning learning Python and OpenGL in Python. > > [...] > > ImportError: No module named OpenGL.GLUT > > > > [EMAIL PROTECTED]/etc/python>$ echo $PYTHONPATH > > /usr/lib/python2.2/site-packages/OpenGL > > > You should already have site-packages in your PythonPath. You want the > directory *above* OpenGL in the path, not OpenGL itself. Yes, tried that: $ echo $PYTHONPATH /usr/lib/python2.2/site-packages/ and no improvement. Should there be a file or directory named GLUT* in /usr/lib/python2.2/site-packages/OpenGL/ ? All I can see are GL, GLU and GLX directories. I'm unsure why > you're running a Python 2.2 instance on a modern Linux. [EMAIL PROTECTED]/etc/python>$ python2 Python 2.4.2 (#1, Feb 12 2006, 03:59:46) [GCC 4.1.0 20060210 (Red Hat 4.1.0-0.24)] on linux2 The OpenGL stuff was from an RPM that I sound on the web. Many thanks, Jon C. -- http://mail.python.org/mailman/listinfo/python-list
