Displaying 3 results from an estimated 3 matches for "pyexc_valueerror".
Did you mean:
_pyexc_valueerror
2008 Aug 01
0
Problem with RSPython
...mportPythonModule('geopy') command, I get an error
that
"Error in Python call: can't decompress data; zlib not available"
Then when I try to load zlib using the same command, I get the error
"Error in Python call: /usr/lib/python2.5/lib-dynload/zlib.so: undefined
symbol: PyExc_ValueError"
>From the python command line I am able to load the geopy module with no
problems and succesfully ran a script using it.
I am running Kubuntu Hardy 64 bit with up-to-date packages of R and python.
I tried installing python 2.4 packages, but that did not solve the problem
(although maybe...
2010 Sep 09
2
[PATCH]: add libxl python binding
...+ unsigned long long tmp;
+ if ( NULL == v ) {
+ *val = 0;
+ return 0;
+ }
+ if ( PyLong_Check(v) ) {
+ tmp = PyLong_AsUnsignedLongLong(v);
+ }else{
+ tmp = (unsigned long long)PyInt_AsLong(v);
+ }
+ if ( tmp & ~mask ) {
+ PyErr_SetString(PyExc_ValueError, "Integer overflow");
+ return -1;
+ }
+ *val = tmp;
+ return 0;
+}
+
+PyObject *genwrap__ll_get(long long val)
+{
+ return PyLong_FromLongLong(val);
+}
+
+int genwrap__ll_set(PyObject *v, long long *val, long long mask)
+{
+ long long tmp;
+ if ( NULL == v ) {
+...
2014 Aug 16
7
[hivex] [PATCH 0/6] Python fixes for node_set_value
Hi,
This patch series is based on a prior patch[1], splitting off changes as
requested and incorporating feedback from Richard Jones. It introduces type
validation to avoid segmentation faults (instead, it reports an exception) and
fixes handling of the bytes type in Python 3.
Major changes since that series:
- Drop newly introduced support for integer types for DWORD/QWORDS
- Reject Unicode