import gensim error. Uses triu function from scipy.linalg which is deprecated
KMS07 opened this issue · 7 comments
Problem description
When importing gensim there is a inner dependency error with triu function of scipy.linalg as its deprecated.
Im trying to execute this from zeugma import EmbeddingTransformer
which raises the error of triu. Could you provide a way out
@piskvorky Yeah, let's get this thing out the door. Can you set up a meeting on a JST weeknight (other than Monday or Wednesday)?
Another consideration: numpy-2.0 with potentially-breaking changes is coming June 16: https://numpy.org/news/#numpy-20-release-date-june-16
Setting up a CI build/test that pulls numpy==2.0.0rc2
may tell us lots of things needing small tweaks. Given the ABI changes, it may not be possible for the same wheels to support numpy<2.0 and numpy>=2.0 – I'm not sure.
If a Gensim-4.3.3 with small fixes, including this scipy fix, is imminent, it may make sense to have 4.3.3's declared requirements pin numpy before 2.0
until a Gensim-4.4(?) that works with (& maybe even requires?) numpy-2.0 might give some extra options for coaching users to the right working release.
while this problem is solved which gensim installation recommended? if I use the latest version I can not properly import the functions without receiving this error
@AlessioBolpagni98 Use an older scipy install. See the discussion in #3525 for details.