Coder Social home page Coder Social logo

Failure to install on Python3.8 about fastfm HOT 8 OPEN

ogencoglu avatar ogencoglu commented on June 21, 2024
Failure to install on Python3.8

from fastfm.

Comments (8)

QFireball avatar QFireball commented on June 21, 2024 8

INSTALL MANUAL FOR UBUNTU WITH MODERN PYTHON 3.8:

I would like to share solution the same problem in Ubuntu 20.04.1 (x64) and python 3.8.5, DELL notebook. OS is installed on VirtualBox 6.1.18 on Windows 10 (host-OS). I spent 2 days for it. Maybe someone will save his/her time. And thanks to @mohelm for his comment above, but it worked not completelly. And I have NOT-Mac computer. pip install still doesn't work.

I built fastFM from sources.

  1. cd folder where to download git sources from git.
  2. git clone --recursive http://github.com/ibayer/fastFM.git .
  3. make TARGET=NEHALEM

Library should be built completely without errors.

Install it:

python setup.py install
Library now should be installed without errors.

Restart service Jupyter notebook if it was working. I had an error if I import lib after installation immediatelly.

Now, I can see fastFM in list pip list | grep fastFM

You can use it in python code:

import fastFM

Good luck!

from fastfm.

ibayer avatar ibayer commented on June 21, 2024 2

@ogencoglu

Thanks for the feedback 3.8 is currently not supported. We are working on a complete rewrite which will bring 3.8 support and much more.

from fastfm.

mohelm avatar mohelm commented on June 21, 2024 1

@ibayer : many thanks for your reply. it is very commendable that you devote your resources towards helping with the covid19 issue. Thanks!

regarding fastFM: yes, I actually got it to work with Python 3.8 (on macOS Catalina) using the following "installation scipt".

git clone --recursive https://github.com/ibayer/fastFM.git <destination>
cd <destination>/fastFM
make TARGET=HASWELL
cd - # Back to actual project
poetry run pip install <destination>/fastFM

I then also have simply "current" versions of the dependencies (cython, scipy etc.) in the actual project. However, I do not manage to install it via pip install fastFM, so it is not particularly beautiful (also with a view on CI/CD pipelines), and I am very much interested in a version that would work with pip.

Regarding the beta that would be fantastic. Maybe I could also provide some help in the form of feedback etc then.

Thanks again and all the best
Moritz

from fastfm.

mohelm avatar mohelm commented on June 21, 2024

@ibayer

first, many thanks for the cool library

do you know for when the rewrite you mean is targeted? thx!

from fastfm.

ibayer avatar ibayer commented on June 21, 2024

@mohelm We made good progress but currently all free resources go into a public service covid19 related project. Feel free to ping me again in a few week, I should know more by then.

What features are you specific looking for, is it just the 3.8 support? We considering to release a limited beta version to shorten the time to the full release a bit.

from fastfm.

zychen423 avatar zychen423 commented on June 21, 2024

Hi,

I am facing a similar issue and methods above cannot solve my problem.

I try to install fastFM on an M1 mac with python3.8 but fail. Although following methods to make and install from source can install fastFM successfully, I found the following error when I run the code:

AttributeError: module 'ffm' has no attribute 'ffm_als_fit'

Does anyone managed to get it work on m1 with python 3.8?

from fastfm.

louisabraham avatar louisabraham commented on June 21, 2024

@zychen423 how were you able to compile? When running make on macOS m1, I get make[3]: *** No rule to make target ../kernel/arm64/amin.S', needed by samin_k.o'. Stop.

from fastfm.

harshvardhaniimi avatar harshvardhaniimi commented on June 21, 2024

Any updates on this? Would love to see a version for Python 3.9+ as well.

from fastfm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.