Comments (7)
self.toLower(messageProtocolEntity.forward(messageProtocolEntity.getFrom()))
Put that after:
self.toLower(messageProtocolEntity.ack(True))
read here tgalal#1648
from yowsup.
@sowerkoku thanks for the feedback, appreciate it.
But that doesn't solve my problem. I'm still not able to receive photo or video. My current code here after the changes you pointed out:
https://github.com/msadig/yowsup-demo/blob/5d78d7d1427f47e6559c7a5570eae2ac13fd1f34/layer.py
this's what terminal shows:
`'utf-8' codec can't decode byte 0xe3 in position 1: invalid continuation byte
Traceback (most recent call last):
File "run.py", line 33, in
stackBuilder.start()
File "run.py", line 25, in start
self.stack.loop()
File "/webapps/yowsup.demo/lib/python3.4/site-packages/yowsup2-2.4.48-py3.4.egg/yowsup/stacks/yowstack.py", line 195, in loop
File "/usr/lib/python3.4/asyncore.py", line 208, in loop
poll_fun(timeout, map)
File "/usr/lib/python3.4/asyncore.py", line 153, in poll
read(obj)
File "/usr/lib/python3.4/asyncore.py", line 87, in read
obj.handle_error()
File "/usr/lib/python3.4/asyncore.py", line 83, in read
obj.handle_read_event()
File "/usr/lib/python3.4/asyncore.py", line 442, in handle_read_event
self.handle_read()
File "/webapps/yowsup.demo/lib/python3.4/site-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/network/layer.py", line 102, in handle_read
File "/webapps/yowsup.demo/lib/python3.4/site-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/network/layer.py", line 110, in receive
File "/webapps/yowsup.demo/lib/python3.4/site-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/init.py", line 75, in toUpper
File "/webapps/yowsup.demo/lib/python3.4/site-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/stanzaregulator/layer.py", line 29, in receive
# just print info
File "/webapps/yowsup.demo/lib/python3.4/site-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/stanzaregulator/layer.py", line 49, in processReceived
File "/webapps/yowsup.demo/lib/python3.4/site-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/init.py", line 75, in toUpper
File "/webapps/yowsup.demo/lib/python3.4/site-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/auth/layer_crypt.py", line 65, in receive
File "/webapps/yowsup.demo/lib/python3.4/site-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/init.py", line 75, in toUpper
File "/webapps/yowsup.demo/lib/python3.4/site-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/coder/layer.py", line 35, in receive
messageProtocolEntity.getLatitude(), messageProtocolEntity.getLongitude(),
File "/webapps/yowsup.demo/lib/python3.4/site-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/init.py", line 75, in toUpper
File "/webapps/yowsup.demo/lib/python3.4/site-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/logger/layer.py", line 14, in receive
File "/webapps/yowsup.demo/lib/python3.4/site-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/init.py", line 75, in toUpper
File "/webapps/yowsup.demo/lib/python3.4/site-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/axolotl/layer.py", line 136, in receive
File "/webapps/yowsup.demo/lib/python3.4/site-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/axolotl/layer.py", line 158, in onMessage
File "/webapps/yowsup.demo/lib/python3.4/site-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/axolotl/layer.py", line 232, in handleEncMessage
File "/webapps/yowsup.demo/lib/python3.4/site-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/axolotl/layer.py", line 315, in handleWhisperMessage
TypeError: ord() expected string of length 1, but int found`
from yowsup.
unfortunately not currently use the branch of @jlguardi.
It is failing "location"
tried first:
./yowsup-cli demos -c config.config -e
or if it works in cli:
./yowsup-cli demos -c config.config -y
from yowsup.
@sowerkoku unfortunately I wasn't able to achieve my goal. What I'm trying to achieve is that to be able receive images and videos from people and then concat them together.
With the @tgalal's version I'm able to receive the image but image encrypted and I couldn't decrypt to see what is image looks like. With the @jlguardi fork, couldn't able even to receive the image and still getting this TypeError ord().
I'm using python 3.4, do you thing it's related with python version? I can't understand what I'm doing wrong. According to this tgalal#1400 (comment), people are able to receive the images
from yowsup.
As I suspected Python version had something to do with my problem. Finally, with python 2.7 I was able to receive image using @jlguardi's branch.
from yowsup.
I've developed and tested just with python 2.7
from yowsup.
@jlguardi thanks a lot.
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
- 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.