Skip to content

Difficulty using the library #3

Open

Description

@Lepiloff

I would like to try your application on a project using django and React. But I cannot understand from the description in readme how to use it correctly. What do I need to do for connect the pusher to an existing project?

  1. What do I need to pass to a function data = chatkit.create_user(...) instead of a three-dot?
  2. When I try to run the script I get an error
Traceback (most recent call last):
  File "quickstart.py", line 7, in <module>
    RequestsBackend
  File "/home/y700/Env/google-test/lib/python3.7/site-packages/pusher_chatkit/pusher_chatkit.py", line 20, in __init__
    self.client = PusherChatKitClient(backend, instance_locator)
  File "/home/y700/Env/google-test/lib/python3.7/site-packages/pusher_chatkit/client.py", line 13, in __init__
    self.host = self.instance_locator[1] + '.pusherplatform.io'
IndexError: list index out of range
  1. The first time I started up, I got an error
Traceback (most recent call last):
  File "quickstart.py", line 1, in <module>
    from pusher_chatkit import PusherChatKit
  File "/home/y700/Env/google-test/lib/python3.7/site-packages/pusher_chatkit/__init__.py", line 1, in <module>
    from .pusher_chatkit import PusherChatKit
  File "/home/y700/Env/google-test/lib/python3.7/site-packages/pusher_chatkit/pusher_chatkit.py", line 5, in <module>
    from pusher_chatkit.backends import RequestsBackend
  File "/home/y700/Env/google-test/lib/python3.7/site-packages/pusher_chatkit/backends/__init__.py", line 2, in <module>
    from .Tornado import TornadoBackend
  File "/home/y700/Env/google-test/lib/python3.7/site-packages/pusher_chatkit/backends/Tornado.py", line 2, in <module>
    import tornado
ModuleNotFoundError: No module named 'tornado'

I installed tornado, but my application on Django, does your application have to use Tornado definitely?

Wouldn't it be a problem for you to help me deal with these questions?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions