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.

Vowpal Wabbit failing import

See original GitHub issue
import vowpalwabbit # nothing happens
from vowpalwabbit import pyvw  #fails
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-10-76d9c58cae1b> in <module>()
----> 1 from vowpalwabbit import pyvw

/opt/conda/lib/python3.6/site-packages/vowpalwabbit/pyvw.py in <module>()
      1 from __future__ import division
----> 2 import pylibvw
      3 
      4 
      5 class SearchTask():

ImportError: dynamic module does not define module export function (PyInit_pylibvw)
from vowpalwabbit.sklearn_vw import VWClassifier # fails
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-11-14a6a5c77f64> in <module>()
----> 1 from vowpalwabbit.sklearn_vw import VWClassifier

/opt/conda/lib/python3.6/site-packages/vowpalwabbit/sklearn_vw.py in <module>()
     16 from sklearn.utils.validation import check_is_fitted
     17 from sklearn.externals import joblib
---> 18 from vowpalwabbit import pyvw
     19 
     20 

/opt/conda/lib/python3.6/site-packages/vowpalwabbit/pyvw.py in <module>()
      1 from __future__ import division
----> 2 import pylibvw
      3 
      4 
      5 class SearchTask():

ImportError: dynamic module does not define module export function (PyInit_pylibvw)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
mlisovyicommented, Jul 8, 2018

Just added the first VW kernel on the Titanic dataset, and it runs smooth: https://www.kaggle.com/mlisovyi/vowpal-wabbit-decides-who-lives-and-who-dies. I guess, this issue can be closed now

1reaction
sebbovcommented, May 11, 2018

I also just updated the README.md with the build / test instructions. Thanks for letting me know if that covers it and works for you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python Basics — VowpalWabbit latest documentation
First, import the Vowpal Wabbit Python package for this tutorial: ... To learn how to approach a contextual bandits problem using Vowpal Wabbit...
Read more >
VowpalWabbit 9.1.0 documentation
from vowpalwabbit import Workspace, Example workspace ... class vowpalwabbit. ... Add an unhashed feature to the current namespace (fails if setup has ...
Read more >
VowpalWabbit 9.0.0 Release Notes
VW will now treat failure to open an input file as an error, ... DFtoVW import DFtoVW # Change to -> from vowpalwabbit.dftovw...
Read more >
Python Basics — VowpalWabbit latest documentation
One we've imported vowpalwabbit , we can initialize VW either by passing a command line string (e.g., "--quiet -q ab --l2 0.01" )...
Read more >
vowpalwabbit.pyvw
from vowpalwabbit import Workspace, PredictionType >>> vw ... Add an unhashed feature to the current namespace (fails if setup has already run on...
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