On Wed, 6 Jan 2010 08:21:13 +0000 Saeed Bhuta <[email protected]> wrote: > Hi All, > > I am emailing regarding the Python PyGreSQL module. I have installed it with > Python 2.6 successfully, however I am getting the following error when > compiling any Python script that imports the pg module. Please help. > > *Traceback (most recent call last): > File "sched-scraper.py", line 3, in <module> > import pg > File "/usr/lib/python2.6/dist-packages/pg.py", line 27, in <module> > from decimal import Decimal > File "/usr/lib/python2.6/decimal.py", line 5327, in <module> > flags=[], > File "/usr/lib/python2.6/decimal.py", line 3640, in __init__ > setattr(self, name, _copy.copy(getattr(DefaultContext, name))) > AttributeError: 'module' object has no attribute 'copy*'
It seems more like a problem with the decimal module. What happens when you simply import decimal directly without involving PyGreSQL? If that is OK then what is on lines 1 and 2 of sched-scraper.py? -- D'Arcy J.M. Cain PyGreSQL Development Group http://www.PyGreSQL.org _______________________________________________ PyGreSQL mailing list [email protected] http://mailman.vex.net/mailman/listinfo/pygresql
