Giter VIP home page Giter VIP logo

Comments (7)

sowerkoku avatar sowerkoku commented on July 2, 2024

self.toLower(messageProtocolEntity.forward(messageProtocolEntity.getFrom()))
Put that after:
self.toLower(messageProtocolEntity.ack(True))

read here tgalal#1648

from yowsup.

msadig avatar msadig commented on July 2, 2024

@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.

sowerkoku avatar sowerkoku commented on July 2, 2024

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.

msadig avatar msadig commented on July 2, 2024

@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.

msadig avatar msadig commented on July 2, 2024

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.

jlguardi avatar jlguardi commented on July 2, 2024

I've developed and tested just with python 2.7

from yowsup.

msadig avatar msadig commented on July 2, 2024

@jlguardi thanks a lot.

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.