Re: Django on Jython - Newbie installation difficulties

2013-03-17 Thread Alexey Kinyov
You are welcome :)

I'm just interesting what kind of task and environment do you have?
I've never played with Jython and never needed to use it, so it's
uncommon for me.

Sure. If you need your Python code to interact "directly" (not through
network API) with Java code, Jython seems reasonable solution, I don't
know much more on topic :)

Alex
///

On Sat, Mar 16, 2013 at 11:42 PM, SeeGull  wrote:
> Thanks for the response.
>
> 1. I have now isolated the problem with the install. It is indeed a version
> compatibility mismatch. Django 1.5* does not support Jython 2.5*.
>
> Django 1.5* requires the unstable development version Jython 2.7*
> Django 1.4* is compatible with the stable old version Jython 2.5*
>
> I have now chosen the Django 1.4* route. I can up-version later as soon as a
> stable Jython 2.7* is released.
>
> 2. Why Jython at all? I am experimenting. I have a web site concept that
> points strongly in the direction of a Python based solution. However, the
> ability to easily extend the functionality with Java code embedding and JVM
> execution is quite interesting too. I am a lazy programmer and want to
> maximise the leverage I can get with my minimal code.
>
> Would you suggest a different approach?
>
>
>
> --
> View this message in context: 
> http://python.6.n6.nabble.com/Django-on-Jython-Newbie-installation-difficulties-tp5010361p5010374.html
> Sent from the django-users mailing list archive at Nabble.com.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

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




Re: Django on Jython - Newbie installation difficulties

2013-03-16 Thread SeeGull
Thanks for the response.

1. I have now isolated the problem with the install. It is indeed a version
compatibility mismatch. Django 1.5* does not support Jython 2.5*. 

Django 1.5* requires the unstable development version Jython 2.7*
Django 1.4* is compatible with the stable old version Jython 2.5*

I have now chosen the Django 1.4* route. I can up-version later as soon as a
stable Jython 2.7* is released.

2. Why Jython at all? I am experimenting. I have a web site concept that
points strongly in the direction of a Python based solution. However, the
ability to easily extend the functionality with Java code embedding and JVM
execution is quite interesting too. I am a lazy programmer and want to
maximise the leverage I can get with my minimal code.

Would you suggest a different approach?



--
View this message in context: 
http://python.6.n6.nabble.com/Django-on-Jython-Newbie-installation-difficulties-tp5010361p5010374.html
Sent from the django-users mailing list archive at Nabble.com.

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




Re: Django on Jython - Newbie installation difficulties

2013-03-16 Thread Alexey Kinyov
Hi, SeeGull!

It seems that Django 1.5 is incompatible with your version of Jython
(or with Jython at all, I don't know).

I've looked at 'django/utils/version.py' (you can see from traceback -
exception raised in this file):
https://github.com/django/django/blob/master/django/utils/version.py

So, the issue is in the line 1:
from __future__ import unicode_literals

That means Jython 2.5.4rc1 doesn't have system '__future__' module.

May I ask, why are you using Jython? :)

Alex
///

On Sat, Mar 16, 2013 at 8:11 PM, SeeGull  wrote:
> Hello,
>
> I am trying to install Django with Jython.
>
> System - Windows 7, 64bit
> Jython - 2.5.4rc1 (installed succesfully)
> Django - 1.5 (not yet installed)
>
> When I am in the unpacked Django-1.5 directory and try to run the command
> line instruction 'python setup.py install' I get the error message:
>
> ' <http://python.6.n6.nabble.com/file/n5010361/install_error_20130316.jpg>
>
> I can imagine that it is something very simple that only an ABSOLUTE NEWBIE
> could ever get wrong. So we all know what I am :)
>
> Many thanks for any help in taking my first wobbly steps.
>
>
>
> --
> View this message in context: 
> http://python.6.n6.nabble.com/Django-on-Jython-Newbie-installation-difficulties-tp5010361.html
> Sent from the django-users mailing list archive at Nabble.com.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

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




Django on Jython - Newbie installation difficulties

2013-03-16 Thread SeeGull
Hello,

I am trying to install Django with Jython.

System - Windows 7, 64bit
Jython - 2.5.4rc1 (installed succesfully)
Django - 1.5 (not yet installed)

When I am in the unpacked Django-1.5 directory and try to run the command
line instruction 'python setup.py install' I get the error message:

' <http://python.6.n6.nabble.com/file/n5010361/install_error_20130316.jpg> 

I can imagine that it is something very simple that only an ABSOLUTE NEWBIE
could ever get wrong. So we all know what I am :)

Many thanks for any help in taking my first wobbly steps.



--
View this message in context: 
http://python.6.n6.nabble.com/Django-on-Jython-Newbie-installation-difficulties-tp5010361.html
Sent from the django-users mailing list archive at Nabble.com.

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