Page 1 of 1
jython 2.5 ?
Posted: 24 Feb 2009, 13:05
by ThierryStiegler
Hello,
I'am developping multiplayer games and we have a legacy leaderboard system written in python/django.
Django integrate well with jython 2.5, but Smart Fox Server provide jython 2.2. Is it possible to update the jython version ?
I'm new with Java technology, so don't hesitate to share with me nice tutorials
Thanks
PS : We are open to try beta versions, and maybe to try together to integrate Django with SmartFox.
Posted: 24 Feb 2009, 17:38
by Lapo
Hi,
nice to see some python fans around here
2.5 is definitely under our radar and it seems to be quite stable

You can easily substitute the 2.5 jar in your current SFS installation (I'd recommend at least ver 1.6.2 or later) and experiment with it.
Let us know how it goes
Posted: 24 Feb 2009, 21:55
by ThierryStiegler
I will try tomorrow to switch the jar file.
There is some unit tests or operations you want to be execute with jython 2.5 ?
Posted: 24 Feb 2009, 22:01
by Lapo
Not that I know of

It should be perfectly backward compatible.
You can check the python extensions found in the sfsExtensions/ folder to make sure that everything is working correctly.
Posted: 25 Feb 2009, 09:26
by ThierryStiegler
Code: Select all
Exception in thread "main" Traceback (most recent call last):
File "<string>", line 6, in <module>
File "C:\Program Files\SmartFoxServerPRO_1.6.2\Server\lib\jython.jar\Lib\os.py", line 142, in <module>
ImportError: cannot import name curdir
Shutting down server...
Appuyez sur une touche pour continuer...
Here my setup installation with the java installer gui :

Posted: 25 Feb 2009, 09:31
by Lapo
I think you should install using the STANDARD procedure.
I should have thought about it... sorry
The jython.jar contains the core classes but there's also the Lib/ folder which contains all standard python classes.
It is probably better to copy both elements to the SFS installation, otherwise you will use jython 2.5 with the Lib/ of version 2.2
Posted: 25 Feb 2009, 09:52
by ThierryStiegler
Code: Select all
Exception in thread "main" Traceback (most recent call last):
File "<string>", line 12, in <module>
ImportError: No module named main
Shutting down server...
Appuyez sur une touche pour continuer...
Ok I generate the standard installation and I correct the ntpath curdir wath not in __alll__ ...
But now I think there is something wrong with pycore package in Lib.
Any idea ?
pS: really inetresting work today

Posted: 25 Feb 2009, 12:14
by ThierryStiegler
Without the source file in pycore I can't do anything more...
Posted: 26 Feb 2009, 10:25
by Lapo
I didn't have time to check under the current SmartFoxServer distribution, but I have tested adding Jython 2.5 to another application I am working on and it has created lots of problems forcing me to go back to the stable version.
I don't think 2.5 is stable for production yet

Better stay safe with 2.2 until they release a more solid beta
Posted: 26 Feb 2009, 11:25
by ThierryStiegler
Okay, I will retry when a new beta release.
My adventure continue yeah
Thanks for taking time to reply.
Posted: 17 Jun 2010, 09:33
by lizzard
Maybe now Jython 2.5.1 more stable?
