Opened 2 years ago
Closed 2 years ago
#10052 closed defect (fixed)
Plugin install / uninstall problems
Reported by: | Owned by: | Greg Couch | |
---|---|---|---|
Priority: | normal | Milestone: | 1.7 |
Component: | Tool Shed | Version: | |
Keywords: | Cc: | chimera-programmers | |
Blocked By: | Blocking: | ||
Notify when closed: | Platform: | all | |
Project: | ChimeraX |
Description
Hello, I am using the Oct 19 daily build. I am developing a plugin that I am having install/uninstall issues with. When I dev install my plugin it says "No bundles added" but then it says plugin was installed. My plugin is indeed in the Tools::General menu and it will run. When I "toolshed uninstall BphonTool" chimerax says my plugin was not found and thus not uninstalled. "BphonTool" is the name that is present in __init__.py (and maybe elsewhere). And the plugin is still in Tools::General submenu and runs fine. I am now frequently using the command prompt and rm -rf to remove my plugin and all its dependenices from ~/.local/share/ChimeraX/1.7/lib/python3.11/site-packages/ and relevant subdirectories. This removes the plugin from the Tools::General section of the menus. I believe this is like starting with a "clean" setup. So, how do I get the install program to not say "no bundles added"? Though seriously this is a pretty minor issue. But how do I get it to uninstall from within chimerax? This is a more serious issue. Note that after install I have this in my .local directories: ~/.local/share/ChimeraX/1.7/lib/python3.11/site-packages: ChimeraX_BponTool-0.5.dist-info mdtraj mdtraj-1.9.9.dist-info traj2nmr-0.0.1-py3.11.egg ~/.local/share/ChimeraX/1.7/lib/python3.11/site-packages/chimerax: tut_tool_qt which is the copied directory name of my project If it would help I can build a zip of my original plugin source (the directory tut-tool_qt) and send it to you. This will be pretty big because it contains some compiled binaries. Let me know what you need from me. Thanks for your help.
Change History (5)
comment:1 by , 2 years ago
Cc: | added |
---|---|
Component: | Unassigned → Tool Shed |
Milestone: | → 1.7 |
Owner: | set to |
Platform: | → all |
Project: | → ChimeraX |
Status: | new → assigned |
comment:2 by , 2 years ago
comment:3 by , 2 years ago
toolshed list shows this: BphonTool (0.5) bundle-info.xml has this: <BundleInfo name="ChimeraX-BphonTool" version="0.5" package="chimerax.tut_tool_qt" minSessionVersion="1" maxSessionVersion="1"> Now neither "toolshed uninstall BphonTool" nor "toolshed uninstall ChimeraX-BphonTool" removes the tool from the menu. It is present after a chimerax restart. And it runs. Here is one uninstall attempt: ----------------------------------------------------------- toolshed uninstall BphonTool unloading module chimerax.tut_tool_qt Errors may have occurred when running pip: pip standard error: --- WARNING: Skipping ChimeraX-BphonTool as it is not installed. --- pip standard output: --- --- ----------------------------------------------------------- Here is another uninstall attempt: ----------------------------------------------------------- toolshed uninstall ChimeraX-BphonTool unloading module chimerax.tut_tool_qt Errors may have occurred when running pip: pip standard error: --- WARNING: Skipping ChimeraX-BphonTool as it is not installed. --- pip standard output: --- --- No change in list of installed bundles ----------------------------------------------------------- ________________________________ From: ChimeraX <ChimeraX-bugs-admin@cgl.ucsf.edu> Sent: Tuesday, October 24, 2023 12:24 PM To: gregc@cgl.ucsf.edu <gregc@cgl.ucsf.edu>; BARRY E DEZONIA <barry.dezonia@wisc.edu> Cc: chimera-programmers@cgl.ucsf.edu <chimera-programmers@cgl.ucsf.edu> Subject: Re: [ChimeraX] #10052: Plugin install / uninstall problems #10052: Plugin install / uninstall problems --------------------------------------+------------------------ Reporter: barry.dezonia@… | Owner: Greg Couch Type: defect | Status: assigned Priority: normal | Milestone: 1.7 Component: Tool Shed | Version: Resolution: | Keywords: Blocked By: | Blocking: Notify when closed: | Platform: all Project: ChimeraX | --------------------------------------+------------------------ Comment (by pett): Greg will have to respond about the "No bundles installed" thing, but as for "toolshed uninstall" within ChimeraX, you need to use the name of your bundle as specified in your bundle_info.xml (or pyproject.toml) file, though without any leading "ChimeraX-", not the tool name from __init__.py. Use "toolshed list" to list all installed bundles and see what the toolshed thinks your bundle name is. -- Ticket URL: <https://www.rbvi.ucsf.edu/trac/ChimeraX/ticket/10052#comment:2> ChimeraX <https://www.rbvi.ucsf.edu/chimerax/> ChimeraX Issue Tracker
comment:5 by , 2 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
This should be fixed in the next daily build (Oct 27 or later).
Note:
See TracTickets
for help on using tickets.
Greg will have to respond about the "No bundles installed" thing, but as for "toolshed uninstall" within ChimeraX, you need to use the name of your bundle as specified in your bundle_info.xml (or pyproject.toml) file, though without any leading "ChimeraX-", not the tool name from init.py. Use "toolshed list" to list all installed bundles and see what the toolshed thinks your bundle name is.