Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
PLEASE HELP ME! update python 2.5 to 2.6 and django doesnt work
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
joker  
View profile  
 More options Nov 4, 8:01 pm
From: joker <musluyuksekt...@gmail.com>
Date: Wed, 4 Nov 2009 01:01:12 -0800 (PST)
Local: Wed, Nov 4 2009 8:01 pm
Subject: PLEASE HELP ME! update python 2.5 to 2.6 and django doesnt work
i update python 2.5.2 to 2.6 and setup changed directory
/usr/lib/python2.5 to /usr/local/lib/python2.5/
 and django doesnt working now

Traceback (most recent call last):

  File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line
1537, in HandlerDispatch

  File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line
1229, in _process_target

  File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line
1128, in _execute_target

  File "/usr/local/lib/python2.5/site-packages/django/core/handlers/
modpython.py", line 228, in handler
    return ModPythonHandler()(req)

  File "/usr/local/lib/python2.5/site-packages/django/core/handlers/
modpython.py", line 191, in __call__
    self.load_middleware()

  File "/usr/local/lib/python2.5/site-packages/django/core/handlers/
base.py", line 42, in load_middleware
    raise exceptions.ImproperlyConfigured, 'Error importing middleware
%s: "%s"' % (mw_module, e)

ImproperlyConfigured: Error importing middleware
django.contrib.flatpages.middleware: "No module named mysql.base"


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Crispin Wellington  
View profile  
 More options Nov 4, 8:16 pm
From: Crispin Wellington <cwelling...@ccg.murdoch.edu.au>
Date: Wed, 04 Nov 2009 17:16:16 +0800
Local: Wed, Nov 4 2009 8:16 pm
Subject: Re: PLEASE HELP ME! update python 2.5 to 2.6 and django doesnt work
Looks like your python 2.5 had the python mysql packages installed, but
your new python 2.6 doesn't, which it wouldn't being a fresh install.
Now you need to install the python mysql bindings into python 2.6.

Also, you should probably have your libs in for python 2.6
in /usr/local/lib/python2.6/ rather than /usr/local/lib/python2.5/. You
can change where this all goes via the ./configure --prefix option in
the python build. By default this is set to /usr/local. If you set it
to /usr, it will install in /usr/lib/python2.6, but you shouldn't do it
that way, because locally compiled software should go in /usr/local,
while system packages from your distribution go in /usr

Best way forward I would think is to install ez_setup in your python2.6,
and then you will end up with a /usr/local/bin/easy_install. You can
then use this to easily install the mysql bindings, and whatever else
you will need aswell.

Kind Regards

Crispin Wellington


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Roland van Laar  
View profile  
 More options Nov 4, 8:17 pm
From: Roland van Laar <rol...@micite.net>
Date: Wed, 04 Nov 2009 10:17:51 +0100
Local: Wed, Nov 4 2009 8:17 pm
Subject: Re: PLEASE HELP ME! update python 2.5 to 2.6 and django doesnt work

joker wrote:
> i update python 2.5.2 to 2.6 and setup changed directory
> /usr/lib/python2.5 to /usr/local/lib/python2.5/
>  and django doesnt working now

> ImproperlyConfigured: Error importing middleware
> django.contrib.flatpages.middleware: "No module named mysql.base"

You might want to do easy_install mysql-python or something equivalent
for python 2.6

Regards,

Roland van Laar


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
joker  
View profile  
 More options Nov 4, 9:46 pm
From: joker <musluyuksekt...@gmail.com>
Date: Wed, 4 Nov 2009 02:46:07 -0800 (PST)
Local: Wed, Nov 4 2009 9:46 pm
Subject: Re: PLEASE HELP ME! update python 2.5 to 2.6 and django doesnt work
i worked easy_install mysql-python command but still doesnt work

On 4 Kasım, 11:17, Roland van Laar <rol...@micite.net> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ssteinerX@gmail.com  
View profile  
 More options Nov 5, 6:26 am
From: "sstein...@gmail.com" <sstein...@gmail.com>
Date: Wed, 4 Nov 2009 14:26:30 -0500
Local: Thurs, Nov 5 2009 6:26 am
Subject: Re: PLEASE HELP ME! update python 2.5 to 2.6 and django doesnt work

On Nov 4, 2009, at 4:01 AM, joker wrote:

> i update python 2.5.2 to 2.6 and setup changed directory
> /usr/lib/python2.5 to /usr/local/lib/python2.5/

That doesn't look right.  If you installed 2.6, the new directories  
should have 2.6 in them, not 2.5 and so should your tracebacks.

S


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google