No module named client

303 views
Skip to first unread message

Pravin Kumar

unread,
Feb 12, 2017, 6:42:55 PM2/12/17
to Django users
Hi All,

I have imported below module in views.py, but i getting error "No module named client".

import salt.client

i can import this module in ipython but when i import it in Django app view, the app getting error while loading main page itself.

Error in web page:

ImportError at /salt/

No module named client


Please help guys!!

ludovic coues

unread,
Feb 13, 2017, 4:03:40 AM2/13/17
to django...@googlegroups.com
I would do that to get more debugging information :

    try:
        from salt import client
    except :
        import salt
        raise RuntimeError("[%s]" % ", ".join(dir(salt)))

If it work like I hope it does, it will print all the module from salt and a bit more information.

Or you can do `print(dir(salt))` and read the results in the console




--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3a0d8fbc-2d84-4cd3-8217-80f5c654a1e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages