If youâve installed the plugin from the dialog in Avogadro then it will have definitely been downloaded to that folder. But the plugins folder is not located at the path youâve shown, itâs at %USERPROFILE%\AppData\Local\Avogadro or %USERPROFILE%\AppData\Roaming\Avogadro (I forget which of the two).
Sorry that that wasnât clear, Iâve updated the README with a link to the docs that tell you where the folder is located.
Thanks a lot, Matt!
I did not realise that the standard plugin upload menu in Avogadro2 contains your plugin, now having used this standard dialog, I found the plugin in:
âŚ\AppData\Local\OpenChemistry\Avogadro\commands\avo_xtb
However, the plugin existence is not yet seen in any of the Avogadro2 menus I try, such as Extensions. I imagine, now I need to download and install the xtb package itself from its own GitHub repository - is that correct?
Thank you very much!
Hmm, there should still be a menu entry under Extensions called Semi-empirical (xtb) as soon as youâve installed the plugin, even if you donât have xtb itself yet.
You do have to restart Avogadro after installing the plugin, first of all.
Secondly, have you got Python installed on your machine? Itâs needed to run any of the plugins.
I restarted Avogadro, but still see no Semi-empirical entry - see screenshot. Also, I took a screenshot of the Python menu - I do have Python installed and Avogadro finds it, but maybe itâs a wrong version?
Strange. When you go on Extensions => Calculate => ConfigureâŚ, what force fields are available to you? If MMFF and UFF are offered, Python is at least working correctly for some stuff, but if not, itâs more likely to be a general problem rather than one specific to the xtb plugin.
This might be a stupid question, but is that definitely the path to your Python interpreter? Seems odd to have it installed under .../Microsoft/WindowsApps/, as this StackOverflow question seems to indicate it should be under C:/Users/vaverbuk/AppData/Local/Programs/Python3xx/ (where xx is 9, 10, 11 etc. for the Python version).
Did you perhaps install it from the Microsoft Store? I know that when Python is installed from the store it often results in all sorts of limitations. If so, maybe try installing from python.org and see if anything changes.
@ghutchis Geoff, do you know for a fact whether the MS Store Python definitely does or definitely doesnât work for Avogadroâs purposes?
Finally, if youâre able to start Avogadro from the command line (accessed from Terminal or cmd or PowerShell for you), Avogadro will report some information on the results of its search for plugins, and that info would be useful for me/us
Yes, on Windows it sends error messages to a file in Documents called avogadro2.log
It shouldnât - you should be able to set the Python environment. The other indication that Python is working for Avogadro2 is the list of input generators. If Orca is there, then itâs finding python.
Ok then, that should work fine, but from this image:
that doesnât seem to be the interpreter that Avogadro is finding and usingâŚ
If you could upload this, that would be the most useful first thing. Then, as a second thing, maybe try clicking on âOtherâŚâ in the Python Settings dialog, select the Conda Python at C:\Program Data\Anaconda3, and see if that changes anything. But please upload the log file before you change the Python settings
I did some quick checking and it seems that C:/Users/<user>/AppData/Local/Microsoft/WindowsApps/ is indeed the location where Windows stores programs downloaded from the Microsoft Store. It also seems that the folder has very restricted permissions â read, you donât have access or editing rights to the folder (despite it being within your personal AppData folder) â so I suspect that I might have been right and that is the root of the issue.
So just try doing this (indicate to Avogadro that it should use the Conda Python rather than the one itâs currently using) and see what happens. And assuming you have Python listed amongst the installed programs in the Microsoft Store app, since you now have Conda Python installed I would also recommend uninstalling the Store version, so that Avogadro and other things that use Python donât get confused.
I have changed the pyhton location to Anaconda and now, after restarting Avogadro2, I could see the semi-empirical (xtb) in the Extensions menu - great!
However, after running âget xtbâ and receiving the message that xtb was successfully installed, I still do not see the âlocation of the xtb binaryâ in the Config
Thank you, the field is indeed editable, but the binary - something like xtb.exe - is missing. As far as I understand, it was supposed to be generated or downloaded by the xtb installation process run from the plugin. This - again, as far as I can see, did not happen.
Actually, the xtb binary is almost certainly there and is being found. Unfortunately thereâs a bug with Avogadro itself where the first field in any pluginâs dialog is emptied, see here. Youâll see that the same thing happens in the Configure, Run, and Conformers dialogs.
Itâs tedious, but you can check what path is being used by looking at your config file at Avogadro/commands/avo_xtb/config.json.
Assuming that an xtb installation is being picked up, the pre-configured commands like xtb => Optimize etc. will work, so stick to those where possible for now.
If you need to use Run or Conformers, as a workaround for now you can copy the path from config.json and paste it into the empty box in the dialog. If the box is filled, everything will work fine, itâs just that the automatic population with the previously known value fails.
I do see the config.json file, and here is what it contains:
{
âsolventâ: null,
âenergy_unitsâ: âkJ/molâ,
âmethodâ: 2,
âopt_lvlâ: ânormalâ,
âcalc_dirâ: âC:\Users\vaverbuk\AppData\Local\OpenChemistry\Avogadro\commands\avo_xtb\lastâ,
âxtb_binâ: âC:\Users\vaverbuk\AppData\Local\OpenChemistry\Avogadro\commands\avo_xtb\xtb\bin\xtbâ
}
Copying the location of the xtb_bin into the âlocation of xtb binaryâ, I get the same menu for xtb - without any clickable field which would start a calculation. The âgo to calculation filesâ field is inactive - I can clock it but with no effect, probably because no calculation took place yet. Restarting Avogadro2 does not help, because the executable file field becomes emptyâŚ
It looks we still need one more step to actually make it workâŚ
Ugh, Iâm sorry this is taking so long to set up.
What happens if you create a folder at the path given by calc_dir, does the âgo toâ button work then? And does it change anything about the available options?
Iâll see if I can try it on a Windows PC and work out whatâs going on.
Sorry, Matt, I am a bit confused. At the path given by calc_dir, I see a directory âlastâ with only one file inside it, called probe.txt and containing the following text:
This file is created only to check everything works.
It will be deleted when the first calculation is run.
I can create another folder at this location, but shouldnât it have some pre-defined name? If yes, then which one?
Ah ok, in that case you have already answered my question!
It seems you already have the folder, and that the plugin can write files to it without an issue. So what I thought might be the issue is apparently not an issue.
In which case Iâm running out of ideas as to what the problem could be, Iâm afraid. Sorry Iâll have a look myself on a Windows system in the next few days and see if I can work out whatâs going on.
What you could do that might shed some more light: if you go to C:/Users/vaverbuk/AppData/Local/OpenChemistry/Avogadro/commands/avo_xtb, you will see all the Python script files of the plugin. Since you already have Python installed, if you are comfortable enough with the terminal/powershell/cmd you could try navigating to the folder and running some of the scripts with e.g. python energy.py --menu-path and python energy.py --print-options, and see what error messages get written to the output.