mcs07 / ChemDataExtractor

Automatically extract chemical information from scientific documents
http://chemdataextractor.org
MIT License
287 stars 112 forks source link

Upgrade to Python > 3.6? #35

Open giordan12 opened 3 years ago

giordan12 commented 3 years ago

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?

maddenfederico commented 3 years ago

I've used it on 3.8. It works

giordan12 commented 3 years ago

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

maddenfederico commented 3 years ago

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

shailavij commented 3 years ago

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

aspitarl commented 2 years ago

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.