IEMLdev/ieml

Error on f.o.-f.o.-',n.i.-f.i.-',M:O:.-O:.-',_

ludovic-carre opened this issue · 0 comments

IndexError at /dictionary/f.o.-f.o.-',n.i.-f.i.-',M:O:.-O:.-',_/tables/↵index 2 is out of bounds for axis 0 with size 2↵↵Request Method: GET↵Request URL: http://localhost:8000/dictionary/f.o.-f.o.-',n.i.-f.i.-',M:O:.-O:.-',_/tables/↵Django Version: 1.11.2↵Python Executable: /usr/bin/python↵Python Version: 3.6.2↵Python Path: ['/home/piggygenius/Studies/Ensimag/2A/Internship/django_project', '/usr/lib/python36.zip', '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload', '/usr/lib/python3.6/site-packages', '/usr/lib/python3.6/site-packages/django_intlekt-0.3.1-py3.6.egg']↵Server time: Tue, 29 Aug 2017 20:55:38 +0000↵Installed Applications:↵['django.contrib.admin',↵ 'django.contrib.auth',↵ 'django.contrib.contenttypes',↵ 'django.contrib.sessions',↵ 'django.contrib.messages',↵ 'django.contrib.staticfiles',↵ 'rest_framework',↵ 'rest_framework_mongoengine',↵ 'corsheaders',↵ 'django_intlekt']↵Installed Middleware:↵['django.middleware.security.SecurityMiddleware',↵ 'django.contrib.sessions.middleware.SessionMiddleware',↵ 'django.middleware.common.CommonMiddleware',↵ 'django.middleware.csrf.CsrfViewMiddleware',↵ 'django.contrib.auth.middleware.AuthenticationMiddleware',↵ 'django.contrib.messages.middleware.MessageMiddleware',↵ 'django.middleware.clickjacking.XFrameOptionsMiddleware',↵ 'corsheaders.middleware.CorsMiddleware',↵ 'django.middleware.common.CommonMiddleware']↵↵↵Traceback: ↵↵File "/usr/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner↵ 41. response = get_response(request)↵↵File "/usr/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response↵ 187. response = self.process_exception_by_middleware(e, request)↵↵File "/usr/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response↵ 185. response = wrapped_callback(request, *callback_args, callback_kwargs)↵↵File "/usr/lib/python3.6/site-packages/django/views/decorators/csrf.py" in wrapped_view↵ 58. return view_func(*args, kwargs)↵↵File "/usr/lib/python3.6/site-packages/rest_framework/viewsets.py" in view↵ 86. return self.dispatch(request, args, **kwargs)↵↵File "/usr/lib/python3.6/site-packages/rest_framework/views.py" in dispatch↵ 489. response = self.handle_exception(exc)↵↵File "/usr/lib/python3.6/site-packages/rest_framework/views.py" in handle_exception↵ 449. self.raise_uncaught_exception(exc)↵↵File "/usr/lib/python3.6/site-packages/rest_framework/views.py" in dispatch↵ 486. response = handler(request, args, **kwargs)↵↵File "/usr/lib/python3.6/site-packages/django_intlekt-0.3.1-py3.6.egg/django_intlekt/views/dictionary.py" in wrapper↵ 272. return f(self, request, pk=pk, format=format)↵↵File "/usr/lib/python3.6/site-packages/django_intlekt-0.3.1-py3.6.egg/django_intlekt/views/dictionary.py" in tables↵ 341. return Response(get_tables_for_term(pk))↵↵File "/usr/lib/python3.6/site-packages/django_intlekt-0.3.1-py3.6.egg/django_intlekt/views/dictionary.py" in get_tables_for_term↵ 197. return __build_parallel_table(main, others, _get_rel_table_of(main), selected_cell=selected_cell)↵↵File "/usr/lib/python3.6/site-packages/django_intlekt-0.3.1-py3.6.egg/django_intlekt/views/dictionary.py" in __build_parallel_table↵ 96. ] for i in range(table.shape[0])↵↵File "/usr/lib/python3.6/site-packages/django_intlekt-0.3.1-py3.6.egg/django_intlekt/views/dictionary.py" in ↵ 96. ] for i in range(table.shape[0])↵↵File "/usr/lib/python3.6/site-packages/django_intlekt-0.3.1-py3.6.egg/django_intlekt/views/dictionary.py" in ↵ 95. } for j in range(table.shape[1])↵↵File "/usr/lib/python3.6/site-packages/django_intlekt-0.3.1-py3.6.egg/django_intlekt/views/dictionary.py" in ↵ 94. 'others': [_term_entry(tab[i, j]) for tab in parallel_terms] + others_rel(table[i, j])↵↵File "/usr/lib/python3.6/site-packages/ieml/dictionary/table.py" in __getitem__↵ 74. return self.cells[item]↵↵Exception Type: IndexError at /dictionary/f.o.-f.o.-',n.i.-f.i.-',M:O:.-O:.-',/tables/↵Exception Value: index 2 is out of bounds for axis 0 with size 2↵Request information:↵USER: AnonymousUser↵↵GET: No GET data↵↵POST: No POST data↵↵FILES: No FILES data↵↵COOKIES: No cookie data↵↵META:↵COLORTERM = 'gnome-terminal'↵CONTENT_LENGTH = ''↵CONTENT_TYPE = 'text/plain'↵CUDA_HOME = '/usr/local/cuda'↵DBUS_SESSION_BUS_ADDRESS = 'unix:path=/run/user/1000/bus'↵DESKTOP_SESSION = 'xfce'↵DISPLAY = ':0.0'↵DJANGO_SETTINGS_MODULE = 'django_project.settings'↵GATEWAY_INTERFACE = 'CGI/1.1'↵GLADE_CATALOG_PATH = ':'↵GLADE_MODULE_PATH = ':'↵GLADE_PIXMAP_PATH = ':'↵HISTCONTROL = 'ignoreboth:erasedups'↵HISTFILESIZE = '10000'↵HISTSIZE = '500'↵HOME = '/home/piggygenius'↵HTTP_ACCEPT = '/'↵HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'↵HTTP_ACCEPT_LANGUAGE = 'en-US,en;q=0.8,fr;q=0.6'↵HTTP_CONNECTION = 'keep-alive'↵HTTP_HOST = 'localhost:8000'↵HTTP_ORIG… ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmål'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')]↵LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']↵LANGUAGE_CODE = 'en-us'↵LANGUAGE_COOKIE_AGE = None↵LANGUAGE_COOKIE_DOMAIN = None↵LANGUAGE_COOKIE_NAME = 'django_language'↵LANGUAGE_COOKIE_PATH = '/'↵LOCALE_PATHS = []↵LOGGING = {}↵LOGGING_CONFIG = 'logging.config.dictConfig'↵LOGIN_REDIRECT_URL = '/accounts/profile/'↵LOGIN_URL = '/accounts/login/'↵LOGOUT_REDIRECT_URL = None↵MANAGERS = []↵MEDIA_ROOT = ''↵MEDIA_URL = ''↵MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'↵MIDDLEWARE = ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'corsheaders.middleware.CorsMiddleware', 'django.middleware.common.CommonMiddleware']↵MIDDLEWARE_CLASSES = ['django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware']↵MIGRATION_MODULES = {}↵MONTH_DAY_FORMAT = 'F j'↵NUMBER_GROUPING = 0↵PASSWORD_HASHERS = ''↵PASSWORD_RESET_TIMEOUT_DAYS = ''↵PREPEND_WWW = False↵REST_FRAMEWORK = {'DEFAULT_PAGINATION_CLASS': 'django_intlekt.pagination.PageNumberPagination', 'PAGE_SIZE': 100}↵ROOT_URLCONF = 'django_project.urls'↵SECRET_KEY = '****************'↵SECURE_BROWSER_XSS_FILTER = False↵SECURE_CONTENT_TYPE_NOSNIFF = False↵SECURE_HSTS_INCLUDE_SUBDOMAINS = False↵SECURE_HSTS_PRELOAD = False↵SECURE_HSTS_SECONDS = 0↵SECURE_PROXY_SSL_HEADER = None↵SECURE_REDIRECT_EXEMPT = []↵SECURE_SSL_HOST = None↵SECURE_SSL_REDIRECT = False↵SERVER_EMAIL = 'root@localhost'↵SESSION_CACHE_ALIAS = 'default'↵SESSION_COOKIE_AGE = 1209600↵SESSION_COOKIE_DOMAIN = None↵SESSION_COOKIE_HTTPONLY = True↵SESSION_COOKIE_NAME = 'sessionid'↵SESSION_COOKIE_PATH = '/'↵SESSION_COOKIE_SECURE = False↵SESSION_ENGINE = 'django.contrib.sessions.backends.db'↵SESSION_EXPIRE_AT_BROWSER_CLOSE = False↵SESSION_FILE_PATH = None↵SESSION_SAVE_EVERY_REQUEST = False↵SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'↵SETTINGS_MODULE = 'django_project.settings'↵SHORT_DATETIME_FORMAT = 'm/d/Y P'↵SHORT_DATE_FORMAT = 'm/d/Y'↵SIGNING_BACKEND = 'django.core.signing.TimestampSigner'↵SILENCED_SYSTEM_CHECKS = []↵STATICFILES_DIRS = []↵STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']↵STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'↵STATIC_ROOT = None↵STATIC_URL = '/static/'↵TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], 'APP_DIRS': True, 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages']}}]↵TEST_NON_SERIALIZED_APPS = []↵TEST_RUNNER = 'django.test.runner.DiscoverRunner'↵THOUSAND_SEPARATOR = ','↵TIME_FORMAT = 'P'↵TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']↵TIME_ZONE = 'UTC'↵USE_ETAGS = False↵USE_I18N = True↵USE_L10N = True↵USE_THOUSAND_SEPARATOR = False↵USE_TZ = True↵USE_X_FORWARDED_HOST = False↵USE_X_FORWARDED_PORT = False↵WSGI_APPLICATION = 'django_project.wsgi.application'↵X_FRAME_OPTIONS = 'SAMEORIGIN'↵YEAR_MONTH_FORMAT = 'F Y'↵↵↵You're seeing this error because you have DEBUG = True in your↵Django settings file. Change that to False, and Django will↵display a standard page generated by the handler for this status code.↵↵