Thanks, Matt!

I found a workaround (https://github.com/lhelontra/tensorflow-on-arm/issues/13) 
by adding this code at the top of the notebook:

%%bash
add-apt-repository ppa:ubuntu-toolchain-r/test -y
apt-get update
apt-get install gcc-4.9
apt-get upgrade libstdc++6

You have to restart the runtime before the import statements work

Not pretty, but hopefull Google Colab will upgrade their OS at some point

Best regards, Jan

On 14 Dec 2020, at 18.33, Matthew Swain <m.sw...@me.com<mailto:m.sw...@me.com>> 
wrote:

The conda-forge C++ compiler was updated recently, and this got used when 
building the latest 2020.09.3 release yesterday:
https://github.com/conda-forge/rdkit-feedstock/pull/62/files<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fconda-forge%2Frdkit-feedstock%2Fpull%2F62%2Ffiles&data=04%7C01%7Cjhjensen%40chem.ku.dk%7C687ed7fc874149a0056708d8a0565e0c%7Ca3927f91cda14696af898c9f1ceffa91%7C0%7C0%7C637435640993435031%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=kt0w0X1VjH86F0K5HR%2BuD08VXRseGj227dUPqm%2FgJBM%3D&reserved=0>

It looks to me like the system libstdc++ is being loaded from 
/usr/lib/x86_64-linux-gnu/libstdc++.so.6 instead of the one provided by conda 
at /usr/local/lib/libstdc++.so.6 (I think).

I wonder if this has always been the case, but the versions were compatible so 
it went unnoticed until now? As you point out in the notebook, you can pin 
RDKit to the previous version as a quick fix, but obviously this isn’t a great 
solution long term.

I don’t know if it might be possible to change LD_LIBRARY_PATH in an already 
running notebook? This is a bit of an unusual situation given the way miniconda 
is installed into an already running notebook process and just added to 
sys.path… It might not be possible to control how native libraries are loaded.

Matt

On 14 Dec 2020, at 14:08, Jan Halborg Jensen 
<jhjen...@chem.ku.dk<mailto:jhjen...@chem.ku.dk>> wrote:

My conda install script in Colab 
https://colab.research.google.com/drive/1cAuW02_9r3wFylijGP8rvOUa1-omVwpP?usp=sharing<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcolab.research.google.com%2Fdrive%2F1cAuW02_9r3wFylijGP8rvOUa1-omVwpP%3Fusp%3Dsharing&data=04%7C01%7Cjhjensen%40chem.ku.dk%7C687ed7fc874149a0056708d8a0565e0c%7Ca3927f91cda14696af898c9f1ceffa91%7C0%7C0%7C637435640993435031%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=MDzcQsn6Lwx%2B7pv3UHKw1CxIf94Rkz0SR3wdV399qD0%3D&reserved=0>
 stopped working with the last 1-2 days.

I now get the following error

ImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' 
not found (required by 
/usr/local/lib/python3.7/site-packages/rdkit/DataStructs/cDataStructs.so

Any tips or suggestions are appreciated

Best regards, Jan



_______________________________________________
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net<mailto:Rdkit-discuss@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss


_______________________________________________
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to