question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi, trying the use this wrapper and I am getting the error

OSError                                   Traceback (most recent call last)
<ipython-input-1-6bd4815fa3b6> in <module>()
     16 target = [5, 3, 1, 4, 5, 1, 5]
     17 
---> 18 fm = pywFM.FM(task='regression', num_iter=5)
     19 
     20 # split features and target for train/test

/usr/local/lib/python3.5/dist-packages/pywFM/__init__.py in __init__(self, task, num_iter, init_stdev, k0, k1, k2, learning_method, learn_rate, r0_regularization, r1_regularization, r2_regularization, rlog, verbose, silent, temp_path)
    103         self.__libfm_path = os.environ.get('LIBFM_PATH')
    104         if self.__libfm_path is None:
--> 105             raise OSError("`LIBFM_PATH` is not set. Please install libFM and set the path variable (https://github.com/jfloff/pywFM#installing).")
    106 
    107     def run(self, x_train, y_train, x_test, y_test, x_validation_set=None, y_validation_set=None):

OSError: `LIBFM_PATH` is not set. Please install libFM and set the path variable (https://github.com/jfloff/pywFM#installing).

I followed the install instructions exactly, specifically making sure I did the export path part correctly. What might be going wrong here?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
anuragsoni9commented, Feb 1, 2018

environmental varibales can be setup from Jupyter via following

import sys,os,os.path

os.environ[‘LIBFM_PATH’]=os.path.expanduser(‘your bin path’)

1reaction
jfloffcommented, Oct 5, 2016

Well, that’s environment vars 101: if you want to set you variables permanently you have to set them in the appropriate .profile file

Cheers!

Read more comments on GitHub >

github_iconTop Results From Across the Web

11 Ways to Fix "The System Cannot Find The Path Specified ...
11 Ways to Fix "The System Cannot Find The Path Specified" Error on Windows · 1. Run Command Prompt as an Administrator ·...
Read more >
bootstrap class path not set - Stack Overflow
So I am getting- warning: [options] bootstrap class path not set in conjunction with -source 1.6.
Read more >
How do I set or change the PATH system variable? - Java
From the desktop, right click the Computer icon. Choose Properties from the context menu. Click the Advanced system settings link. Click Environment Variables....
Read more >
PATH and CLASSPATH (The Java™ Tutorials > Essential ...
This Java tutorial describes exceptions, basic input/output, concurrency, regular expressions, and the platform environment.
Read more >
path is not set correctly when opening solution file from ...
When opening a solution file (an .sln file) from command line, the path in VS does not take the path in the command...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found