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

ImportError: cannot import name 'build_dist_index' from 'pipdeptree' #6

Open
bradleyjames opened this issue Jul 7, 2021 · 3 comments · May be fixed by #7
Open

ImportError: cannot import name 'build_dist_index' from 'pipdeptree' #6

bradleyjames opened this issue Jul 7, 2021 · 3 comments · May be fixed by #7

Comments

@bradleyjames
Copy link

In a new venv I'm unable to run python-brewer successfully with python 3.9.6. With the example from the README I receive the following:

$ cd "$(mktemp -d)"
$ python3 -m venv venv
$ source venv/bin/activate
$ pip install python-brewer
$ pybrew \
    -n "Statik" \
    -d "Python-based, generic static web site generator aimed at developers" \
    -H https://getstatik.com \
    -g https://github.com/thanethomson/statik.git \
    -r https://github.com/thanethomson/statik/archive/v0.14.2.tar.gz \
    statik \
    statik.rb
Traceback (most recent call last):
  File "/usr/local/bin/pybrew", line 5, in <module>
    from pythonbrewer.cmdline import main
  File "/usr/local/lib/python3.9/site-packages/pythonbrewer/__init__.py", line 4, in <module>
    from pythonbrewer.deplist import *
  File "/usr/local/lib/python3.9/site-packages/pythonbrewer/deplist.py", line 6, in <module>
    from pipdeptree import build_dist_index, construct_tree, sorted_tree
ImportError: cannot import name 'build_dist_index' from 'pipdeptree' (/usr/local/lib/python3.9/site-packages/pipdeptree.py)
@shmygol shmygol linked a pull request Aug 15, 2021 that will close this issue
@shmygol
Copy link

shmygol commented Aug 15, 2021

It's an old project with the last commit in 2018. But if you're interested my MR solves an issue with the import error, caused by wrong dependency to pipdeptree.

@bradleyjames
Copy link
Author

@shmygol, thanks. Is there a project for python that is either more widely used or up to date? Most of the python homebrew tools I’ve found have one problem or another.

@swim2sun
Copy link

pip uninstall pipdeptree
pip install pipdeptree==0.9.0

works for me

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

Successfully merging a pull request may close this issue.

3 participants