AbdealiJK created this task.
Herald added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  I use pyenv to manager multiple python versions on my computer.
  
  I was trying to run tests using `nosetests -v tests.proofreadpage_tests` and 
I noticed that the tests failed because `bs4` was not found.
  
  I checked this out, and `bs4` was in fact installed in my pyenv's python 
(`~/.pyenv/.versions/2.7.11`), but not in my system python 
(`/usr/local/lib/python2.7`). When running the `python` shell I can import and 
use `bs4` from pyenv.
  After installing `bs4` in my system python, the tests were not skipped 
anymore.
  
  I checked the `sys.path` inside a test and didn't find the `.pyenv` folder 
which is added in my bashrc with:
  
    export PYENV_ROOT="$HOME/.pyenv"
    export PATH="$PYENV_ROOT/bin:$PATH"
  
  It seems as though the tests (or atleast when running them with `nosetests`) 
doesn't use my `.bashrc`'s `PATH`.
  
  Is this expected behaviour ? How do I use pyenv to run the tests ?

TASK DETAIL
  https://phabricator.wikimedia.org/T129971

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: AbdealiJK
Cc: Aklapper, pywikibot-bugs-list, AbdealiJK, jayvdb



_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to