ExaScience / smurff

Bayesian Factorization with Side Information in C++ with Python wrapper
MIT License
70 stars 14 forks source link

installation of smurff with conda #130

Closed FanwangM closed 3 years ago

FanwangM commented 3 years ago

Thanks for building this interesting and useful package!

I am trying to use it for my research. However, I got some problems when trying to install it in the cluster.

As the system is complaining the whl is not supported, I switched to conda. However, after installed with conda, I got an error with importing the package. I was using python 3.8.5.

>>> import smurff
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'smurff'

I also tried with python=3.7.9 with conda, but it installed 0.14 version instead of 0.16 one.

Any suggestion would be apprecriated. Thank you! @tvandera

tvandera commented 3 years ago

I'll have a look!

tvandera commented 3 years ago

Hello @fwmeng88

I've just tried on linux and MacOS, to install smurff=0.16 using conda, and it seems to work for me.

Can you provide more details: the commands you issued, an error message, the system you used?

Thanks, Tom

FanwangM commented 3 years ago

Dear Tom. Sorry for the late reply. I used conda install -c vanderaa smurff to install the package in the cluster. The operating system information is

LSB Version:    n/a
Distributor ID: CentOS
Description:    CentOS Linux release 7.8.2003 (Core)
Release:    7.8.2003
Codename:   Core

You can ignore the problem for now as I have figured a way of compiling smurff in the cluster. Tons of thanks. @tvandera

tvandera commented 3 years ago

I will also try on Centos 7.8.2003 and let you know. If you can, can you send me your error from conda install -c vanderaa smurff on CentOS?

FanwangM commented 3 years ago

There is no error information with conda install -c vanderaa smurff, but when I tried to import smurff, the error shows,

>>> import smurff
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'smurff'

Thanks for following up on the issuse.

tvandera commented 3 years ago

Did you activate the environment?

FanwangM commented 3 years ago

Yes. I activated my virtual environment before using conda to install smurff.