Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name ProtocolTreeNode #2120

Closed
rodrigoorrego opened this issue Jun 19, 2017 · 2 comments
Closed

ImportError: cannot import name ProtocolTreeNode #2120

rodrigoorrego opened this issue Jun 19, 2017 · 2 comments

Comments

@rodrigoorrego
Copy link

tried to merge jguardi's branch with tgalal's and now I'm having this issue:

Traceback (most recent call last):
File "run.py", line 5, in
from layer import EchoLayer
File "/root/data/Yowsup_Atlas/layer.py", line 16, in
from yowsup.layers.protocol_media.picture import YowMediaPictureLayer #descarga imagen
File "/usr/local/lib/python2.7/dist-packages/yowsup/layers/protocol_media/picture.py", line 2, in
from yowsup import ProtocolTreeNode
ImportError: cannot import name ProtocolTreeNode

someone can help me please? thanks for the attention!

@cinatic
Copy link

cinatic commented Jun 19, 2017

looks very fked up, because it failed to import it because picture is imported in ProtocolTreeNode or in some dependencies above. To solve this you need to check if picture (or it base classes) is used in ProtocolTreeNode or in any other module related to it.

I merged the media encryption things from jguardi if you are interested i can commit the changes in my fork.

@noahfx
Copy link

noahfx commented Jan 6, 2018

I've found this test running yowsup with python3.6 and couldn't reproduce it with python2.7
I have submitted a PR fixing this.

@tgalal tgalal closed this as completed May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants