Erpnext-demo

Hi, im not sure this is the correct forum. 
Im testing erpnext in a vm and wanted to add some data using erpnext-demo.
But when: frappe mysite.vm.com --install_app erpnext-demo --sites_path sites , all i have is this:

Traceback (most recent call last):

  File "/usr/erpnext/bench/env/bin/frappe", line 9, in <module>

    load_entry_point('frappe==4.0.0-beta', 'console_scripts', 'frappe')()

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 49, in main

    run(fn, parsed_args)

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 70, in run

    out = globals().get(fn)(*args.get(fn), **args)

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 63, in new_fn

    return fn(*args, **new_kwargs)

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 269, in install_app

    install_app(app_name, verbose=verbose)

  File "/usr/erpnext/bench/apps/frappe/frappe/installer.py", line 112, in install_app

    frappe.get_attr(after_install)()

  File "/usr/erpnext/bench/erpnext-demo/erpnext_demo/utils.py", line 34, in make_demo

    make_demo_user()

  File "/usr/erpnext/bench/erpnext-demo/erpnext_demo/utils.py", line 67, in make_demo_user

    add_roles(p)

  File "/usr/erpnext/bench/erpnext-demo/erpnext_demo/utils.py", line 53, in add_roles

    "role": role

TypeError: 'NoneType' object is not callable

Anyone?

Thanx!




Note:

 

If you are posting an issue,

  1. 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.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. 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-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/62d7e054-9c8a-452c-b635-0952bbe5936d%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Fixed.

On 29-Apr-2014, at 2:06 am, Marta Ross <ma...@gmail.com> wrote:

Hi, im not sure this is the correct forum. 
Im testing erpnext in a vm and wanted to add some data using erpnext-demo.
But when: frappe mysite.vm.com --install_app erpnext-demo --sites_path sites , all i have is this:

Traceback (most recent call last):

  File "/usr/erpnext/bench/env/bin/frappe", line 9, in <module>

    load_entry_point('frappe==4.0.0-beta', 'console_scripts', 'frappe')()

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 49, in main

    run(fn, parsed_args)

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 70, in run

    out = globals().get(fn)(*args.get(fn), **args)

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 63, in new_fn

    return fn(*args, **new_kwargs)

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 269, in install_app

    install_app(app_name, verbose=verbose)

  File "/usr/erpnext/bench/apps/frappe/frappe/installer.py", line 112, in install_app

    frappe.get_attr(after_install)()

  File "/usr/erpnext/bench/erpnext-demo/erpnext_demo/utils.py", line 34, in make_demo

    make_demo_user()

  File "/usr/erpnext/bench/erpnext-demo/erpnext_demo/utils.py", line 67, in make_demo_user

    add_roles(p)

  File "/usr/erpnext/bench/erpnext-demo/erpnext_demo/utils.py", line 53, in add_roles

    "role": role

TypeError: 'NoneType' object is not callable

Anyone?

Thanx!





Note:

 

If you are posting an issue,

  1. 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.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. 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-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/62d7e054-9c8a-452c-b635-0952bbe5936d%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.



Note:

 

If you are posting an issue,

  1. 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.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. 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-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/A5E34E39-DF86-4CAE-A4A1-DB515F441AA0%40gmail.com.

    For more options, visit https://groups.google.com/d/optout.
G morning Nabin,

Actually Im still having a problem when installing erpnext-demo:

Traceback (most recent call last):

  File "/usr/erpnext/bench/env/bin/frappe", line 9, in <module>

    load_entry_point('frappe==4.0.0-beta', 'console_scripts', 'frappe')()

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 49, in main

    run(fn, parsed_args)

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 70, in run

    out = globals().get(fn)(*args.get(fn), **args)

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 63, in new_fn

    return fn(*args, **new_kwargs)

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 269, in install_app

    install_app(app_name, verbose=verbose)

  File "/usr/erpnext/bench/apps/frappe/frappe/installer.py", line 112, in install_app

    frappe.get_attr(after_install)()

  File "/usr/erpnext/bench/apps/erpnext-demo/erpnext_demo/utils.py", line 34, in make_demo

    make_demo_user()

  File "/usr/erpnext/bench/apps/erpnext-demo/erpnext_demo/utils.py", line 67, in make_demo_user

    add_roles(p)

  File "/usr/erpnext/bench/apps/erpnext-demo/erpnext_demo/utils.py", line 53, in add_roles

    "role": role

TypeError: 'NoneType' object is not callable

Used the last git repo. 

Thank you,

M



On Monday, April 28, 2014 5:36:51 PM UTC-3, Marta Ross wrote:
Hi, im not sure this is the correct forum. 
Im testing erpnext in a vm and wanted to add some data using erpnext-demo.
But when: frappe mysite.vm.com --install_app erpnext-demo --sites_path sites , all i have is this:

Traceback (most recent call last):

  File "/usr/erpnext/bench/env/bin/frappe", line 9, in <module>

    load_entry_point('frappe==4.0.0-beta', 'console_scripts', 'frappe')()

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 49, in main

    run(fn, parsed_args)

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 70, in run

    out = globals().get(fn)(*args.get(fn), **args)

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 63, in new_fn

    return fn(*args, **new_kwargs)

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 269, in install_app

    install_app(app_name, verbose=verbose)

  File "/usr/erpnext/bench/apps/frappe/frappe/installer.py", line 112, in install_app

    frappe.get_attr(after_install)()

  File "/usr/erpnext/bench/erpnext-demo/erpnext_demo/utils.py", line 34, in make_demo

    make_demo_user()

  File "/usr/erpnext/bench/erpnext-demo/erpnext_demo/utils.py", line 67, in make_demo_user

    add_roles(p)

  File "/usr/erpnext/bench/erpnext-demo/erpnext_demo/utils.py", line 53, in add_roles

    "role": role

TypeError: 'NoneType' object is not callable

Anyone?

Thanx!




Note:

 

If you are posting an issue,

  1. 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.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. 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-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/60f12a37-0b75-43f0-b5f1-e7818138de45%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Reinstall on a fresh db and it should work

frappe --reinstall && frappe --install_app erpnext && frappe --install_app shopping_cart && frappe --install_app erpnext_demo


On Wednesday, April 30, 2014 8:17:45 PM UTC+5:30, Marta Ross wrote:
G morning Nabin,

Actually Im still having a problem when installing erpnext-demo:

Traceback (most recent call last):

  File "/usr/erpnext/bench/env/bin/frappe", line 9, in <module>

    load_entry_point('frappe==4.0.0-beta', 'console_scripts', 'frappe')()

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 49, in main

    run(fn, parsed_args)

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 70, in run

    out = globals().get(fn)(*args.get(fn), **args)

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 63, in new_fn

    return fn(*args, **new_kwargs)

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 269, in install_app

    install_app(app_name, verbose=verbose)

  File "/usr/erpnext/bench/apps/frappe/frappe/installer.py", line 112, in install_app

    frappe.get_attr(after_install)()

  File "/usr/erpnext/bench/apps/erpnext-demo/erpnext_demo/utils.py", line 34, in make_demo

    make_demo_user()

  File "/usr/erpnext/bench/apps/erpnext-demo/erpnext_demo/utils.py", line 67, in make_demo_user

    add_roles(p)

  File "/usr/erpnext/bench/apps/erpnext-demo/erpnext_demo/utils.py", line 53, in add_roles

    "role": role

TypeError: 'NoneType' object is not callable

Used the last git repo. 

Thank you,

M



On Monday, April 28, 2014 5:36:51 PM UTC-3, Marta Ross wrote:
Hi, im not sure this is the correct forum. 
Im testing erpnext in a vm and wanted to add some data using erpnext-demo.
But when: frappe mysite.vm.com --install_app erpnext-demo --sites_path sites , all i have is this:

Traceback (most recent call last):

  File "/usr/erpnext/bench/env/bin/frappe", line 9, in <module>

    load_entry_point('frappe==4.0.0-beta', 'console_scripts', 'frappe')()

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 49, in main

    run(fn, parsed_args)

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 70, in run

    out = globals().get(fn)(*args.get(fn), **args)

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 63, in new_fn

    return fn(*args, **new_kwargs)

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 269, in install_app

    install_app(app_name, verbose=verbose)

  File "/usr/erpnext/bench/apps/frappe/frappe/installer.py", line 112, in install_app

    frappe.get_attr(after_install)()

  File "/usr/erpnext/bench/erpnext-demo/erpnext_demo/utils.py", line 34, in make_demo

    make_demo_user()

  File "/usr/erpnext/bench/erpnext-demo/erpnext_demo/utils.py", line 67, in make_demo_user

    add_roles(p)

  File "/usr/erpnext/bench/erpnext-demo/erpnext_demo/utils.py", line 53, in add_roles

    "role": role

TypeError: 'NoneType' object is not callable

Anyone?

Thanx!




Note:

 

If you are posting an issue,

  1. 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.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. 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-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/4ee01016-d79c-47d9-85dc-cd7a21fd0f8d%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Rushabh, unfortunately it doesnt. 

Reinstalled on a "fresh db" as per your instructions but frappe --install_app erpnext_demo didnt print any line for output. 
If I try to install it again prints "App already installed" but when go check the site in the browser I get the error page:

ImportError

ImportError: No module named erpnext-demo

Traceback (most recent call last)

  • File "/usr/erpnext/bench/apps/frappe/frappe/middlewares.py", line 15, in __call__
    return super(StaticDataMiddleware, self).__call__(environ, start_response)
  • File "/usr/erpnext/bench/env/lib/python2.7/site-packages/werkzeug/wsgi.py", line 579, in __call__
    return self.app(environ, start_response)
  • File "/usr/erpnext/bench/env/lib/python2.7/site-packages/werkzeug/wsgi.py", line 579, in __call__
    return self.app(environ, start_response)
  • File "/usr/erpnext/bench/env/lib/python2.7/site-packages/werkzeug/local.py", line 224, in application
    return ClosingIterator(app(environ, start_response), self.cleanup)
  • File "/usr/erpnext/bench/env/lib/python2.7/site-packages/werkzeug/wrappers.py", line 285, in application
    return f(*args[:-2] + (request,))(*args[-2:])
  • File "/usr/erpnext/bench/apps/frappe/frappe/app.py", line 51, in application
    response = frappe.website.render.render(request.path)
  • File "/usr/erpnext/bench/apps/frappe/frappe/website/render.py", line 29, in render
    data = render_page(path)
  • File "/usr/erpnext/bench/apps/frappe/frappe/website/render.py", line 59, in render_page
    return build(path)
  • File "/usr/erpnext/bench/apps/frappe/frappe/website/render.py", line 68, in build
    return build_method(path)
  • File "/usr/erpnext/bench/apps/frappe/frappe/website/render.py", line 81, in build_page
    context = get_context(path)
  • File "/usr/erpnext/bench/apps/frappe/frappe/website/context.py", line 29, in get_context
    context = build_context(context)
  • File "/usr/erpnext/bench/apps/frappe/frappe/website/context.py", line 62, in build_context
    context.data = render_blocks(context)
  • File "/usr/erpnext/bench/apps/frappe/frappe/website/template.py", line 18, in render_blocks
    env = frappe.get_jenv()
  • File "/usr/erpnext/bench/apps/frappe/frappe/__init__.py", line 580, in get_jenv
    jenv = Environment(loader = get_jloader(), undefined=DebugUndefined)
  • File "/usr/erpnext/bench/apps/frappe/frappe/__init__.py", line 601, in get_jloader
    for app in apps + ["frappe"]])
  • File "/usr/erpnext/bench/env/lib/python2.7/site-packages/jinja2/loaders.py", line 214, in __init__
    provider = get_provider(package_name)
  • File "/usr/erpnext/bench/env/lib/python2.7/site-packages/pkg_resources.py", line 229, in get_provider
    __import__(moduleOrReq)

ImportError: No module named erpnext-demo


On Monday, April 28, 2014 5:36:51 PM UTC-3, Marta Ross wrote:
Hi, im not sure this is the correct forum. 
Im testing erpnext in a vm and wanted to add some data using erpnext-demo.
But when: frappe mysite.vm.com --install_app erpnext-demo --sites_path sites , all i have is this:

Traceback (most recent call last):

  File "/usr/erpnext/bench/env/bin/frappe", line 9, in <module>

    load_entry_point('frappe==4.0.0-beta', 'console_scripts', 'frappe')()

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 49, in main

    run(fn, parsed_args)

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 70, in run

    out = globals().get(fn)(*args.get(fn), **args)

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 63, in new_fn

    return fn(*args, **new_kwargs)

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 269, in install_app

    install_app(app_name, verbose=verbose)

  File "/usr/erpnext/bench/apps/frappe/frappe/installer.py", line 112, in install_app

    frappe.get_attr(after_install)()

  File "/usr/erpnext/bench/erpnext-demo/erpnext_demo/utils.py", line 34, in make_demo

    make_demo_user()

  File "/usr/erpnext/bench/erpnext-demo/erpnext_demo/utils.py", line 67, in make_demo_user

    add_roles(p)

  File "/usr/erpnext/bench/erpnext-demo/erpnext_demo/utils.py", line 53, in add_roles

    "role": role

TypeError: 'NoneType' object is not callable

Anyone?

Thanx!




Note:

 

If you are posting an issue,

  1. 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.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. 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-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/738f92a5-a99b-4b29-9d06-47bcad28ce1a%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
FYI, I've installed frappe & erpnext from frappe-bench, not from each git repo.

On Monday, April 28, 2014 5:36:51 PM UTC-3, Marta Ross wrote:
Hi, im not sure this is the correct forum. 
Im testing erpnext in a vm and wanted to add some data using erpnext-demo.
But when: frappe mysite.vm.com --install_app erpnext-demo --sites_path sites , all i have is this:

Traceback (most recent call last):

  File "/usr/erpnext/bench/env/bin/frappe", line 9, in <module>

    load_entry_point('frappe==4.0.0-beta', 'console_scripts', 'frappe')()

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 49, in main

    run(fn, parsed_args)

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 70, in run

    out = globals().get(fn)(*args.get(fn), **args)

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 63, in new_fn

    return fn(*args, **new_kwargs)

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 269, in install_app

    install_app(app_name, verbose=verbose)

  File "/usr/erpnext/bench/apps/frappe/frappe/installer.py", line 112, in install_app

    frappe.get_attr(after_install)()

  File "/usr/erpnext/bench/erpnext-demo/erpnext_demo/utils.py", line 34, in make_demo

    make_demo_user()

  File "/usr/erpnext/bench/erpnext-demo/erpnext_demo/utils.py", line 67, in make_demo_user

    add_roles(p)

  File "/usr/erpnext/bench/erpnext-demo/erpnext_demo/utils.py", line 53, in add_roles

    "role": role

TypeError: 'NoneType' object is not callable

Anyone?

Thanx!




Note:

 

If you are posting an issue,

  1. 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.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. 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-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/1feeb889-7bfc-4522-adb1-9b5e311656a3%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
The app name in apps.txt should be "erpnext_demo" not "erpnext-demo"


On Friday, May 2, 2014 6:03:37 PM UTC+5:30, Marta Ross wrote:
Rushabh, unfortunately it doesnt. 

Reinstalled on a "fresh db" as per your instructions but frappe --install_app erpnext_demo didnt print any line for output. 
If I try to install it again prints "App already installed" but when go check the site in the browser I get the error page:

ImportError

ImportError: No module named erpnext-demo

Traceback (most recent call last)

  • File "/usr/erpnext/bench/apps/frappe/frappe/middlewares.py", line 15, in __call__
    return super(StaticDataMiddleware, self).__call__(environ, start_response)
  • File "/usr/erpnext/bench/env/lib/python2.7/site-packages/werkzeug/wsgi.py", line 579, in __call__
    return self.app(environ, start_response)
  • File "/usr/erpnext/bench/env/lib/python2.7/site-packages/werkzeug/wsgi.py", line 579, in __call__
    return self.app(environ, start_response)
  • File "/usr/erpnext/bench/env/lib/python2.7/site-packages/werkzeug/local.py", line 224, in application
    return ClosingIterator(app(environ, start_response), self.cleanup)
  • File "/usr/erpnext/bench/env/lib/python2.7/site-packages/werkzeug/wrappers.py", line 285, in application
    return f(*args[:-2] + (request,))(*args[-2:])
  • File "/usr/erpnext/bench/apps/frappe/frappe/app.py", line 51, in application
    response = frappe.website.render.render(request.path)
  • File "/usr/erpnext/bench/apps/frappe/frappe/website/render.py", line 29, in render
    data = render_page(path)
  • File "/usr/erpnext/bench/apps/frappe/frappe/website/render.py", line 59, in render_page
    return build(path)
  • File "/usr/erpnext/bench/apps/frappe/frappe/website/render.py", line 68, in build
    return build_method(path)
  • File "/usr/erpnext/bench/apps/frappe/frappe/website/render.py", line 81, in build_page
    context = get_context(path)
  • File "/usr/erpnext/bench/apps/frappe/frappe/website/context.py", line 29, in get_context
    context = build_context(context)
  • File "/usr/erpnext/bench/apps/frappe/frappe/website/context.py", line 62, in build_context
    context.data = render_blocks(context)
  • File "/usr/erpnext/bench/apps/frappe/frappe/website/template.py", line 18, in render_blocks
    env = frappe.get_jenv()
  • File "/usr/erpnext/bench/apps/frappe/frappe/__init__.py", line 580, in get_jenv
    jenv = Environment(loader = get_jloader(), undefined=DebugUndefined)
  • File "/usr/erpnext/bench/apps/frappe/frappe/__init__.py", line 601, in get_jloader
    for app in apps + ["frappe"]])
  • File "/usr/erpnext/bench/env/lib/python2.7/site-packages/jinja2/loaders.py", line 214, in __init__
    provider = get_provider(package_name)
  • File "/usr/erpnext/bench/env/lib/python2.7/site-packages/pkg_resources.py", line 229, in get_provider
    __import__(moduleOrReq)

ImportError: No module named erpnext-demo


On Monday, April 28, 2014 5:36:51 PM UTC-3, Marta Ross wrote:
Hi, im not sure this is the correct forum. 
Im testing erpnext in a vm and wanted to add some data using erpnext-demo.
But when: frappe mysite.vm.com --install_app erpnext-demo --sites_path sites , all i have is this:

Traceback (most recent call last):

  File "/usr/erpnext/bench/env/bin/frappe", line 9, in <module>

    load_entry_point('frappe==4.0.0-beta', 'console_scripts', 'frappe')()

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 49, in main

    run(fn, parsed_args)

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 70, in run

    out = globals().get(fn)(*args.get(fn), **args)

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 63, in new_fn

    return fn(*args, **new_kwargs)

  File "/usr/erpnext/bench/apps/frappe/frappe/cli.py", line 269, in install_app

    install_app(app_name, verbose=verbose)

  File "/usr/erpnext/bench/apps/frappe/frappe/installer.py", line 112, in install_app

    frappe.get_attr(after_install)()

  File "/usr/erpnext/bench/erpnext-demo/erpnext_demo/utils.py", line 34, in make_demo

    make_demo_user()

  File "/usr/erpnext/bench/erpnext-demo/erpnext_demo/utils.py", line 67, in make_demo_user

    add_roles(p)

  File "/usr/erpnext/bench/erpnext-demo/erpnext_demo/utils.py", line 53, in add_roles

    "role": role

TypeError: 'NoneType' object is not callable

Anyone?

Thanx!




Note:

 

If you are posting an issue,

  1. 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.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. 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-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/f381390b-fa48-4576-bf76-c8ea96088cf5%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.