Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

nnictl --version does not work with make dev-install #709

Closed
QuanluZhang opened this issue Feb 2, 2019 · 4 comments
Closed

nnictl --version does not work with make dev-install #709

QuanluZhang opened this issue Feb 2, 2019 · 4 comments
Labels
bug Something isn't working investigation nnidev

Comments

@QuanluZhang
Copy link
Contributor

In make dev-install, nni python package is not installed (using sym link instead), thus, nnictl --version cannot find nni's version.

@leckie-chn
Copy link
Contributor

new observation: after make dev-install using nnictl --verison:

nnictl --version

Traceback (most recent call last):

  File "/home/yann/.local/bin/nnictl", line 11, in <module>

    load_entry_point('nni', 'console_scripts', 'nnictl')()

  File "/home/yann/.local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 480, in load_entry_point

    return get_distribution(dist).load_entry_point(group, name)

  File "/home/yann/.local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2691, in load_entry_point

    return ep.load()

  File "/home/yann/.local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2322, in load

    return self.resolve()

  File "/home/yann/.local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2328, in resolve

    module = __import__(self.module_name, fromlist=['__name__'], level=0)

ImportError: No module named 'nni_cmd'

@leckie-chn
Copy link
Contributor

seems related to this pypi issue: pypa/pip#3160

@leelaylay
Copy link
Contributor

leelaylay commented Apr 3, 2019

The master branch has not fixed it yet. I met the same problem just now.
I solve this problem by reinstall nni-tool by myself.

@QuanluZhang
Copy link
Contributor Author

will resolve this issue in v0.7

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working investigation nnidev
Projects
None yet
Development

No branches or pull requests

7 participants