Traceback (most recent call last):


 "/usr/local/lib/python3.7/site-packages/sentry_sdk/integrations/flask.py", line 70, in sentry_patched_wsgi_app

environ, start_response


 "/usr/local/lib/python3.7/site-packages/sentry_sdk/integrations/wsgi.py", line 120, in __call__

reraise(*_capture_exception(hub))


 "/usr/local/lib/python3.7/site-packages/sentry_sdk/_compat.py", line 57, in reraise

raise value


 "/usr/local/lib/python3.7/site-packages/sentry_sdk/integrations/wsgi.py", line 116, in __call__

_sentry_start_response, start_response, span


 "/usr/local/lib/python3.7/site-packages/sentry_sdk/integrations/flask.py", line 69, in <lambda>

return SentryWsgiMiddleware(lambda *a, **kw: old_app(self, *a, **kw))(


 "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2463, in __call__

return self.wsgi_app(environ, start_response)


 "/Users/kush/open-event-server/app/__init__.py", line 77, in __call__

return self.app(environ, start_response)


 "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2449, in wsgi_app

response = self.handle_exception(e)


 "/usr/local/lib/python3.7/site-packages/flask_cors/extension.py", line 161, in wrapped_function

return cors_after_request(app.make_response(f(*args, **kwargs)))


 "/usr/local/lib/python3.7/site-packages/flask_cors/extension.py", line 161, in wrapped_function

return cors_after_request(app.make_response(f(*args, **kwargs)))


 "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1866, in handle_exception

reraise(exc_type, exc_value, tb)


 "/usr/local/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise

raise value


 "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2446, in wsgi_app

response = self.full_dispatch_request()


 "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1951, in full_dispatch_request

rv = self.handle_user_exception(e)


 "/usr/local/lib/python3.7/site-packages/flask_cors/extension.py", line 161, in wrapped_function

return cors_after_request(app.make_response(f(*args, **kwargs)))


 "/usr/local/lib/python3.7/site-packages/flask_cors/extension.py", line 161, in wrapped_function

return cors_after_request(app.make_response(f(*args, **kwargs)))


 "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1820, in handle_user_exception

reraise(exc_type, exc_value, tb)


 "/usr/local/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise

raise value


 "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1949, in full_dispatch_request

rv = self.dispatch_request()


 "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1935, in dispatch_request

return self.view_functions[rule.endpoint](**req.view_args)


 "/Users/kush/open-event-server/app/api/helpers/permissions.py", line 45, in decorator

return fn(*args, **kwargs)


 "/Users/kush/open-event-server/app/api/orders.py", line 659, in initiate_transaction

checksum = PaytmPaymentsManager.generate_checksum(paytm_params)


 "/Users/kush/open-event-server/app/api/helpers/payment.py", line 342, in generate_checksum

return checksum.generate_checksum_by_str(json.dumps(paytm_params["body"]), merchant_key)


 "/Users/kush/open-event-server/app/api/helpers/checksum.py", line 55, in generate_checksum_by_str

return __encode__(hash_string, IV, merchant_key)


 "/Users/kush/open-event-server/app/api/helpers/checksum.py", line 105, in __encode__

c = AES.new(key, AES.MODE_CBC, iv)


 "/usr/local/lib/python3.7/site-packages/Crypto/Cipher/AES.py", line 232, in new

return _create_cipher(sys.modules[__name__], key, mode, *args, **kwargs)


 "/usr/local/lib/python3.7/site-packages/Crypto/Cipher/__init__.py", line 79, in _create_cipher

return modes[mode](factory, **kwargs)


 "/usr/local/lib/python3.7/site-packages/Crypto/Cipher/_mode_cbc.py", line 274, in _create_cbc_cipher

cipher_state = factory._create_base_cipher(kwargs)


 "/usr/local/lib/python3.7/site-packages/Crypto/Cipher/AES.py", line 103, in _create_base_cipher

result = start_operation(c_uint8_ptr(key),


 "/usr/local/lib/python3.7/site-packages/Crypto/Util/_raw_api.py", line 144, in c_uint8_ptr

raise TypeError("Object type %s cannot be passed to C code" % type(data))
TypeError: Object type <class 'str'> cannot be passed to C code

Traceback (most recent call last):


 "/home/chris_r_brake/anaconda3/envs/keras_2/lib/python3.6/site-packages/keras/utils/data_utils.py", line 578, in get

inputs = self.queue.get(block=True).get()


 "/home/chris_r_brake/anaconda3/envs/keras_2/lib/python3.6/multiprocessing/pool.py", line 644, in get

raise self._value


 "/home/chris_r_brake/anaconda3/envs/keras_2/lib/python3.6/multiprocessing/pool.py", line 119, in worker

result = (True, func(*args, **kwds))


 "/home/chris_r_brake/anaconda3/envs/keras_2/lib/python3.6/site-packages/keras/utils/data_utils.py", line 401, in get_index

return _SHARED_SEQUENCES[uid][i]


 "/home/chris_r_brake/anaconda3/envs/keras_2/lib/python3.6/site-packages/keras/preprocessing/image.py", line 825, in __getitem__

return self._get_batches_of_transformed_samples(index_array)


 "/home/chris_r_brake/anaconda3/envs/keras_2/lib/python3.6/site-packages/keras/preprocessing/image.py", line 1233, in _get_batches_of_transformed_samples

img = self.image_data_generator.preprocessing_function(img)


 "/home/chris_r_brake/anaconda3/envs/keras_2/lib/python3.6/site-packages/keras/applications/inception_v3.py", line 407, in preprocess_input

return imagenet_utils.preprocess_input(x, mode='tf')


 "/home/chris_r_brake/anaconda3/envs/keras_2/lib/python3.6/site-packages/keras/applications/imagenet_utils.py", line 178, in preprocess_input

mode=mode)


 "/home/chris_r_brake/anaconda3/envs/keras_2/lib/python3.6/site-packages/keras/applications/imagenet_utils.py", line 115, in _preprocess_symbolic_input

x /= 127.5
TypeError: unsupported operand type(s) for /=: 'JpegImage
' and 'float'
