Python setuptools: __init__.py does not call declare_namespace() -
i trying install zope2.zodbbrowser 0.2 bundle (https://pypi.python.org/pypi/zope2.zodbbrowser/0.2). setup script fails next error:
namespace bundle problem: zope2 namespace package, __init__.py not phone call declare_namespace()! please prepare it. (see setuptools manual under "namespace packages" details.)
the relevant section in manual seems 1 here: https://pythonhosted.org/setuptools/setuptools.html#namespace-packages
however, not familiar internals of setuptools , not resolve problem help of manual. how can resolve namespace problem install package?
for reference, source code of ~/zodbbrowser/src/zope2.zodbbrowser/zope2/__ init__.py is:
# namespace bundle try: import pkg_resources pkg_resources.declare_namespace(__name__) except importerror: import pkgutil __path__ = pkgutil.extend_path(__path__, __name__)
python setuptools zope zodb
I really enjoy the blog article.Much thanks again.
ReplyDeleteonline training in python
online training on python