We are using branca in our application (ClimMob). We just integrated Pytest for our app and we are getting the below error while pytest collects the tests.
climmob/products/datacollectionprogress/celerytasks.py:9: in <module>
import folium
<frozen importlib._bootstrap>:991: in _find_and_load
???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:671: in _load_unlocked
???
../env_py3ClimMob/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:170: in exec_module
exec(co, module.__dict__)
../env_py3ClimMob/lib/python3.8/site-packages/folium/__init__.py:5: in <module>
import branca
<frozen importlib._bootstrap>:991: in _find_and_load
???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:671: in _load_unlocked
???
../env_py3ClimMob/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:170: in exec_module
exec(co, module.__dict__)
../env_py3ClimMob/lib/python3.8/site-packages/branca/__init__.py:1: in <module>
import branca.colormap as colormap
<frozen importlib._bootstrap>:991: in _find_and_load
???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:671: in _load_unlocked
???
../env_py3ClimMob/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:170: in exec_module
exec(co, module.__dict__)
../env_py3ClimMob/lib/python3.8/site-packages/branca/colormap.py:62: in <module>
class ColorMap(MacroElement):
../env_py3ClimMob/lib/python3.8/site-packages/branca/colormap.py:74: in ColorMap
_template = ENV.get_template('color_scale.js')
../env_py3ClimMob/lib/python3.8/site-packages/jinja2/environment.py:883: in get_template
return self._load_template(name, self.make_globals(globals))
../env_py3ClimMob/lib/python3.8/site-packages/jinja2/environment.py:857: in _load_template
template = self.loader.load(self, name, globals)
../env_py3ClimMob/lib/python3.8/site-packages/jinja2/loaders.py:115: in load
source, filename, uptodate = self.get_source(environment, name)
../env_py3ClimMob/lib/python3.8/site-packages/jinja2/loaders.py:248: in get_source
if not self.provider.has_resource(p):
../env_py3ClimMob/lib/python3.8/site-packages/pkg_resources/__init__.py:1404: in has_resource
return self._has(self._fn(self.module_path, resource_name))
../env_py3ClimMob/lib/python3.8/site-packages/pkg_resources/__init__.py:1472: in _has
raise NotImplementedError(
E NotImplementedError: Can't perform this operation for unregistered loader type
We are using branca in our application (ClimMob). We just integrated Pytest for our app and we are getting the below error while pytest collects the tests.
Any idea is appreciated.