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

click >=8 possibly not compatible #4

Closed
jsphweid opened this issue Jun 12, 2021 · 1 comment
Closed

click >=8 possibly not compatible #4

jsphweid opened this issue Jun 12, 2021 · 1 comment

Comments

@jsphweid
Copy link

Couldn't run the dashboard initially

Traceback (most recent call last):
  File "/Users/me/Desktop/pytorch-mnist/venv/bin/torchserve-dashboard", line 8, in <module>
    sys.exit(main())
  File "/Users/me/Desktop/pytorch-mnist/venv/lib/python3.8/site-packages/click/core.py", line 1137, in __call__
    return self.main(*args, **kwargs)
  File "/Users/me/Desktop/pytorch-mnist/venv/lib/python3.8/site-packages/click/core.py", line 1062, in main
    rv = self.invoke(ctx)
  File "/Users/me/Desktop/pytorch-mnist/venv/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/me/Desktop/pytorch-mnist/venv/lib/python3.8/site-packages/click/core.py", line 763, in invoke
    return __callback(*args, **kwargs)
  File "/Users/me/Desktop/pytorch-mnist/venv/lib/python3.8/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/Users/me/Desktop/pytorch-mnist/venv/lib/python3.8/site-packages/torchserve_dashboard/cli.py", line 16, in main
    ctx.forward(streamlit.cli.main_run, target=filename, args=args, *kwargs)
  File "/Users/me/Desktop/pytorch-mnist/venv/lib/python3.8/site-packages/click/core.py", line 784, in forward
    return __self.invoke(__cmd, *args, **kwargs)
  File "/Users/me/Desktop/pytorch-mnist/venv/lib/python3.8/site-packages/click/core.py", line 763, in invoke
    return __callback(*args, **kwargs)
TypeError: main_run() got multiple values for argument 'target'

After a bit of googling, I found this: rytilahti/python-eq3bt#30

The default install brought in click==8.0.1. I had to downgrade to 7.1.2 to get past the error.

@cceyda
Copy link
Owner

cceyda commented Jun 12, 2021

Thank you for reporting on this 👍
I have pinned click<8.0,>=7.0 version and did a new release v0.3.3.
I really should learn more about python packaging / dependency management 😅
I will do another release for torchserve 0.4 tomorrow after I test it out a bit more. If you want to wait.

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