Lightning: ModuleNotFoundError: No module named 'pytest'

Created on 20 Oct 2018  路  3Comments  路  Source: ElementsProject/lightning

I don't think this is directly caused by c-lightning but since I get this error on two independent machines, I thought to let you know.

user@hostname:~/lightning$ ./configure
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'pytest'
Compiling ccan/tools/configurator/configurator...done
Making autoconf users comfortable... yes
[...]
Setting PYTEST...
user@hostname:~/lightning$

Can reproduce this behavior on a Ubuntu 18.04 and a freshly installed 18.10 machine.
Any ideas?

Most helpful comment

Your python installation does not have pytest.py installed as a module.
If you a running python 2 then:
pip install pytest ( or _pip --user install pytest_ if you are running as root )
if python3 then:
pip3 install pytest ( or _pip3 --user install pytest_ if you are running as root )

arm

All 3 comments

Your python installation does not have pytest.py installed as a module.
If you a running python 2 then:
pip install pytest ( or _pip --user install pytest_ if you are running as root )
if python3 then:
pip3 install pytest ( or _pip3 --user install pytest_ if you are running as root )

arm

Thank you. installing pip3 pytest helps, also #2187

thankyou for the help.... it works

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brunoaduarte picture brunoaduarte  路  5Comments

brunoaduarte picture brunoaduarte  路  5Comments

brunoaduarte picture brunoaduarte  路  4Comments

ZsZolee picture ZsZolee  路  5Comments

igreshev picture igreshev  路  4Comments