jython 2.5 ?

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

Post Reply
ThierryStiegler
Posts: 15
Joined: 24 Feb 2009, 12:49
Location: France
Contact:

jython 2.5 ?

Post 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.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post 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 :D
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
Lapo
--
gotoAndPlay()
...addicted to flash games
ThierryStiegler
Posts: 15
Joined: 24 Feb 2009, 12:49
Location: France
Contact:

Post 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 ?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post 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.
Lapo
--
gotoAndPlay()
...addicted to flash games
ThierryStiegler
Posts: 15
Joined: 24 Feb 2009, 12:49
Location: France
Contact:

Post 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 :
Image
Image
Image
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post 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
Lapo
--
gotoAndPlay()
...addicted to flash games
ThierryStiegler
Posts: 15
Joined: 24 Feb 2009, 12:49
Location: France
Contact:

Post 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 :)
ThierryStiegler
Posts: 15
Joined: 24 Feb 2009, 12:49
Location: France
Contact:

Post by ThierryStiegler »

Without the source file in pycore I can't do anything more...
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post 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
Lapo
--
gotoAndPlay()
...addicted to flash games
ThierryStiegler
Posts: 15
Joined: 24 Feb 2009, 12:49
Location: France
Contact:

Post by ThierryStiegler »

Okay, I will retry when a new beta release.

My adventure continue yeah :)

Thanks for taking time to reply.
lizzard
Posts: 4
Joined: 11 Dec 2009, 13:32
Location: Russia

Post by lizzard »

Maybe now Jython 2.5.1 more stable? :)
Post Reply