Re: Python 2.5 anyone

2006-09-22 Thread Vizcayno

I have problems to get mod-python for python 2.5 (win32). Does anybody
knows how to get this version.
Thanks!!


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Python 2.5 anyone

2006-09-21 Thread Waylan Limberg

On 9/20/06, John DeRosa <[EMAIL PROTECTED]> wrote:
[snip]
>
> It seems a little screwy for a file in a directory called "sqlite3" to
> do an import from "pysqlite2".  But that's what it does.
>

What you need to realize is that "sqlite" refers to the database,
while "pysqlite" are the python bindings to that database. SQLite is
currently up to version 3.x. The python bindings required to use
SQLite3 are up to version 2.x - thus "pysqlite2".

It would seem that in Python2.5 they tried to avoid this confusion by
naming the python bindings the same as the version of SQLite they are
a wrapper for. While this certainly makes sense, it is not backward
compatable as any existing projects would be importing from pysqlite2
as you found out. It looks this this is being addressed in ticket 2772
[1]. For more info on the new sqlite3 wrapper, see [2].

[1]: http://code.djangoproject.com/ticket/2772
[2]: 
http://docs.python.org/dev/whatsnew/modules.html#SECTION000144


-- 

Waylan Limberg
[EMAIL PROTECTED]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Python 2.5 anyone

2006-09-21 Thread John Morton

On Thursday 21 September 2006 05:44, John DeRosa wrote:
>  Oliver Andrich wrote:
>  > Hi,
>  >
>  > I am running Django 0.95 . And so far I can't see any problems.
>
>  How'd you do it?
>
>  I'm on Windows XP.  I installed Python 2.5 from python.org without a
>  problem.
>
>  But then I found that pysqlite Windows binaries for Python 2.5 don't
>  exist, and neither does setuptools.  Trying to install Django 0.95 on
>  top of Python 2.5 gives me this:

pysqlite2 comes bundled with python 2.5. 

John


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Python 2.5 anyone

2006-09-21 Thread Vladimir Cambur


I was trying to install django and setup.py
said that it cannot fetch setuptools from cheeseshop.
and indeed there was no setuptools in 
http://cheeseshop.python.org/packages/2.5/s/.
(It's there right now :) )
After googling a little bit I saw some posts about
something incompatible between setuptools 0.6 and python 2.5
So I just decided to checkout 0.7 from python svn sandbox.

It seems that they made 0.6 for python 2.5 and uploaded it to
the cheeseshop just after my "research" :)

regards,
Vladimir



Oliver Andrich wrote:
> On 9/20/06, Vladimir Cambur <[EMAIL PROTECTED]> wrote:
>> setuptools 0.6x does not work with python 2.5
>> try developement version of setuptools from python svn sandbox
>> http://svn.python.org/projects/sandbox/trunk/setuptools/
> 
> I downloaded the 0.6c2 ZIP File and installed it. No hint, that it is
> not working. Can you elaborate a little bit on this?
> 
> Best regards,
> Oliver
> 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Python 2.5 anyone

2006-09-20 Thread Yasushi Masuda

Yesterday I posted a small patch to do this, please refer ticket #2772 :)

James Bennett wrote:
> On 9/20/06, Oliver Andrich <[EMAIL PROTECTED]> wrote:
>   
>> For your own development environment this is more then okay in my
>> eyes. And I would even deploy with this small change. But this is
>> personal taste. :)
>> 
>
> Probably the best thing for us to do in trunk is what we already do
> with threading: try to import the standard module, and if that fails
> catch the exception and import the standalone version. So something
> like
>
> try:
> from sqlite3 import dbapi2 as Database
> except ImportError:
> from pysqlite2 import dbapi2 as Database
>
>   


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Re: Re: Python 2.5 anyone

2006-09-20 Thread Oliver Andrich
On 9/20/06, James Bennett <[EMAIL PROTECTED]> wrote:
On 9/20/06, Oliver Andrich <[EMAIL PROTECTED]> wrote:> For your own development environment this is more then okay in my> eyes. And I would even deploy with this small change. But this is
> personal taste. :)Probably the best thing for us to do in trunk is what we already dowith threading: try to import the standard module, and if that failscatch the exception and import the standalone version. So something
liketry:from sqlite3 import dbapi2 as Databaseexcept ImportError:from pysqlite2 import dbapi2 as DatabaseYes, I would also enjoy such a patch much more then the already available which checks against hexversion or so.
Oliver-- Oliver Andrich <[EMAIL PROTECTED]> --- http://roughbook.de/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django users" group.  To post to this group, send email to django-users@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/django-users  -~--~~~~--~~--~--~---


Re: Re: Re: Python 2.5 anyone

2006-09-20 Thread James Bennett

On 9/20/06, Oliver Andrich <[EMAIL PROTECTED]> wrote:
> For your own development environment this is more then okay in my
> eyes. And I would even deploy with this small change. But this is
> personal taste. :)

Probably the best thing for us to do in trunk is what we already do
with threading: try to import the standard module, and if that fails
catch the exception and import the standalone version. So something
like

try:
from sqlite3 import dbapi2 as Database
except ImportError:
from pysqlite2 import dbapi2 as Database

-- 
"May the forces of evil become confused on the way to your house."
  -- George Carlin

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Re: Python 2.5 anyone

2006-09-20 Thread Oliver Andrich

Hi John,

> The code in db\backends\sqlite3\base.py does this:
>
> 
> try:
>  from pysqlite2 import dbapi2 as Database
> except ImportError, e:
>  from django.core.exceptions import ImproperlyConfigured
>  raise ImproperlyConfigured, "Error loading pysqlite2 module: %s" % e
> 
>
> It seems a little screwy for a file in a directory called "sqlite3" to
> do an import from "pysqlite2".  But that's what it does.
>
> Something's confused here with pysqlite, pysqlite2, pysqlite3... I've
> about reached my time limit on this experiment, so I'm going to revert
> to Python 2.4.  :-(

pysqlite2 has been renamed to sqlite3 in Python 2.5, which is in my
eyes the clearer naming convention. Your problem can be easily fixed,
if you would like to do it.

- I checked out the SVN Version of Django, as I wanted to switch
anyway. For this Version there is a patch available.
- And for the Django 0.95 release, I personally would go as far as
patching it for my own needs. Just change the line

from pysqlite2 import dbapi2 as Database

to

from sqlite3 import dbapi2 as Database

For your own development environment this is more then okay in my
eyes. And I would even deploy with this small change. But this is
personal taste. :)

Best regards,
Oliver



-- 
Oliver Andrich <[EMAIL PROTECTED]> --- http://roughbook.de/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Python 2.5 anyone

2006-09-20 Thread John DeRosa

Oliver Andrich wrote:
> Hi,
> 
> On 9/20/06, John DeRosa <[EMAIL PROTECTED]> wrote:
>> How'd you do it?
>>
>> I'm on Windows XP.  I installed Python 2.5 from python.org without a
>> problem.
>>
>> But then I found that pysqlite Windows binaries for Python 2.5 don't
>> exist, and neither does setuptools.  Trying to install Django 0.95 on
>> top of Python 2.5 gives me this:
> 
> I am running Django and Python on Mac OS X, but the situation was
> almost identical. I downloaded the ZIP Version of setuptools from
> cheeseshop.python.org and did a "python setup.py install". The same
> for MySQLdb.
> 
> Afterwards the install of Django worked fine and without errors.
> 
> And for pysqlite, I think you can just stick to Python 2.5. It
> includes the relevant library. May be a small patch to the Django
> sqlite backend is required, but this is something I have to check
> later.

Thanks Oliver.  I did as you suggest with setuptools, and it installed 
properly, and I then installed Django.  Super!

But I do seem to need pysqlite.  Even though the 2.5 documentation says 
that pysqlite has been added as "sqlite3", I get this when I try to 
start up Django 0.95:

---
Traceback (most recent call last):
   File "C:\Documents and Settings\John\My 
Documents\tm\SVN\trunk\src\webcode\initial_data_load.py", line 3, in 

 from webcode.edmonds.models import IS_Category
   File "C:\Documents and Settings\John\My 
Documents\tm\SVN\trunk\src\webcode\edmonds\models.py", line 1, in 
 from django.db import models
   File 
"c:\python25\lib\site-packages\Django-0.95-py2.5.egg\django\db\__init__.py", 
line 11, in 
 backend = __import__('django.db.backends.%s.base' % 
settings.DATABASE_ENGINE, '', '', [''])
   File 
"c:\python25\lib\site-packages\Django-0.95-py2.5.egg\django\db\backends\sqlite3\base.py",
 
line 10, in 
 raise ImproperlyConfigured, "Error loading pysqlite2 module: %s" % e
django.core.exceptions.ImproperlyConfigured: Error loading pysqlite2 
module: No module named pysqlite2
-

The code in db\backends\sqlite3\base.py does this:


try:
 from pysqlite2 import dbapi2 as Database
except ImportError, e:
 from django.core.exceptions import ImproperlyConfigured
 raise ImproperlyConfigured, "Error loading pysqlite2 module: %s" % e


It seems a little screwy for a file in a directory called "sqlite3" to 
do an import from "pysqlite2".  But that's what it does.

Something's confused here with pysqlite, pysqlite2, pysqlite3... I've 
about reached my time limit on this experiment, so I'm going to revert 
to Python 2.4.  :-(

Thanks again.

John


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Re: Python 2.5 anyone

2006-09-20 Thread Oliver Andrich

On 9/20/06, Vladimir Cambur <[EMAIL PROTECTED]> wrote:
> setuptools 0.6x does not work with python 2.5
> try developement version of setuptools from python svn sandbox
> http://svn.python.org/projects/sandbox/trunk/setuptools/

I downloaded the 0.6c2 ZIP File and installed it. No hint, that it is
not working. Can you elaborate a little bit on this?

Best regards,
Oliver

-- 
Oliver Andrich <[EMAIL PROTECTED]> --- http://roughbook.de/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Re: Python 2.5 anyone

2006-09-20 Thread Oliver Andrich

Hi,

On 9/20/06, John DeRosa <[EMAIL PROTECTED]> wrote:
> How'd you do it?
>
> I'm on Windows XP.  I installed Python 2.5 from python.org without a
> problem.
>
> But then I found that pysqlite Windows binaries for Python 2.5 don't
> exist, and neither does setuptools.  Trying to install Django 0.95 on
> top of Python 2.5 gives me this:

I am running Django and Python on Mac OS X, but the situation was
almost identical. I downloaded the ZIP Version of setuptools from
cheeseshop.python.org and did a "python setup.py install". The same
for MySQLdb.

Afterwards the install of Django worked fine and without errors.

And for pysqlite, I think you can just stick to Python 2.5. It
includes the relevant library. May be a small patch to the Django
sqlite backend is required, but this is something I have to check
later.

Hope that helps.

Best regards,
Oliver

-- 
Oliver Andrich <[EMAIL PROTECTED]> --- http://roughbook.de/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Python 2.5 anyone

2006-09-20 Thread Vladimir Cambur

Hi,

setuptools 0.6x does not work with python 2.5
try developement version of setuptools from python svn sandbox
http://svn.python.org/projects/sandbox/trunk/setuptools/


Vladimir

John DeRosa wrote:
> Oliver Andrich wrote:
>> Hi,
>>
>> I am running Django 0.95 . And so far I can't see any problems.
> 
> How'd you do it?
> 
> I'm on Windows XP.  I installed Python 2.5 from python.org without a 
> problem.
> 
> But then I found that pysqlite Windows binaries for Python 2.5 don't 
> exist, and neither does setuptools.  Trying to install Django 0.95 on 
> top of Python 2.5 gives me this:
> 
> 
> C:\Documents and Settings\John\Desktop\Django-0.95>setup.py install
> 
> ---
> This script requires setuptools version 0.6c1 to run (even to display
> help).  I will attempt to download it for you (from
> http://cheeseshop.python.org/packages/2.5/s/setuptools/), but
> you may need to enable firewall access for this script first.
> I will start the download in 15 seconds.
> 
> (Note: if this machine does not have network access, please obtain the file
> 
>  
> http://cheeseshop.python.org/packages/2.5/s/setuptools/setuptools-0.6c1-py2.5.egg
> 
> and place it in this directory before rerunning this script.)
> ---
> Downloading 
> http://cheeseshop.python.org/packages/2.5/s/setuptools/setuptools-0.6c1-py2.5.egg
> Traceback (most recent call last):
>File "C:\Documents and Settings\John\Desktop\Django-0.95\setup.py", 
> line 2, in 
>  ez_setup.use_setuptools()
>File "C:\Documents and 
> Settings\John\Desktop\Django-0.95\ez_setup.py", line 72, in use_setuptools
>  egg = download_setuptools(version, download_base, to_dir, 
> download_delay)
>File "C:\Documents and 
> Settings\John\Desktop\Django-0.95\ez_setup.py", line 126, in download_setup
> tools
>  src = urllib2.urlopen(url)
>File "C:\Python25\lib\urllib2.py", line 121, in urlopen
>  return _opener.open(url, data)
>File "C:\Python25\lib\urllib2.py", line 380, in open
>  response = meth(req, response)
>File "C:\Python25\lib\urllib2.py", line 491, in http_response
>  'http', request, response, code, msg, hdrs)
>File "C:\Python25\lib\urllib2.py", line 418, in error
>  return self._call_chain(*args)
>File "C:\Python25\lib\urllib2.py", line 353, in _call_chain
>  result = func(*args)
>File "C:\Python25\lib\urllib2.py", line 499, in http_error_default
>  raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
> urllib2.HTTPError: HTTP Error 404: Not Found
> -
> 
> I poked around in http://cheeseshop.python.org/packages/2.5/, and an 
> .egg file was nowhere to be found.
> 
> I could build pysqlite from the sources, but the setuptools problem is a 
> little more daunting.
> 
> John
> 
> 
> > 
> 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Python 2.5 anyone

2006-09-20 Thread John DeRosa

Oliver Andrich wrote:
> Hi,
> 
> I am running Django 0.95 . And so far I can't see any problems.

How'd you do it?

I'm on Windows XP.  I installed Python 2.5 from python.org without a 
problem.

But then I found that pysqlite Windows binaries for Python 2.5 don't 
exist, and neither does setuptools.  Trying to install Django 0.95 on 
top of Python 2.5 gives me this:


C:\Documents and Settings\John\Desktop\Django-0.95>setup.py install

---
This script requires setuptools version 0.6c1 to run (even to display
help).  I will attempt to download it for you (from
http://cheeseshop.python.org/packages/2.5/s/setuptools/), but
you may need to enable firewall access for this script first.
I will start the download in 15 seconds.

(Note: if this machine does not have network access, please obtain the file

 
http://cheeseshop.python.org/packages/2.5/s/setuptools/setuptools-0.6c1-py2.5.egg

and place it in this directory before rerunning this script.)
---
Downloading 
http://cheeseshop.python.org/packages/2.5/s/setuptools/setuptools-0.6c1-py2.5.egg
Traceback (most recent call last):
   File "C:\Documents and Settings\John\Desktop\Django-0.95\setup.py", 
line 2, in 
 ez_setup.use_setuptools()
   File "C:\Documents and 
Settings\John\Desktop\Django-0.95\ez_setup.py", line 72, in use_setuptools
 egg = download_setuptools(version, download_base, to_dir, 
download_delay)
   File "C:\Documents and 
Settings\John\Desktop\Django-0.95\ez_setup.py", line 126, in download_setup
tools
 src = urllib2.urlopen(url)
   File "C:\Python25\lib\urllib2.py", line 121, in urlopen
 return _opener.open(url, data)
   File "C:\Python25\lib\urllib2.py", line 380, in open
 response = meth(req, response)
   File "C:\Python25\lib\urllib2.py", line 491, in http_response
 'http', request, response, code, msg, hdrs)
   File "C:\Python25\lib\urllib2.py", line 418, in error
 return self._call_chain(*args)
   File "C:\Python25\lib\urllib2.py", line 353, in _call_chain
 result = func(*args)
   File "C:\Python25\lib\urllib2.py", line 499, in http_error_default
 raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found
-

I poked around in http://cheeseshop.python.org/packages/2.5/, and an 
.egg file was nowhere to be found.

I could build pysqlite from the sources, but the setuptools problem is a 
little more daunting.

John


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Python 2.5 anyone

2006-09-20 Thread John Morton

On Wed, 20 Sep 2006 07:53, James Bennett wrote:
> On 9/19/06, Ramdas S <[EMAIL PROTECTED]> wrote:
> > Is anyone running Django dev version on Python 2.5? Will it work or are
> > there any issues?
>
> Python 2.5 doesn't break or remove anything, it just adds some new
> features. So it should work just fine. Backwards compatibility of
> Python releases should be maintained up until Python 3.0, at which
> point everything gets thrown out the window :)

That's not strictly true. There is a list of porting considerations here:

http://docs.python.org/dev/whatsnew/section-other.html

Nothing major this time around, but the C API changes may be an issue for some 
of the database driver dependencies.

There are a few deprecated modules that have been removed as well, but that's 
unlikely to affect Django.

John


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Python 2.5 anyone

2006-09-19 Thread Matthew Flanagan

On 20/09/06, James Bennett <[EMAIL PROTECTED]> wrote:
>
> On 9/19/06, Ramdas S <[EMAIL PROTECTED]> wrote:
> > Is anyone running Django dev version on Python 2.5? Will it work or are
> > there any issues?
>
> Python 2.5 doesn't break or remove anything, it just adds some new
> features. So it should work just fine. Backwards compatibility of
> Python releases should be maintained up until Python 3.0, at which
> point everything gets thrown out the window :)
>
> --
> "May the forces of evil become confused on the way to your house."
>   -- George Carlin
>

Has anyone in the django dev team considered answering the call for
projects [1] at http://pybots.org?

[1] http://agiletesting.blogspot.com/2006/09/any-projects-that-need-pybots.html

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Python 2.5 anyone

2006-09-19 Thread James Bennett

On 9/19/06, Ramdas S <[EMAIL PROTECTED]> wrote:
> Is anyone running Django dev version on Python 2.5? Will it work or are
> there any issues?

Python 2.5 doesn't break or remove anything, it just adds some new
features. So it should work just fine. Backwards compatibility of
Python releases should be maintained up until Python 3.0, at which
point everything gets thrown out the window :)

-- 
"May the forces of evil become confused on the way to your house."
  -- George Carlin

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Python 2.5 anyone

2006-09-19 Thread Oliver Andrich

Hi,

I am running Django 0.95 . And so far I can't see any problems.

Best regards,
Oliver

-- 
Oliver Andrich <[EMAIL PROTECTED]> --- http://roughbook.de/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Python 2.5 anyone

2006-09-19 Thread Ramdas S
Hi,Is anyone running Django dev version on Python 2.5? Will it work or are there any issues?RS

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django users" group.  To post to this group, send email to django-users@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/django-users  -~--~~~~--~~--~--~---