Help needed: Removing/uninstall Apps

hi,

I’ve installed apps just to check it out and see how it integrate. but i accidentally run the command in the wrong terminal. instead of testing on the dev server, i put it on the deployment.  what’s the cleanness way of uninstalling / removing of app ( and sites ... yes, I had creates a new site also. )




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-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/9ad1730b-9c7c-450f-bd69-e8155fffbf8f%40googlegroups.com.

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


On 27-Aug-2014, at 7:55 pm, Nonnatee Kanjana <no...@ps-groups.com> wrote:

hi,

I’ve installed apps just to check it out and see how it integrate. but i accidentally run the command in the wrong terminal. instead of testing on the dev server, i put it on the deployment.  what’s the cleanness way of uninstalling / removing of app ( and sites ... yes, I had creates a new site also. )

Uninstall is still in the TODO list :/






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-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/9ad1730b-9c7c-450f-bd69-e8155fffbf8f%40googlegroups.com.

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



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-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/7748874A-0654-4C1A-8AAD-2AF74FC1D848%40gmail.com.

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

Can you please let me know how to uninstall an app manually.

I tried to remove the folder from the apps folder for the app and also removed the app name from the apps.txt in sites but I am still getting an error on the webpage as the website is ImportError: No module named website_chat

Where all should I remove the app name from so that I could resume my work.

Also removing a site is as simple as removing the folder or is there something else to it.

Forgot to mention that I am getting the following error when I am running pastebin after I have removed the app

http://pastebin.com/VPALk922

I am getting this error when I am running bench update, this basically comes after all apps have been updated:

  Could not find any downloads that satisfy the requirement erpnext (from -r ./apps/shopping_cart/requirements.txt (line 2))
No distributions at all found for erpnext (from -r ./apps/shopping_cart/requirements.txt (line 2))
Storing debug log for failure in /home/aditya/.pip/pip.log
Error: None
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 9, in <module>
    load_entry_point('bench==0.1', 'console_scripts', 'bench')()
  File "/home/aditya/bench-repo/bench/cli.py", line 29, in cli
    return bench()
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 488, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 474, in main
    self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 758, in invoke
    return self.invoke_subcommand(ctx, cmd, cmd_name, ctx.args[1:])
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 767, in invoke_subcommand
    return cmd.invoke(cmd_ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 659, in invoke
    ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 325, in invoke
    return callback(*args, **kwargs)
  File "/home/aditya/bench-repo/bench/cli.py", line 126, in update
    update_requirements()
  File "/home/aditya/bench-repo/bench/utils.py", line 244, in update_requirements
    exec_cmd("{pip} install -q -r {req_file}".format(pip=pip, req_file=req_file))
  File "/home/aditya/bench-repo/bench/utils.py", line 59, in exec_cmd
    subprocess.check_call(cmd, cwd=cwd, shell=True)
  File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command './env/bin/pip install -q -r ./apps/shopping_cart/requirements.txt' returned non-zero exit status 1

@adityaduggal
Did you find a way on how to remove an app that does not install well.

I tried to install Paypal_Integration and It did not go well.

Traceback (innermost last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 60, in application
init_site(request)
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 154, in init_site
frappe.init(site=site, sites_path=_sites_path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 137, in init
setup_module_map()
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 723, in setup_module_map
for module in get_module_list(app):
File “/home/frappe/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/frappe/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)
ImportError: No module named Paypal

bench --site [sitename] uninstall-app [app]

via

bench --help | grep uninstall

1 Like