Giter VIP home page Giter VIP logo

Comments (21)

jlguardi avatar jlguardi commented on August 23, 2024 1

I've use python 2.7 but you can check and patch for python 3.x easyly. Please, upload this patch ;)

De: naamakat
Enviado: lunes, 28 de marzo de 2016 10:20
Para: jlguardi/yowsup
Responder a: jlguardi/yowsup
CC: jlguardi
Asunto: Re: [yowsup] No module named axolotladdress (#6)

Which python versions I can use with this branch?


You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#6 (comment)

from yowsup.

jlguardi avatar jlguardi commented on August 23, 2024 1

Git clone https://github.com/tgalal/python-axolotl.git
Git checkout develop

from yowsup.

cfenollosa avatar cfenollosa commented on August 23, 2024

Yes, it happens to me too. Maybe a file is missing from Git?

from yowsup.

cfenollosa avatar cfenollosa commented on August 23, 2024

@donkeyhot a temporal workaround is to revert to an older commit:

git checkout 56b76f994f6e049f3d6452eed9c77281941e3cb7
python setup.py install

from yowsup.

naamakat avatar naamakat commented on August 23, 2024

Is it possible this latest version working only on older versions of python? (lower then python3)? I've got the same error and also an error about using urllib2 (the urllib2 problem can be solved quite easily by using urllib.request)

from yowsup.

jlguardi avatar jlguardi commented on August 23, 2024

No, you need python-axolotl 1.7. you can get it:
. python setup.py
. download directly from tgalal/python-axolotl branch

from yowsup.

jlguardi avatar jlguardi commented on August 23, 2024

@naamakat yes it is

from yowsup.

naamakat avatar naamakat commented on August 23, 2024

Which python versions I can use with this branch?

from yowsup.

naamakat avatar naamakat commented on August 23, 2024

Trying to make a patch for python3.x:

  1. cloned https://github.com/jlguardi/yowsup.git
  2. fixed urllib2 problem at yowsup/layers/protocol_media/protocolentities/message_media_downloadable.py:
    • replace: import urllib2 with: from urllib.request import urlopen
    • replace:
      data = urllib2.urlopen(self.url).read()
      with:
      data = urlopen(self.url)
  3. python3 setup.py install
  4. run my bot

get No valid sessionsBad Mac! error :(

from yowsup.

jlguardi avatar jlguardi commented on August 23, 2024

I need a python developer (I'm c developer) to fix installation and version compatibility issues.

from yowsup.

jodersus avatar jodersus commented on August 23, 2024
try: 
    from urllib2 import urlopen
except ImportError:
    from urllib.request import urlopen

This should make @naamakat code compatible with both python 2 and 3

from yowsup.

jlguardi avatar jlguardi commented on August 23, 2024

@jodersus please, make a PR due to I have no PC now but from mobile I can merge.

De: Alex
Enviado: lunes, 28 de marzo de 2016 11:48
Para: jlguardi/yowsup
Responder a: jlguardi/yowsup
CC: jlguardi
Asunto: Re: [yowsup] No module named axolotladdress (#6)

try:
    from urllib2 import urlopen
except ImportError:
    from urllib.request import urlopen

This should make @naamakat code compatible with both python 2 and 3


You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#6 (comment)

from yowsup.

jodersus avatar jodersus commented on August 23, 2024

I only wrote the code here, did not update my code, I use python 2.7
Not excessively familiar with git either...
@naamakat could you please do the honours?

from yowsup.

naamakat avatar naamakat commented on August 23, 2024

With pleasure :) as soon as it will be working ..
I'm now getting this error:

File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/coder/decoder.py", line 267, in nextTreeInternal
nodeData = "".join(map(chr, nodeData))
TypeError: an integer is required (got type str)

from yowsup.

naamakat avatar naamakat commented on August 23, 2024

FIxed it by changing line 266 into -

if type(nodeData) is list:
nodeData = "".join(map(chr, nodeData))

but still getting the No valid sessionsBad Mac! error

from yowsup.

jodersus avatar jodersus commented on August 23, 2024

did you update to the latest python-axolotl version?

from yowsup.

naamakat avatar naamakat commented on August 23, 2024

@jodersus Yes I've pulled the master branch of https://github.com/tgalal/python-axolotl

from yowsup.

jlguardi avatar jlguardi commented on August 23, 2024

@naamakat use develop branch instead

from yowsup.

naamakat avatar naamakat commented on August 23, 2024

@jlguardi The 2 branches looks the same, how can I pull the dev branch?

from yowsup.

naamakat avatar naamakat commented on August 23, 2024

which version of protobuf did you use? I get many errors concerning this package ..

from yowsup.

jlguardi avatar jlguardi commented on August 23, 2024

Develop

from yowsup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.