-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: too many values to unpack (expected 3) #2996
Comments
Same here... I 2020-07-06 12:29:46,363 yowsup.layers.network.layer - Connecting to e5.whatsapp.net:443 ValueError: too many values to unpack |
I have the same problem, can someone help please? |
Hello, I'm also facing the same issues after installation. Everything works successfully but upon trying to go online I face that error. I'm using Ubuntu 18.04. My environment is here: yowsup-cli v3.2.0 I'm using Python 3.6.9 |
just solve this problem. Yowsup will work only on this conditions:
i'm used python3 and pip3. if some libraries are newer, you should remove them by "pip3 uninstall" and install proper version. for example: "pip3 install consonance==0.1.3-1 " also you should patch some files, like in this commit https://github.com/tgalal/yowsup/pull/2924/files and use newer MD5 and version. |
Hello, I've tried the steps you've mentioned and I might be missing something. Instead of doing a git pull I simply cloned the repo again to get the latest files. My environment is also pip3 & python3. All the steps worked including the registration however when we try to go online, it crashes with the same mentioned error. My environment is here: yowsup-cli v3.2.0 Note, protobuf I installed via pip3 to 3.6.x however it shows as 3.6.0 E 2020-07-13 08:44:35,656 yowsup.layers.network.dispatcher.dispatcher_asyncore - Traceback (most recent call last): D 2020-07-13 08:44:35,656 yowsup.layers.network.dispatcher.dispatcher_asyncore - handle_close |
Check your files, if there are those changes, which are in this pull request. If you have differencies, you should change you files to work yowsup properly. I fixed files manually, in nano. |
I'm also cloned repo, but changes, which mentioned in pull request, are absent. |
Can you please mention which files were changed manually? I'm honestly a newbie. I've got no idea how to do a pull request to copy over my current cloned folders. |
Is there any place I can get the latest release with all the fixes just via a git clone? I'm more of an Infrastructure guy trying to relay our monitoring system via Whatsapp. This was the only solution I could find that seemed feasible and easy to understand. |
Open the link what was mentioned earlier, and you will see which files are changed. you also will see what changed in this files
No Country for Old Men:) No, there is no place, where everything worked out of box. but you can do this place yourself
Very bad idea. Why? Cause developers of whatsapp are homosexyalists (in a bad meaning of the word). they can ban your phone number easily. just google |
Good Evening and thank you for the advice. I've made some progress, the following environment requirements yowsup-cli v3.2.0 The error regarding ValueError: too many values to unpack has disappeared. Now I'm simply getting a general disconnect error: D 2020-07-13 20:52:56,188 yowsup.layers.network.layer - Created asyncore dispatcher |
Dear, thank you so much for the support. I applied the files and ran the test again, the result is here: D 2020-07-14 09:32:41,103 yowsup.stacks.yowstack - Initializing stack |
Try to register you number again. I don't know whats going wrong |
I'm stupid. I give you wrong files. wait, i give you another patch https://sf.urlk.org/f/1a0ca91bc7ba45339742/?dl=1 this is a patch, which include all new files from commit. Should work. Try. and install this using pip:
|
Dear, tried the link though nothing to download. It spins and then times out. |
check you connection. everything good |
Dear. connection is fine. Downloaded from multiple sources all morning. Might be our company firewall. will disconnect and try from hot spot. |
Strange enough, when I modified the file /env/env_android and edited the listed values below to these:
I got the error again: File "/home/ramyasha/projects/yowsup/yowsup/layers/init.py", line 109, in onEvent D 2020-07-15 11:24:25,304 yowsup.layers.network.dispatcher.dispatcher_asyncore - handle_close |
Here was my problem at the end. Instead of: _MD5_CLASSES = "REEXXXXXXXXXXXXXxXXXX" It had to be: _MD5_CLASSES = "REEXXXXXXXXXXXXXXXXXXX" The version had too many values. Once I made the edit, everything worked like a charm. Thanks so much for all your support. I'm cloning and doing a backup of this VM as a final setup for us. |
Oh, I'm so happy that everything end good |
Yes, I owe you a huge debt of gratitude so thank you again. Now I'm experimenting with html tags and adding colors by using this library here, https://github.com/prashnts/hues . It would be nice to be able to add a "Click Here" and reference a link in the message. As well as add colors to specific types of messages starting with Info, Warning, or Critical. It's our job to protect customers from hackers and cybersecurity issues are big. The more we can keep customers informed and alert the better it is for them and everyone around. |
Many thanks for the solution! |
Hi all, sorry for digging up this old thread but I'm still experiencing "ValueError: too many values to unpack (expected 3)". I did a python setup.py build; python setup.py install instead of using pip. (Python 3.6.8 on Centos 8) Any ideas? Thanks. |
Upon closer look, managed to resolve the issue. Whatsapp is now expecting 3 dots and 4 values, so I've tweaked consonance/config/appversion.py to cater for this change. Now the error is gone. |
when i try to execute this command: "yowsup-cli demos -c /root/.config/yowsup/7950xxxxx24/config.json -s 79xxxxxx389 "test"".
I receive this errors:
yowsup-cli v3.2.0
yowsup v3.2.3
Copyright (c) 2012-2019 Tarek Galal
http://www.openwhatsapp.org
This software is provided free of charge. Copying and redistribution is
encouraged.
If you appreciate this software and you would like to support future
development please consider donating:
http://openwhatsapp.org/yowsup/donate
I 2020-07-03 07:32:17,676 yowsup.layers.network.layer - Connecting to e10.whatsapp.net:443
I 2020-07-03 07:32:17,787 yowsup.axolotl.manager - Loaded 812 unsent prekeys
E 2020-07-03 07:32:17,789 yowsup.layers.network.dispatcher.dispatcher_asyncore - Traceback (most recent call last):
File "/usr/lib/python3.7/asyncore.py", line 91, in write
obj.handle_write_event()
File "/usr/lib/python3.7/asyncore.py", line 440, in handle_write_event
self.handle_connect_event()
File "/usr/lib/python3.7/asyncore.py", line 428, in handle_connect_event
self.handle_connect()
File "/usr/local/lib/python3.7/dist-packages/yowsup-3.2.3-py3.7.egg/yowsup/layers/network/dispatcher/dispatcher_asyncore.py", line 34, in handle_connect
self.connectionCallbacks.onConnected()
File "/usr/local/lib/python3.7/dist-packages/yowsup-3.2.3-py3.7.egg/yowsup/layers/network/layer.py", line 54, in onConnected
self.emitEvent(YowLayerEvent(YowNetworkLayer.EVENT_STATE_CONNECTED))
File "/usr/local/lib/python3.7/dist-packages/yowsup-3.2.3-py3.7.egg/yowsup/layers/init.py", line 94, in emitEvent
self.__upper.emitEvent(yowLayerEvent)
File "/usr/local/lib/python3.7/dist-packages/yowsup-3.2.3-py3.7.egg/yowsup/layers/init.py", line 94, in emitEvent
self.__upper.emitEvent(yowLayerEvent)
File "/usr/local/lib/python3.7/dist-packages/yowsup-3.2.3-py3.7.egg/yowsup/layers/init.py", line 94, in emitEvent
self.__upper.emitEvent(yowLayerEvent)
[Previous line repeated 3 more times]
File "/usr/local/lib/python3.7/dist-packages/yowsup-3.2.3-py3.7.egg/yowsup/layers/init.py", line 88, in emitEvent
if self.__upper and not self.__upper.onEvent(yowLayerEvent):
File "/usr/local/lib/python3.7/dist-packages/yowsup-3.2.3-py3.7.egg/yowsup/layers/init.py", line 212, in onEvent
stopEvent = stopEvent or s.onEvent(yowLayerEvent)
File "/usr/local/lib/python3.7/dist-packages/yowsup-3.2.3-py3.7.egg/yowsup/layers/init.py", line 109, in onEvent
return self.event_callbackseventName
File "/usr/local/lib/python3.7/dist-packages/yowsup-3.2.3-py3.7.egg/yowsup/layers/auth/layer_authentication.py", line 36, in on_connected
passive=self.getProp(self.PROP_PASSIVE, False)
File "/usr/local/lib/python3.7/dist-packages/yowsup-3.2.3-py3.7.egg/yowsup/layers/init.py", line 202, in subBroadcastEvent
self.broadcastEvent(yowLayerEvent)
File "/usr/local/lib/python3.7/dist-packages/yowsup-3.2.3-py3.7.egg/yowsup/layers/init.py", line 103, in broadcastEvent
self.__lower.broadcastEvent(yowLayerEvent)
File "/usr/local/lib/python3.7/dist-packages/yowsup-3.2.3-py3.7.egg/yowsup/layers/init.py", line 103, in broadcastEvent
self.__lower.broadcastEvent(yowLayerEvent)
File "/usr/local/lib/python3.7/dist-packages/yowsup-3.2.3-py3.7.egg/yowsup/layers/init.py", line 103, in broadcastEvent
self.__lower.broadcastEvent(yowLayerEvent)
[Previous line repeated 1 more time]
File "/usr/local/lib/python3.7/dist-packages/yowsup-3.2.3-py3.7.egg/yowsup/layers/init.py", line 98, in broadcastEvent
if self.__lower and not self.__lower.onEvent(yowLayerEvent):
File "/usr/local/lib/python3.7/dist-packages/yowsup-3.2.3-py3.7.egg/yowsup/layers/init.py", line 109, in onEvent
return self.event_callbackseventName
File "/usr/local/lib/python3.7/dist-packages/yowsup-3.2.3-py3.7.egg/yowsup/layers/noise/layer.py", line 109, in on_auth
locale_country="US"
File "/usr/local/lib/python3.7/dist-packages/consonance-0.1.3.post1-py3.7.egg/consonance/config/useragent.py", line 58, in init
app_version = AppVersionConfig(app_version)
File "/usr/local/lib/python3.7/dist-packages/consonance-0.1.3.post1-py3.7.egg/consonance/config/appversion.py", line 15, in init
self._primary, self._secondary, self._tertiary = map(lambda v:int(v), dissected)
ValueError: too many values to unpack (expected 3)
Can you kindly help me to solve this. I really cant find out what i'm doing wrong
The text was updated successfully, but these errors were encountered: