You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(6) |
Nov
(8) |
Dec
(51) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(105) |
Feb
(93) |
Mar
(194) |
Apr
(145) |
May
(100) |
Jun
(111) |
Jul
(117) |
Aug
(126) |
Sep
(233) |
Oct
(138) |
Nov
(164) |
Dec
(109) |
| 2002 |
Jan
(216) |
Feb
(175) |
Mar
(216) |
Apr
(194) |
May
(157) |
Jun
(140) |
Jul
(158) |
Aug
(73) |
Sep
(105) |
Oct
(164) |
Nov
(104) |
Dec
(95) |
| 2003 |
Jan
(72) |
Feb
(69) |
Mar
(81) |
Apr
(151) |
May
(101) |
Jun
(139) |
Jul
(99) |
Aug
(118) |
Sep
(115) |
Oct
(151) |
Nov
(161) |
Dec
(102) |
| 2004 |
Jan
(120) |
Feb
(175) |
Mar
(106) |
Apr
(111) |
May
(54) |
Jun
(78) |
Jul
(76) |
Aug
(105) |
Sep
(94) |
Oct
(143) |
Nov
(75) |
Dec
(85) |
| 2005 |
Jan
(99) |
Feb
(77) |
Mar
(164) |
Apr
(97) |
May
(79) |
Jun
(57) |
Jul
(65) |
Aug
(102) |
Sep
(95) |
Oct
(129) |
Nov
(123) |
Dec
(52) |
| 2006 |
Jan
(48) |
Feb
(99) |
Mar
(90) |
Apr
(51) |
May
(81) |
Jun
(136) |
Jul
(56) |
Aug
(109) |
Sep
(50) |
Oct
(44) |
Nov
(74) |
Dec
(75) |
| 2007 |
Jan
(92) |
Feb
(137) |
Mar
(93) |
Apr
(79) |
May
(52) |
Jun
(74) |
Jul
(143) |
Aug
(175) |
Sep
(154) |
Oct
(137) |
Nov
(88) |
Dec
(90) |
| 2008 |
Jan
(58) |
Feb
(113) |
Mar
(167) |
Apr
(88) |
May
(105) |
Jun
(37) |
Jul
(87) |
Aug
(72) |
Sep
(56) |
Oct
(41) |
Nov
(102) |
Dec
(70) |
| 2009 |
Jan
(115) |
Feb
(113) |
Mar
(126) |
Apr
(58) |
May
(125) |
Jun
(45) |
Jul
(90) |
Aug
(125) |
Sep
(84) |
Oct
(61) |
Nov
(111) |
Dec
(61) |
| 2010 |
Jan
(85) |
Feb
(86) |
Mar
(130) |
Apr
(58) |
May
(57) |
Jun
(32) |
Jul
(25) |
Aug
(50) |
Sep
(41) |
Oct
(65) |
Nov
(63) |
Dec
(24) |
| 2011 |
Jan
(43) |
Feb
(31) |
Mar
(28) |
Apr
(68) |
May
(53) |
Jun
(42) |
Jul
(58) |
Aug
(26) |
Sep
(51) |
Oct
(76) |
Nov
(60) |
Dec
(9) |
| 2012 |
Jan
(16) |
Feb
(32) |
Mar
(32) |
Apr
(39) |
May
(16) |
Jun
(19) |
Jul
(3) |
Aug
(11) |
Sep
(35) |
Oct
(47) |
Nov
(28) |
Dec
(18) |
| 2013 |
Jan
(18) |
Feb
(36) |
Mar
(10) |
Apr
(7) |
May
(7) |
Jun
(27) |
Jul
(17) |
Aug
(35) |
Sep
(19) |
Oct
(31) |
Nov
(8) |
Dec
(22) |
| 2014 |
Jan
(5) |
Feb
(11) |
Mar
(18) |
Apr
(23) |
May
(26) |
Jun
(14) |
Jul
(18) |
Aug
(26) |
Sep
(20) |
Oct
(48) |
Nov
(13) |
Dec
(9) |
| 2015 |
Jan
(9) |
Feb
(15) |
Mar
(25) |
Apr
(10) |
May
(26) |
Jun
(6) |
Jul
(13) |
Aug
(5) |
Sep
(14) |
Oct
(36) |
Nov
(24) |
Dec
(18) |
| 2016 |
Jan
(24) |
Feb
(11) |
Mar
(1) |
Apr
(6) |
May
(7) |
Jun
(3) |
Jul
(9) |
Aug
(15) |
Sep
(22) |
Oct
(5) |
Nov
(5) |
Dec
(2) |
| 2017 |
Jan
(20) |
Feb
(4) |
Mar
(4) |
Apr
(1) |
May
(5) |
Jun
(7) |
Jul
(14) |
Aug
(9) |
Sep
(18) |
Oct
(2) |
Nov
(3) |
Dec
(3) |
| 2018 |
Jan
(7) |
Feb
(6) |
Mar
(1) |
Apr
(2) |
May
|
Jun
|
Jul
(1) |
Aug
(18) |
Sep
(8) |
Oct
(9) |
Nov
(4) |
Dec
(6) |
| 2019 |
Jan
(5) |
Feb
|
Mar
(2) |
Apr
(4) |
May
(6) |
Jun
(8) |
Jul
(11) |
Aug
(10) |
Sep
(6) |
Oct
|
Nov
(1) |
Dec
|
| 2020 |
Jan
(8) |
Feb
(3) |
Mar
(1) |
Apr
(4) |
May
(1) |
Jun
(1) |
Jul
|
Aug
|
Sep
(1) |
Oct
(5) |
Nov
(2) |
Dec
(1) |
| 2021 |
Jan
|
Feb
|
Mar
(5) |
Apr
(2) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2022 |
Jan
|
Feb
(2) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(7) |
Aug
(1) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
| 2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
(5) |
Jul
(15) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2024 |
Jan
|
Feb
(1) |
Mar
|
Apr
(2) |
May
|
Jun
(5) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2025 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: John H. <ja...@gm...> - 2015-11-22 23:48:06
|
Dear all,
I'm trying to use Pyro4 with Jython2.7.0. I've installed both 'serpent-1.11' (a Pyro4-dependent serializer) and 'Pyro4-4.40' itself seemingly successfully on Windows 7 using 'jython setup.py install' for the respective source packages.
However, if I run this simple example of starting a Pyro server:
> import Pyro4
>
> class GreetingMaker(object):
> def get_fortune(self, name):
> return "Hello, {0}. Here is your fortune message:\n" \
> "Behold the warranty -- the bold print giveth and the fine print taketh away.".format(name)
>
> daemon = Pyro4.Daemon(host="192.168.10.106") # make a Pyro daemon
> uri = daemon.register(GreetingMaker) # register the greeting maker as a Pyro object
>
> print uri # print the uri so we can use it in the client later
> daemon.requestLoop() # start the event loop of the server to wait for calls
I get the following error:
> Traceback (most recent call last):
> File "greeting-server.py", line 8, in <module>
> daemon = Pyro4.Daemon(host="192.168.10.106") # make a Pyro daemon
> File "C:\jython2.7.0\Lib\site-packages\pyro4-4.40-py2.7.egg\Pyro4\core.py", line 901, in __init__
> self.transportServer.init(self, host, port, unixsocket)
> File "C:\jython2.7.0\Lib\site-packages\pyro4-4.40-py2.7.egg\Pyro4\socketserver\threadpoolserver.py", line 103, in init
> self.sock = socketutil.createSocket(bind=bind_location, reuseaddr=Pyro4.config.SOCK_REUSE, timeout=Pyro4.config.COMMTIMEOUT, noinherit=True, nodelay=Pyro4.config.SOCK_NODELAY)
> File "C:\jython2.7.0\Lib\site-packages\pyro4-4.40-py2.7.egg\Pyro4\socketutil.py", line 283, in createSocket
> bindOnUnusedPort(sock, bind[0])
> File "C:\jython2.7.0\Lib\site-packages\pyro4-4.40-py2.7.egg\Pyro4\socketutil.py", line 479, in bindOnUnusedPort
> sock.setsockopt(socket.SOL_SOCKET, socket.SO_EXCLUSIVEADDRUSE, 1)
> File "C:\jython2.7.0\Lib\_socket.py", line 1367, in meth
> return getattr(self._sock,name)(*args)
> File "C:\jython2.7.0\Lib\_socket.py", line 357, in handle_exception
> return method_or_function(*args, **kwargs)
> File "C:\jython2.7.0\Lib\_socket.py", line 357, in handle_exception
> return method_or_function(*args, **kwargs)
> File "C:\jython2.7.0\Lib\_socket.py", line 1204, in setsockopt
> raise error(errno.ENOPROTOOPT, "Protocol not available")
> _socket.error: [Errno 10042] Protocol not available
This seems like a similar problem that someone else was recently having on the mailing list that appears rooted in the call to setsockopt:
http://sourceforge.net/p/jython/mailman/message/34127525/
Is this a bug that has already been reported (I couldn't find it), and/or does anyone have any potential ideas for a workaround solution?
I really appreciate any help that can be offered!
All the best,
John
|
|
From: David C. <dav...@gm...> - 2015-11-13 22:32:26
|
My question is here: * http://stackoverflow.com/questions/33697884/how-to-remove-the-current-working-directory-from-jythons-classpath David |
|
From: Jim B. <jim...@py...> - 2015-11-11 21:43:08
|
I think this can be readily explained: 1) sqlite3 lacks explicit datetime support ( https://www.sqlite.org/datatype3.html), as 'bobince' points out in the StackOverflow discussion ( http://stackoverflow.com/questions/33637913/django-unicode-issue-with-datetime-in-jython-with-sqlite-jdbc#comment55077398_33637913 ) 2) django.db.backends.sqlite3 works around this via storing as text in ISO-8601 format 3) but this is not part of JDBC support, which expects real datetime support Note there is an outstanding bug to add complete sqlite3 support to Jython ( http://bugs.jython.org/issue1682864). I just adjusted the milestone for that bug to 2.7.2 (could be later). Such support is something we have wanted to do for a while, although it's a bit complicated because it's not just a question of using JDBC. For the time being, this likely means you would to either do your own workaround (don't know scope); or switch to a database like MySQL or Apache Derby (small footprint like sqlite3, but with support for datetimes). - Jim On Wed, Nov 11, 2015 at 11:52 AM, Diego Muñoz <dmu...@gm...> wrote: > I made this question in StackOverflow to get answers and comments: > > > http://stackoverflow.com/questions/33637913/django-unicode-issue-with-datetime-in-jython-with-sqlite-jdbc > > It seems there is a bug when reading the info provided by the JDBC from > django. The format that django gets is not the correct, as you can see in > the screenshot I attached in the question. > > 2015-11-10 16:00 GMT-03:00 Diego Muñoz <dmu...@gm...>: > >> I'd like to add some extra information: >> >> I am using the sqlite-jdbc-3.8.11.2.jar file, and I tried to dump data >> from auth.User with "jython manage.py dumpdata auth.User --indent=4 >> --traceback" and I got this error: >> >> [Traceback (most recent call last): >> File "manage.py", line 10, in <module> >> execute_from_command_line(sys.argv) >> File >> "/home/dmunoz/jsnmp/Lib/site-packages/django/core/management/__init__.py", >> line 354, in execute_from_command_line >> utility.execute() >> File >> "/home/dmunoz/jsnmp/Lib/site-packages/django/core/management/__init__.py", >> line 346, in execute >> self.fetch_command(subcommand).run_from_argv(self.argv) >> File >> "/home/dmunoz/jsnmp/Lib/site-packages/django/core/management/base.py", line >> 394, in run_from_argv >> self.execute(*args, **cmd_options) >> File >> "/home/dmunoz/jsnmp/Lib/site-packages/django/core/management/base.py", line >> 445, in execute >> output = self.handle(*args, **options) >> File >> "/home/dmunoz/jsnmp/Lib/site-packages/django/core/management/commands/dumpdata.py", >> line 159, in handle >> serializers.serialize(format, get_objects(), indent=indent, >> File >> "/home/dmunoz/jsnmp/Lib/site-packages/django/core/serializers/__init__.py", >> line 129, in serialize >> s.serialize(queryset, **options) >> File >> "/home/dmunoz/jsnmp/Lib/site-packages/django/core/serializers/base.py", >> line 61, in serialize >> self.handle_field(obj, field) >> File >> "/home/dmunoz/jsnmp/Lib/site-packages/django/core/serializers/python.py", >> line 55, in handle_field >> self._current[field.name] = field.value_to_string(obj) >> File >> "/home/dmunoz/jsnmp/Lib/site-packages/django/db/models/fields/__init__.py", >> line 1487, in value_to_string >> return '' if val is None else val.isoformat() >> AttributeError: 'unicode' object has no attribute 'isoformat' >> >> 2015-11-10 12:34 GMT-03:00 Diego Muñoz <dmu...@gm...>: >> >>> Hi everyone, >>> >>> I recently created a Django 1.8.6 project in Jython, and installed >>> django-jython 1.8.0b3. I am successfully using the SQLite JDBC and created >>> a database in which I created a super user with "jython manage.py >>> createsuperuser". >>> >>> In the localhost:8000/admin/ page I can successfully login and create >>> users, but when I try to edit details about a User, I get an error: >>> 'unicode' object has no attribute 'tzinfo'. If I change my settings.py file >>> with USE_TZ = False, I get another error: 'unicode' object has no attribute >>> 'date'. >>> >>> I would greatly appreciate any help. The exception I get for each case >>> is: >>> >>> *1. 'unicode' object has no attribute 'tzinfo':* >>> >>> AttributeError at /admin/auth/user/1/ >>> >>> 'unicode' object has no attribute 'tzinfo' >>> >>> Request Method: GET >>> Request URL: http://localhost:8000/admin/auth/user/1/ >>> Django Version: 1.8.6 >>> Exception Type: AttributeError >>> Exception Value: >>> >>> 'unicode' object has no attribute 'tzinfo' >>> >>> Exception Location: >>> /home/dmunoz/jsnmp/Lib/site-packages/django/utils/timezone.py in is_aware, >>> line 337 >>> Python Executable: /home/dmunoz/jsnmp/bin/jython >>> Python Version: 2.7.0 >>> Python Path: >>> >>> ['/home/dmunoz/snmp/webswitcher', >>> '/home/dmunoz/jsnmp/Lib/site-packages/django_jython-1.8.0b3-py2.7.egg', >>> '/home/dmunoz/jsnmp/Lib/site-packages', >>> '/home/dmunoz/jsnmp/Lib', >>> '/home/dmunoz/opt/jython2.7.0/Lib', >>> '__classpath__', >>> '__pyclasspath__/'] >>> >>> Server time: Tue, 10 Nov 2015 12:31:09 -0300 >>> >>> Error during template rendering >>> >>> In template >>> /home/dmunoz/jsnmp/Lib/site-packages/django/contrib/admin/templates/admin/includes/fieldset.html, >>> error at line 19 >>> >>> *2. 'unicode' object has no attribute 'date':* >>> >>> AttributeError at /admin/auth/user/1/ >>> >>> 'unicode' object has no attribute 'date' >>> >>> Request Method: GET >>> Request URL: http://localhost:8000/admin/auth/user/1/ >>> Django Version: 1.8.6 >>> Exception Type: AttributeError >>> Exception Value: >>> >>> 'unicode' object has no attribute 'date' >>> >>> Exception Location: >>> /home/dmunoz/jsnmp/Lib/site-packages/django/forms/widgets.py in decompress, >>> line 888 >>> Python Executable: /home/dmunoz/jsnmp/bin/jython >>> Python Version: 2.7.0 >>> Python Path: >>> >>> ['/home/dmunoz/snmp/webswitcher', >>> '/home/dmunoz/jsnmp/Lib/site-packages/django_jython-1.8.0b3-py2.7.egg', >>> '/home/dmunoz/jsnmp/Lib/site-packages', >>> '/home/dmunoz/jsnmp/Lib', >>> '/home/dmunoz/opt/jython2.7.0/Lib', >>> '__classpath__', >>> '__pyclasspath__/'] >>> >>> Server time: Tue, 10 Nov 2015 12:28:18 -0300 >>> >>> Error during template rendering >>> >>> In template >>> /home/dmunoz/jsnmp/Lib/site-packages/django/contrib/admin/templates/admin/includes/fieldset.html, >>> error at line 19 >>> >>> Regards, >>> Diego >>> >>> >>> >> > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > > |
|
From: Diego M. <dmu...@gm...> - 2015-11-11 18:52:34
|
I made this question in StackOverflow to get answers and comments: http://stackoverflow.com/questions/33637913/django-unicode-issue-with-datetime-in-jython-with-sqlite-jdbc It seems there is a bug when reading the info provided by the JDBC from django. The format that django gets is not the correct, as you can see in the screenshot I attached in the question. 2015-11-10 16:00 GMT-03:00 Diego Muñoz <dmu...@gm...>: > I'd like to add some extra information: > > I am using the sqlite-jdbc-3.8.11.2.jar file, and I tried to dump data > from auth.User with "jython manage.py dumpdata auth.User --indent=4 > --traceback" and I got this error: > > [Traceback (most recent call last): > File "manage.py", line 10, in <module> > execute_from_command_line(sys.argv) > File > "/home/dmunoz/jsnmp/Lib/site-packages/django/core/management/__init__.py", > line 354, in execute_from_command_line > utility.execute() > File > "/home/dmunoz/jsnmp/Lib/site-packages/django/core/management/__init__.py", > line 346, in execute > self.fetch_command(subcommand).run_from_argv(self.argv) > File > "/home/dmunoz/jsnmp/Lib/site-packages/django/core/management/base.py", line > 394, in run_from_argv > self.execute(*args, **cmd_options) > File > "/home/dmunoz/jsnmp/Lib/site-packages/django/core/management/base.py", line > 445, in execute > output = self.handle(*args, **options) > File > "/home/dmunoz/jsnmp/Lib/site-packages/django/core/management/commands/dumpdata.py", > line 159, in handle > serializers.serialize(format, get_objects(), indent=indent, > File > "/home/dmunoz/jsnmp/Lib/site-packages/django/core/serializers/__init__.py", > line 129, in serialize > s.serialize(queryset, **options) > File > "/home/dmunoz/jsnmp/Lib/site-packages/django/core/serializers/base.py", > line 61, in serialize > self.handle_field(obj, field) > File > "/home/dmunoz/jsnmp/Lib/site-packages/django/core/serializers/python.py", > line 55, in handle_field > self._current[field.name] = field.value_to_string(obj) > File > "/home/dmunoz/jsnmp/Lib/site-packages/django/db/models/fields/__init__.py", > line 1487, in value_to_string > return '' if val is None else val.isoformat() > AttributeError: 'unicode' object has no attribute 'isoformat' > > 2015-11-10 12:34 GMT-03:00 Diego Muñoz <dmu...@gm...>: > >> Hi everyone, >> >> I recently created a Django 1.8.6 project in Jython, and installed >> django-jython 1.8.0b3. I am successfully using the SQLite JDBC and created >> a database in which I created a super user with "jython manage.py >> createsuperuser". >> >> In the localhost:8000/admin/ page I can successfully login and create >> users, but when I try to edit details about a User, I get an error: >> 'unicode' object has no attribute 'tzinfo'. If I change my settings.py file >> with USE_TZ = False, I get another error: 'unicode' object has no attribute >> 'date'. >> >> I would greatly appreciate any help. The exception I get for each case is: >> >> *1. 'unicode' object has no attribute 'tzinfo':* >> >> AttributeError at /admin/auth/user/1/ >> >> 'unicode' object has no attribute 'tzinfo' >> >> Request Method: GET >> Request URL: http://localhost:8000/admin/auth/user/1/ >> Django Version: 1.8.6 >> Exception Type: AttributeError >> Exception Value: >> >> 'unicode' object has no attribute 'tzinfo' >> >> Exception Location: >> /home/dmunoz/jsnmp/Lib/site-packages/django/utils/timezone.py in is_aware, >> line 337 >> Python Executable: /home/dmunoz/jsnmp/bin/jython >> Python Version: 2.7.0 >> Python Path: >> >> ['/home/dmunoz/snmp/webswitcher', >> '/home/dmunoz/jsnmp/Lib/site-packages/django_jython-1.8.0b3-py2.7.egg', >> '/home/dmunoz/jsnmp/Lib/site-packages', >> '/home/dmunoz/jsnmp/Lib', >> '/home/dmunoz/opt/jython2.7.0/Lib', >> '__classpath__', >> '__pyclasspath__/'] >> >> Server time: Tue, 10 Nov 2015 12:31:09 -0300 >> >> Error during template rendering >> >> In template >> /home/dmunoz/jsnmp/Lib/site-packages/django/contrib/admin/templates/admin/includes/fieldset.html, >> error at line 19 >> >> *2. 'unicode' object has no attribute 'date':* >> >> AttributeError at /admin/auth/user/1/ >> >> 'unicode' object has no attribute 'date' >> >> Request Method: GET >> Request URL: http://localhost:8000/admin/auth/user/1/ >> Django Version: 1.8.6 >> Exception Type: AttributeError >> Exception Value: >> >> 'unicode' object has no attribute 'date' >> >> Exception Location: >> /home/dmunoz/jsnmp/Lib/site-packages/django/forms/widgets.py in decompress, >> line 888 >> Python Executable: /home/dmunoz/jsnmp/bin/jython >> Python Version: 2.7.0 >> Python Path: >> >> ['/home/dmunoz/snmp/webswitcher', >> '/home/dmunoz/jsnmp/Lib/site-packages/django_jython-1.8.0b3-py2.7.egg', >> '/home/dmunoz/jsnmp/Lib/site-packages', >> '/home/dmunoz/jsnmp/Lib', >> '/home/dmunoz/opt/jython2.7.0/Lib', >> '__classpath__', >> '__pyclasspath__/'] >> >> Server time: Tue, 10 Nov 2015 12:28:18 -0300 >> >> Error during template rendering >> >> In template >> /home/dmunoz/jsnmp/Lib/site-packages/django/contrib/admin/templates/admin/includes/fieldset.html, >> error at line 19 >> >> Regards, >> Diego >> >> >> > |
|
From: Diego M. <dmu...@gm...> - 2015-11-10 19:00:29
|
I'd like to add some extra information:
I am using the sqlite-jdbc-3.8.11.2.jar file, and I tried to dump data from
auth.User with "jython manage.py dumpdata auth.User --indent=4 --traceback"
and I got this error:
[Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File
"/home/dmunoz/jsnmp/Lib/site-packages/django/core/management/__init__.py",
line 354, in execute_from_command_line
utility.execute()
File
"/home/dmunoz/jsnmp/Lib/site-packages/django/core/management/__init__.py",
line 346, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File
"/home/dmunoz/jsnmp/Lib/site-packages/django/core/management/base.py", line
394, in run_from_argv
self.execute(*args, **cmd_options)
File
"/home/dmunoz/jsnmp/Lib/site-packages/django/core/management/base.py", line
445, in execute
output = self.handle(*args, **options)
File
"/home/dmunoz/jsnmp/Lib/site-packages/django/core/management/commands/dumpdata.py",
line 159, in handle
serializers.serialize(format, get_objects(), indent=indent,
File
"/home/dmunoz/jsnmp/Lib/site-packages/django/core/serializers/__init__.py",
line 129, in serialize
s.serialize(queryset, **options)
File
"/home/dmunoz/jsnmp/Lib/site-packages/django/core/serializers/base.py",
line 61, in serialize
self.handle_field(obj, field)
File
"/home/dmunoz/jsnmp/Lib/site-packages/django/core/serializers/python.py",
line 55, in handle_field
self._current[field.name] = field.value_to_string(obj)
File
"/home/dmunoz/jsnmp/Lib/site-packages/django/db/models/fields/__init__.py",
line 1487, in value_to_string
return '' if val is None else val.isoformat()
AttributeError: 'unicode' object has no attribute 'isoformat'
2015-11-10 12:34 GMT-03:00 Diego Muñoz <dmu...@gm...>:
> Hi everyone,
>
> I recently created a Django 1.8.6 project in Jython, and installed
> django-jython 1.8.0b3. I am successfully using the SQLite JDBC and created
> a database in which I created a super user with "jython manage.py
> createsuperuser".
>
> In the localhost:8000/admin/ page I can successfully login and create
> users, but when I try to edit details about a User, I get an error:
> 'unicode' object has no attribute 'tzinfo'. If I change my settings.py file
> with USE_TZ = False, I get another error: 'unicode' object has no attribute
> 'date'.
>
> I would greatly appreciate any help. The exception I get for each case is:
>
> *1. 'unicode' object has no attribute 'tzinfo':*
>
> AttributeError at /admin/auth/user/1/
>
> 'unicode' object has no attribute 'tzinfo'
>
> Request Method: GET
> Request URL: http://localhost:8000/admin/auth/user/1/
> Django Version: 1.8.6
> Exception Type: AttributeError
> Exception Value:
>
> 'unicode' object has no attribute 'tzinfo'
>
> Exception Location:
> /home/dmunoz/jsnmp/Lib/site-packages/django/utils/timezone.py in is_aware,
> line 337
> Python Executable: /home/dmunoz/jsnmp/bin/jython
> Python Version: 2.7.0
> Python Path:
>
> ['/home/dmunoz/snmp/webswitcher',
> '/home/dmunoz/jsnmp/Lib/site-packages/django_jython-1.8.0b3-py2.7.egg',
> '/home/dmunoz/jsnmp/Lib/site-packages',
> '/home/dmunoz/jsnmp/Lib',
> '/home/dmunoz/opt/jython2.7.0/Lib',
> '__classpath__',
> '__pyclasspath__/']
>
> Server time: Tue, 10 Nov 2015 12:31:09 -0300
>
> Error during template rendering
>
> In template
> /home/dmunoz/jsnmp/Lib/site-packages/django/contrib/admin/templates/admin/includes/fieldset.html,
> error at line 19
>
> *2. 'unicode' object has no attribute 'date':*
>
> AttributeError at /admin/auth/user/1/
>
> 'unicode' object has no attribute 'date'
>
> Request Method: GET
> Request URL: http://localhost:8000/admin/auth/user/1/
> Django Version: 1.8.6
> Exception Type: AttributeError
> Exception Value:
>
> 'unicode' object has no attribute 'date'
>
> Exception Location:
> /home/dmunoz/jsnmp/Lib/site-packages/django/forms/widgets.py in decompress,
> line 888
> Python Executable: /home/dmunoz/jsnmp/bin/jython
> Python Version: 2.7.0
> Python Path:
>
> ['/home/dmunoz/snmp/webswitcher',
> '/home/dmunoz/jsnmp/Lib/site-packages/django_jython-1.8.0b3-py2.7.egg',
> '/home/dmunoz/jsnmp/Lib/site-packages',
> '/home/dmunoz/jsnmp/Lib',
> '/home/dmunoz/opt/jython2.7.0/Lib',
> '__classpath__',
> '__pyclasspath__/']
>
> Server time: Tue, 10 Nov 2015 12:28:18 -0300
>
> Error during template rendering
>
> In template
> /home/dmunoz/jsnmp/Lib/site-packages/django/contrib/admin/templates/admin/includes/fieldset.html,
> error at line 19
>
> Regards,
> Diego
>
>
>
|
|
From: Diego M. <dmu...@gm...> - 2015-11-10 15:34:38
|
Hi everyone, I recently created a Django 1.8.6 project in Jython, and installed django-jython 1.8.0b3. I am successfully using the SQLite JDBC and created a database in which I created a super user with "jython manage.py createsuperuser". In the localhost:8000/admin/ page I can successfully login and create users, but when I try to edit details about a User, I get an error: 'unicode' object has no attribute 'tzinfo'. If I change my settings.py file with USE_TZ = False, I get another error: 'unicode' object has no attribute 'date'. I would greatly appreciate any help. The exception I get for each case is: *1. 'unicode' object has no attribute 'tzinfo':* AttributeError at /admin/auth/user/1/ 'unicode' object has no attribute 'tzinfo' Request Method: GET Request URL: http://localhost:8000/admin/auth/user/1/ Django Version: 1.8.6 Exception Type: AttributeError Exception Value: 'unicode' object has no attribute 'tzinfo' Exception Location: /home/dmunoz/jsnmp/Lib/site-packages/django/utils/timezone.py in is_aware, line 337 Python Executable: /home/dmunoz/jsnmp/bin/jython Python Version: 2.7.0 Python Path: ['/home/dmunoz/snmp/webswitcher', '/home/dmunoz/jsnmp/Lib/site-packages/django_jython-1.8.0b3-py2.7.egg', '/home/dmunoz/jsnmp/Lib/site-packages', '/home/dmunoz/jsnmp/Lib', '/home/dmunoz/opt/jython2.7.0/Lib', '__classpath__', '__pyclasspath__/'] Server time: Tue, 10 Nov 2015 12:31:09 -0300 Error during template rendering In template /home/dmunoz/jsnmp/Lib/site-packages/django/contrib/admin/templates/admin/includes/fieldset.html, error at line 19 *2. 'unicode' object has no attribute 'date':* AttributeError at /admin/auth/user/1/ 'unicode' object has no attribute 'date' Request Method: GET Request URL: http://localhost:8000/admin/auth/user/1/ Django Version: 1.8.6 Exception Type: AttributeError Exception Value: 'unicode' object has no attribute 'date' Exception Location: /home/dmunoz/jsnmp/Lib/site-packages/django/forms/widgets.py in decompress, line 888 Python Executable: /home/dmunoz/jsnmp/bin/jython Python Version: 2.7.0 Python Path: ['/home/dmunoz/snmp/webswitcher', '/home/dmunoz/jsnmp/Lib/site-packages/django_jython-1.8.0b3-py2.7.egg', '/home/dmunoz/jsnmp/Lib/site-packages', '/home/dmunoz/jsnmp/Lib', '/home/dmunoz/opt/jython2.7.0/Lib', '__classpath__', '__pyclasspath__/'] Server time: Tue, 10 Nov 2015 12:28:18 -0300 Error during template rendering In template /home/dmunoz/jsnmp/Lib/site-packages/django/contrib/admin/templates/admin/includes/fieldset.html, error at line 19 Regards, Diego |
|
From: David C. <dav...@gm...> - 2015-11-09 21:55:17
|
No, I see identical behavior.
D
On Sat, Nov 7, 2015 at 9:34 AM, Jeff Emanuel <jem...@fr...> wrote:
> Does it exit if you replace InteractiveConsole with PythonInterpreter?
>
>
> On 11/5/2015 5:38 PM, David Charles wrote:
>
> Greetings Jythonistas,
>
> I have a Jython program that runs and exit normally when I invoke it in
> this way:
>
> $ jython myprogram.py args
>
> But runs to its end and _does_not_exit_ when I embed it inside of a *.jar
> file and invoke it in this way:
>
> $ java -classpath jar1:jar2:jar3 MainClass args
>
> I must send a ctrl-C to stop my program when I run it in this way.
>
> I have embedded the Jython interpreter in the following manner:
>
> // Configure the Jython interpreter.
> Properties preProps = PySystemState.getBaseProperties();
> // preProps.put("python.cachedir.skip", false);
> Properties postProps = new Properties();
> postProps.put("python.cachedir.skip", false);
> postProps.put("python.path", "");
> PySystemState.initialize(preProps, postProps, appArgs);
>
> // Start the Jython interpreter.
> InteractiveConsole con = new InteractiveConsole();
> // I found that for some reason, when running under java web start
> // sys.prefix is None and the Lib directory under the jython.jar
> // is not added to the sys.path automatically.
> con.exec("import sys");
> con.exec("sys.path.append(\"__pyclasspath__/Lib\")");
> con.exec("sys.prefix = \"\"");
>
> // Execute the application 'launch code' on the interpreter.
> con.exec(appLaunchCode);
>
> Other Jython programs, embedded in the same manner, do not exhibit this
> problem. I suspect this application does something a little... different.
> But, why then does my application exit normally when I run it on
> $JYTHON_HOME/bin/jython?
>
> Thanks,
> David
>
>
>
> ------------------------------------------------------------------------------
>
>
>
> _______________________________________________
> Jython-users mailing lis...@li...://lists.sourceforge.net/lists/listinfo/jython-users
>
>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Jython-users mailing list
> Jyt...@li...
> https://lists.sourceforge.net/lists/listinfo/jython-users
>
>
|
|
From: Jeff E. <jem...@fr...> - 2015-11-07 16:34:59
|
Does it exit if you replace InteractiveConsole with PythonInterpreter?
On 11/5/2015 5:38 PM, David Charles wrote:
> Greetings Jythonistas,
>
> I have a Jython program that runs and exit normally when I invoke it in this way:
>
> $ jython myprogram.py args
>
> But runs to its end and _does_not_exit_ when I embed it inside of a *.jar file and invoke it in this way:
>
> $ java -classpath jar1:jar2:jar3 MainClass args
>
> I must send a ctrl-C to stop my program when I run it in this way.
>
> I have embedded the Jython interpreter in the following manner:
>
> // Configure the Jython interpreter.
> Properties preProps = PySystemState.getBaseProperties();
> // preProps.put("python.cachedir.skip", false);
> Properties postProps = new Properties();
> postProps.put("python.cachedir.skip", false);
> postProps.put("python.path", "");
> PySystemState.initialize(preProps, postProps, appArgs);
>
> // Start the Jython interpreter.
> InteractiveConsole con = new InteractiveConsole();
> // I found that for some reason, when running under java web start
> // sys.prefix is None and the Lib directory under the jython.jar
> // is not added to the sys.path automatically.
> con.exec("import sys");
> con.exec("sys.path.append(\"__pyclasspath__/Lib\")");
> con.exec("sys.prefix = \"\"");
>
> // Execute the application 'launch code' on the interpreter.
> con.exec(appLaunchCode);
>
> Other Jython programs, embedded in the same manner, do not exhibit this problem. I suspect this application does something a little... different. But, why then does my application exit normally when I run it on $JYTHON_HOME/bin/jython?
>
> Thanks,
> David
>
>
>
> ------------------------------------------------------------------------------
>
>
> _______________________________________________
> Jython-users mailing list
> Jyt...@li...
> https://lists.sourceforge.net/lists/listinfo/jython-users
|
|
From: David C. <dav...@gm...> - 2015-11-06 22:45:39
|
Reporting back, as I have found a solution, even if I do not completely
understand it.
The Jython program I was executing in my call to InteractiveConsole.exec()
terminated with a call to sys.exit(0). This causes the call to
InteractiveConsole.exec() to throw an exception, which my Java program did
not catch. (jython.java catches this exception, which is why it works.)
When the Java program terminates, it prints the SystemExit exception, but
apparently leaves the InteractiveConsole running (daemon thread?).
All that was necessary to get my program to terminate properly was to catch
the exception thrown by InteractiveConsole.exec() and pass it to
Py.printException(). At this point, my Java program terminates
immediately. It never returns from Py.printException().
Py.printException() does not throw anything.
This was a little surprising to me for two reasons. The first reason is
that the method has 'print' in its name, so I expected it (just) to print
the exception. The second reason is that jython.java follows its own call
to Py.printException() with additional things:
interp.cleanup();
System.exit(-1);
Perhaps there are conditions in which Py.printException() does *not*
terminate the Java program.
David
On Thu, Nov 5, 2015 at 5:38 PM, David Charles <dav...@gm...>
wrote:
> Greetings Jythonistas,
>
> I have a Jython program that runs and exit normally when I invoke it in
> this way:
>
> $ jython myprogram.py args
>
> But runs to its end and _does_not_exit_ when I embed it inside of a *.jar
> file and invoke it in this way:
>
> $ java -classpath jar1:jar2:jar3 MainClass args
>
> I must send a ctrl-C to stop my program when I run it in this way.
>
> I have embedded the Jython interpreter in the following manner:
>
> // Configure the Jython interpreter.
> Properties preProps = PySystemState.getBaseProperties();
> // preProps.put("python.cachedir.skip", false);
> Properties postProps = new Properties();
> postProps.put("python.cachedir.skip", false);
> postProps.put("python.path", "");
> PySystemState.initialize(preProps, postProps, appArgs);
>
> // Start the Jython interpreter.
> InteractiveConsole con = new InteractiveConsole();
> // I found that for some reason, when running under java web start
> // sys.prefix is None and the Lib directory under the jython.jar
> // is not added to the sys.path automatically.
> con.exec("import sys");
> con.exec("sys.path.append(\"__pyclasspath__/Lib\")");
> con.exec("sys.prefix = \"\"");
>
> // Execute the application 'launch code' on the interpreter.
> con.exec(appLaunchCode);
>
> Other Jython programs, embedded in the same manner, do not exhibit this
> problem. I suspect this application does something a little... different.
> But, why then does my application exit normally when I run it on
> $JYTHON_HOME/bin/jython?
>
> Thanks,
> David
>
>
|
|
From: David C. <dav...@gm...> - 2015-11-06 00:38:24
|
Greetings Jythonistas,
I have a Jython program that runs and exit normally when I invoke it in
this way:
$ jython myprogram.py args
But runs to its end and _does_not_exit_ when I embed it inside of a *.jar
file and invoke it in this way:
$ java -classpath jar1:jar2:jar3 MainClass args
I must send a ctrl-C to stop my program when I run it in this way.
I have embedded the Jython interpreter in the following manner:
// Configure the Jython interpreter.
Properties preProps = PySystemState.getBaseProperties();
// preProps.put("python.cachedir.skip", false);
Properties postProps = new Properties();
postProps.put("python.cachedir.skip", false);
postProps.put("python.path", "");
PySystemState.initialize(preProps, postProps, appArgs);
// Start the Jython interpreter.
InteractiveConsole con = new InteractiveConsole();
// I found that for some reason, when running under java web start
// sys.prefix is None and the Lib directory under the jython.jar
// is not added to the sys.path automatically.
con.exec("import sys");
con.exec("sys.path.append(\"__pyclasspath__/Lib\")");
con.exec("sys.prefix = \"\"");
// Execute the application 'launch code' on the interpreter.
con.exec(appLaunchCode);
Other Jython programs, embedded in the same manner, do not exhibit this
problem. I suspect this application does something a little... different.
But, why then does my application exit normally when I run it on
$JYTHON_HOME/bin/jython?
Thanks,
David
|
|
From: dusan s. <dus...@gm...> - 2015-11-02 08:51:14
|
|
From: <yaq...@gm...> - 2015-11-02 08:09:25
|
I am using a Windows computer with Chinese locale. I can format datetime object with Chinese abbreviated month name:
>>> t = datetime.datetime(2015,11,2)
>>> print unicode(t.strftime('%Y%b%d'))
2015十一月02
Now I want to get English abbreviated month name (2015sep02), so I tyied blow code:
import locale
locale.setlocale(locale.LC_ALL, 'en_US')
t = datetime.datetime(2015,11,2)
print t.strftime('%Y%b%d')
But I got erro message: ValueError: _locale emulation only supports "C" locale
How to solve this problem? I am using Jython 2.7.0 library.
Regards
Yaqiang
*************************************************
Dr. Yaqiang Wang
Chinese Academy of Meteorological Sciences (CAMS)
46, Zhong-Guan-Cun South Avenue
Beijing, 100081
China
yaq...@gm...
http://www.meteothinker.com
**************************************************
|
|
From: Mike R. <mro...@ya...> - 2015-10-30 12:41:08
|
Dear all, I have several projects in Jython 2.7b1... a few months ago I installed 2.7.0 "Final Release". Just tried "deploying" a new project. By this I basically mean running it from the CLI (Windows 7). But I can't get it to include jar files. Might I ask you to check out the full details at StackOverflow? Jython 2.7.0 "Final Release" on Windows - difficulty including jars ThanksMike | | | | | | | | | | | Jython 2.7.0 "Final Release" on Windows - difficulty inc...I have a few projects which run using Jython 2.7b1 where I add the jars (in fact all the jars in a directory) by doing this: set CLASSPATH=.;"%SYSADMIN%\resources\j... | | | | View on stackoverflow.com | Preview by Yahoo | | | | | |
|
From: Angel D. M. G. <scy...@gm...> - 2015-10-24 00:30:56
|
Well actually Saturday/sunday 9 am and Sunday 12 pm fit well for me, I’m up for slack, gitter and skype (slack is one of my favorites). Daniel Sent from Mail for Windows 10 From: Paul Everitt Sent: Friday, October 23, 2015 5:06 AM To: Ben Lewis Cc: jyt...@li... Subject: Re: [Jython-users] Anyone interested in helping on a Minecraft pluginproject? Here are some choices: - Saturday, 9AM Eastern, 15h European - Saturday, 5PM Eastern - Sunday, 9AM Eastern, 15h European - Sunday, 12PM Eastern, 18h European I can do all the slots anybody can make, just let me know your preference for IRC, Gitter, Slack, or Skype. —Paul On Oct 23, 2015, at 5:28 AM, Ben Lewis <ben...@gm...> wrote: Hi Paul I would be interested but for me It really depends on the time. On Fri, Oct 23, 2015 at 1:29 AM, Paul Everitt <pau...@me...> wrote: To Jim, Ben, Darjus, Angel, and Pāvils... If I make some Europe-friendly time slots this weekend to be online in IRC/Gitter, do you think you would be interested in an online Jycraft meeting, to bootstrap things? —Paul ------------------------------------------------------------------------------ _______________________________________________ Jython-users mailing list Jyt...@li... https://lists.sourceforge.net/lists/listinfo/jython-users |
|
From: Paul E. <pau...@me...> - 2015-10-23 11:05:16
|
Here are some choices: - Saturday, 9AM Eastern, 15h European - Saturday, 5PM Eastern - Sunday, 9AM Eastern, 15h European - Sunday, 12PM Eastern, 18h European I can do all the slots anybody can make, just let me know your preference for IRC, Gitter, Slack, or Skype. —Paul > On Oct 23, 2015, at 5:28 AM, Ben Lewis <ben...@gm...> wrote: > > Hi Paul > I would be interested but for me It really depends on the time. > > > On Fri, Oct 23, 2015 at 1:29 AM, Paul Everitt <pau...@me... <mailto:pau...@me...>> wrote: > > To Jim, Ben, Darjus, Angel, and Pāvils... If I make some Europe-friendly time slots this weekend to be online in IRC/Gitter, do you think you would be interested in an online Jycraft meeting, to bootstrap things? > > —Paul > ------------------------------------------------------------------------------ > _______________________________________________ > Jython-users mailing list > Jyt...@li... <mailto:Jyt...@li...> > https://lists.sourceforge.net/lists/listinfo/jython-users <https://lists.sourceforge.net/lists/listinfo/jython-users> > |
|
From: Ben L. <ben...@gm...> - 2015-10-23 09:28:18
|
Hi Paul I would be interested but for me It really depends on the time. On Fri, Oct 23, 2015 at 1:29 AM, Paul Everitt <pau...@me...> wrote: > > To Jim, Ben, Darjus, Angel, and Pāvils... If I make some Europe-friendly > time slots this weekend to be online in IRC/Gitter, do you think you would > be interested in an online Jycraft meeting, to bootstrap things? > > —Paul > > ------------------------------------------------------------------------------ > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |
|
From: Quanah Gibson-M. <qu...@zi...> - 2015-10-22 21:27:09
|
--On Thursday, October 22, 2015 4:09 PM -0600 Jim Baker <jim...@py...> wrote: > There are many other issues in the bug tracker. Trust me, we will not > have time to fix all of them before the RC ;), but if we need to triage > their priority, please tell us. In general, our plan is to defer any work > that we cannot complete by Nov 5 to 2.7.2, which will see its first beta > this March and a final release in May, just before PyCon 2016. Hi Jim, I was somewhat hoping that the IPv6 bug I filed would be a priority, given the increasing need to move to IPv6. ;) <http://bugs.jython.org/issue2406> --Quanah -- Quanah Gibson-Mount Platform Architect Zimbra, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration |
|
From: Jim B. <jim...@py...> - 2015-10-22 21:10:11
|
We are on schedule for a release candidate for Jython 2.7.1 for Thursday November 5, which is *2 weeks from now*. I'm aware of two outstanding issues that the 2.7.1 RC should resolve: http://bugs.jython.org/issue2390 - Supporting SSLContext. Although we still have some missing functionality in this support of new functionality in the Python ssl module, it appears that it suffices for the major use case: supporting both upstream pip and the requests package (which pip vendors). If that's the case, I think we can postpone additional functionality until a future release. http://bugs.jython.org/issue2362 - from XYZ import * does not work on Java 9. This is because of the new module support in Java 9, which stops using rt.jar for Java runtime classes. Unfortunately this causes issues for Jython, because one of the principal reasons that Jython scans jars is to support this pattern of behavior. It would be ideal if we can fix this bug for 2.7.1 so that users testing Java 9 can use Jython for such code. There are many other issues in the bug tracker. Trust me, we will not have time to fix all of them before the RC ;), but if we need to triage their priority, please tell us. In general, our plan is to defer any work that we cannot complete by Nov 5 to 2.7.2, which will see its first beta this March and a final release in May, just before PyCon 2016. - Jim |
|
From: Quanah Gibson-M. <qu...@zi...> - 2015-10-22 16:26:49
|
--On Tuesday, October 20, 2015 9:59 AM -0700 fwi...@gm... wrote: > On behalf of the Jython development team, I'm pleased to announce that > Jython 2.7.1 beta2 is released! > > Thanks to Amobee for sponsoring my work on Jython, and thanks to the > many contributors to Jython! > > Details are here: > http://fwierzbicki.blogspot.com/2015/10/jython-271-beta2-released.html Thanks, I can confirm posix/os functionality is restored. The blog post is a bit light on the problem that was fixed. It was significantly more than just os.getpid() not working. In the future, it may be useful in the blog to actually put a pointer in to the upstream bug, so people who are interested can read over it. Regards, Quanah -- Quanah Gibson-Mount Platform Architect Zimbra, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration |
|
From: Paul E. <pau...@me...> - 2015-10-22 12:29:33
|
To Jim, Ben, Darjus, Angel, and Pāvils... If I make some Europe-friendly time slots this weekend to be online in IRC/Gitter, do you think you would be interested in an online Jycraft meeting, to bootstrap things? —Paul |
|
From: Angel M. g. <scy...@gm...> - 2015-10-21 16:50:37
|
Sounds great to me, I’m not familiar with Pelican, but learning doesn’t hurt, I will be trying to be watching closely the repos and mails , right know I’m trying to set up the jycraft.github.io repo in my machine for development mind any help with the pelicanconf.py? Thanks in advance Daniel From: Paul Everitt Date: Wednesday, October 21, 2015 at 6:01 AM To: Angel Muñoz González Cc: "jyt...@li..." Subject: Re: [Jython-users] Anyone interested in helping on a Minecraft plugin project? Even if you aren’t doing much Java, there’s still quite a lot that can be done. Especially if we can get the Java/Jython part under control. We could work together on the web UI (currently called codecraft). But there’s so much more to do: the Pelican-based website, writing material to help get people onboarded, answering tickets, making a better “getting started” experience, etc. —Paul On Oct 21, 2015, at 3:11 AM, Angel Muñoz gonzalez <scy...@gm...> wrote: Hi everyone! I can’t help my inner self on this, I would like to be useful on this, it’s been quite a while I have programmed in java and not so quite in python (far from expert in both) and I’m quite married to web technologies right now, but I would be willing to help on this project, I’m watching already the github repos mentioned before. I’ll try to fit somewhere :) Daniel From: Ben Lewis Date: Tuesday, October 20, 2015 at 7:35 PM To: Paul Everitt Cc: "jyt...@li..." Subject: Re: [Jython-users] Anyone interested in helping on a Minecraft plugin project? Hi Paul I can help with the Gradle stuff, I come from more of the Java side of thing and I am familiar with it. Does it just need to build a jar for each API that includes the compiled classes, configs and the dependencies for that API? Ben Lewis On Wed, Oct 21, 2015 at 1:18 PM, Paul Everitt <pau...@me...> wrote: Ok, since there is some interest, a little more detail: - We have a project name of “Jycraft” - There is a GitHub organization called Jycraft with some repos for different projects: https://github.com/jycraft - There’s a GitHub Pages landing page with a lot of “proactively truthful” storytelling/dreaming: http://jycraft.github.io This is the repo that needs attention: https://github.com/Jycraft/jycraft-server-plugin I’d love to get some help with Gradle or some other approach to automated builds. After that, let’s get rid of Canary support and simply provide a download for Sponge. After that, a few changes in how we do WebSocket <-> interpreter. The PyCon call for talks just opened, I believe, and closes in January (I believe.) Wonder if this can make enough progress to submit a paper. I know PyCon 2014 had a Minecraft talk that was very heavily attended. —Paul On Oct 20, 2015, at 8:09 PM, Darjus Loktevic <da...@gm...> wrote: I'd be more than happy to help as well. Python and Minecraft should go hand in hand. Darjus On Wed, Oct 21, 2015 at 8:50 AM Jim Baker <jim...@py...> wrote: I have no problem holding hands here :) Sometimes I'm limited by time, but such annotation support is now a work priority for me. Given that Minecraft Jython support should be a very good demonstration of what Clamp can do, and what we need to work on, I'm especially eager for any and all guinea pigs. Let's do it! - Jim On Tue, Oct 20, 2015 at 4:41 AM, Paul Everitt <pau...@me...> wrote: Sorry about taking it off-list, was trying to be considerate to others here, as I was coming hat-in-hand. You and I have talked before about Clamp as a build solution. I’m all for being a guinea pig on Clamp, annotations, etc. but I worry that my huge deficit on Java/Jython building will result in my outsourcing our building to you. :) But if you’re up for hand-holding, I’ll gladly provide the hands. —Paul On Oct 19, 2015, at 7:31 PM, Jim Baker <jim...@py...> wrote: Paul, I don't think this needs to be in a private email - threads work well enough :), and this list is very low traffic. Anyway, I'm back from vacation, and I should let you and Ben know that I plan to work next on Clamp's support for Java annotations [1]. We need this for a project using Spring annotations; that it supports Minecraft sounds like a very nice bonus to me. I'm sure others will find this very beneficial as well in their Jython usage. - Jim [1]: https://github.com/jythontools/clamp#supporting-java-annotations On Mon, Oct 19, 2015 at 4:24 PM, Paul Everitt <pau...@me...> wrote: To save everybody from a discussion about this on-list, I’ll reply to you in private. —Paul On Oct 19, 2015, at 5:41 PM, Ben Lewis <ben...@gm...> wrote: Hello Paul Recently I have also been investigating ways of creating minecraft plugins in python. I have came up with a prototype of building plugins on top of the Sponge API. I have put the code on github here https://github.com/skinny121/PySponge The major hurdles for creating a binding is that the different plugin apis all like to use annotations and they often use annotations statically to discovers plugins. The solution I came up with was to simply generate the main plugin java class via a setup script and link to the plugin python files from there. Ben Lewis On Tue, Oct 20, 2015 at 12:14 AM, Paul Everitt <pau...@me...> wrote: On Oct 15, 2015, at 11:48 AM, Stefan Eletzhofer <ste...@gm...> wrote: Hi Paul, Am [DATE] schrieb "Paul Everitt" <[ADDRESS]>: As has been discussed here a few times, Minecraft is a great place for getting kids interested in programming. Python, via Jython, is a great match for that, as the #1 teaching language. Yeah, it is! Two children *love* Minecraft. I guess they'd *love* to teach MC some new tricks if it would be approachable. It certainly has the potential to be quite approachable. Seppe’s original blog post has a screencast showing how you can let people type in Python code, from a browser: http://blog.macuyiko.com/post/2015/rebuilding-our-jython-console-plugin-for-minecraft.html We have other material in a different place (GitHub organization with some repos) but I don’t want to promote that name until it’s clear the project will continue. Seppe vanden Broucke got a Jython-based Minecraft plugin that lets you run Python code that talks to the Minecraft server API, including a websocket-based Web UI for typing in code that is sent over and executed. It’s fascinating stuff. I’m pitching in to work on that frontend and some other project stuff. Do you have a link somewhere? But we need some help on the Java/Jython side if it is going to go anywhere. Even 5 hours of help from someone that knows Java, Gradle/Maven, and Jython would go a long way. I don’t know those things, and am unlikely to learn it well enough in the time I have available. Well -- I don't know about java (cough) but we do have experience in Jython -- our company's software bases on a Jython backend to a PLM System (Jython 2.7, Flask based) ... The problem is I have not the faintest idea how MC works. Any concrete issues / suggestions? Minecraft servers support server-side extension via plugin systems. There are 3 main plugin projects at the moment: - Canary (dead) - Spigot (successor to Canary’s API) - Sponge (more ambitious) Seppe’s code has support for Canary and Spigot. For the most part, it works, but there are some things that could be done. What’s more needed, though, is basic Java/Jython stuff. We don’t have an automated way to build it (e.g Gradle or Maven) which also means we can’t really hook it up to a CI server. (For that matter, we don’t have any tests.) At the point where we want to attract any outsiders, we need to pay attention to some form of distribution. Our build is currently very large and you have to do a few semi-error-prone manual steps to install. Finally, you have to run a web server manually to serve up the static files for the web UI. Would be nice to have the Jython process do that, just to eliminate some steps needed. Beyond that, the sky is the limit. A system where plugin people could create, collaborate, and share little snippets is certainly feasible. And once we get to the point where we can reach out to the Python community, we’ll have plenty of help. But we’re stuck at the moment on Java janitorial work. [wink] —Paul ------------------------------------------------------------------------------ _______________________________________________ Jython-users mailing list Jyt...@li... https://lists.sourceforge.net/lists/listinfo/jython-users ------------------------------------------------------------------------------ _______________________________________________ Jython-users mailing list Jyt...@li... https://lists.sourceforge.net/lists/listinfo/jython-users ------------------------------------------------------------------------------ _______________________________________________ Jython-users mailing list Jyt...@li... https://lists.sourceforge.net/lists/listinfo/jython-users ------------------------------------------------------------------------------ _______________________________________________ Jython-users mailing list Jyt...@li... https://lists.sourceforge.net/lists/listinfo/jython-users ------------------------------------------------------------------------------ _______________________________________________ Jython-users mailing list Jyt...@li...://lists.sourceforge.net/lists/listinfo/jython-users |
|
From: Paul E. <pau...@me...> - 2015-10-21 12:01:40
|
Even if you aren’t doing much Java, there’s still quite a lot that can be done. Especially if we can get the Java/Jython part under control. We could work together on the web UI (currently called codecraft). But there’s so much more to do: the Pelican-based website, writing material to help get people onboarded, answering tickets, making a better “getting started” experience, etc. —Paul > On Oct 21, 2015, at 3:11 AM, Angel Muñoz gonzalez <scy...@gm...> wrote: > > Hi everyone! > > I can’t help my inner self on this, I would like to be useful on this, it’s been quite a while I have programmed in java and not so quite in python (far from expert in both) and I’m quite married to web technologies right now, but I would be willing to help on this project, I’m watching already the github repos mentioned before. I’ll try to fit somewhere :) > > Daniel > > From: Ben Lewis > Date: Tuesday, October 20, 2015 at 7:35 PM > To: Paul Everitt > Cc: "jyt...@li... <mailto:jyt...@li...>" > Subject: Re: [Jython-users] Anyone interested in helping on a Minecraft plugin project? > > Hi Paul > > I can help with the Gradle stuff, I come from more of the Java side of thing and I am familiar with it. Does it just need to build a jar for each API that includes the compiled classes, configs and the dependencies for that API? > > Ben Lewis > > On Wed, Oct 21, 2015 at 1:18 PM, Paul Everitt <pau...@me... <mailto:pau...@me...>> wrote: >> >> Ok, since there is some interest, a little more detail: >> >> - We have a project name of “Jycraft” >> >> - There is a GitHub organization called Jycraft with some repos for different projects: >> >> https://github.com/jycraft <https://github.com/jycraft> >> >> - There’s a GitHub Pages landing page with a lot of “proactively truthful” storytelling/dreaming: >> >> http://jycraft.github.io <http://jycraft.github.io/> >> >> This is the repo that needs attention: >> >> https://github.com/Jycraft/jycraft-server-plugin <https://github.com/Jycraft/jycraft-server-plugin> >> >> I’d love to get some help with Gradle or some other approach to automated builds. After that, let’s get rid of Canary support and simply provide a download for Sponge. After that, a few changes in how we do WebSocket <-> interpreter. >> >> The PyCon call for talks just opened, I believe, and closes in January (I believe.) Wonder if this can make enough progress to submit a paper. I know PyCon 2014 had a Minecraft talk that was very heavily attended. >> >> —Paul >> >>> On Oct 20, 2015, at 8:09 PM, Darjus Loktevic <da...@gm... <mailto:da...@gm...>> wrote: >>> >>> I'd be more than happy to help as well. Python and Minecraft should go hand in hand. >>> >>> Darjus >>> >>> On Wed, Oct 21, 2015 at 8:50 AM Jim Baker <jim...@py... <mailto:jim...@py...>> wrote: >>>> I have no problem holding hands here :) Sometimes I'm limited by time, but such annotation support is now a work priority for me. >>>> >>>> Given that Minecraft Jython support should be a very good demonstration of what Clamp can do, and what we need to work on, I'm especially eager for any and all guinea pigs. Let's do it! >>>> >>>> - Jim >>>> >>>> On Tue, Oct 20, 2015 at 4:41 AM, Paul Everitt <pau...@me... <mailto:pau...@me...>> wrote: >>>>> Sorry about taking it off-list, was trying to be considerate to others here, as I was coming hat-in-hand. >>>>> >>>>> You and I have talked before about Clamp as a build solution. I’m all for being a guinea pig on Clamp, annotations, etc. but I worry that my huge deficit on Java/Jython building will result in my outsourcing our building to you. :) >>>>> >>>>> But if you’re up for hand-holding, I’ll gladly provide the hands. >>>>> >>>>> —Paul >>>>> >>>>>> On Oct 19, 2015, at 7:31 PM, Jim Baker <jim...@py... <mailto:jim...@py...>> wrote: >>>>>> >>>>>> Paul, >>>>>> >>>>>> I don't think this needs to be in a private email - threads work well enough :), and this list is very low traffic. >>>>>> >>>>>> Anyway, I'm back from vacation, and I should let you and Ben know that I plan to work next on Clamp's support for Java annotations [1]. We need this for a project using Spring annotations; that it supports Minecraft sounds like a very nice bonus to me. I'm sure others will find this very beneficial as well in their Jython usage. >>>>>> >>>>>> - Jim >>>>>> >>>>>> [1]: https://github.com/jythontools/clamp#supporting-java-annotations <https://github.com/jythontools/clamp#supporting-java-annotations> >>>>>> >>>>>> On Mon, Oct 19, 2015 at 4:24 PM, Paul Everitt <pau...@me... <mailto:pau...@me...>> wrote: >>>>>>> >>>>>>> To save everybody from a discussion about this on-list, I’ll reply to you in private. >>>>>>> >>>>>>> —Paul >>>>>>> >>>>>>>> On Oct 19, 2015, at 5:41 PM, Ben Lewis <ben...@gm... <mailto:ben...@gm...>> wrote: >>>>>>>> >>>>>>>> Hello Paul >>>>>>>> >>>>>>>> Recently I have also been investigating ways of creating minecraft plugins in python. I have came up with a prototype of building plugins on top of the Sponge API. >>>>>>>> >>>>>>>> I have put the code on github here https://github.com/skinny121/PySponge <https://github.com/skinny121/PySponge> >>>>>>>> >>>>>>>> The major hurdles for creating a binding is that the different plugin apis all like to use annotations and they often use annotations statically to discovers plugins. >>>>>>>> >>>>>>>> The solution I came up with was to simply generate the main plugin java class via a setup script and link to the plugin python files from there. >>>>>>>> >>>>>>>> Ben Lewis >>>>>>>> >>>>>>>> On Tue, Oct 20, 2015 at 12:14 AM, Paul Everitt <pau...@me... <mailto:pau...@me...>> wrote: >>>>>>>>> >>>>>>>>>> On Oct 15, 2015, at 11:48 AM, Stefan Eletzhofer <ste...@gm... <mailto:ste...@gm...>> wrote: >>>>>>>>>> >>>>>>>>>> Hi Paul, >>>>>>>>>> >>>>>>>>>> Am [DATE] schrieb "Paul Everitt" <[ADDRESS]>: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> As has been discussed here a few times, Minecraft is a great place for getting kids interested in programming. Python, via Jython, is a great match for that, as the #1 teaching language. >>>>>>>>>> >>>>>>>>>> Yeah, it is! Two children *love* Minecraft. I guess they'd *love* to teach MC some new tricks if >>>>>>>>>> it would be approachable. >>>>>>>>> >>>>>>>>> It certainly has the potential to be quite approachable. Seppe’s original blog post has a screencast showing how you can let people type in Python code, from a browser: >>>>>>>>> >>>>>>>>> http://blog.macuyiko.com/post/2015/rebuilding-our-jython-console-plugin-for-minecraft.html <http://blog.macuyiko.com/post/2015/rebuilding-our-jython-console-plugin-for-minecraft.html> >>>>>>>>> >>>>>>>>> We have other material in a different place (GitHub organization with some repos) but I don’t want to promote that name until it’s clear the project will continue. >>>>>>>>> >>>>>>>>>> >>>>>>>>>>> Seppe vanden Broucke got a Jython-based Minecraft plugin that lets you run Python code that talks to the Minecraft server API, including a websocket-based Web UI for typing in code that is sent over and executed. It’s fascinating stuff. I’m pitching in to work on that frontend and some other project stuff. >>>>>>>>>> >>>>>>>>>> Do you have a link somewhere? >>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> But we need some help on the Java/Jython side if it is going to go anywhere. Even 5 hours of help from someone that knows Java, Gradle/Maven, and Jython would go a long way. I don’t know those things, and am unlikely to learn it well enough in the time I have available. >>>>>>>>>> >>>>>>>>>> Well -- I don't know about java (cough) but we do have experience in Jython -- our company's software >>>>>>>>>> bases on a Jython backend to a PLM System (Jython 2.7, Flask based) ... >>>>>>>>>> >>>>>>>>>> The problem is I have not the faintest idea how MC works. Any concrete issues / suggestions? >>>>>>>>> >>>>>>>>> Minecraft servers support server-side extension via plugin systems. There are 3 main plugin projects at the moment: >>>>>>>>> >>>>>>>>> - Canary (dead) >>>>>>>>> - Spigot (successor to Canary’s API) >>>>>>>>> - Sponge (more ambitious) >>>>>>>>> >>>>>>>>> Seppe’s code has support for Canary and Spigot. For the most part, it works, but there are some things that could be done. >>>>>>>>> >>>>>>>>> What’s more needed, though, is basic Java/Jython stuff. We don’t have an automated way to build it (e.g Gradle or Maven) which also means we can’t really hook it up to a CI server. (For that matter, we don’t have any tests.) >>>>>>>>> >>>>>>>>> At the point where we want to attract any outsiders, we need to pay attention to some form of distribution. Our build is currently very large and you have to do a few semi-error-prone manual steps to install. >>>>>>>>> >>>>>>>>> Finally, you have to run a web server manually to serve up the static files for the web UI. Would be nice to have the Jython process do that, just to eliminate some steps needed. >>>>>>>>> >>>>>>>>> Beyond that, the sky is the limit. A system where plugin people could create, collaborate, and share little snippets is certainly feasible. And once we get to the point where we can reach out to the Python community, we’ll have plenty of help. But we’re stuck at the moment on Java janitorial work. [wink] >>>>>>>>> >>>>>>>>> —Paul >>>>>>>>> >>>>>>>>> >>>>>>>>> ------------------------------------------------------------------------------ >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> Jython-users mailing list >>>>>>>>> Jyt...@li... <mailto:Jyt...@li...> >>>>>>>>> https://lists.sourceforge.net/lists/listinfo/jython-users <https://lists.sourceforge.net/lists/listinfo/jython-users> >>>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------------------------------ >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Jython-users mailing list >>>>>>> Jyt...@li... <mailto:Jyt...@li...> >>>>>>> https://lists.sourceforge.net/lists/listinfo/jython-users <https://lists.sourceforge.net/lists/listinfo/jython-users> >>>>>>> >>>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> >>>>> _______________________________________________ >>>>> Jython-users mailing list >>>>> Jyt...@li... <mailto:Jyt...@li...> >>>>> https://lists.sourceforge.net/lists/listinfo/jython-users <https://lists.sourceforge.net/lists/listinfo/jython-users> >>>>> >>>> >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Jython-users mailing list >> Jyt...@li... <mailto:Jyt...@li...> >> https://lists.sourceforge.net/lists/listinfo/jython-users <https://lists.sourceforge.net/lists/listinfo/jython-users> >> > > ------------------------------------------------------------------------------ _______________________________________________ Jython-users mailing list Jyt...@li... <mailto:Jyt...@li...> https://lists.sourceforge.net/lists/listinfo/jython-users <https://lists.sourceforge.net/lists/listinfo/jython-users> |
|
From: Paul E. <pau...@me...> - 2015-10-21 11:58:51
|
Currently to build it, you clone the repo, open it in Eclipse, and the .settings kicks in: https://github.com/Jycraft/jycraft-server-plugin/tree/master/.settings <https://github.com/Jycraft/jycraft-server-plugin/tree/master/.settings> You click Export, click the magic things in Eclipse, and get a jar. Some old instructions here: https://github.com/Macuyiko/jycraft-legacy <https://github.com/Macuyiko/jycraft-legacy> I *think* we currently bundle Jython, Canary, and Spigot into the resources in the compiled JAR (but I might be wrong about that). And I think we also ask people to put those jars into their server directory. So the jar is huge and duplicative. Also, the repo checks the upstream sources (Canary, Sponge, etc.) into the jycraft-server-plugin repo, making it a *HUGE* checkout. Here are some things that would be great to have: - Get the dependencies during the build process from Maven repos - Eliminate Canary and just do Sponge, which might me some re-organization of the codebase - Decide whether to pack jython/sponge into a single jar, or provide a zip that contains the relevant parts - (Later) Try to trim down the size of the Jython used (currently adds 12 MB or so to what needs to be downloaded) - (Later) Hook this up to Travis to get automated builds, perhaps with the world’s smallest test Ben and Darjus, perhaps we should discuss this in some issues in the repo? —Paul > On Oct 20, 2015, at 9:35 PM, Ben Lewis <ben...@gm...> wrote: > > Hi Paul > > I can help with the Gradle stuff, I come from more of the Java side of thing and I am familiar with it. Does it just need to build a jar for each API that includes the compiled classes, configs and the dependencies for that API? > > Ben Lewis > > On Wed, Oct 21, 2015 at 1:18 PM, Paul Everitt <pau...@me... <mailto:pau...@me...>> wrote: > > Ok, since there is some interest, a little more detail: > > - We have a project name of “Jycraft” > > - There is a GitHub organization called Jycraft with some repos for different projects: > > https://github.com/jycraft <https://github.com/jycraft> > > - There’s a GitHub Pages landing page with a lot of “proactively truthful” storytelling/dreaming: > > http://jycraft.github.io <http://jycraft.github.io/> > > This is the repo that needs attention: > > https://github.com/Jycraft/jycraft-server-plugin <https://github.com/Jycraft/jycraft-server-plugin> > > I’d love to get some help with Gradle or some other approach to automated builds. After that, let’s get rid of Canary support and simply provide a download for Sponge. After that, a few changes in how we do WebSocket <-> interpreter. > > The PyCon call for talks just opened, I believe, and closes in January (I believe.) Wonder if this can make enough progress to submit a paper. I know PyCon 2014 had a Minecraft talk that was very heavily attended. > > —Paul > >> On Oct 20, 2015, at 8:09 PM, Darjus Loktevic <da...@gm... <mailto:da...@gm...>> wrote: >> >> I'd be more than happy to help as well. Python and Minecraft should go hand in hand. >> >> Darjus >> >> On Wed, Oct 21, 2015 at 8:50 AM Jim Baker <jim...@py... <mailto:jim...@py...>> wrote: >> I have no problem holding hands here :) Sometimes I'm limited by time, but such annotation support is now a work priority for me. >> >> Given that Minecraft Jython support should be a very good demonstration of what Clamp can do, and what we need to work on, I'm especially eager for any and all guinea pigs. Let's do it! >> >> - Jim >> >> On Tue, Oct 20, 2015 at 4:41 AM, Paul Everitt <pau...@me... <mailto:pau...@me...>> wrote: >> Sorry about taking it off-list, was trying to be considerate to others here, as I was coming hat-in-hand. >> >> You and I have talked before about Clamp as a build solution. I’m all for being a guinea pig on Clamp, annotations, etc. but I worry that my huge deficit on Java/Jython building will result in my outsourcing our building to you. :) >> >> But if you’re up for hand-holding, I’ll gladly provide the hands. >> >> —Paul >> >>> On Oct 19, 2015, at 7:31 PM, Jim Baker <jim...@py... <mailto:jim...@py...>> wrote: >>> >>> Paul, >>> >>> I don't think this needs to be in a private email - threads work well enough :), and this list is very low traffic. >>> >>> Anyway, I'm back from vacation, and I should let you and Ben know that I plan to work next on Clamp's support for Java annotations [1]. We need this for a project using Spring annotations; that it supports Minecraft sounds like a very nice bonus to me. I'm sure others will find this very beneficial as well in their Jython usage. >>> >>> - Jim >>> >>> [1]: https://github.com/jythontools/clamp#supporting-java-annotations <https://github.com/jythontools/clamp#supporting-java-annotations> >>> >>> On Mon, Oct 19, 2015 at 4:24 PM, Paul Everitt <pau...@me... <mailto:pau...@me...>> wrote: >>> >>> To save everybody from a discussion about this on-list, I’ll reply to you in private. >>> >>> —Paul >>> >>>> On Oct 19, 2015, at 5:41 PM, Ben Lewis <ben...@gm... <mailto:ben...@gm...>> wrote: >>>> >>>> Hello Paul >>>> >>>> Recently I have also been investigating ways of creating minecraft plugins in python. I have came up with a prototype of building plugins on top of the Sponge API. >>>> >>>> I have put the code on github here https://github.com/skinny121/PySponge <https://github.com/skinny121/PySponge> >>>> >>>> The major hurdles for creating a binding is that the different plugin apis all like to use annotations and they often use annotations statically to discovers plugins. >>>> >>>> The solution I came up with was to simply generate the main plugin java class via a setup script and link to the plugin python files from there. >>>> >>>> Ben Lewis >>>> >>>> On Tue, Oct 20, 2015 at 12:14 AM, Paul Everitt <pau...@me... <mailto:pau...@me...>> wrote: >>>> >>>>> On Oct 15, 2015, at 11:48 AM, Stefan Eletzhofer <ste...@gm... <mailto:ste...@gm...>> wrote: >>>>> >>>>> Hi Paul, >>>>> >>>>> Am [DATE] schrieb "Paul Everitt" <[ADDRESS]>: >>>>> >>>>> >>>>> >>>>>> As has been discussed here a few times, Minecraft is a great place for getting kids interested in programming. Python, via Jython, is a great match for that, as the #1 teaching language. >>>>> >>>>> Yeah, it is! Two children *love* Minecraft. I guess they'd *love* to teach MC some new tricks if >>>>> it would be approachable. >>>> >>>> It certainly has the potential to be quite approachable. Seppe’s original blog post has a screencast showing how you can let people type in Python code, from a browser: >>>> >>>> http://blog.macuyiko.com/post/2015/rebuilding-our-jython-console-plugin-for-minecraft.html <http://blog.macuyiko.com/post/2015/rebuilding-our-jython-console-plugin-for-minecraft.html> >>>> >>>> We have other material in a different place (GitHub organization with some repos) but I don’t want to promote that name until it’s clear the project will continue. >>>> >>>>> >>>>>> Seppe vanden Broucke got a Jython-based Minecraft plugin that lets you run Python code that talks to the Minecraft server API, including a websocket-based Web UI for typing in code that is sent over and executed. It’s fascinating stuff. I’m pitching in to work on that frontend and some other project stuff. >>>>> >>>>> Do you have a link somewhere? >>>>> >>>>>> >>>>>> But we need some help on the Java/Jython side if it is going to go anywhere. Even 5 hours of help from someone that knows Java, Gradle/Maven, and Jython would go a long way. I don’t know those things, and am unlikely to learn it well enough in the time I have available. >>>>> >>>>> Well -- I don't know about java (cough) but we do have experience in Jython -- our company's software >>>>> bases on a Jython backend to a PLM System (Jython 2.7, Flask based) ... >>>>> >>>>> The problem is I have not the faintest idea how MC works. Any concrete issues / suggestions? >>>> >>>> Minecraft servers support server-side extension via plugin systems. There are 3 main plugin projects at the moment: >>>> >>>> - Canary (dead) >>>> - Spigot (successor to Canary’s API) >>>> - Sponge (more ambitious) >>>> >>>> Seppe’s code has support for Canary and Spigot. For the most part, it works, but there are some things that could be done. >>>> >>>> What’s more needed, though, is basic Java/Jython stuff. We don’t have an automated way to build it (e.g Gradle or Maven) which also means we can’t really hook it up to a CI server. (For that matter, we don’t have any tests.) >>>> >>>> At the point where we want to attract any outsiders, we need to pay attention to some form of distribution. Our build is currently very large and you have to do a few semi-error-prone manual steps to install. >>>> >>>> Finally, you have to run a web server manually to serve up the static files for the web UI. Would be nice to have the Jython process do that, just to eliminate some steps needed. >>>> >>>> Beyond that, the sky is the limit. A system where plugin people could create, collaborate, and share little snippets is certainly feasible. And once we get to the point where we can reach out to the Python community, we’ll have plenty of help. But we’re stuck at the moment on Java janitorial work. [wink] >>>> >>>> —Paul >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> >>>> _______________________________________________ >>>> Jython-users mailing list >>>> Jyt...@li... <mailto:Jyt...@li...> >>>> https://lists.sourceforge.net/lists/listinfo/jython-users <https://lists.sourceforge.net/lists/listinfo/jython-users> >>>> >>>> >>> >>> >>> ------------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Jython-users mailing list >>> Jyt...@li... <mailto:Jyt...@li...> >>> https://lists.sourceforge.net/lists/listinfo/jython-users <https://lists.sourceforge.net/lists/listinfo/jython-users> >>> >>> >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Jython-users mailing list >> Jyt...@li... <mailto:Jyt...@li...> >> https://lists.sourceforge.net/lists/listinfo/jython-users <https://lists.sourceforge.net/lists/listinfo/jython-users> >> >> > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Jython-users mailing list > Jyt...@li... <mailto:Jyt...@li...> > https://lists.sourceforge.net/lists/listinfo/jython-users <https://lists.sourceforge.net/lists/listinfo/jython-users> > > |
|
From: Angel M. g. <scy...@gm...> - 2015-10-21 07:11:57
|
Hi everyone! I can’t help my inner self on this, I would like to be useful on this, it’s been quite a while I have programmed in java and not so quite in python (far from expert in both) and I’m quite married to web technologies right now, but I would be willing to help on this project, I’m watching already the github repos mentioned before. I’ll try to fit somewhere :) Daniel From: Ben Lewis Date: Tuesday, October 20, 2015 at 7:35 PM To: Paul Everitt Cc: "jyt...@li..." Subject: Re: [Jython-users] Anyone interested in helping on a Minecraft plugin project? Hi Paul I can help with the Gradle stuff, I come from more of the Java side of thing and I am familiar with it. Does it just need to build a jar for each API that includes the compiled classes, configs and the dependencies for that API? Ben Lewis On Wed, Oct 21, 2015 at 1:18 PM, Paul Everitt <pau...@me...> wrote: Ok, since there is some interest, a little more detail: - We have a project name of “Jycraft” - There is a GitHub organization called Jycraft with some repos for different projects: https://github.com/jycraft - There’s a GitHub Pages landing page with a lot of “proactively truthful” storytelling/dreaming: http://jycraft.github.io This is the repo that needs attention: https://github.com/Jycraft/jycraft-server-plugin I’d love to get some help with Gradle or some other approach to automated builds. After that, let’s get rid of Canary support and simply provide a download for Sponge. After that, a few changes in how we do WebSocket <-> interpreter. The PyCon call for talks just opened, I believe, and closes in January (I believe.) Wonder if this can make enough progress to submit a paper. I know PyCon 2014 had a Minecraft talk that was very heavily attended. —Paul On Oct 20, 2015, at 8:09 PM, Darjus Loktevic <da...@gm...> wrote: I'd be more than happy to help as well. Python and Minecraft should go hand in hand. Darjus On Wed, Oct 21, 2015 at 8:50 AM Jim Baker <jim...@py...> wrote: I have no problem holding hands here :) Sometimes I'm limited by time, but such annotation support is now a work priority for me. Given that Minecraft Jython support should be a very good demonstration of what Clamp can do, and what we need to work on, I'm especially eager for any and all guinea pigs. Let's do it! - Jim On Tue, Oct 20, 2015 at 4:41 AM, Paul Everitt <pau...@me...> wrote: Sorry about taking it off-list, was trying to be considerate to others here, as I was coming hat-in-hand. You and I have talked before about Clamp as a build solution. I’m all for being a guinea pig on Clamp, annotations, etc. but I worry that my huge deficit on Java/Jython building will result in my outsourcing our building to you. :) But if you’re up for hand-holding, I’ll gladly provide the hands. —Paul On Oct 19, 2015, at 7:31 PM, Jim Baker <jim...@py...> wrote: Paul, I don't think this needs to be in a private email - threads work well enough :), and this list is very low traffic. Anyway, I'm back from vacation, and I should let you and Ben know that I plan to work next on Clamp's support for Java annotations [1]. We need this for a project using Spring annotations; that it supports Minecraft sounds like a very nice bonus to me. I'm sure others will find this very beneficial as well in their Jython usage. - Jim [1]: https://github.com/jythontools/clamp#supporting-java-annotations On Mon, Oct 19, 2015 at 4:24 PM, Paul Everitt <pau...@me...> wrote: To save everybody from a discussion about this on-list, I’ll reply to you in private. —Paul On Oct 19, 2015, at 5:41 PM, Ben Lewis <ben...@gm...> wrote: Hello Paul Recently I have also been investigating ways of creating minecraft plugins in python. I have came up with a prototype of building plugins on top of the Sponge API. I have put the code on github here https://github.com/skinny121/PySponge The major hurdles for creating a binding is that the different plugin apis all like to use annotations and they often use annotations statically to discovers plugins. The solution I came up with was to simply generate the main plugin java class via a setup script and link to the plugin python files from there. Ben Lewis On Tue, Oct 20, 2015 at 12:14 AM, Paul Everitt <pau...@me...> wrote: On Oct 15, 2015, at 11:48 AM, Stefan Eletzhofer <ste...@gm...> wrote: Hi Paul, Am [DATE] schrieb "Paul Everitt" <[ADDRESS]>: As has been discussed here a few times, Minecraft is a great place for getting kids interested in programming. Python, via Jython, is a great match for that, as the #1 teaching language. Yeah, it is! Two children *love* Minecraft. I guess they'd *love* to teach MC some new tricks if it would be approachable. It certainly has the potential to be quite approachable. Seppe’s original blog post has a screencast showing how you can let people type in Python code, from a browser: http://blog.macuyiko.com/post/2015/rebuilding-our-jython-console-plugin-for-minecraft.html We have other material in a different place (GitHub organization with some repos) but I don’t want to promote that name until it’s clear the project will continue. Seppe vanden Broucke got a Jython-based Minecraft plugin that lets you run Python code that talks to the Minecraft server API, including a websocket-based Web UI for typing in code that is sent over and executed. It’s fascinating stuff. I’m pitching in to work on that frontend and some other project stuff. Do you have a link somewhere? But we need some help on the Java/Jython side if it is going to go anywhere. Even 5 hours of help from someone that knows Java, Gradle/Maven, and Jython would go a long way. I don’t know those things, and am unlikely to learn it well enough in the time I have available. Well -- I don't know about java (cough) but we do have experience in Jython -- our company's software bases on a Jython backend to a PLM System (Jython 2.7, Flask based) ... The problem is I have not the faintest idea how MC works. Any concrete issues / suggestions? Minecraft servers support server-side extension via plugin systems. There are 3 main plugin projects at the moment: - Canary (dead) - Spigot (successor to Canary’s API) - Sponge (more ambitious) Seppe’s code has support for Canary and Spigot. For the most part, it works, but there are some things that could be done. What’s more needed, though, is basic Java/Jython stuff. We don’t have an automated way to build it (e.g Gradle or Maven) which also means we can’t really hook it up to a CI server. (For that matter, we don’t have any tests.) At the point where we want to attract any outsiders, we need to pay attention to some form of distribution. Our build is currently very large and you have to do a few semi-error-prone manual steps to install. Finally, you have to run a web server manually to serve up the static files for the web UI. Would be nice to have the Jython process do that, just to eliminate some steps needed. Beyond that, the sky is the limit. A system where plugin people could create, collaborate, and share little snippets is certainly feasible. And once we get to the point where we can reach out to the Python community, we’ll have plenty of help. But we’re stuck at the moment on Java janitorial work. [wink] —Paul ------------------------------------------------------------------------------ _______________________________________________ Jython-users mailing list Jyt...@li... https://lists.sourceforge.net/lists/listinfo/jython-users ------------------------------------------------------------------------------ _______________________________________________ Jython-users mailing list Jyt...@li... https://lists.sourceforge.net/lists/listinfo/jython-users ------------------------------------------------------------------------------ _______________________________________________ Jython-users mailing list Jyt...@li... https://lists.sourceforge.net/lists/listinfo/jython-users ------------------------------------------------------------------------------ _______________________________________________ Jython-users mailing list Jyt...@li... https://lists.sourceforge.net/lists/listinfo/jython-users ------------------------------------------------------------------------------ _______________________________________________ Jython-users mailing list Jyt...@li... https://lists.sourceforge.net/lists/listinfo/jython-users |
|
From: Ben L. <ben...@gm...> - 2015-10-21 01:35:34
|
Hi Paul I can help with the Gradle stuff, I come from more of the Java side of thing and I am familiar with it. Does it just need to build a jar for each API that includes the compiled classes, configs and the dependencies for that API? Ben Lewis On Wed, Oct 21, 2015 at 1:18 PM, Paul Everitt <pau...@me...> wrote: > > Ok, since there is some interest, a little more detail: > > - We have a project name of “Jycraft” > > - There is a GitHub organization called Jycraft with some repos for > different projects: > > https://github.com/jycraft > > - There’s a GitHub Pages landing page with a lot of “proactively truthful” > storytelling/dreaming: > > http://jycraft.github.io > > This is the repo that needs attention: > > https://github.com/Jycraft/jycraft-server-plugin > > I’d love to get some help with Gradle or some other approach to automated > builds. After that, let’s get rid of Canary support and simply provide a > download for Sponge. After that, a few changes in how we do WebSocket <-> > interpreter. > > The PyCon call for talks just opened, I believe, and closes in January (I > believe.) Wonder if this can make enough progress to submit a paper. I know > PyCon 2014 had a Minecraft talk that was very heavily attended. > > —Paul > > On Oct 20, 2015, at 8:09 PM, Darjus Loktevic <da...@gm...> wrote: > > I'd be more than happy to help as well. Python and Minecraft should go > hand in hand. > > Darjus > > On Wed, Oct 21, 2015 at 8:50 AM Jim Baker <jim...@py...> wrote: > >> I have no problem holding hands here :) Sometimes I'm limited by time, >> but such annotation support is now a work priority for me. >> >> Given that Minecraft Jython support should be a very good demonstration >> of what Clamp can do, and what we need to work on, I'm especially eager for >> any and all guinea pigs. Let's do it! >> >> - Jim >> >> On Tue, Oct 20, 2015 at 4:41 AM, Paul Everitt <pau...@me...> wrote: >> >>> Sorry about taking it off-list, was trying to be considerate to others >>> here, as I was coming hat-in-hand. >>> >>> You and I have talked before about Clamp as a build solution. I’m all >>> for being a guinea pig on Clamp, annotations, etc. but I worry that my huge >>> deficit on Java/Jython building will result in my outsourcing our building >>> to you. :) >>> >>> But if you’re up for hand-holding, I’ll gladly provide the hands. >>> >>> —Paul >>> >>> On Oct 19, 2015, at 7:31 PM, Jim Baker <jim...@py...> wrote: >>> >>> Paul, >>> >>> I don't think this needs to be in a private email - threads work well >>> enough :), and this list is very low traffic. >>> >>> Anyway, I'm back from vacation, and I should let you and Ben know that I >>> plan to work next on Clamp's support for Java annotations [1]. We need this >>> for a project using Spring annotations; that it supports Minecraft sounds >>> like a very nice bonus to me. I'm sure others will find this very >>> beneficial as well in their Jython usage. >>> >>> - Jim >>> >>> [1]: https://github.com/jythontools/clamp#supporting-java-annotations >>> >>> On Mon, Oct 19, 2015 at 4:24 PM, Paul Everitt <pau...@me...> >>> wrote: >>> >>>> >>>> To save everybody from a discussion about this on-list, I’ll reply to >>>> you in private. >>>> >>>> —Paul >>>> >>>> On Oct 19, 2015, at 5:41 PM, Ben Lewis <ben...@gm...> wrote: >>>> >>>> Hello Paul >>>> >>>> Recently I have also been investigating ways of creating minecraft >>>> plugins in python. I have came up with a prototype of building plugins on >>>> top of the Sponge API. >>>> >>>> I have put the code on github here >>>> https://github.com/skinny121/PySponge >>>> >>>> The major hurdles for creating a binding is that the different plugin >>>> apis all like to use annotations and they often use annotations statically >>>> to discovers plugins. >>>> >>>> The solution I came up with was to simply generate the main plugin java >>>> class via a setup script and link to the plugin python files from there. >>>> >>>> Ben Lewis >>>> >>>> On Tue, Oct 20, 2015 at 12:14 AM, Paul Everitt <pau...@me...> >>>> wrote: >>>> >>>>> >>>>> On Oct 15, 2015, at 11:48 AM, Stefan Eletzhofer < >>>>> ste...@gm...> wrote: >>>>> >>>>> Hi Paul, >>>>> >>>>> Am [DATE] schrieb "Paul Everitt" <[ADDRESS]>: >>>>> >>>>> >>>>> >>>>> As has been discussed here a few times, Minecraft is a great place for >>>>> getting kids interested in programming. Python, via Jython, is a great >>>>> match for that, as the #1 teaching language. >>>>> >>>>> >>>>> Yeah, it is! Two children *love* Minecraft. I guess they'd *love* to >>>>> teach MC some new tricks if >>>>> it would be approachable. >>>>> >>>>> >>>>> It certainly has the potential to be quite approachable. Seppe’s >>>>> original blog post has a screencast showing how you can let people type in >>>>> Python code, from a browser: >>>>> >>>>> >>>>> http://blog.macuyiko.com/post/2015/rebuilding-our-jython-console-plugin-for-minecraft.html >>>>> >>>>> We have other material in a different place (GitHub organization with >>>>> some repos) but I don’t want to promote that name until it’s clear the >>>>> project will continue. >>>>> >>>>> >>>>> Seppe vanden Broucke got a Jython-based Minecraft plugin that lets you >>>>> run Python code that talks to the Minecraft server API, including a >>>>> websocket-based Web UI for typing in code that is sent over and executed. >>>>> It’s fascinating stuff. I’m pitching in to work on that frontend and some >>>>> other project stuff. >>>>> >>>>> >>>>> Do you have a link somewhere? >>>>> >>>>> >>>>> But we need some help on the Java/Jython side if it is going to go >>>>> anywhere. Even 5 hours of help from someone that knows Java, Gradle/Maven, >>>>> and Jython would go a long way. I don’t know those things, and am unlikely >>>>> to learn it well enough in the time I have available. >>>>> >>>>> >>>>> Well -- I don't know about java (cough) but we do have experience in >>>>> Jython -- our company's software >>>>> bases on a Jython backend to a PLM System (Jython 2.7, Flask based) ... >>>>> >>>>> The problem is I have not the faintest idea how MC works. Any >>>>> concrete issues / suggestions? >>>>> >>>>> >>>>> Minecraft servers support server-side extension via plugin systems. >>>>> There are 3 main plugin projects at the moment: >>>>> >>>>> - Canary (dead) >>>>> - Spigot (successor to Canary’s API) >>>>> - Sponge (more ambitious) >>>>> >>>>> Seppe’s code has support for Canary and Spigot. For the most part, it >>>>> works, but there are some things that could be done. >>>>> >>>>> What’s more needed, though, is basic Java/Jython stuff. We don’t have >>>>> an automated way to build it (e.g Gradle or Maven) which also means we >>>>> can’t really hook it up to a CI server. (For that matter, we don’t have any >>>>> tests.) >>>>> >>>>> At the point where we want to attract any outsiders, we need to pay >>>>> attention to some form of distribution. Our build is currently very large >>>>> and you have to do a few semi-error-prone manual steps to install. >>>>> >>>>> Finally, you have to run a web server manually to serve up the static >>>>> files for the web UI. Would be nice to have the Jython process do that, >>>>> just to eliminate some steps needed. >>>>> >>>>> Beyond that, the sky is the limit. A system where plugin people could >>>>> create, collaborate, and share little snippets is certainly feasible. And >>>>> once we get to the point where we can reach out to the Python community, >>>>> we’ll have plenty of help. But we’re stuck at the moment on Java janitorial >>>>> work. [wink] >>>>> >>>>> —Paul >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> >>>>> _______________________________________________ >>>>> Jython-users mailing list >>>>> Jyt...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/jython-users >>>>> >>>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> >>>> _______________________________________________ >>>> Jython-users mailing list >>>> Jyt...@li... >>>> https://lists.sourceforge.net/lists/listinfo/jython-users >>>> >>>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Jython-users mailing list >>> Jyt...@li... >>> https://lists.sourceforge.net/lists/listinfo/jython-users >>> >>> >> > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > > |