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

Error using fhmm_relaxed #1

Open
qingshuimonk opened this issue Nov 14, 2016 · 5 comments
Open

Error using fhmm_relaxed #1

qingshuimonk opened this issue Nov 14, 2016 · 5 comments

Comments

@qingshuimonk
Copy link

I got an error message when running fhmm_relaxed, it said:
Traceback (most recent call last): File "runLBM.py", line 5, in <module> from LatentBayesianMelding import fhmm_relaxed File "/usr/local/lib/python2.7/dist-packages/LatentBayesianMelding/fhmm_relaxed.py", line 12, in <module> import mosek.fusion File "/home/lab/.local/lib/python2.7/site-packages/mosek/__init__.py", line 323, in <module> raise ImportError('Failed to import dll "%s"' % __libname) ImportError: Failed to import dll "libmosekxx7_1.so"
I guess I've not installed mosek correctly. What I did was:

  1. As it is recommended in mosek's repo, I used "pip install --user https://github.com/MOSEK/Mosek.pip/archive/7.1.45.tar.gz"
  2. I put the license file in /home/usr/mosek folder
@MingjunZhong
Copy link
Owner

MingjunZhong commented Nov 15, 2016

@qingshuimonk I am not quite sure the problem, but it looks it is a similar problem with this.
If you use 32-bit Python, then you should use 32-bit MOSEK.

Make sure to store the license file in the right directory here

@qingshuimonk
Copy link
Author

I've tried to set PYTHONPATH as a space as suggested in here. I've checked that I'm using 64bit python now. I download MOSEK from their website and installed it followed by this document. All did not work.

Then I started thinking maybe I should do

pip install --user git+http://github.com/MOSEK/Mosek.pip

As suggested in their repo. But I got an error message said:

Collecting git+http://github.com/MOSEK/Mosek.pip
Cloning http://github.com/MOSEK/Mosek.pip to /tmp/pip-Atmcen-build
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-Atmcen-build/setup.py", line 37, in
raise VersionError('No version entry in PKG-INFO')
main.VersionError: No version entry in PKG-INFO
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-Atmcen-build/

Anyway, whatever the reason is, I guess this is not a problem in your repo. I appreciate your help and you can close it if you want.
I'll continue to play with it for some time : )

@MingjunZhong
Copy link
Owner

Instead of using pip, why not to download the package and then install it like here?
I am too busy by the end of next week - I will test it after then.

@MingjunZhong
Copy link
Owner

I did have no problems following the steps in this link. Just remember to put the license file to the correct directory.

@MingjunZhong
Copy link
Owner

I have updated all the source files, not you do not need the nilmtk. I also include the Mosek installation file, if you follow the instructions, you should be able to install and use it.

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

2 participants