Q:

Anaconda3 - AttributeError: 'dict' object has no attribute 'rsplit'

I am running Anaconda3 locally via web browser. Everytime I go to the "Conda" section to see the packages that are installed (at http://localhost:8888/tree#conda) I get An error occurred while retrieving installed packages. Internal Server Error.
Checking the logs, this is what is currently happening. Any ideas?
[E 13:53:08.195 NotebookApp] 500 GET /conda/environments/root?_=1484574786374 (127.0.0.1) 760.41ms referer=http://localhost:8888/tree?
[E 13:53:14.557 NotebookApp] Unhandled error in API request
    Traceback (most recent call last):
      File "/root/anaconda3/lib/python3.5/site-

    packages/notebook/base/handlers.py", line 503, in wrapper
            result = yield gen.maybe_future(method(self, *args, **kwargs))
          File "/root/anaconda3/lib/python3.5/site-packages/nb_conda/handlers.py", line 62, in get
            self.finish(json.dumps(self.env_manager.env_packages(env)))
          File "/root/anaconda3/lib/python3.5/site-packages/nb_conda/envmanager.py", line 124, in env_packages
            "packages": [pkg_info(package) for package in data]
          File "/root/anaconda3/lib/python3.5/site-packages/nb_conda/envmanager.py", line 124, in <listcomp>
            "packages": [pkg_info(package) for package in data]
          File "/root/anaconda3/lib/python3.5/site-packages/nb_conda/envmanager.py", line 16, in pkg_info
            name, version, build = s.rsplit('-', 2)
        AttributeError: 'dict' object has no attribute 'rsplit'
    [E 13:53:14.558 NotebookApp] {
          "Accept-Language": "en-US,en;q=0.8,es;q=0.6",
          "Connection": "keep-alive",
          "X-Requested-With": "XMLHttpRequest",
          "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36",
          "Accept-Encoding": "gzip, deflate, sdch, br",
          "Cookie": "_xsrf=2|0e84028c|becasdfafdssffjkafdsjkf473451bfcb|1484574343; username-localhost-8888=\"2|1:0|10:1484574347|23:username-localhost-8888|44:ODBlMWE5Mjk1MjRiNDNmNDhkZTVkNTU5MGI3NTNmNDQ=|83dad5a9e1aa2da460539882d41f5b3a7ac93163dab3b324526b730be88d7d69\"",
          "Referer": "http://localhost:8888/tree?",
          "Host": "localhost:8888",
          "Accept": "application/json, text/javascript, */*; q=0.01"
        }
    [E 13:53:14.559 NotebookApp] 500 GET /conda/environments/root?_=1484574792779 (127.0.0.1) 750.79ms referer=http://localhost:8888/tree?

A:

Maybe this should be a comment, but I don't have enough reputation for those.
This is a reported bug in nb_conda. The format of the output of conda's package info has changed and nb_conda has to be adapted. There already is a pull request that fixes this but I couldn't find the change in any channel.
Installing the branch including the fix helps for now:
pip install git+https://github.com/Anaconda-Platform/nb_conda.git@d488d9e --upgrade

The --upgrade is optional, I needed it because what I had installed had the same version.
Installing nb_conda_kernels (which might have pulled in nb_conda as a dependency) from the conda-forge channel as mentioned by motivic did not help in my case, but should work if the package there contains the fix.

