Why do I get “UserWarning: Module dap was already imported from None …”

前端 未结 3 2443
挽巷
挽巷 2021-02-19 19:14

I have python-matplotlib and python-mpltoolkits.basemap installed from Ubuntu packages. Installing python-mpltoolkits.basemap also install

3条回答
  •  轮回少年
    2021-02-19 19:32

    I can't really say that I'd understand the details, but apparently whenever the package python-dap is installed, then trying to import pkg_resources gives this warning. Here is some discussion.

    Following advice from here (comment 29 at the end of the page), I added dap as the first line in file /usr/lib/python2.7/dist-packages/dap-2.2.6.7.egg-info/namespace_packages.txt and get no more warnings. Hope this does not break anything.

提交回复
热议问题