<div>Oh my god!</div>
<div>&nbsp;</div>
<div>Finally managed to install it.</div>
<div>&nbsp;</div>
<div>For those interested. </div>
<div>1) Copy folder &quot;psycopgda&quot; to&nbsp; YOUR ZOPE &quot;INSTANCE_HOME/lib/python&quot;</div>
<div>2) Copy psycopg-configure.zcml` to YOUR ZOPE &quot;INSTANCE_HOME/etc/package-includes&quot;</div>
<div>3) Download and install&nbsp; &quot;egenix-mx-base-2.0.6.win32-py2.4.exe&quot;</div>
<div>4) Download &quot;win-psycopg24-pg8.0.zip&quot;&nbsp;AND extract files &quot;libpq.dll&quot; and &quot;psycopg.pyd&quot; TO $(PYTHONDIR)\DLLs directory<br>5) Restart Zope</div>
<div>&nbsp;</div>
<div>This is how it is going to be for now if you want to enjoy Zope3+PostgreSQL in WIn32.</div>
<div>&nbsp;</div>
<div>Until a new versions of psycopgda and psycopg2 are available.</div>
<div>&nbsp;</div>
<div>Enjoy!!!</div>
<div>&nbsp;</div>
<div>Zopehead.</div>
<div>&nbsp;</div>
<div><br><br>&nbsp;</div>
<div><span class="gmail_quote">On 10/28/05, <b class="gmail_sendername">Duncan McGreggor</b> &lt;<a href="mailto:duncan.mcgreggor@gmail.com">duncan.mcgreggor@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>On Oct 27, 2005, at 9:45 PM, Bobby Brewster wrote:<br><br>&gt; Thanks for your help. However I am still not able to install the
<br>&gt; database adapter.<br>&gt;<br>&gt; I copied the file&nbsp;&nbsp;psycopg-configure.zcml into &quot;package-includes&quot;<br>&gt; and folder psycopgda into .\lib\python<br>&gt;<br>&gt; C:\PyZope\ZopeHome<br>&gt; bin<br>&gt; etc
<br>&gt; &nbsp;&nbsp; package-includes<br>&gt; lib<br>&gt; &nbsp;&nbsp; python<br>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; psycopgda<br>&gt; log<br>&gt; var<br>&gt;<br>&gt; I get the following errors. ==&gt;&nbsp;&nbsp;&nbsp;&nbsp;ConfigurationError: ('Invalid value
<br>&gt; for', 'class', &quot;Couldn't import psycopgd<br>&gt; a.adapter, No module named psycopg&quot;)<br>&gt;<br>&gt; ==============&nbsp;&nbsp;LAST FEW LINES&nbsp;&nbsp;&nbsp;&nbsp;=========================<br>&gt;&nbsp;&nbsp; File<br>&gt; &quot;C:\PyZope\Python24\Lib\site-packages\zope\configuration\config.py&quot;,
<br>&gt; line<br>&gt;&nbsp;&nbsp;1393, in toargs<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; args[str(name)] = field.fromUnicode(s)<br>&gt;&nbsp;&nbsp; File<br>&gt; &quot;C:\PyZope\Python24\Lib\site-packages\zope\configuration\fields.py&quot;,<br>&gt; line<br>&gt;&nbsp;&nbsp;141, in fromUnicode
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; raise schema.ValidationError(v)<br>&gt; zope.configuration.xmlconfig.ZopeXMLConfigurationError: File<br>&gt; &quot;C:\PyZope\ZopeHome<br>&gt; \etc\site.zcml&quot;, line 7.2-7.55<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; ZopeXMLConfigurationError: File
<br>&gt; &quot;C:\PyZope\ZopeHome\etc\package-includes\psy<br>&gt; copgda-configure.zcml&quot;, line 1.0-1.31<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; ZopeXMLConfigurationError: File<br>&gt; &quot;C:\PyZope\ZopeHome\lib\python\psycopgda\con<br>&gt; figure.zcml
&quot;, line 6.2<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; ConfigurationError: ('Invalid value for', 'class', &quot;Couldn't<br>&gt; import psycopgd<br>&gt; a.adapter, No module named psycopg&quot;)<br>&gt; ==============&nbsp;&nbsp;LAST FEW LINES&nbsp;&nbsp;&nbsp;&nbsp;=========================
<br>&gt; So do I have to install &quot;psycopg&quot; as well?<br>&gt;<br>&gt; PHP+Postgres+Apache was a piece of cake. Why am I having so much<br>&gt; trouble with this.<br>&gt; I guess I need to spend more time on this.<br>
<br>First question: did you install psycopg?<br><br>Second question: which python did you install it for? Because it<br>doesn't look like it's been installed for the python that is running<br>your z3 instance.<br><br>My bet is that you have more than one python binary (and thus different
<br>python site-packages directories), and the one that you used to install<br>psycopg is not the one that runs z3.<br><br>d<br><br>_______________________________________________<br>Zope3-users mailing list<br><a href="mailto:Zope3-users@zope.org">
Zope3-users@zope.org</a><br><a href="http://mail.zope.org/mailman/listinfo/zope3-users">http://mail.zope.org/mailman/listinfo/zope3-users</a><br></blockquote></div><br>