Error For importing package

35 views
Skip to first unread message

Pranali Khatode

unread,
Aug 1, 2014, 1:25:26 AM8/1/14
to erpnext-dev...@googlegroups.com
Hello

I am trying to import following package in the Erpnext3.

from oauth2client.client import OAuth2WebServerFlow


If its verified through command line environment python,its working properly there without giving any error.
 but while using it in .py file,though it is installed in environment still  giving error


Traceback (innermost last):
  File "lib/webnotes/handler.py", line 78, in handle
    execute_cmd(cmd)
  File "lib/webnotes/handler.py", line 118, in execute_cmd
    ret = call(method, webnotes.form_dict)
  File "lib/webnotes/handler.py", line 140, in call
    return fn(**newargs)
  File "lib/core/doctype/oauth_settings/oauth_settings.py", line 111, in genearate_calendar_cred
    flow = get_gcalendar_flow(client_id, client_secret, app_name)
  File "lib/core/doctype/oauth_settings/oauth_settings.py", line 121, in get_gcalendar_flow
    from oauth2client.client import OAuth2WebServerFlow
 ImportError: No module named oauth2client.client




Pratik Vyas

unread,
Aug 1, 2014, 5:03:24 AM8/1/14
to erpnext-dev...@googlegroups.com
You may have installed in some other python environment (python2.6).


>
>
> --
> Note:
>
> If you are posting an issue,
>
> 1. ERPNext is a free and open source software and support is given on this
> forum by a team (https://frappe.io/webnotes). So please consider donating if
> you find this forum useful (https://frappe.io/buy). Even a small amount
> would be helpful.
> 2. We should be able to replicate it at our end. So please give us as much
> information as you can. Please see it from the point of view of the person
> receiving the communication.
> 3. Paste your code at http://pastebin.com or http://gist.github.com and send
> only the URL via email
> 4. For sending images, use http://imgur.com or other similar services. Do
> not send images as attachments. Links are good. Same goes for any file you
> are going to send.
>
> End of Note
> ---
> You received this message because you are subscribed to the Google Groups
> "ERPNext Developer Forum" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to erpnext-developer...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/erpnext-developer-forum/a380609d-4a30-4dcf-8503-f584e57a44ab%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Pratik
erpnext
Reply all
Reply to author
Forward
Message has been deleted
0 new messages