Basic_ea.py doesn't run with default stk version
See original GitHub issuewhen running
python basic_ea.py
The first initial generation of 25 .mol files/molecules is being generated, but then line 191 gives rise to this conversion error and the EA run doesn’t occur/the script terminates with error:
raise InchiReadWriteError(inchi, message)
rdkit.Chem.inchi.InchiReadWriteError: ('InChI=1S/C21H29BrFNO/c1-12(18(2,3)11-23)20(5,25)8-6-7-15-16-13-9-19(13,4)14-10-21(16,24-15)17(14)22/h13,16,25H,1,6-11H2,2-5H3', 'Omitted undefined stereo')
The error can be resolved by changing treatWarningAsError to False in stk/molecular/key_makers/utilities.py
return rdkit.MoltoInchi(
mol = molecule.to_rdkit_mol(),
treatWarningAsError = True,
)
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (7 by maintainers)
Top Results From Across the Web
Running Python with VS Code - The basics - Stack Overflow
I simply want to understand the concept behind me running the windows python version command in the .py file, and it not working, ......
Read more >Part 13: Integrating STK with Python - Agi
Launch STK Programming Help from within STK. Click Help on the menu bar and select Programing Interface Help. Launch the STK Help via...
Read more >Basic EA Example - stk documentation - Read the Docs
Basic EA Example . Introduction . This tutorial will introduce you to the basic components needed for building an EA with...
Read more >Knowledge: Troubleshooting Your STK and Python Integration
When trying to connect to STK using Python and running code such as: ... Check the compatibility of your comtypes and Python versions...
Read more >How to Fix Python Was Not Found Run Without ... - YouTube
Link:- https://www. python.org/downloads/In This Video We Will See How to Fix Python Was Not Found Run Without Arguments to Install From the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
it was Steven who was involved in this and told me to report it, so you’d know and it affected all molecules not just a few. Thanks for solving it this quickly! I couldn’t slack you. THANK YOU
It looks like this is the approach the
get_inchi_key
function uses already.