Re: MySQLdb setup on snow leopard help

2010-04-14 Thread Bdidi
On Apr 14, 12:51 am, VWAllen  wrote:
> I had a lot of trouble at first getting things setup on Snow Leopard
> (mostly 32-bit/64-bit problems).
>
> Ultimately, I loaded the full stack through MacPorts (apache, mysql,
> python, wsgi, django, etc. etc.). Almost all of the problems I ran
> into with this method were related to making sure that other versions
> of MySQL and Python were not being called, but it wasn't too bad.
>
> Be sure you grab the python_select bundle as well (I can't remember it
> it's separate or not). This will help you if you need to switch back
> to the default Python install.

Thanks for replying Victor.

I''ve not done much with MacPorts (always preferred using Fink, since
that's what I came across first), but I'll definitely have a look at
this.

(What was involved in getting the right versions of MySQL and python
to be called?)

Brett

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: MySQLdb setup on snow leopard help

2010-04-14 Thread Bdidi
On Apr 14, 12:51 am, VWAllen  wrote:
> I had a lot of trouble at first getting things setup on Snow Leopard
> (mostly 32-bit/64-bit problems).
>
> Ultimately, I loaded the full stack through MacPorts (apache, mysql,
> python, wsgi, django, etc. etc.). Almost all of the problems I ran
> into with this method were related to making sure that other versions
> of MySQL and Python were not being called, but it wasn't too bad.
>
> Be sure you grab the python_select bundle as well (I can't remember it
> it's separate or not). This will help you if you need to switch back
> to the default Python install.

Thanks for replying Victor.

I''ve not done much with MacPorts (always preferred using Fink, since
that's what I came across first), but I'll definitely have a look at
this.

(What was involved in getting the right versions of MySQL and python
to be called?)

Brett

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: MySQLdb setup on snow leopard help

2010-04-13 Thread VWAllen
I had a lot of trouble at first getting things setup on Snow Leopard
(mostly 32-bit/64-bit problems).

Ultimately, I loaded the full stack through MacPorts (apache, mysql,
python, wsgi, django, etc. etc.). Almost all of the problems I ran
into with this method were related to making sure that other versions
of MySQL and Python were not being called, but it wasn't too bad.

Be sure you grab the python_select bundle as well (I can't remember it
it's separate or not). This will help you if you need to switch back
to the default Python install.

V

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: MySQLdb setup on snow leopard help

2010-04-12 Thread Bdidi


On Apr 13, 8:07 am, Bdidi  wrote:
> On Apr 12, 8:31 pm, Steven Elliott Jr  wrote:> Did 
> you run the install as sudo?

Yes, the install was run as sudo.

Alex Robbins  wrote
> If you are planning to deploy to linux servers, you might have a nicer
> time developing on a linux vm. I have a mac, but do my development in
> an ubuntu vm. Many difficult installations become a simple "sudo apt-
> get install ".

I have an ubuntu vm already set up on my mac, so I can try this.
Ultimately though, it's more likely that I would be looking to deploy
on mac servers, so I guess I need to get the mac side sorted out. But
thank you for the suggestion.

Brett

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: MySQLdb setup on snow leopard help

2010-04-12 Thread Bdidi


On Apr 12, 8:31 pm, Steven Elliott Jr  wrote:
> Did you run the install as sudo?
>
> -Steven Elliott Jr
>
Hmm, good question - I'd better check that.

Thanks,
Brett

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: MySQLdb setup on snow leopard help

2010-04-12 Thread Alex Robbins
If you are planning to deploy to linux servers, you might have a nicer
time developing on a linux vm. I have a mac, but do my development in
an ubuntu vm. Many difficult installations become a simple "sudo apt-
get install ".
YMMV,
Alex

On Apr 12, 2:09 am, Bdidi  wrote:
> I reinstalled XCode to include 10.4 support and tried again, and
> MySQLdb is now installed, but now I get this:
>
> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
> site-packages/django/db/backends/mysql/base.py", line 13, in 
>     raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
> django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb
> module: dlopen(/Users/bduncan/.python-eggs/MySQL_python-1.2.3c1-py2.6-
> macosx-10.3-fat.egg-tmp/_mysql.so, 2): Symbol not found:
> _mysql_affected_rows
>
> Can anyone point in the right direction on this?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: MySQLdb setup on snow leopard help

2010-04-12 Thread Steven Elliott Jr

Did you run the install as sudo?

-Steven Elliott Jr

On Apr 12, 2010, at 3:09 AM, Bdidi  wrote:


I reinstalled XCode to include 10.4 support and tried again, and
MySQLdb is now installed, but now I get this:

File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
site-packages/django/db/backends/mysql/base.py", line 13, in 
   raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb
module: dlopen(/Users/bduncan/.python-eggs/MySQL_python-1.2.3c1-py2.6-
macosx-10.3-fat.egg-tmp/_mysql.so, 2): Symbol not found:
_mysql_affected_rows

Can anyone point in the right direction on this?

--  
You received this message because you are subscribed to the Google  
Groups "Django users" group.

To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com 
.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en 
.




--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: MySQLdb setup on snow leopard help

2010-04-12 Thread Bdidi
I reinstalled XCode to include 10.4 support and tried again, and
MySQLdb is now installed, but now I get this:

File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
site-packages/django/db/backends/mysql/base.py", line 13, in 
raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb
module: dlopen(/Users/bduncan/.python-eggs/MySQL_python-1.2.3c1-py2.6-
macosx-10.3-fat.egg-tmp/_mysql.so, 2): Symbol not found:
_mysql_affected_rows

Can anyone point in the right direction on this?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: MySQLdb setup on snow leopard help

2010-04-12 Thread Bdidi
I'm also having problems with this. Installing setuptools was no
problem, but I still get errors trying to install MYSQLdb - this:

dyld: Library not loaded: /usr/local/lib/libintl.3.dylib
  Referenced from: /usr/local/bin/gnused
  Reason: image not found

which is odd since  libintl.3.dylib  is definitely there; and this:

building '_mysql' extension
Compiling with an SDK that doesn't seem to exist: /Developer/SDKs/
MacOSX10.4u.sdk

That squares with the fact that when I check where XCode is installed,
I find SDKs for 10.6 and 10.5 but not 10.4, but does this mean I need
the 10.4 SDK in order to install MYSQLdb?

Thx

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: MySQLdb setup on snow leopard help

2010-04-09 Thread jmswen
Out of curiosity, are you using a version of Python that you installed
(i.e., not the out-of-the-box version that comes with Snow Leopard)?

You are missing the setuptools package in your installation of
Python.  Visit http://pypi.python.org/pypi/setuptools and read the
download/installation instructions.

I fear that if you are using Python 2.6, you may run into another,
separate problem once you get setuptools working.  After "installing"
MySQLdb and subsequently importing it, you may run into this error:

ImportError: dynamic module does not define init function (init_mysql)

If you do, come back to this thread and I'll help you through that. :)

On Apr 8, 6:17 pm, CG  wrote:
> I have successfully setup django, although I am not sure how I did
> it.  Now I am trying to setup MySQLdb  but keep getting the error
>   File "setup.py", line 5, in 
>     from setuptools import setup, Extension
> ImportError: No module named setuptools

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



MySQLdb setup on snow leopard help

2010-04-08 Thread CG
I have successfully setup django, although I am not sure how I did
it.  Now I am trying to setup MySQLdb  but keep getting the error
  File "setup.py", line 5, in 
from setuptools import setup, Extension
ImportError: No module named setuptools

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.