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

Difficulty using the library #3

Open
Lepiloff opened this issue Sep 3, 2019 · 0 comments
Open

Difficulty using the library #3

Lepiloff opened this issue Sep 3, 2019 · 0 comments

Comments

@Lepiloff
Copy link

Lepiloff commented Sep 3, 2019

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?

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

1 participant