Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import error ImportError: No module named lib.sparseResp.LibSparseResp #22

Open
cyriltw opened this issue Apr 24, 2019 · 3 comments
Open

Comments

@cyriltw
Copy link

cyriltw commented Apr 24, 2019

Installation is completed but when I try to import bnpy I get this error. I'm on Python 2.7, any idea what is the issue for it and how to fix it?

>>> import bnpy Traceback (most recent call last): File "<stdin>", line 1, in <module> File "bnpy/__init__.py", line 20, in <module> import allocmodel File "bnpy/allocmodel/__init__.py", line 7, in <module> from topics.FiniteTopicModel import FiniteTopicModel File "bnpy/allocmodel/topics/FiniteTopicModel.py", line 3, in <module> import LocalStepManyDocs File "bnpy/allocmodel/topics/LocalStepManyDocs.py", line 15, in <module> from bnpy.util.lib.sparseResp.LibSparseResp \ ImportError: No module named lib.sparseResp.LibSparseResp

@ameya98
Copy link

ameya98 commented Jul 1, 2019

I'm having a lot of issues on 2.7 as well.

  • Had to downgrade munkres to v1.0.12. The current version 1.1.2 causes a SyntaxError on execution.
  • After this, when running the HMM example:
python -m bnpy.Run temp/test.csv HDPHMM DiagGauss memoVB --K 8

I get AttributeError: 'XData' object has no attribute 'nDoc'.

@michaelchughes
Copy link
Contributor

michaelchughes commented Jul 3, 2019 via email

@cyriltw
Copy link
Author

cyriltw commented Oct 6, 2019

Another issue is,
PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
This just causes the entire thing to crash on my end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants