Traceback (most recent call last):


 "../source/manage.py", line 22, in <module>

execute_from_command_line(sys.argv)


 "/webapps/preprod/env/lib/python3.5/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line

utility.execute()


 "/webapps/preprod/env/lib/python3.5/site-packages/django/core/management/__init__.py", line 359, in execute

self.fetch_command(subcommand).run_from_argv(self.argv)


 "/webapps/preprod/env/lib/python3.5/site-packages/django/core/management/base.py", line 294, in run_from_argv

self.execute(*args, **cmd_options)


 "/webapps/preprod/env/lib/python3.5/site-packages/django/core/management/base.py", line 345, in execute

output = self.handle(*args, **options)


 "/webapps/preprod/env/lib/python3.5/site-packages/filer/management/commands/generate_thumbnails.py", line 20, in handle

image = Image.objects.get(pk=pk)


 "/webapps/preprod/env/lib/python3.5/site-packages/django/db/models/manager.py", line 85, in manager_method

return getattr(self.get_queryset(), name)(*args, **kwargs)


 "/webapps/preprod/env/lib/python3.5/site-packages/django/db/models/query.py", line 379, in get

num = len(clone)


 "/webapps/preprod/env/lib/python3.5/site-packages/django/db/models/query.py", line 238, in __len__

self._fetch_all()


 "/webapps/preprod/env/lib/python3.5/site-packages/django/db/models/query.py", line 1087, in _fetch_all

self._result_cache = list(self.iterator())


 "/webapps/preprod/env/lib/python3.5/site-packages/polymorphic/query.py", line 445, in iterator

real_results = self._get_real_instances(base_result_objects)


 "/webapps/preprod/env/lib/python3.5/site-packages/polymorphic/query.py", line 328, in _get_real_instances

real_concrete_class = base_object.get_real_instance_class()


 "/webapps/preprod/env/lib/python3.5/site-packages/polymorphic/models.py", line 117, in get_real_instance_class

and not issubclass(model, self.__class__._meta.proxy_for_model):
TypeError: issubclass() arg 2 must be a class or tuple of classes

Traceback (most recent call last):


 "/builddir/build/BUILD/MDAnalysis-0.16.0/MDAnalysisTests-0.16.0/MDAnalysisTests/analysis/test_encore.py", line 751, in test_dimensionality_reduction_two_ensembles

encore.reduce_dimensionality([self.ens1, self.ens2])


 "/builddir/build/BUILDROOT/python-MDAnalysis-0.16.0-1.fc27.i386/usr/lib/python2.7/site-packages/MDAnalysis/analysis/encore/dimensionality_reduction/reduce_dimensionality.py", line 197, in reduce_dimensionality

**kwargs))


 "/builddir/build/BUILDROOT/python-MDAnalysis-0.16.0-1.fc27.i386/usr/lib/python2.7/site-packages/MDAnalysis/analysis/encore/confdistmatrix.py", line 358, in get_distance_matrix

verbose=verbose)


 "/builddir/build/BUILDROOT/python-MDAnalysis-0.16.0-1.fc27.i386/usr/lib/python2.7/site-packages/MDAnalysis/analysis/encore/confdistmatrix.py", line 99, in conformational_distance_matrix

ensemble.select_atoms(selection), format='fac'))


 "/builddir/build/BUILDROOT/python-MDAnalysis-0.16.0-1.fc27.i386/usr/lib/python2.7/site-packages/MDAnalysis/coordinates/memory.py", line 365, in timeseries

return array.take(asel.indices, a_index)
TypeError: Cannot cast array data from dtype('int64') to dtype('int32') according to the rule 'safe'
