Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conda tab gives an error - AttributeError: 'dict' object has no attribute 'rsplit' #46

Closed
ink1 opened this issue Mar 4, 2017 · 2 comments

Comments

@ink1
Copy link

ink1 commented Mar 4, 2017

I get this error when starting Jupyter notebook and clicking on Conda tab in the browser:

[E 15:14:49.783 NotebookApp] Unhandled error in API request
...
File "/XXX/lib/python3.5/site-packages/nb_conda/envmanager.py", line 17, in pkg_info
name, version, build = s.rsplit('-', 2)
AttributeError: 'dict' object has no attribute 'rsplit'

Replacing the problematic line with
name, version, build = s["dist_name"].rsplit('-', 2)
fixes the issue but I'm not sure how or whether the grand scheme of things is affected.

Clearly function pkg_info expects a string but env_packages passes a dictionary.
Conda list returns effectively a list of dictionaries and there seems to be confusion about processing this list.
This is using
conda 4.3.13
nb_conda 2.0.0 py35_0

The current version of envmanager.py seems identical to v 2.0

@damianavila
Copy link
Contributor

Already reported here: #39

@damianavila
Copy link
Contributor

Closing in favor of #39, so we have just one issue describing the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants