question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Basic_ea.py doesn't run with default stk version

See original GitHub issue

when 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:closed
  • Created 3 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
misterblondecommented, Jul 30, 2020

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

1reaction
lukasturcanicommented, Jul 29, 2020

It looks like this is the approach the get_inchi_key function uses already.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found