Syncing a contact returns no results, and the person is not visible from the contact side, synchronization fails, if you can't sync the contact, then there is no point in sending this library.
Who can help me solve this problem?
stack.py
`import time
from yowsup.stacks import YowStackBuilder
from layer import SyncLayer
from stack import YowsupSyncStack
from yowsup.layers import YowLayerEvent
from yowsup.layers.network import YowNetworkLayer
from yowsup.profile.profile import YowProfile
import sys
from yowsup.layers import YowParallelLayer
from yowsup.layers.auth import YowAuthenticationProtocolLayer
from yowsup.layers.protocol_messages import YowMessagesProtocolLayer
from yowsup.layers.protocol_receipts import YowReceiptProtocolLayer
from yowsup.layers.protocol_acks import YowAckProtocolLayer
from yowsup.layers.network import YowNetworkLayer
from yowsup.layers.coder import YowCoderLayer
from yowsup.layers.protocol_presence import YowPresenceProtocolLayer
from yowsup.stacks import YowStack
from yowsup.common import YowConstants
from yowsup.layers import YowLayerEvent
from yowsup.stacks import YowStack, YOWSUP_CORE_LAYERS
from yowsup.layers.axolotl import AxolotlControlLayer, AxolotlSendLayer, AxolotlReceivelayer
from yowsup.env import YowsupEnv
from yowsup.layers.auth import YowAuthenticationProtocolLayer
import sys,logging,threading
from yowsup import logger as yowlogger, formatter
logger = logging.getLogger('yowsup-cli')
ch = logging.StreamHandler()
ch.setLevel(logging.DEBUG)
Syncing a contact returns no results, and the person is not visible from the contact side, synchronization fails, if you can't sync the contact, then there is no point in sending this library. Who can help me solve this problem?
stack.py `import time
from yowsup.stacks import YowStackBuilder from layer import SyncLayer from stack import YowsupSyncStack from yowsup.layers import YowLayerEvent from yowsup.layers.network import YowNetworkLayer from yowsup.profile.profile import YowProfile import sys
from yowsup.layers import YowParallelLayer from yowsup.layers.auth import YowAuthenticationProtocolLayer from yowsup.layers.protocol_messages import YowMessagesProtocolLayer from yowsup.layers.protocol_receipts import YowReceiptProtocolLayer from yowsup.layers.protocol_acks import YowAckProtocolLayer from yowsup.layers.network import YowNetworkLayer from yowsup.layers.coder import YowCoderLayer from yowsup.layers.protocol_presence import YowPresenceProtocolLayer from yowsup.stacks import YowStack from yowsup.common import YowConstants from yowsup.layers import YowLayerEvent from yowsup.stacks import YowStack, YOWSUP_CORE_LAYERS from yowsup.layers.axolotl import AxolotlControlLayer, AxolotlSendLayer, AxolotlReceivelayer from yowsup.env import YowsupEnv from yowsup.layers.auth import YowAuthenticationProtocolLayer
import sys,logging,threading
from yowsup import logger as yowlogger, formatter logger = logging.getLogger('yowsup-cli') ch = logging.StreamHandler() ch.setLevel(logging.DEBUG)
add formatter to ch
ch.setFormatter(formatter) #
add ch to logger
logger.addHandler(ch)
def add_contacts(phone): username = '6285867178214' logger.setLevel(logging.DEBUG) yowlogger.setLevel(level=logging.DEBUG)
if name== "main":
`
layer.py `from yowsup.layers.interface import YowInterfaceLayer, ProtocolEntityCallback from yowsup.layers.protocol_contacts.protocolentities import GetSyncIqProtocolEntity, ResultSyncIqProtocolEntity from yowsup.layers.protocol_iq.protocolentities import ErrorIqProtocolEntity import threading import logging logger = logging.getLogger(name)
class SyncLayer(YowInterfaceLayer):