ChemDataExtractor icon indicating copy to clipboard operation
ChemDataExtractor copied to clipboard

Upgrade to Python > 3.6?

Open giordan12 opened this issue 4 years ago • 5 comments

I know this package has not been updated for some time; however, is there any way how we can install it in more recent python versions?

giordan12 avatar Jan 05 '21 15:01 giordan12

I've used it on 3.8. It works

maddenfederico avatar Jan 08 '21 22:01 maddenfederico

Thanks for the tip! How did you make that happen? I couldn't get it to work via pip

giordan12 avatar Jan 12 '21 04:01 giordan12

Nothing in particular, it just worked (with one or two fixes, maybe). You can try my fork if you want

maddenfederico avatar Jan 17 '21 05:01 maddenfederico

I have installed this package via pip install in Python 3.8.3, Then In order to function, ChemDataExtractor requires a variety of data files, such as machine learning models, word cluster . Run below command in Anaconda prompt -> cde data download.
It works fine for me

shailavij avatar May 09 '21 18:05 shailavij

Hi, I made some quick fixes to get the code to work on python 3.10. See the commit message for more details.

https://github.com/aspitarl/ChemDataExtractor

I'm not making a pull request as I just got the code working quickly without testing. Also the major problem was some of the dependencies (DAWG and python-crfsuite) are not compatible, but it appears that those will be patched soon anyway.

The other fix is just replacing collections -> collections.abc for the applicable classes.

aspitarl avatar Mar 06 '22 19:03 aspitarl