Re: error psycopg in Django/MacOSX

Daniel França <[email protected]> Sun, 18 Jul 2010 01:57:03 -0300
Newsgroups gmane.comp.python.db.psycopg.devel
Message-ID <[email protected]>
--===============5365640842250104993==
Content-Type: multipart/alternative; boundary=00c09f99e5cda1d70f048ba24946

--00c09f99e5cda1d70f048ba24946
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I tried to run in 32bits mode this way: "arch -i386 python"
that's is right?

If i just run something like: *"arch -i386 python -c 'import psycopg2' "*
*It's ok, no error happens (and without arch -i386 the error happens)*
*
*
*but when I run my manage.py django app, nothing changes, same error *
*I tried to create an alias -> alias python=3D"arch -i386 python"*
*but no success =3D/
*
2010/7/18 Daniel Fran=E7a <[email protected]>

> Hi all,
> I tried a lot of things with no successfull yet =3D/
> I've tried to install using Mac Ports (Porticus) and I get the error in
> log:
> :info:configure configure: error: library 'xml2' (version >=3D 2.6.23) is
> required for XML support
> :info:configure shell command " cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macp=
orts.org_release_ports_databases_postgresql84/work/postgresql-8.4.4"
> && ./configure --prefix=3D/opt/local --disable-dependency-tracking
> --sysconfdir=3D/opt/local/etc/postgresql84
> --bindir=3D/opt/local/lib/postgresql84/bin
> --libdir=3D/opt/local/lib/postgresql84
> --includedir=3D/opt/local/include/postgresql84
> --datadir=3D/opt/local/share/postgresql84 --mandir=3D/opt/local/share/man
> --without-docdir --with-includes=3D/opt/local/include
> --with-libraries=3D/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 failur=
e:
> shell command failed
>
> But libxml was 2.7, I don't know why it's not recognizing, so I uninstall=
ed
> 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
>>
>
>

--00c09f99e5cda1d70f048ba24946
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I tried to run in 32bits mode this way: &quot;arch -i386 python&quot;<div>t=
hat&#39;s is right?</div><div><br></div><div>If i just run something like: =
<i><b>&quot;arch -i386 python -c &#39;import psycopg2&#39; &quot;</b></i></=
div>

<div><b><i><span class=3D"Apple-style-span" style=3D"font-style: normal;"><=
span class=3D"Apple-style-span" style=3D"font-weight: normal;">It&#39;s ok,=
 no error happens (and without arch -i386 the error happens)</span></span><=
/i></b></div>

<div><b><i><span class=3D"Apple-style-span" style=3D"font-style: normal;"><=
span class=3D"Apple-style-span" style=3D"font-weight: normal;"><br></span><=
/span></i></b></div><div><b><i><span class=3D"Apple-style-span" style=3D"fo=
nt-style: normal;"><span class=3D"Apple-style-span" style=3D"font-weight: n=
ormal;">but when I run my manage.py django app, nothing changes, same error=
=A0</span></span></i></b></div>

<div><b><i><span class=3D"Apple-style-span" style=3D"font-style: normal;"><=
span class=3D"Apple-style-span" style=3D"font-weight: normal;">I tried to c=
reate an alias -&gt; alias python=3D&quot;arch -i386 python&quot;</span></s=
pan></i></b></div>

<div><b><i><span class=3D"Apple-style-span" style=3D"font-style: normal;"><=
span class=3D"Apple-style-span" style=3D"font-weight: normal;">but no succe=
ss =3D/<br></span></span></i></b><br><div class=3D"gmail_quote">2010/7/18 D=
aniel Fran=E7a <span dir=3D"ltr">&lt;<a href=3D"mailto:daniel.franca@gmail.=
com">[email protected]</a>&gt;</span><br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex;">Hi all,<div>I tried a lot of things with no=
 successfull yet =3D/</div><div>I&#39;ve tried 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=
 &#39;xml2&#39; (version &gt;=3D 2.6.23) is required for XML support</font>=
</div>
<div><font color=3D"#CC0000">:info:configure shell command &quot; cd &quot;=
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macport=
s.org_release_ports_databases_postgresql84/work/postgresql-8.4.4&quot; &amp=
;&amp; ./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 &quot; 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&#39;t know why it&#39;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&#39;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">&lt;<a href=
=3D"mailto:[email protected]" target=3D"_blank">daniele.varrazzo@g=
mail.com</a>&gt;</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 &lt;<a href=3D"mailto:=
[email protected]" target=3D"_blank">[email protected]</a>&gt; wr=
ote:<br>
&gt; Am 13.07.2010, 12:00 Uhr, schrieb &lt;<a href=3D"mailto:psycopg-reques=
[email protected]" target=3D"_blank">psycopg-request-IAPFreCvJWPBWskQ1e/[email protected]</a>&gt=
;:<br>
&gt;<br>
&gt;&gt; I don&#39;t know why it&#39;s happening, mayble incorrect version?=
<br>
&gt;&gt; I&#39;m using Python 2.7 and Postgresql8.4 and Psycopg 2.2.1<br>
&gt;<br>
&gt; As Jan says there may be problems with 32-bit / 64-bit versions.<br>
&gt;<br>
&gt; I suggest you use MacPorts versions of Python and Postgres. Python 2.7=
,<br>
&gt; 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&#39;d like to add them to<br>
&lt;<a href=3D"http://initd.org/psycopg/docs/faq.html" target=3D"_blank">ht=
tp://initd.org/psycopg/docs/faq.html</a>&gt;. I&#39;ve read about problems<=
br>
raised from time to time but I don&#39;t follow closely the threads as I<br=
>
don&#39;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></div>

--00c09f99e5cda1d70f048ba24946--

--===============5365640842250104993==
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

--===============5365640842250104993==--