I am trying having problems importing DCOracle. I am running python 1.5.2 on a standard RedHat 6.1 intel box with version 1.3.0 of DCOracle. When I try to import DCOracle it complains about the lack ot a "Buffer" module. I can't find a Buffer module anywhere, but there is a builtin function called "buffer". Here is a transcript of my experiments. Can you help? Sincerely, Andy Lowe Python 1.5.2 (#1, Sep 17 1999, 20:15:36) [GCC egcs-2.91.66 19990314/Linux (egcs- on linux-i386 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
import DCOracle Traceback (innermost last): File "<stdin>", line 1, in ? File "DCOracle/__init__.py", line 52, in ? import sys, Buffer ImportError: No module named Buffer import buffer Traceback (innermost last): File "<stdin>", line 1, in ? ImportError: No module named buffer import sys print sys.modules.keys() ['os.path', 'DCOracle', 'os', 'readline', 'exceptions', '__main__', 'posix', 'DCOracle.sys', 'sys', '__builtin__', 'site', 'signal', 'UserDict', 'posixpath', 'stat'] temp=buffer() Traceback (innermost last): File "<stdin>", line 1, in ? TypeError: buffer requires at least 1 argument; 0 given temp=buffer print temp <built-in function buffer> temp = Buffer Traceback (innermost last): File "<stdin>", line 1, in ? NameError: Buffer import Buffer Traceback (innermost last): File "<stdin>", line 1, in ? Import
Andrew Jeremy Lowe wrote:
I am trying having problems importing DCOracle. I am running python 1.5.2 on a standard RedHat 6.1 intel box with version 1.3.0 of DCOracle. When I try to import DCOracle it complains about the lack ot a "Buffer" module. I can't find a Buffer module anywhere, but there is a builtin function called "buffer". Here is a transcript of my experiments. Can you help? Sincerely, Andy Lowe
Buffer and buffer are totally unrelated. buffer is python 'built-in' and Buffer is a module that DCOracle depends on. Why your DCOracle can't find Buffer however, is beyond me. Is there a Buffer.py in your DCOracle? -Michel
participants (2)
-
Andrew Jeremy Lowe -
Michel Pelletier