After a lot of troubleshooting, and fun installing Python3.2 under
virtualenv (Vinay, I think I ran into the same issue as you here:
https://github.com/pypa/virtualenv/issues/194), I almost have the complete
test suite running under MacPorts Python 3.2.2.
The one unexpected error I am getting is this one:
======================================================================
ERROR: test_existing (regressiontests.templates.loaders.EggLoaderTest)
A template can be loaded from an egg
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/Users/ian/Code/Frameworks/py3k_django/build/tests/regressiontests/templates/loaders.py",
line 88, in test_existing
contents, template_name = egg_loader.load_template_source("y.html")
File
"/Users/ian/Code/Frameworks/py3k_django/3k/django/template/loaders/eggs.py",
line 28, in load_template_source
raise TemplateDoesNotExist(template_name)
django.template.base.TemplateDoesNotExist: y.html
----------------------------------------------------------------------
I'm going to look further into that later tonight.
While installing Vinay's port (cloned freshly this morning from Bitbucket),
I had to edit four files, in order to get them to run under Python 3:
3k/django/contrib/gis/forms/fields.py: One multi-line split string was
being transformed incorrectly
Was:
'transform_error' : _(u('An error occurred when transforming the geometry
')
'to the SRID of the geometry form field.'),
Should have been:
'transform_error' : _(u('An error occurred when transforming the geometry '
'to the SRID of the geometry form field.')),
3k/django/contrib/gis/geoip/tests.py: Two unicode strings had their 'u'
prefix left on
3k/django/db/backends/oracle/creation.py
3k/django/utils/dictconfig.py: Both of these files were using the 'except
<Exception>, <name>' syntax, without the 'as' keyword.
Once I fixed those, (and manually copied the tests directory into build/)
then the pre-compiler would work, and the test suite would run.
Did I miss a step here, or not see an error which should have been
corrected earlier? Nobody else has commented about Python3 syntax errors,
so I'm thinking it's my process.
--
Regards,
Ian Clelland
<[email protected]>
--
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-developers?hl=en.