Error: You cannot install libxml2 for the architecture(s) x86_64 i386 because
Error: its dependency libiconv only contains the architecture(s) i386 ppc.
I tried install psycopg2 using easy_install... everything looks fine, but when I try to run my project, same error before.
Another suggestion I found was to run python in 32 bits mode.
I did a little test:
"arch -i386 pyhon -c 'import psycopg2'
It seems to work, but when I ran my project the error is still there, tried to change de env variable:
defaults write com.apple.versioner.python Prefer-32-Bit -bool yes
no success yet.
So I gave up of Python2.7 and back to Python2.5 tried to install everything again.
and it's not even recognize Django:
Best Regards,
Daniel França
http://shawnmilo.blogspot.com/2009/11/psycopg2-on-snow-leopard.html
Incidentally, you can replace "make install" with "make altinstall" to add Python 2.7 to your system without replacing the default Python.
Shawn
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Daniel,Glad to help. If you're new to the Mac and have questions just let me know.
Shawn
I doubt your python version is 1.2.1, maybe it's rather Django version :)
However, the issue django stated looks pretty clear to me. You created a
database with a wrong encoding type.
You should have a look at:
http://docs.djangoproject.com/en/1.2/ref/unicode/
Regards,
Xavier.
On Fri, 6 Aug 2010 11:13:40 -0300, Daniel França <daniel...@gmail.com>
wrote:
> Hi, I'm still get error trying to run my project on Mac =(Now the
> standalone server is running fine, but when I try to create a new user I
> get the error: "Can't adapt type 'US/Eastern", I tried to change my
> TIME_ZONE in setting, but no success. I can simulate this error in
> console, and here's the output:
>>>> from django.contrib.auth.models import User >>> new_user =
> User.objects.create_user("daniel", "daniel...@gmail.com [1]",
> "daniel") Traceback (most recent call last): File "", line 1, in
> args)DatabaseError: can't adapt type 'US/Eastern'
> Anyone have any ideia what it can be?my python version is 1.2.1
>
> On Mon, Jul 19, 2010 at 9:01 AM, Shawn Milochik wrote:
> Daniel,
> Glad to help. If you're new to the Mac and have questions just let me
> know.
> Shawn
> sh...@milochik.com [3] Google Chat: shawn...@gmail.com [4]
>
> 2010/7/19 Daniel França
> thanks a lot, now it's working.. at least this part.=)
>
> On Sun, Jul 18, 2010 at 11:10 PM, Shawn Milochik wrote:
> This is a known (and common) problem. Here's an easy fix that I've used
> many times.
>
> http://shawnmilo.blogspot.com/2009/11/psycopg2-on-snow-leopard.html [7]
>
> Incidentally, you can replace "make install" with "make altinstall" to
> add Python 2.7 to your system without replacing the default Python.
>
> Shawn
>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To post to this group, send email to django...@googlegroups.com [8].
> To unsubscribe from this group, send email to
> django-users...@googlegroups.com [9].
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en [10].
>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To post to this group, send email to django...@googlegroups.com
> [11].
> To unsubscribe from this group, send email to
> django-users...@googlegroups.com [12].
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en [13].
>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>
> Links:
> ------
> [1] mailto:daniel...@gmail.com
> [2] mailto:sh...@milochik.com
> [3] mailto:sh...@milochik.com
> [4] mailto:shawn...@gmail.com
> [5] mailto:daniel...@gmail.com
> [6] mailto:sh...@milochik.com
> [7] http://shawnmilo.blogspot.com/2009/11/psycopg2-on-snow-leopard.html
> [8] mailto:django...@googlegroups.com
> [9] mailto:django-users%2Bunsu...@googlegroups.com
> [10] http://groups.google.com/group/django-users?hl=en
> [11] mailto:django...@googlegroups.com
> [12] mailto:django-users%2Bunsu...@googlegroups.com
> [13] http://groups.google.com/group/django-users?hl=en
> My database is UTF-8, it's fine, doesn't?.
> I'm afraid to reinstall everything from ports and start to get a lot 64-32 bits incompatible issues like happened before =/
I think that should be fine with a utf-8 DB.
Are you sure your tables are UTF-8 ?
What database are you using ? mysql ? postgres ? I had no issue with both and I have a couple of non pure ascii sites.
However, when I moved to snow leopard, I recompiled mysql/postgres and the python drivers.
Regards,
Xavier.
--
I haven't really been following this thread, but you meant psycopg2,
not psycopg right? psycopg is old and unsupported as far as I know.
My personal opinion: Ignore all the ports/fink stuff, and get a good
native PostgreSQL install:
The 8.4.3 installer has some known problems (easy to fix if you know
what they are, but easier to avoid if this is your first time), but
other than that, this is a pretty reliable source of installers and
native tools. Once you've got the database installed, psycopg2
installs from source fairly cleanly.
Yours,
Russ Magee %-)
execute
return Database.Cursor.execute(self, query, params)
[console ready]>>> print params (1, <DstTzInfo 'America/Sao_Paulo' LMT-1 day, 20:54:00 STD>, u'pt-br')>>> print self <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x1e214e0>>>> print query INSERT INTO "account_account" ("user_id", "timezone", "language") VALUES (?, ?, ?)>>> print params[1] America/Sao_Paulo>>> print params[0] 1>>> print params[2] pt-br
2010/8/10 AndyB <and...@gmail.com>
I haven't got anything useful to add other than some sympathy. I
vented my incoherent rage on Twitter a few months ago over how much
trouble I had getting various Python binaries working. PIL, MySQL-
Python, lxml and a couple more still plague my fevered dreams...
As a web developer I never really wanted to get knee-deep in gcc and
make errors. I would love someone cleverer than myself to make the
experience of getting a fully featured Django install running on OS X
a little more streamlined. Unfortunately the people with the skills to
do so are usually the people without the need and the people who need
one don't have the knowledge to make one. :-(
I know it's not fair to moan when you don't contribute but it's nice
to share the pain sometimes ;-)
(after writing it I decided not to post this to the forum as I'm not
saying anything useful but I thought I'd send it to you anyway!)
regards,
Andy Baker
It's very useful Andy, sympathy is welcome =)I was programming under linux, and I guessed that would be really straight forward port my project to OSX, I was wrong :(
--
--
Replying to this old post as I am having this problem of:Symbol not found: _PQbackendPIDOn MAC OS x 10.6.8using:python 2.7 and postgres 9.1.4On virtual envWanted to ask if you guys seen this issue with python 2.7 and do you know if there is a solution to this.Thanks
On Sunday, July 18, 2010 5:06:58 PM UTC-7, daniel.franca wrote:Recently I migrated from Linux to Mac OS X 10.6, and I was thinking that would be easy to migrate my Django project to that.I was wrong, a lot wrong...First I tried to install Python2.7, the libs I need to my project, etcAfter that I get the error:
gresql_psycopg2/base.py", line 24, in <module>raise ImproperlyConfigured("Error loading psycopg2 module: %s" % e)django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psycopg2/_psycopg.so, 2): Symbol not found: _PQbackendPIDReferenced from: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psycopg2/_psycopg.soExpected in: flat namespacein /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psycopg2/_psycopg.soAfter some research I saw some suggestions, one of them was to download and install everything from Ports. But it didn't work for me too::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 failedBut libxml2.7 was there, what I did? I tried to remove it and install again, but when I tried to reinstall it I get another error:Error: You cannot install libxml2 for the architecture(s) x86_64 i386 because
Error: its dependency libiconv only contains the architecture(s) i386 ppc.
I tried install psycopg2 using easy_install... everything looks fine, but when I try to run my project, same error before.
Another suggestion I found was to run python in 32 bits mode.
I did a little test:
"arch -i386 pyhon -c 'import psycopg2'
It seems to work, but when I ran my project the error is still there, tried to change de env variable:
defaults write com.apple.versioner.python Prefer-32-Bit -bool yes
no success yet.
So I gave up of Python2.7 and back to Python2.5 tried to install everything again.
and it's not even recognize Django:
Traceback (most recent call last):
File "./manage.py", line 11, in <module>from django.conf import settingsImportError: No module named django.confThe libs are here:python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packagesls /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packagesDjango-1.2.1-py2.5.egg-info django_extensions-0.5-py2.5.egg-info psycopg2PIL django_pagination-1.0.7-py2.5.egg psycopg2-2.2.2-py2.5.egg-infoPIL.pth django_robots-0.8.0-py2.5.egg pytz-2010h-py2.5.eggSouth-0.7.1-py2.5.egg django_tagging-0.3.1-py2.5.egg-info setuptools-0.6c11-py2.5.eggdjango django_timezones-0.1.4-py2.5.egg setuptools.pthdjango_db_log-2.0.0-py2.5.egg easy-install.pth taggingdjango_dbtemplates-0.7.1-py2.5.egg include_serverdjango_extensions include_server-3.1_toolwhip.1-py2.5.egg-infopython --versionPython 2.5.4Best Regards,
Daniel França
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/opErLpsqs4wJ.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
I tried that too, but it didn't change anythin
brew update
Here I tried:
brew install postgresql
but had this error Error: Failed executing: make install-world (postgresql.rb:67)
So instead I did this:
brew install postgres --no-ossp-uuid --no-python --no-rubie
Then when running python manage.py runserver I got this error mentioned first:
Symbol not found: _PQbackendPID