Closed jluttine closed 7 years ago
Ok, I had to install lsof
, that fixed the second failure. The first failure is still open.
Installing geoip
Python package didn't help.
Oh, actually I installed some geoip system package, not the Python package. Installing the Python package probably solves this. I'll try that and then close this issue if it works.
Yep, installing GeoIP
Python package fixed the issue.
Did you install the "dev" extra? I think that would have covered GeoIP. That is pip install --editable .[dev]
Could I change the documentation somewhere to make this more-obvious?
From my point of view, the confusion came from that it didn't raise an import error but just told a weird FailTest: 'NoneType' != 'GeoIP'
error. I understand that GeoIP is optional and in the code it's tried to import but if not found, then set to None. Perhaps, this test could do import GeoIP
before anything else so that the test would raise an import error, which is much more informative?
From documentation point of view, dev-requirements.txt
is a good place to have this information, and it's there. From the error, I didn't first realize that I could be just missing some dependency.
I'm running the test suite with pytest and two tests fail. Any ideas what could be wrong: