Shopify Exception

Hello,

I have installed erpnext_shopify from command line (it did not work in the webinterface).

Now I get this error:

ImportError: No module named erpnext_shopify

Uninstalling via command line does not work. It gives me the same Full Trace.

Full Trace:

    Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 79, in <module>
    main()
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 16, in main
    click.Group(commands=commands)(prog_name='bench')
  File "/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/commands.py", line 29, in _func
    ret = f(frappe._dict(ctx.obj), *args, **kwargs)
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/commands.py", line 915, in uninstall
    remove_app(app, dry_run)
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/installer.py", line 169, in remove_app
    for module_name in frappe.get_module_list(app_name):
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/__init__.py", line 632, in get_module_list
    return get_file_items(os.path.join(os.path.dirname(get_module(app_name).__file__), "modules.txt"))
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/__init__.py", line 590, in get_module
    return importlib.import_module(modulename)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)

What may I do now?

Working on it, now I get this: ImportError: No module named erpnext_shopify.hooks

Was there any error while installing the app?

No. The bench log says:

2016-01-11 21:49:39,987 INFO getting app erpnext_shopify
2016-01-11 21:49:42,094 INFO installing erpnext_shopify

There are no error snapshots in my error-snapshot folder for the site.

When trying to bench uninstall-app I get this error message:

ubuntu@ip-172-31-46-204:~$ bench uninstall-app erpnext_shopify
All doctypes (including custom), modules related to this app will be deleted. Are you sure you want to continue (y/n) ? y
Backing up...
removing Shopify Settings...
removing Shopify Tax Account...
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 79, in <module>
    main()
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 16, in main
    click.Group(commands=commands)(prog_name='bench')
  File "/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/commands.py", line 29, in _func
    ret = f(frappe._dict(ctx.obj), *args, **kwargs)
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/commands.py", line 915, in uninstall
    remove_app(app, dry_run)
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/installer.py", line 177, in remove_app
    frappe.db.sql("drop table `tab{0}`".format(doctype.name))
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/database.py", line 108, in sql
    self.check_transaction_status(query)
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/database.py", line 206, in check_transaction_status
    raise Exception, 'This statement can cause implicit commit'
Exception: This statement can cause implicit commit

I solved it by, after trying to uninstall, running bench remove-from-installed-apps erpnext_shopify, then removing the line “erpnext_shopify” manually from /frappe-bench/sites/apps.txt

Hi ci2016,

Post uninstallation, were you able to successfully reinstall and obtain a successful connection and sync with shopify?

Thanks

Hi Livit,

unfortunally I wasn’t. Apps still can’t be installed by the web interface. I am not using Shopify anyway. I am looking at the resources to understand the practices in Frappé / ERPNext.

Thanks for your reply!

You’re welcome. I will keep this updated, when trying again.

@LIVIT @ci2016

@saurabh6790 is working hard to fix Shopify issues! Stay tuned.

1 Like