-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rdkit version and warning #16
Comments
What kind of problem occurs in this case? |
It cannot display any pandas DataFrames anymore. |
After doing it again and checking the web again, I found that you already had that problem in TeachOpenCadd `--------------------------------------------------------------------------- ~/.local/lib/python3.8/site-packages/IPython/lib/pretty.py in pretty(self, obj) ~/.local/lib/python3.8/site-packages/IPython/lib/pretty.py in repr_pprint(obj, p, cycle) ~/anaconda3/envs/kinfraglib/lib/python3.8/site-packages/pandas/core/frame.py in repr(self) ~/anaconda3/envs/kinfraglib/lib/python3.8/site-packages/pandas/core/frame.py in to_string(self, buf, columns, col_space, header, index, na_rep, formatters, float_format, sparsify, index_names, justify, max_rows, min_rows, max_cols, show_dimensions, decimal, line_width, max_colwidth, encoding) ~/anaconda3/envs/kinfraglib/lib/python3.8/site-packages/pandas/io/formats/format.py in to_string(self, buf, encoding, line_width) ~/anaconda3/envs/kinfraglib/lib/python3.8/site-packages/pandas/io/formats/string.py in to_string(self) ~/anaconda3/envs/kinfraglib/lib/python3.8/site-packages/pandas/io/formats/string.py in _get_string_representation(self) ~/anaconda3/envs/kinfraglib/lib/python3.8/site-packages/pandas/io/formats/string.py in _get_strcols(self) ~/anaconda3/envs/kinfraglib/lib/python3.8/site-packages/pandas/io/formats/format.py in get_strcols(self) ~/anaconda3/envs/kinfraglib/lib/python3.8/site-packages/pandas/io/formats/format.py in _get_strcols_without_index(self) ~/anaconda3/envs/kinfraglib/lib/python3.8/site-packages/pandas/io/formats/format.py in format_col(self, i) ~/anaconda3/envs/kinfraglib/lib/python3.8/site-packages/pandas/io/formats/format.py in format_array(values, formatter, float_format, na_rep, digits, space, justify, decimal, leading_space, quoting) ~/anaconda3/envs/kinfraglib/lib/python3.8/site-packages/pandas/io/formats/format.py in get_result(self) ~/anaconda3/envs/kinfraglib/lib/python3.8/site-packages/pandas/io/formats/format.py in _format_strings(self) ~/anaconda3/envs/kinfraglib/lib/python3.8/site-packages/pandas/io/formats/format.py in _format(x) ~/anaconda3/envs/kinfraglib/lib/python3.8/site-packages/pandas/io/formats/printing.py in pprint_thing(thing, _nest_lvl, escape_chars, default_escapes, quote_strings, max_seq_items) ~/anaconda3/envs/kinfraglib/lib/python3.8/site-packages/pandas/io/formats/printing.py in as_escaped_string(thing, escape_chars) ~/anaconda3/envs/kinfraglib/lib/python3.8/site-packages/rdkit/Chem/PandasTools.py in PrintAsBase64PNGString(x, renderer) ~/anaconda3/envs/kinfraglib/lib/python3.8/site-packages/rdkit/Chem/Draw/init.py in _moltoimg(mol, sz, highlights, legend, returnPNG, drawOptions, **kwargs) ValueError: bad query type1` Did you found a solution for this by now? |
Can you please provide a minimal example of your problem? In the issue that you referenced, I think the problem was that some molecules could not be displayed in the grid image, while the rest of the molecules were just fine. We did not fix this; we simply decided to display only those molecules that were not problematic. |
Just load the environment, update rdkit (I used the newest version 2021.09.2) and then run You are right, it does not seem to be a problem with only this one structure. I tried it after removing this structure, but the error is still there. |
Because of the RDKit version 2020.03.3 used in KinFragLib, a warning is showing up
<frozen importlib._bootstrap>:219: RuntimeWarning: to-Python converter for boost::shared_ptr<RDKit::FilterCatalogEntry const> already registered; second conversion method ignored.
When updating RDKit to the current version, this warning disappears.
Actually, when updating RDKit, there occurs another problem with the pandas DataFrames in
notebooks/custom_kinfraglib/1_1_custom_filters_unwanted_substructures.ipynb
I also found this warning in
The text was updated successfully, but these errors were encountered: