yowsup icon indicating copy to clipboard operation
yowsup copied to clipboard

Yowsup 2 does not work with Python 2.6

Open jakofff opened this issue 11 years ago • 6 comments

In Python 2.6 when you run the login generates the following error:

yowsup-cli demos --yowsup --login phone:b64password

from Crypto.Util import Counter ImportError: cannot import name Counter

Counter works only with Python 2.7

jakofff avatar Jan 15 '15 08:01 jakofff

on it

tgalal avatar Jan 15 '15 08:01 tgalal

working fine with me on python2.6.8

tgalal avatar Jan 15 '15 09:01 tgalal

Hi @tgalal

I'm having the same issue running yowsup-cli. Does Crypto.Util come with a default Python installation or do I need to install something? I have python-crypto installed:

Package python-crypto-2.0.1-22.el6.x86_64 already installed and latest version
Nothing to do
~# python -V
Python 2.6.6

Error output:

Traceback (most recent call last):
  File "/usr/bin/yowsup-cli", line 5, in <module>
    pkg_resources.run_script('yowsup2==2.4', 'yowsup-cli')
  File "/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 489, in run_script
    if insert:
  File "/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 1214, in run_script
    raise NotImplementedError(
  File "/usr/lib/python2.6/site-packages/yowsup2-2.4-py2.6.egg/EGG-INFO/scripts/yowsup-cli", line 323, in <module>

  File "/usr/lib/python2.6/site-packages/yowsup2-2.4-py2.6.egg/EGG-INFO/scripts/yowsup-cli", line 231, in process

  File "/usr/lib/python2.6/site-packages/yowsup2-2.4-py2.6.egg/EGG-INFO/scripts/yowsup-cli", line 279, in startSendClient

  File "build/bdist.linux-x86_64/egg/yowsup/demos/sendclient/stack.py", line 24, in __init__
  File "build/bdist.linux-x86_64/egg/yowsup/layers/axolotl/__init__.py", line 1, in <module>
  File "build/bdist.linux-x86_64/egg/yowsup/layers/axolotl/layer.py", line 15, in <module>
  File "build/bdist.linux-x86_64/egg/axolotl/sessioncipher.py", line 3, in <module>
ImportError: cannot import name Counter

cheers

gentunian avatar Nov 03 '15 18:11 gentunian

hi all

have the same problem, i tried this and it works

download pycrypto 2.6.1

wget https://pypi.python.org/packages/source/p/pycrypto/pycrypto-2.6.1.tar.gz#md5=55a61a054aa66812daf5161a0d5d7eda

tar archive install from folder #python setup.py install

then run yowsup-client demos --yowsup --login phone:pass and works

Yowsup Cli client

Type /help for available commands

[offline]:

hope it helps.

cheers KaZeta

kzeta avatar Nov 03 '15 20:11 kzeta

Hi After installing it i still face the issue

File "./yowsup-cli", line 368, in if not parser.process(): File "./yowsup-cli", line 268, in process self.startCmdline() File "./yowsup-cli", line 290, in startCmdline from yowsup.demos import cli File "/home/rpy/yowsup-master/yowsup/demos/cli/init.py", line 1, in from .stack import YowsupCliStack File "/home/rpy/yowsup-master/yowsup/demos/cli/stack.py", line 5, in from yowsup.layers.axolotl.props import PROP_IDENTITY_AUTOTRUST File "/home/rpy/yowsup-master/yowsup/layers/axolotl/init.py", line 1, in from .layer_send import AxolotlSendLayer File "/home/rpy/yowsup-master/yowsup/layers/axolotl/layer_send.py", line 6, in from axolotl.sessioncipher import SessionCipher File "/usr/local/lib/python2.6/dist-packages/python_axolotl-0.1.35-py2.6.egg/axolotl/sessioncipher.py", line 6, in from Crypto.Util import Counter ImportError: cannot import name Counter

please help me.

sree0410 avatar Jun 04 '16 09:06 sree0410

after upgrading to python 2.7 we have to install all the supporting packages right like setuptools ncurse-dev and then we have to clone the yowsup files as well .

do we have to register again to whatsapp ? registerd login credentials will suffice ?

and this particular watsapp registered number is only for this particulat system right ?this credentials can be used in different linux machine ?

how do we cross verify the login and password which is obtained is active or not ? Thanks, sreelekha.N

sree0410 avatar Jun 04 '16 16:06 sree0410