Closed rbval closed 6 years ago
@rbval I was getting the same error. My problem was that pytest was not installed in the same virtualenv. what does which py.test
say for you?
Populus Version: -e git+https://github.com/ethereum/populus#egg=populus (fresh install throws the force_text error
If you install from current master then this issue should be resolved.
@voith
which py.test
gives me /usr/local/bin/py.test
Going for pip install py.test
in the virtualenv throws the following error: ValueError: please use 'pytest' pypi package instead of 'py.test'
However if I do: pip install pytest
it gives Requirement already satisfied
to everything. How did you solve this in the virtualenv @voith ?
/usr/local/bin/py.test
You're facing the same problem that I was facing. It tells you that pytest is being picked from your global path.
pip install py.test
the .
in pytest is not longer needed. pip install pytest
will do.
Also, I had to deactivate and re-active the virtualenv
to make sure that it is picking pytest
from the correct path (virtualenv).
Closing this as it is not a bug in populus
, but feel free to continue the discussion.
Alright, the activate + deactivate seemed to work, weird. How would that be handle in a Dockerfile for example?
-e git+https://github.com/ethereum/populus#egg=populus
(fresh install throws theforce_text
error)What was wrong?
py.test tests/
step doesn't work with a fresh env.Setup
Last step was suggested by @voith in https://github.com/ethereum/populus/issues/450
Run
Output
Cute Animal Picture