Traceback (most recent call last):


 "/usr/local/lib/python3.6/dist-packages/yowsup2-2.5.2-py3.6.egg/yowsup/stacks/yowstack.py", line 196, in loop

asyncore.loop(*args, **kwargs)


 "/usr/lib/python3.6/asyncore.py", line 203, in loop

poll_fun(timeout, map)


 "/usr/lib/python3.6/asyncore.py", line 188, in poll2

readwrite(obj, flags)


 "/usr/lib/python3.6/asyncore.py", line 123, in readwrite

obj.handle_error()


 "/usr/lib/python3.6/asyncore.py", line 108, in readwrite

obj.handle_read_event()


 "/usr/lib/python3.6/asyncore.py", line 423, in handle_read_event

self.handle_read()


 "/usr/local/lib/python3.6/dist-packages/yowsup2-2.5.2-py3.6.egg/yowsup/layers/network/layer.py", line 102, in handle_read

self.receive(data)


 "/usr/local/lib/python3.6/dist-packages/yowsup2-2.5.2-py3.6.egg/yowsup/layers/network/layer.py", line 110, in receive

self.toUpper(data)


 "/usr/local/lib/python3.6/dist-packages/yowsup2-2.5.2-py3.6.egg/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/local/lib/python3.6/dist-packages/yowsup2-2.5.2-py3.6.egg/yowsup/layers/stanzaregulator/layer.py", line 29, in receive

self.processReceived()


 "/usr/local/lib/python3.6/dist-packages/yowsup2-2.5.2-py3.6.egg/yowsup/layers/stanzaregulator/layer.py", line 49, in processReceived

self.toUpper(oneMessageData)


 "/usr/local/lib/python3.6/dist-packages/yowsup2-2.5.2-py3.6.egg/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/local/lib/python3.6/dist-packages/yowsup2-2.5.2-py3.6.egg/yowsup/layers/auth/layer_crypt.py", line 65, in receive

self.toUpper(payload)


 "/usr/local/lib/python3.6/dist-packages/yowsup2-2.5.2-py3.6.egg/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/local/lib/python3.6/dist-packages/yowsup2-2.5.2-py3.6.egg/yowsup/layers/coder/layer.py", line 35, in receive

self.toUpper(node)


 "/usr/local/lib/python3.6/dist-packages/yowsup2-2.5.2-py3.6.egg/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/local/lib/python3.6/dist-packages/yowsup2-2.5.2-py3.6.egg/yowsup/layers/logger/layer.py", line 14, in receive

self.toUpper(data)


 "/usr/local/lib/python3.6/dist-packages/yowsup2-2.5.2-py3.6.egg/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/local/lib/python3.6/dist-packages/yowsup2-2.5.2-py3.6.egg/yowsup/layers/axolotl/layer_control.py", line 44, in receive

self.toUpper(protocolTreeNode)


 "/usr/local/lib/python3.6/dist-packages/yowsup2-2.5.2-py3.6.egg/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/local/lib/python3.6/dist-packages/yowsup2-2.5.2-py3.6.egg/yowsup/layers/__init__.py", line 194, in receive

s.receive(data)


 "/usr/local/lib/python3.6/dist-packages/yowsup2-2.5.2-py3.6.egg/yowsup/layers/axolotl/layer_receive.py", line 46, in receive

self.onMessage(protocolTreeNode)


 "/usr/local/lib/python3.6/dist-packages/yowsup2-2.5.2-py3.6.egg/yowsup/layers/axolotl/layer_receive.py", line 80, in onMessage

self.handleEncMessage(protocolTreeNode)


 "/usr/local/lib/python3.6/dist-packages/yowsup2-2.5.2-py3.6.egg/yowsup/layers/axolotl/layer_receive.py", line 93, in handleEncMessage

self.handlePreKeyWhisperMessage(node)


 "/usr/local/lib/python3.6/dist-packages/yowsup2-2.5.2-py3.6.egg/yowsup/layers/axolotl/layer_receive.py", line 137, in handlePreKeyWhisperMessage

self.parseAndHandleMessageProto(pkMessageProtocolEntity, plaintext[:-padding])


 "/usr/local/lib/python3.6/dist-packages/yowsup2-2.5.2-py3.6.egg/yowsup/layers/axolotl/layer_receive.py", line 221, in parseAndHandleMessageProto

self.handleImageMessage(node, m.image_message)


 "/usr/local/lib/python3.6/dist-packages/yowsup2-2.5.2-py3.6.egg/yowsup/layers/axolotl/layer_receive.py", line 282, in handleImageMessage

self.toUpper(messageNode)


 "/usr/local/lib/python3.6/dist-packages/yowsup2-2.5.2-py3.6.egg/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/local/lib/python3.6/dist-packages/yowsup2-2.5.2-py3.6.egg/yowsup/layers/__init__.py", line 194, in receive

s.receive(data)


 "/usr/local/lib/python3.6/dist-packages/yowsup2-2.5.2-py3.6.egg/yowsup/layers/__init__.py", line 130, in receive

recv(node)


 "/usr/local/lib/python3.6/dist-packages/yowsup2-2.5.2-py3.6.egg/yowsup/layers/protocol_media/layer.py", line 44, in recvMessageStanza

self.toUpper(entity)


 "/usr/local/lib/python3.6/dist-packages/yowsup2-2.5.2-py3.6.egg/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/local/lib/python3.6/dist-packages/yowsup2-2.5.2-py3.6.egg/yowsup/layers/interface/interface.py", line 80, in receive

self.entity_callbacks[entityType](entity)


 "/home/saademotion/Projects/whatsapp-poll/app/layer.py", line 72, in on_message

message = Message(message_entity)


 "/home/saademotion/Projects/whatsapp-poll/app/models/message.py", line 18, in __init__

self.build()


 "/home/saademotion/Projects/whatsapp-poll/app/models/message.py", line 24, in build

self.build_media_message()


 "/home/saademotion/Projects/whatsapp-poll/app/models/message.py", line 42, in build_media_message

self.file_path = downloader.get_file(self.message_entity)


 "/home/saademotion/Projects/whatsapp-poll/app/utils/downloader.py", line 13, in get_file

out_file = decrypt_file(message_entity, enc_path)


 "/home/saademotion/Projects/whatsapp-poll/app/utils/downloader.py", line 40, in decrypt_file

out = os.path.splitext(enc_path)[0] + '.jpg'


 "/usr/lib/python3.6/posixpath.py", line 120, in splitext

p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType


Traceback (most recent call last):


 "/opt/homebrew/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py", line 280, in <module>

main()


 "/opt/homebrew/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py", line 263, in main

json_out['return_val'] = hook(**hook_input['kwargs'])


 "/opt/homebrew/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py", line 133, in prepare_metadata_for_build_wheel

return hook(metadata_directory, config_settings)


 "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-build-env-u2e50a1f/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 157, in prepare_metadata_for_build_wheel

self.run_setup()


 "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-build-env-u2e50a1f/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 248, in run_setup

super(_BuildMetaLegacyBackend,


 "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-build-env-u2e50a1f/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 142, in run_setup

exec(compile(code, __file__, 'exec'), locals())


 "setup.py", line 508, in <module>

setup_package()


 "setup.py", line 500, in setup_package

setup(**metadata)


 "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/core.py", line 169, in setup

return old_setup(**new_attr)


 "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-build-env-u2e50a1f/overlay/lib/python3.9/site-packages/setuptools/__init__.py", line 165, in setup

return distutils.core.setup(**attrs)


 "/opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/core.py", line 148, in setup

dist.run_commands()


 "/opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 966, in run_commands

self.run_command(cmd)


 "/opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command

cmd_obj.run()


 "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-build-env-u2e50a1f/overlay/lib/python3.9/site-packages/setuptools/command/dist_info.py", line 31, in run

egg_info.run()


 "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/command/egg_info.py", line 24, in run

self.run_command("build_src")


 "/opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command

self.distribution.run_command(command)


 "/opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command

cmd_obj.run()


 "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/command/build_src.py", line 144, in run

self.build_sources()


 "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/command/build_src.py", line 155, in build_sources

self.build_library_sources(*libname_info)


 "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/command/build_src.py", line 288, in build_library_sources

sources = self.generate_sources(sources, (lib_name, build_info))


 "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/command/build_src.py", line 378, in generate_sources

source = func(extension, build_dir)


 "numpy/core/setup.py", line 658, in get_mathlib_info

st = config_cmd.try_link('int main(void) { return 0;}')


 "/opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/config.py", line 241, in try_link

self._check_compiler()


 "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/command/config.py", line 80, in _check_compiler

self.fcompiler = new_fcompiler(compiler=self.fcompiler,


 "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/__init__.py", line 880, in new_fcompiler

compiler = get_default_fcompiler(plat, requiref90=requiref90,


 "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/__init__.py", line 851, in get_default_fcompiler

compiler_type =
_find_existing_fcompiler(matching_compiler_types,


 "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/__init__.py", line 802, in _find_existing_fcompiler

c.customize(dist)


 "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/__init__.py", line 526, in customize

linker_so_flags = self.flag_vars.linker_so


 "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/environment.py", line 37, in __getattr__

return self._get_var(name, conf_desc)


 "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/environment.py", line 53, in _get_var

var = self._hook_handler(name, hook)


 "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/__init__.py", line 705, in _environment_hook

return hook()


 "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/gnu.py", line 346, in get_flags_linker_so

flags = GnuFCompiler.get_flags_linker_so(self)


 "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/gnu.py", line 136, in get_flags_linker_so

os.environ['MACOSX_DEPLOYMENT_TARGET'] = target


 "/opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/os.py", line 684, in __setitem__

value = self.encodevalue(value)


 "/opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/os.py", line 756, in encode

raise TypeError("str expected, not %s" % type(value).__name__)

TypeError: str expected, not int
