Re: [Zope3-Users] Windows binary psycopgda-1.0.0.tgz
And I created a Zope Home Instance at C:\PyZope\ZopeHome I could NOT find package-includes so I created it at C:\PyZope\ZopeHome\packages-includes and copied psycopg-configure.zcml into it. Did you look for package-includes at: C:\PyZope\ZopeHome\etc I think that's where it should be. package-includes seems to have about 30 *-configure.zcml files in it in a default instance. Hope that helps, James ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Windows binary psycopgda-1.0.0.tgz
Thanks for your help. However I am still not able to install the database adapter. Icopied the file psycopg-configure.zcml into package-includes andfolder psycopgda into .\lib\python C:\PyZope\ZopeHome├───bin├───etc│ └───package-includes├───lib│ └───python│ └───psycopgda├───log└───var I get the following errors.== ConfigurationError: ('Invalid value for', 'class', Couldn't import psycopgda.adapter, No module named psycopg) == LAST FEW LINES = File C:\PyZope\Python24\Lib\site-packages\zope\configuration\config.py, line1393, in toargs args[str(name)] = field.fromUnicode(s) File C:\PyZope\Python24\Lib\site-packages\zope\configuration\fields.py, line 141, in fromUnicode raise schema.ValidationError(v)zope.configuration.xmlconfig.ZopeXMLConfigurationError: File C:\PyZope\ZopeHome\etc\site.zcml, line 7.2-7.55 ZopeXMLConfigurationError: File C:\PyZope\ZopeHome\etc\package-includes\psy copgda-configure.zcml, line 1.0-1.31 ZopeXMLConfigurationError: File C:\PyZope\ZopeHome\lib\python\psycopgda\configure.zcml, line 6.2 ConfigurationError: ('Invalid value for', 'class', Couldn't import psycopgd a.adapter, No module named psycopg) == LAST FEW LINES = So do I have to install psycopg as well? PHP+Postgres+Apache was a piece of cake. Why am I having so much trouble with this.I guess I need to spend more time on this. Zopehead. On 10/27/05, James Allwyn [EMAIL PROTECTED] wrote: And I created a Zope Home Instance at C:\PyZope\ZopeHome I could NOT find package-includes so I created it at C:\PyZope\ZopeHome\packages-includes and copied psycopg-configure.zcml into it.Did you look for package-includes at:C:\PyZope\ZopeHome\etcI think that's where it should be. package-includes seems to have about 30 *-configure.zcml files in it in a default instance.Hope that helps,James ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Windows binary psycopgda-1.0.0.tgz
On Oct 27, 2005, at 9:45 PM, Bobby Brewster wrote: Thanks for your help. However I am still not able to install the database adapter. I copied the file psycopg-configure.zcml into package-includes and folder psycopgda into .\lib\python C:\PyZope\ZopeHome ├───bin ├───etc │ └───package-includes ├───lib │ └───python │ └───psycopgda ├───log └───var I get the following errors. ==ConfigurationError: ('Invalid value for', 'class', Couldn't import psycopgd a.adapter, No module named psycopg) == LAST FEW LINES= File C:\PyZope\Python24\Lib\site-packages\zope\configuration\config.py, line 1393, in toargs args[str(name)] = field.fromUnicode(s) File C:\PyZope\Python24\Lib\site-packages\zope\configuration\fields.py, line 141, in fromUnicode raise schema.ValidationError(v) zope.configuration.xmlconfig.ZopeXMLConfigurationError: File C:\PyZope\ZopeHome \etc\site.zcml, line 7.2-7.55 ZopeXMLConfigurationError: File C:\PyZope\ZopeHome\etc\package-includes\psy copgda-configure.zcml, line 1.0-1.31 ZopeXMLConfigurationError: File C:\PyZope\ZopeHome\lib\python\psycopgda\con figure.zcml, line 6.2 ConfigurationError: ('Invalid value for', 'class', Couldn't import psycopgd a.adapter, No module named psycopg) == LAST FEW LINES= So do I have to install psycopg as well? PHP+Postgres+Apache was a piece of cake. Why am I having so much trouble with this. I guess I need to spend more time on this. First question: did you install psycopg? Second question: which python did you install it for? Because it doesn't look like it's been installed for the python that is running your z3 instance. My bet is that you have more than one python binary (and thus different python site-packages directories), and the one that you used to install psycopg is not the one that runs z3. d ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Windows binary psycopgda-1.0.0.tgz
Hi, From the readme.txt which is in the psycopgda subdirectory, I can read : Installing PsycopgDA 1. Check out the psycopgda package into a directory in your PYTHONPATH. INSTANCE_HOME/lib/python or Zope3/src is usually the most convenient place: svn co svn://svn.zope.org/repos/main/psycopgda/trunk psycopgda 2. Copy `psycopg-configure.zcml` to the `package-includes` directory of your Zope instance. -- However you don't have to checkout the SVN as you already have the files. So there seem no need to use the configure script at all. There is also a setup.py script in the distribution archive. Perhaps a python.exe setup.py --install should also work ? Regards, Stéphane Bobby Brewster wrote: Hey all, Can anyone explain to me how to get psycopgda-1.0.0.tgz (26 K) http://www.zope.org/Products/Zope3-Packages/psycopgda/1.0.0/psycopgda-1.0.0.tgz to work in Win32? I believe it wants me to do a compile (/.configure) Any help would be much appreciated. Thank you Shapehead ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users