Comments (21)
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.
Git clone https://github.com/tgalal/python-axolotl.git
Git checkout develop
from yowsup.
Yes, it happens to me too. Maybe a file is missing from Git?
from yowsup.
@donkeyhot a temporal workaround is to revert to an older commit:
git checkout 56b76f994f6e049f3d6452eed9c77281941e3cb7
python setup.py install
from yowsup.
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.
No, you need python-axolotl 1.7. you can get it:
. python setup.py
. download directly from tgalal/python-axolotl branch
from yowsup.
@naamakat yes it is
from yowsup.
Which python versions I can use with this branch?
from yowsup.
Trying to make a patch for python3.x:
- cloned https://github.com/jlguardi/yowsup.git
- 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)
- python3 setup.py install
- run my bot
get No valid sessionsBad Mac! error :(
from yowsup.
I need a python developer (I'm c developer) to fix installation and version compatibility issues.
from yowsup.
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.
@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.
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.
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.
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.
did you update to the latest python-axolotl version?
from yowsup.
@jodersus Yes I've pulled the master branch of https://github.com/tgalal/python-axolotl
from yowsup.
@naamakat use develop branch instead
from yowsup.
@jlguardi The 2 branches looks the same, how can I pull the dev branch?
from yowsup.
which version of protobuf did you use? I get many errors concerning this package ..
from yowsup.
Develop
from yowsup.
Related Issues (20)
- virtual phone doesn't receiving SMS code
- Not work decrypt image any more HOT 7
- general: Disconnected: Connection Closed
- ImportError: cannot import name ProtocolTreeNode
- old version
- def decrypt(self, encimg, refkey): HOT 2
- [connected]:ERROR:yowsup.demos.cli.layer:Request upload for file /home/pi/Image.jpg for [email protected] failed
- How i can download media received from yowsup ?
- hi cannot login
- Couldn't receive a media, please help HOT 7
- Error when receiving a large txt message HOT 1
- Audio from groups OK, but not other media types. HOT 5
- enc images in echoclient HOT 2
- old_version
- common/tools.py: inconsistent use of tabs and spaces in indentation HOT 1
- Connection Closed. for android env. media cannot decrypt for s40 HOT 1
- demos not working HOT 8
- new confidentiality policy
- All the numbers used are being blocked HOT 1
- BAD_TOKEN with ENV_S40 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yowsup.