Re: error psycopg in Django/MacOSX
Daniel França <[email protected]> Sun, 18 Jul 2010 01:57:29 -0300
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============8742600106956713615== Content-Type: multipart/alternative; boundary=00c09f905eed2fea8e048ba24b49 --00c09f905eed2fea8e048ba24b49 Content-Type: text/plain; charset=ISO-8859-1 > Hi all, > I tried a lot of things with no successfull yet =/ > I've tried to install using Mac Ports (Porticus) and I get the error in > log: > :info:configure configure: error: library 'xml2' (version >= 2.6.23) is > required for XML support > :info:configure shell command " cd > "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_postgresql84/work/postgresql-8.4.4" > && ./configure --prefix=/opt/local --disable-dependency-tracking > --sysconfdir=/opt/local/etc/postgresql84 > --bindir=/opt/local/lib/postgresql84/bin > --libdir=/opt/local/lib/postgresql84 > --includedir=/opt/local/include/postgresql84 > --datadir=/opt/local/share/postgresql84 --mandir=/opt/local/share/man > --without-docdir --with-includes=/opt/local/include > --with-libraries=/opt/local/lib --with-openssl --with-bonjour > --with-readline --with-zlib --with-libxml --with-libxslt > --enable-thread-safety --enable-integer-datetimes --with-ossp-uuid " > returned error 1 > :error:configure Target org.macports.configure returned: configure failure: > shell command failed > > But libxml was 2.7, I don't know why it's not recognizing, so I uninstalled > libxml2, and now when I try to reinstall it, it says: > > Error: You cannot install libxml2 for the architecture(s) x86_64 i386 > because > > Error: its dependency libiconv only contains the architecture(s) i386 ppc. > > And if I try to install psycopg2 using easy_install or compiling the > source, it seems work fine, but I still can't start my django application > with the same error before. > > what else can I do? > > On Tue, Jul 13, 2010 at 8:14 AM, Daniele Varrazzo < > [email protected]> wrote: > >> On Tue, Jul 13, 2010 at 11:38 AM, Charlie Clark <[email protected]> >> wrote: >> > Am 13.07.2010, 12:00 Uhr, schrieb <psycopg-request-IAPFreCvJWPBWskQ1e/[email protected]>: >> > >> >> I don't know why it's happening, mayble incorrect version? >> >> I'm using Python 2.7 and Postgresql8.4 and Psycopg 2.2.1 >> > >> > As Jan says there may be problems with 32-bit / 64-bit versions. >> > >> > I suggest you use MacPorts versions of Python and Postgres. Python 2.7, >> > psycopg2 and Postgres 8.4 work fine for me. >> >> Hello, >> >> please, could anybody write the text of one or two FAQ+A regarding >> compiling/using psycopg on Mac OS X? I'd like to add them to >> <http://initd.org/psycopg/docs/faq.html>. I've read about problems >> raised from time to time but I don't follow closely the threads as I >> don't know the platforms nor anything about the MacPorts - which seem >> usually addressed as a solution. >> >> Thank you very much, >> >> -- Daniele >> _______________________________________________ >> Psycopg mailing list >> Psycopg-IAPFreCvJWPBWskQ1e/[email protected] >> http://lists.initd.org/mailman/listinfo/psycopg >> > > --00c09f905eed2fea8e048ba24b49 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <br><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"m= argin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi all,<div>= I tried a lot of things with no successfull yet =3D/</div><div>I've tri= ed to install using Mac Ports (Porticus) and I get the error in log:</div> <div><div><font color=3D"#CC0000">:info:configure configure: error: library= 'xml2' (version >=3D 2.6.23) is required for XML support</font>= </div> <div><font color=3D"#CC0000">:info:configure shell command " cd "= /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macport= s.org_release_ports_databases_postgresql84/work/postgresql-8.4.4" &= ;& ./configure --prefix=3D/opt/local --disable-dependency-tracking --sy= sconfdir=3D/opt/local/etc/postgresql84 --bindir=3D/opt/local/lib/postgresql= 84/bin --libdir=3D/opt/local/lib/postgresql84 --includedir=3D/opt/local/inc= lude/postgresql84 --datadir=3D/opt/local/share/postgresql84 --mandir=3D/opt= /local/share/man --without-docdir --with-includes=3D/opt/local/include --wi= th-libraries=3D/opt/local/lib --with-openssl --with-bonjour --with-readline= --with-zlib --with-libxml --with-libxslt --enable-thread-safety --enable-i= nteger-datetimes --with-ossp-uuid " returned error 1</font></div> <div><font color=3D"#CC0000">:error:configure Target org.macports.configure= returned: configure failure: shell command failed</font></div><div><br></d= iv><div>But libxml was 2.7, I don't know why it's not recognizing, = so I uninstalled libxml2, and now when I try to reinstall it, it says:</div= > <div> <p><font color=3D"#FF0000">Error: You cannot install libxml2 for the archit= ecture(s) x86_64 i386 because</font></p> <p><font color=3D"#FF0000">Error: its dependency libiconv only contains the= architecture(s) i386 ppc.</font></p><p>And if I try to install psycopg2 us= ing easy_install or compiling the source, it seems work fine, but I still c= an't start my django application with the same error before.</p> <p>what else can I do?</p> </div><div><div></div><div class=3D"h5"><br><div class=3D"gmail_quote">On T= ue, Jul 13, 2010 at 8:14 AM, Daniele Varrazzo <span dir=3D"ltr"><<a href= =3D"mailto:[email protected]" target=3D"_blank">daniele.varrazzo@g= mail.com</a>></span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"> <div>On Tue, Jul 13, 2010 at 11:38 AM, Charlie Clark <<a href=3D"mailto:= [email protected]" target=3D"_blank">[email protected]</a>> wr= ote:<br> > Am 13.07.2010, 12:00 Uhr, schrieb <<a href=3D"mailto:psycopg-reques= [email protected]" target=3D"_blank">psycopg-request-IAPFreCvJWPBWskQ1e/[email protected]</a>>= ;:<br> ><br> >> I don't know why it's happening, mayble incorrect version?= <br> >> I'm using Python 2.7 and Postgresql8.4 and Psycopg 2.2.1<br> ><br> > As Jan says there may be problems with 32-bit / 64-bit versions.<br> ><br> > I suggest you use MacPorts versions of Python and Postgres. Python 2.7= ,<br> > psycopg2 and Postgres 8.4 work fine for me.<br> <br> </div>Hello,<br> <br> please, could anybody write the text of one or two FAQ+A regarding<br> compiling/using psycopg on Mac OS X? I'd like to add them to<br> <<a href=3D"http://initd.org/psycopg/docs/faq.html" target=3D"_blank">ht= tp://initd.org/psycopg/docs/faq.html</a>>. I've read about problems<= br> raised from time to time but I don't follow closely the threads as I<br= > don't know the platforms nor anything about the MacPorts - which seem<b= r> usually addressed as a solution.<br> <br> Thank you very much,<br> <font color=3D"#888888"><br> -- Daniele<br> </font><div><div></div><div>_______________________________________________= <br> Psycopg mailing list<br> <a href=3D"mailto:Psycopg-IAPFreCvJWPBWskQ1e/[email protected]" target=3D"_blank">Psycopg@lists.= initd.org</a><br> <a href=3D"http://lists.initd.org/mailman/listinfo/psycopg" target=3D"_blan= k">http://lists.initd.org/mailman/listinfo/psycopg</a><br> </div></div></blockquote></div><br></div></div></div> </blockquote></div><br> --00c09f905eed2fea8e048ba24b49-- --===============8742600106956713615== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Psycopg mailing list Psycopg-IAPFreCvJWPBWskQ1e/[email protected] http://lists.initd.org/mailman/listinfo/psycopg --===============8742600106956713615==--