PathwayCommons / pathway-abstract-classifier

A tool to classify journal abstracts with pathway content.
MIT License
0 stars 1 forks source link

Use Poetry #25

Closed jvwong closed 2 years ago

jvwong commented 2 years ago

Use Poetry for packaging and dependency management

Mine as well do this while a some of it is fresh in my mind.

jvwong commented 2 years ago

Re: ktrain

Looks like many complaints about (Poetry) trying to figure out dependencies:

https://github.com/python-poetry/poetry/issues/4924#issuecomment-1046290020

jvwong commented 2 years ago

From https://github.com/python-poetry/poetry/issues/5121#issuecomment-1096700735, looks like newer versions of numpy/pandas which ktrain uses are causing all these headaches.

Solved it with futzing with the python versions.

jvwong commented 2 years ago

For whatever reason, poetry add on Ubuntu works but fails on MacOS BigSur, as has been noted elsewhere for install.

e.g. poetry add tensorflow-gpu complains it can't find such a package.