Hi All, I am trying to install PyGreSQL for Python 2.6.
I used "sudo apt-get install python-pygresql" to install the module. However it doesn't seem to have installed for Python 2.6. Any help is greatly appreciated. Saeed. On Tue, Jan 12, 2010 at 5:00 PM, <[email protected]> wrote: > Send PyGreSQL mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://mailman.vex.net/mailman/listinfo/pygresql > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of PyGreSQL digest..." > > > Today's Topics: > > 1. Re: Run Error. (Saeed Bhuta) > 2. Re: Run Error. (Christoph Zwerschke) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 7 Jan 2010 08:18:21 +0000 > From: Saeed Bhuta <[email protected]> > To: [email protected] > Cc: PyGreSQL Development <[email protected]> > Subject: Re: [PyGreSQL] Run Error. > Message-ID: > <[email protected]> > Content-Type: text/plain; charset="iso-8859-1" > > Hi D'arcy, > > Thank you for your reply. > > It is a problem with the decimal module. When importing the decimal module > without involving PyGreSQL the following error is given: > > Traceback (most recent call last): > File "sched-scraper.py", line 3, in <module> > 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' > > I am not sure where to proceed from here. Any assistance is greatly > appreciated. > > Many Thanks, > > Saeed. > > On Wed, Jan 6, 2010 at 7:22 PM, D'Arcy J.M. Cain <[email protected]> > wrote: > > > 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 > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://mailman.vex.net/pipermail/pygresql/attachments/20100107/8018d898/attachment.html > > > > ------------------------------ > > Message: 2 > Date: Tue, 12 Jan 2010 16:10:44 +0100 > From: Christoph Zwerschke <[email protected]> > To: PyGreSQL Development <[email protected]> > Subject: Re: [PyGreSQL] Run Error. > Message-ID: <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1 > > Am 07.01.2010 09:18, schrieb Saeed Bhuta: > > 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*' > > Maybe you have a module named "copy" somewhere in your path that is > hiding the copy module from the standard lib? > > -- Christoph > > > ------------------------------ > > _______________________________________________ > PyGreSQL mailing list > [email protected] > http://mailman.vex.net/mailman/listinfo/pygresql > > > End of PyGreSQL Digest, Vol 73, Issue 3 > *************************************** >
_______________________________________________ PyGreSQL mailing list [email protected] http://mailman.vex.net/mailman/listinfo/pygresql
