[BUG] gensim-related test failures on dev
bdpedigo opened this issue · comments
Ben Pedigo commented
Full Traceback
______________ ERROR collecting tests/preprocessing/graph_cuts.py ______________
tests/preprocessing/graph_cuts.py:10: in <module>
from graspologic.preprocessing import graph_cuts
graspologic/__init__.py:7: in <module>
import graspologic.embed
graspologic/embed/__init__.py:11: in <module>
from .n2v import node2vec_embed
graspologic/embed/n2v.py:11: in <module>
from gensim.models import Word2Vec
../../../hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/gensim/__init__.py:5: in <module>
from gensim import parsing, corpora, matutils, interfaces, models, similarities, summarization, utils # noqa:F401
../../../hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/gensim/corpora/__init__.py:6: in <module>
from .indexedcorpus import IndexedCorpus # noqa:F401 must appear before the other classes
../../../hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/gensim/corpora/indexedcorpus.py:15: in <module>
from gensim import interfaces, utils
../../../hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/gensim/interfaces.py:21: in <module>
from gensim import utils, matutils
../../../hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/gensim/matutils.py:1104: in <module>
from gensim._matutils import logsumexp, mean_absolute_difference, dirichlet_expectation
stringsource:105: in init gensim._matutils
???
E AttributeError: type object 'gensim._matutils.array' has no attribute '__reduce_cython__'
Getting the above error on unit-and-doc-test (macos-latest, 3.9)
https://github.com/microsoft/graspologic/runs/4982698923?check_suite_focus=true
(note that I say "on dev" because this is a PR that only changed docs)
Ben Pedigo commented
Ben Pedigo commented
p.s. just a thought but i wonder whether could be related to https://github.com/microsoft/graspologic/blob/a8048f1631f2f0676555cc3f04796bf6053a6496/setup.cfg#L32 and so version 3.x.x of gensim probably wouldnt keep up with changes to things like numpy etc.
Dax Pryce commented
Just noting that it's python 3.9.10 macos
Dax Pryce commented
- Installed Python 3.9.10 on MacOS
- Created and enabled fresh venv
- pip install -r requirements.txt
- make fast-test
- Success
- wait what
Dax Pryce commented
Telling CICD to rerun build too wtf
Dax Pryce commented