UserWarning: Module dap was already imported from None …

When importing certain modules from matlibplot such as matplotlib.animation, you may get the following warning message:

UserWarning: Module dap was already imported from None, but /usr/lib/python2.7/dist-packages is being added to sys.path __import__(‘pkg_resources’).declare_namespace(__name__)

Method to remove the warning:
Add dap as the first line in file /usr/lib/python2.7/dist-packages/dap-2.2.6.7.egg-info/namespace_packages.txt

But it’s not an official solution, no guarantee can be made that this change does not break other things.

This entry was posted in Uncategorized and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *