Обсуждение: Issues with pgxnclient package on CentOS 6 64 bit
Hi, I installed the pgxnclient on CentOS 6 (64 bit). I then ran: # pgxn install oracle_fdw Traceback (most recent call last): File "/usr/bin/pgxn", line 5, in <module> from pkg_resources import load_entry_point ImportError: No module named pkg_resources I then installed the python-setuptools, and retried getting this: # pgxn install oracle_fdw Traceback (most recent call last): File "/usr/bin/pgxn", line 5, in <module> from pkg_resources import load_entry_point File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655, in <module> working_set.require(__requires__) File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: simplejson>=2.1 Unfortunately, the shipped python-simplejson package is version 2.0.9. Any suggestion? Cheers, Gabriele -- Gabriele Bartolini - 2ndQuadrant Italia PostgreSQL Training, Services and Support Gabriele.Bartolini@2ndQuadrant.it - www.2ndQuadrant.it
Hi, On Wed, 2013-01-16 at 11:15 +0100, Gabriele Bartolini wrote: > I installed the pgxnclient on CentOS 6 (64 bit). I then ran: > > # pgxn install oracle_fdw > Traceback (most recent call last): > File "/usr/bin/pgxn", line 5, in <module> > from pkg_resources import load_entry_point > ImportError: No module named pkg_resources > > I then installed the python-setuptools, and retried getting this: > > # pgxn install oracle_fdw > Traceback (most recent call last): > File "/usr/bin/pgxn", line 5, in <module> > from pkg_resources import load_entry_point > File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655, > in <module> > working_set.require(__requires__) > File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, > in require > needed = self.resolve(parse_requirements(requirements)) > File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, > in resolve > raise DistributionNotFound(req) > pkg_resources.DistributionNotFound: simplejson>=2.1 > > Unfortunately, the shipped python-simplejson package is version > 2.0.9. > > Any suggestion? The version dependency was added with the fix for https://github.com/dvarrazzo/pgxnclient/issues/8 Daniël van Eeden also created a ticket about this, and Daniele responded it: https://github.com/dvarrazzo/pgxnclient/issues/20 I am thinking of creating a "pgxnclient-python-setuptools" package, and let pgxnclient depend on it. Regards, -- Devrim GÜNDÜZ Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr http://www.gunduz.org Twitter: http://twitter.com/devrimgunduz