Windows 7,64位
Jython 2.5.4rc1
Django 1.4.5
Django_jython-1.3.0
我正在尝试按照教程@ https://docs.djangoproject.com/en/1.4/intro/tutorial01/
django-admin.py startproject mysite
工作正常,我现在有了我的项目结构。但是接下来
jython manage.py runserver
生成了一个巨大的回溯错误。这里只是开头,中间和结尾的摘录 它开始于:
Traceback (most recent call last):
File "manage.py", line 10, in (module)
execute_from_command_line(sys.argv)
File "E:\jython2.5.4rc1\Lib\site-packages\django\core\management\__init__.py", line 443, in execute_from_command_line
utility.execute()
...
继续:
...
File "E:\jython2.5.4rc1\Lib\site-packages\django\utils\importlib.py", line 35, in import_module
__import__(name)
java.lang.ArrayIndexOutOfBoundsException: 2560
at org.python.objectweb.asm.CLassReader.accept(Unknown Source)
at org.python.objectweb.asm.ClassReader.accept(Unknown Source)
...
总结:
...
at org.python.util.jython.run(jython.java:247)
at org.python.util.jython.main(jython.java:129)
java.lang.ArrayIndexOutOfBoundsException: java.lang.ArrayIndexOutOfBoundsException 2560
这绝对不是预期的。我可以想象这是某种配置问题,但我不知道是什么。
非常感谢所有的帮助。
以下是完整错误:
e:\Django\Tutorials>dir
Datenträger in Laufwerk E: ist Executables
Volumeseriennummer: 82AF-DF4C
Verzeichnis von e:\Django\Tutorials
16.03.2013 21:02 <DIR> .
16.03.2013 21:02 <DIR> ..
16.03.2013 21:02 <DIR> mysite
0 Datei(en), 0 Bytes
3 Verzeichnis(se), 36.824.600.576 Bytes frei
e:\Django\Tutorials>cd mysite
e:\Django\Tutorials\mysite>jython manage.py runserver
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "E:\jython2.5.4rc1\Lib\site-packages\django\core\management\__init__.py", line 443, in execute_from_command_line
utility.execute()
File "E:\jython2.5.4rc1\Lib\site-packages\django\core\management\__init__.py", line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "E:\jython2.5.4rc1\Lib\site-packages\django\core\management\__init__.py", line 252, in fetch_command
app_name = get_commands()[subcommand]
File "E:\jython2.5.4rc1\Lib\site-packages\django\core\management\__init__.py", line 252, in fetch_command
app_name = get_commands()[subcommand]
File "E:\jython2.5.4rc1\Lib\site-packages\django\core\management\__init__.py", line 101, in get_commands
apps = settings.INSTALLED_APPS
File "E:\jython2.5.4rc1\Lib\site-packages\django\core\management\__init__.py", line 101, in get_commands
apps = settings.INSTALLED_APPS
File "E:\jython2.5.4rc1\Lib\site-packages\django\utils\functional.py", line 184, in inner self._setup()
File "E:\jython2.5.4rc1\Lib\site-packages\django\conf\__init__.py", line 42, in _setup
self._wrapped = Settings(settings_module)
File "E:\jython2.5.4rc1\Lib\site-packages\django\conf\__init__.py", line 93, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "E:\jython2.5.4rc1\Lib\site-packages\django\conf\__init__.py", line 93, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "E:\jython2.5.4rc1\Lib\site-packages\django\utils\importlib.py", line 35, in import_module
__import__(name)
java.lang.ArrayIndexOutOfBoundsException: 2560
at org.python.objectweb.asm.ClassReader.accept(Unknown Source)
at org.python.objectweb.asm.ClassReader.accept(Unknown Source)
at org.python.core.AnnotationReader.<init>(AnnotationReader.java:44)
at org.python.core.imp.readCode(imp.java:219)
at org.python.core.imp.createFromPyClass(imp.java:185)
at org.python.core.imp.loadFromSource(imp.java:572)
at org.python.core.imp.find_module(imp.java:478)
at org.python.core.imp.import_next(imp.java:718)
at org.python.core.imp.import_module_level(imp.java:827)
at org.python.core.imp.importName(imp.java:917)
at org.python.core.ImportFunction.__call__(__builtin__.java:1220)
at org.python.core.PyObject.__call__(PyObject.java:387)
at org.python.core.PyObject.__call__(PyObject.java:391)
at django.utils.importlib$py.import_module$2(E:\jython2.5.4rc1\Lib\site-packages\django\utils\importlib.py:36)
at django.utils.importlib$py.call_function(E:\jython2.5.4rc1\Lib\site-packages\django\utils\importlib.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyBaseCode.call(PyBaseCode.java:301)
at org.python.core.PyBaseCode.call(PyBaseCode.java:127)
at org.python.core.PyFunction.__call__(PyFunction.java:317)
at django.conf$py.__init__$8(E:\jython2.5.4rc1\Lib\site-packages\django\conf\__init__.py:135)
at django.conf$py.call_function(E:\jython2.5.4rc1\Lib\site-packages\django\conf\__init__.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyBaseCode.call(PyBaseCode.java:301)
at org.python.core.PyBaseCode.call(PyBaseCode.java:194)
at org.python.core.PyFunction.__call__(PyFunction.java:387)
at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:220)
at org.python.core.PyMethod.__call__(PyMethod.java:211)
at org.python.core.PyMethod.__call__(PyMethod.java:206)
at org.python.core.Deriveds.dispatch__init__(Deriveds.java:19)
at org.python.core.PyObjectDerived.dispatch__init__(PyObjectDerived.java:1057)
at org.python.core.PyType.type___call__(PyType.java:1565)
at org.python.core.PyType.__call__(PyType.java:1548)
at org.python.core.PyObject.__call__(PyObject.java:387)
at org.python.core.PyObject.__call__(PyObject.java:391)
at django.conf$py._setup$2(E:\jython2.5.4rc1\Lib\site-packages\django\conf\__init__.py:42)
at django.conf$py.call_function(E:\jython2.5.4rc1\Lib\site-packages\django\conf\__init__.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyBaseCode.call(PyBaseCode.java:134)
at org.python.core.PyFunction.__call__(PyFunction.java:317)
at org.python.core.PyMethod.__call__(PyMethod.java:109)
at django.utils.functional$py.inner$26(E:\jython2.5.4rc1\Lib\site-packages\django\utils\functional.py:185)
at django.utils.functional$py.call_function(E:\jython2.5.4rc1\Lib\site-packages\django\utils\functional.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyBaseCode.call(PyBaseCode.java:301)
at org.python.core.PyBaseCode.call(PyBaseCode.java:141)
at org.python.core.PyFunction.__call__(PyFunction.java:327)
at org.python.core.PyMethod.__call__(PyMethod.java:124)
at org.python.core.PyMethod.__call__(PyMethod.java:115)
at org.python.core.Deriveds.__findattr_ex__(Deriveds.java:73)
at org.python.core.PyObjectDerived.__findattr_ex__(PyObjectDerived.java:983)
at org.python.core.PyObject.__getattr__(PyObject.java:923)
at django.core.management$py.get_commands$4(E:\jython2.5.4rc1\Lib\site-packages\django\core\management\__init__.py:114)
at django.core.management$py.call_function(E:\jython2.5.4rc1\Lib\site-packages\django\core\management\__init__.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyBaseCode.call(PyBaseCode.java:120)
at org.python.core.PyFunction.__call__(PyFunction.java:307)
at django.core.management$py.fetch_command$15(E:\jython2.5.4rc1\Lib\site-packages\django\core\management\__init__.py:262)
at django.core.management$py.call_function(E:\jython2.5.4rc1\Lib\site-packages\django\core\management\__init__.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyBaseCode.call(PyBaseCode.java:149)
at org.python.core.PyFunction.__call__(PyFunction.java:327)
at org.python.core.PyMethod.__call__(PyMethod.java:124)
at django.core.management$py.execute$19(E:\jython2.5.4rc1\Lib\site-packages\django\core\management\__init__.py:382)
at django.core.management$py.call_function(E:\jython2.5.4rc1\Lib\site-packages\django\core\management\__init__.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyBaseCode.call(PyBaseCode.java:134)
at org.python.core.PyFunction.__call__(PyFunction.java:317)
at org.python.core.PyMethod.__call__(PyMethod.java:109)
at django.core.management$py.execute_from_command_line$21(E:\jython2.5.4rc1\Lib\site-packages\django\core\management\__init__.py:443)
at django.core.management$py.call_function(E:\jython2.5.4rc1\Lib\site-packages\django\core\management\__init__.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyBaseCode.call(PyBaseCode.java:134)
at org.python.core.PyFunction.__call__(PyFunction.java:317)
at org.python.pycode._pyx2.f$0(manage.py:10)
at org.python.pycode._pyx2.call_function(manage.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1275)
at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:235)
at org.python.util.jython.run(jython.java:247)
at org.python.util.jython.main(jython.java:129)
java.lang.ArrayIndexOutOfBoundsException: java.lang.ArrayIndexOutOfBoundsException: 2560
我期待任何建议。