tgalal / yowsup

The WhatsApp lib
GNU General Public License v3.0
7.08k stars 2.23k forks source link

Try send image - 'config_or_profile' - what am I doing wrong? #2968

Open Whomakes opened 4 years ago

Whomakes commented 4 years ago

yowsup-cli v3.2.0 using: yowsup v3.2.3 consonance v0.1.3-1 dissononce v0.34.3 python-axolotl v0.2.3 cryptography v2.8 protobuf v3.11.3

TRY: /video send 79037642305 ./small.mp4 /image send 79037642305 ./123.jpeg /image send 79037642305 ./123.jpg

ERROR: TypeError: init() missing 1 required positional argument: 'config_or_profile'

what am I doing wrong?

Please answer. I studied the entire forum. no answers, only links to unanswered questions.

[connected]:/image send 79037642305 ./123.jpg [connected]:E 2020-04-15 03:17:23,208 yowsup.layers.network.dispatcher.dispatcher_asyncore - Traceback (most recent call last): File "/usr/lib/python3.6/asyncore.py", line 83, in read obj.handle_read_event() File "/usr/lib/python3.6/asyncore.py", line 423, in handle_read_event self.handle_read() File "/home/envy/Dropbox/whatsapp/venv_envy/lib/python3.6/site-packages/yowsup/layers/network/dispatcher/dispatcher_asyncore.py", line 48, in handle_read self.connectionCallbacks.onRecvData(data) File "/home/envy/Dropbox/whatsapp/venv_envy/lib/python3.6/site-packages/yowsup/layers/network/layer.py", line 107, in onRecvData self.receive(data) File "/home/envy/Dropbox/whatsapp/venv_envy/lib/python3.6/site-packages/yowsup/layers/network/layer.py", line 110, in receive self.toUpper(data) File "/home/envy/Dropbox/whatsapp/venv_envy/lib/python3.6/site-packages/yowsup/layers/init.py", line 79, in toUpper self.upper.receive(data) File "/home/envy/Dropbox/whatsapp/venv_envy/lib/python3.6/site-packages/yowsup/layers/noise/layer_noise_segments.py", line 39, in receive self.toUpper(bytes(data)) File "/home/envy/Dropbox/whatsapp/venv_envy/lib/python3.6/site-packages/yowsup/layers/init.py", line 79, in toUpper self.upper.receive(data) File "/home/envy/Dropbox/whatsapp/venv_envy/lib/python3.6/site-packages/yowsup/layers/noise/layer.py", line 181, in receive self._flush_incoming_buffer() File "/home/envy/Dropbox/whatsapp/venv_envy/lib/python3.6/site-packages/yowsup/layers/noise/layer.py", line 169, in _flush_incoming_buffer self.toUpper(self._wa_noiseprotocol.receive()) File "/home/envy/Dropbox/whatsapp/venv_envy/lib/python3.6/site-packages/yowsup/layers/init.py", line 79, in toUpper self.upper.receive(data) File "/home/envy/Dropbox/whatsapp/venv_envy/lib/python3.6/site-packages/yowsup/layers/coder/layer.py", line 21, in receive self.toUpper(node) File "/home/envy/Dropbox/whatsapp/venv_envy/lib/python3.6/site-packages/yowsup/layers/init.py", line 79, in toUpper self.upper.receive(data) File "/home/envy/Dropbox/whatsapp/venv_envy/lib/python3.6/site-packages/yowsup/layers/logger/layer.py", line 14, in receive self.toUpper(data) File "/home/envy/Dropbox/whatsapp/venv_envy/lib/python3.6/site-packages/yowsup/layers/init.py", line 79, in toUpper self.upper.receive(data) File "/home/envy/Dropbox/whatsapp/venv_envy/lib/python3.6/site-packages/yowsup/layers/axolotl/layer_control.py", line 35, in receive self.toUpper(protocolTreeNode) File "/home/envy/Dropbox/whatsapp/venv_envy/lib/python3.6/site-packages/yowsup/layers/init.py", line 79, in toUpper self.__upper.receive(data) File "/home/envy/Dropbox/whatsapp/venv_envy/lib/python3.6/site-packages/yowsup/layers/init.py", line 194, in receive s.receive(data) File "/home/envy/Dropbox/whatsapp/venv_envy/lib/python3.6/site-packages/yowsup/layers/axolotl/layer_receive.py", line 40, in receive self.toUpper(protocolTreeNode) File "/home/envy/Dropbox/whatsapp/venv_envy/lib/python3.6/site-packages/yowsup/layers/init.py", line 79, in toUpper self.__upper.receive(data) File "/home/envy/Dropbox/whatsapp/venv_envy/lib/python3.6/site-packages/yowsup/layers/init.py", line 194, in receive s.receive(data) File "/home/envy/Dropbox/whatsapp/venv_envy/lib/python3.6/site-packages/yowsup/layers/init.py", line 126, in receive if not self.processIqRegistry(node): File "/home/envy/Dropbox/whatsapp/venv_envy/lib/python3.6/site-packages/yowsup/layers/init__.py", line 161, in processIqRegistry successClbk(protocolTreeNode, originalIq) File "/home/envy/Dropbox/whatsapp/venv_envy/lib/python3.6/site-packages/yowsup/layers/protocol_media/layer.py", line 78, in onRequestUploadSuccess self.toUpper(ResultRequestUploadIqProtocolEntity.fromProtocolTreeNode(resultNode)) File "/home/envy/Dropbox/whatsapp/venv_envy/lib/python3.6/site-packages/yowsup/layers/init.py", line 79, in toUpper self.upper.receive(data) File "/home/envy/Dropbox/whatsapp/venv_envy/lib/python3.6/site-packages/yowsup/layers/interface/interface.py", line 77, in receive if not self.processIqRegistry(entity): File "/home/envy/Dropbox/whatsapp/venv_envy/lib/python3.6/site-packages/yowsup/layers/interface/interface.py", line 56, in processIqRegistry successClbk(entity, originalIq) File "/home/envy/Dropbox/whatsapp/venv_envy/lib/python3.6/site-packages/yowsup/demos/cli/layer.py", line 380, in successFn = lambda successEntity, originalEntity: self.onRequestUploadResult(jid, mediaType, path, successEntity, originalEntity, caption) File "/home/envy/Dropbox/whatsapp/venv_envy/lib/python3.6/site-packages/yowsup/demos/cli/layer.py", line 553, in onRequestUploadResult successFn, self.onUploadError, self.onUploadProgress, asynchronous=False) File "/home/envy/Dropbox/whatsapp/venv_envy/lib/python3.6/site-packages/yowsup/layers/protocol_media/mediauploader.py", line 18, in init WARequest.init(self) TypeError: init__() missing 1 required positional argument: 'config_or_profile'

DeLuca92 commented 4 years ago

same here

Whomakes commented 4 years ago

same here

if you find a solution please share with me