NAVADMC / ADSM

A simulation of disease spread in livestock populations. Includes detection and containment simulation.
Other
10 stars 5 forks source link

Import legacy file failure (Not related to previous failure) #485

Closed casesp closed 9 years ago

casesp commented 9 years ago

This issue is for: ADSM_3.2.22-RC5.2 build 7e47384

An attempt to import a legacy scenario file, (exported from NAADSM 3.2.19 to XML), fails with the following error messages: (This issue is not related to the filename problem in the last issue. The filenames were changed for this test)

import of legacy scenario failure number 2

Capture of debug messages

ValueError at /app/ImportScenario/ The view ADSMSettings.views.import_naadsm_scenario didn't return an HttpResponse object. It returned None instead. Request Method: POST Request URL: http://127.0.0.1:8000/app/ImportScenario/ Django Version: 1.7.1 Exception Type: ValueError Exception Value:
The view ADSMSettings.views.import_naadsm_scenario didn't return an HttpResponse object. It returned None instead. Exception Location: C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\Lib\site-packages\django\core\handlers\base.py in get_response, line 130 Python Executable: C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\adsm.exe Python Version: 3.4.2 Python Path:
['C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\adsm.exe', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\adsm.zip', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\library.zip', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\src', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\DLLs', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\Lib', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\Lib\plat-win', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\Lib\lib-tk', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\Lib\site-packages', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\bin', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\Scripts', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\Lib\site-packages\cx_Freeze-4.3.4-py3.4-win-amd64.egg', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\Lib\site-packages\numpy-1.9.1-py3.4-win-amd64.egg', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\Lib\site-packages\pip-1.5.6-py3.4.egg', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\Lib\site-packages\pywin32-219-py3.4-win-amd64.egg', 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\src'] Server time: Wed, 8 Apr 2015 14:34:51 +0000 Traceback Switch to copy-and-paste view

C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\Lib\site-packages\django\core\handlers\base.py in get_response % (callback.module, view_name)) ... ▶ Local vars Request information

GET No GET data POST No POST data FILES Variable Value parameters_xml
<TemporaryUploadedFile: Scenario Parameters.xml (text/xml)> population_xml
<TemporaryUploadedFile: Scenario Units.xml (text/xml)> COOKIES No cookie data META Variable Value HTTP_REFERER
'http://127.0.0.1:8000/app/ImportScenario/' wsgi.errors

<_io.TextIOWrapper name='' mode='w' encoding='cp437'> PATH_INFO '/app/ImportScenario/' HTTP_X_FORWARDED_FOR '127.0.0.1' HTTP_HOST '127.0.0.1:8000' wsgi.version (1, 0) SERVER_PORT '8001' REMOTE_ADDR '127.0.0.1' HTTP_ACCEPT_LANGUAGE 'en-us,en;q=0.8' HTTP_CONNECTION 'close' HTTP_X_REAL_IP '127.0.0.1' SERVER_PROTOCOL 'HTTP/1.0' HTTP_ACCEPT_ENCODING 'gzip,deflate' SERVER_SOFTWARE 'CherryPy/3.6.0 Server' SERVER_NAME '127.0.0.1' CONTENT_TYPE 'multipart/form-data; boundary=----WebKitFormBoundaryDiDjLhb1PJUxoSAW' HTTP_ACCEPT 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,_/_;q=0.8' wsgi.multiprocess False REQUEST_METHOD 'POST' CONTENT_LENGTH '6731875' REMOTE_PORT '49443' HTTP_ORIGIN 'http://127.0.0.1:8000' REQUEST_URI '/app/ImportScenario/' wsgi.url_scheme 'http' HTTP_CACHE_CONTROL 'max-age=0' wsgi.run_once False wsgi.input HTTP_USER_AGENT 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like ' 'Gecko) Chrome/37.0.2062.94 Safari/537.36' ACTUAL_SERVER_PROTOCOL 'HTTP/1.1' QUERY_STRING '' wsgi.multithread True SCRIPT_NAME '' Settings Using settings module ADSM.settings Setting Value EMAIL_PORT 25 TEMPLATE_DEBUG True DEFAULT_CHARSET 'utf-8' ALLOWED_HOSTS [] LANGUAGE_CODE 'en-us' TRANSACTIONS_MANAGED False CSRF_FAILURE_VIEW 'django.views.csrf.csrf_failure' MANAGERS () CACHE_MIDDLEWARE_SECONDS 600 MIDDLEWARE_CLASSES ('django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'ADSMSettings.disable.DisableCSRF') MEDIA_ROOT 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\src\media' USE_ETAGS False LANGUAGES (('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('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 Bokmal'), ('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-cn', 'Simplified Chinese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese'), ('zh-tw', 'Traditional Chinese')) EMAIL_USE_SSL False EMAIL_USE_TLS False CSIDL_PERSONAL 5 CACHES {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} SESSION_COOKIE_NAME 'sessionid' USE_THOUSAND_SEPARATOR False USE_X_FORWARDED_HOST False SEND_BROKEN_LINK_EMAILS False DATABASE_ROUTERS ['ScenarioCreator.router.ScenarioRouter'] USE_TZ True ABSOLUTE_URL_OVERRIDES {} USE_L10N True SESSION_ENGINE 'django.contrib.sessions.backends.db' APPEND_SLASH True ADMINS () SECURE_PROXY_SSL_HEADER None SILENCED_SYSTEM_CHECKS [] DEBUG_PROPAGATE_EXCEPTIONS False SHORT_DATETIME_FORMAT 'm/d/Y P' STATICFILES_DIRS ('C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\src\ADSM\static',) ALLOWED_INCLUDE_ROOTS () LOGIN_REDIRECT_URL '/accounts/profile/' EMAIL_HOST_PASSWORD '*******************_' CACHE_MIDDLEWARE_ALIAS 'default' COMMENTS_ALLOW_PROFANITIES False INTERNAL_IPS () DISALLOWED_USER_AGENTS () LOGOUT_URL '/accounts/logout/' CSRF_COOKIE_DOMAIN None WSGI_APPLICATION 'ADSM.wsgi.application' CSRF_COOKIE_SECURE False LOCALE_PATHS () SECRET_KEY '**_****************_' DATE_INPUT_FORMATS ('%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y') FIXTURE_DIRS () STATICFILES_STORAGE 'django.contrib.staticfiles.storage.StaticFilesStorage' FILE_UPLOAD_TEMP_DIR None LANGUAGE_COOKIE_DOMAIN None DEFAULT_CONTENT_TYPE 'text/html' TEMPLATE_STRING_IF_INVALID '' LOGGING_CONFIG 'logging.config.dictConfig' IGNORABLE_404_URLS () PREPEND_WWW False ADMIN_FOR () DEFAULT_INDEX_TABLESPACE '' CSRF_COOKIE_PATH '/' CSRF_COOKIE_AGE 31449600 YEAR_MONTH_FORMAT 'F Y' SESSION_EXPIRE_AT_BROWSER_CLOSE False TIME_FORMAT 'P' THOUSAND_SEPARATOR ',' CSRF_COOKIE_NAME 'csrftoken' FILE_UPLOAD_MAX_MEMORY_SIZE 2621440 CSRF_COOKIE_HTTPONLY False DATE_FORMAT 'N j, Y' LANGUAGES_BIDI ('he', 'ar', 'fa', 'ur') NUMBER_GROUPING 0 TIME_ZONE 'UTC' STATIC_URL '/static/' SESSION_SERIALIZER 'django.contrib.sessions.serializers.JSONSerializer' MESSAGE_STORAGE 'django.contrib.messages.storage.fallback.FallbackStorage' TIME_INPUT_FORMATS ('%H:%M:%S', '%H:%M:%S.%f', '%H:%M') MIGRATION_MODULES {} LOGIN_URL '/accounts/login/' X_FRAME_OPTIONS 'SAMEORIGIN' PASSWORD_RESET_TIMEOUT_DAYS '**_****************_' DATETIME_FORMAT 'N j, Y, P' SESSION_COOKIE_DOMAIN None FILE_UPLOAD_DIRECTORY_PERMISSIONS None INSTALLED_APPS ('ScenarioCreator', 'Results', 'ADSMSettings', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.humanize', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'floppyforms', 'crispy_forms', 'productionserver') SHGFP_TYPE_CURRENT 0 ROOT_URLCONF 'ADSM.urls' CACHE_MIDDLEWARE_KEY_PREFIX '**_****************_' PASSWORD_HASHERS '**_****************_' SESSION_FILE_PATH None LANGUAGE_COOKIE_PATH '/' AUTH_USER_MODEL 'auth.User' DEBUG True TEMPLATE_CONTEXT_PROCESSORS ('django.contrib.auth.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media', 'django.core.context_processors.static', 'django.core.context_processors.tz', 'django.contrib.messages.context_processors.messages', 'django.core.context_processors.request', 'ADSMSettings.context_processor.adsm_context', 'ScenarioCreator.context_processor.basic_context', 'Results.context_processor.results_context') DATETIME_INPUT_FORMATS ('%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y') TEST_RUNNER 'django.test.runner.DiscoverRunner' MEDIA_URL '/media/' FORCE_SCRIPT_NAME None DB_BASE_DIR 'C:\Users\scase\Documents\ADSM Workspace\settings' FIRST_DAY_OF_WEEK 0 EMAIL_HOST 'localhost' CRISPY_TEMPLATE_PACK 'bootstrap' SIGNING_BACKEND 'django.core.signing.TimestampSigner' SESSION_CACHE_ALIAS 'default' TEST_NON_SERIALIZED_APPS [] SESSION_COOKIE_PATH '/' STATIC_ROOT 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\src\static' LANGUAGE_COOKIE_AGE None SESSION_COOKIE_HTTPONLY True LOGGING {} BASE_DIR 'C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\src' DEFAULT_EXCEPTION_REPORTER_FILTER 'django.views.debug.SafeExceptionReporterFilter' DEFAULT_TABLESPACE '' SERVER_EMAIL 'root@localhost' PROFANITIES_LIST '**_****************_' TEMPLATE_DIRS ('C:\Users\scase\Desktop\ADSM_3.2.22-RC5.2\src\templates',) SESSION_COOKIE_AGE 1209600 FILE_UPLOAD_PERMISSIONS None TEMPLATE_LOADERS ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader') SETTINGS_MODULE 'ADSM.settings' SHORT_DATE_FORMAT 'm/d/Y' DEFAULT_FILE_STORAGE 'django.core.files.storage.FileSystemStorage' SESSION_SAVE_EVERY_REQUEST False DEFAULT_FROM_EMAIL 'webmaster@localhost' MONTH_DAY_FORMAT 'F j' FILE_CHARSET 'utf-8' USE_I18N True DATABASES {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.sqlite3', 'HOST': '', 'NAME': 'C:\Users\scase\Documents\ADSM ' 'Workspace\settings\settings.sqlite3', 'OPTIONS': {}, 'PASSWORD': '**_****************_', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': 'C:\Users\scase\Documents\ADSM ' 'Workspace\settings\test_settings.sqlite3'}, 'TIME_ZONE': 'UTC', 'USER': ''}, 'scenario_db': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.sqlite3', 'HOST': '', 'NAME': 'C:\Users\scase\Documents\ADSM ' 'Workspace\settings\activeSession.sqlite3', 'OPTIONS': {'timeout': 300}, 'PASSWORD': '**_*****************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': 'C:\Users\scase\Documents\ADSM ' 'Workspace\settings\test_activeSession.sqlite3'}, 'TIME_ZONE': 'UTC', 'USER': ''}} STATICFILES_FINDERS ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder') FILE_UPLOAD_HANDLERS ('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler') DECIMAL_SEPARATOR '.' SESSION_COOKIE_SECURE False LANGUAGE_COOKIE_NAME 'django_language' EMAIL_HOST_USER '' EMAIL_BACKEND 'django.core.mail.backends.smtp.EmailBackend' EMAIL_SUBJECT_PREFIX '[Django] ' AUTHENTICATION_BACKENDS ('django.contrib.auth.backends.ModelBackend',) FORMAT_MODULE_PATH None ## 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 500 page.
missyschoenbaum commented 9 years ago

I was bad and didn't search for this - so I ticketed it also in #495. Mine has steps to recreate, so I am closing this one.