You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've seen some mismatch between the ploomber version and the one sagemaker has with Spacy, Spacy wouldn't get imported because of typer that wouldn't get imported because a dependency on click:
----> 1 import typer
~/anaconda3/envs/mxnet_latest_p37/lib/python3.7/site-packages/typer/init.py in
10 from click.termui import echo_via_pager as echo_via_pager
11 from click.termui import edit as edit
---> 12 from click.termui import get_terminal_size as get_terminal_size
13 from click.termui import getchar as getchar
14 from click.termui import launch as launch
ImportError: cannot import name 'get_terminal_size' from 'click.termui' (/home/ec2-user/anaconda3/envs/mxnet_latest_p37/lib/python3.7/site-packages/click/termui.py)
The text was updated successfully, but these errors were encountered:
Based on what we've seen this is what I think it's happening:
User installs a bunch of packages, and some of them are not compatible with recent versions of click
Using an old version of click breaks ploomber because the package_name argument was added recently
They end up with broken environments: they either break some other libraries or ploomber
The solution is to make Ploomber compatible with as many versions as we can, looks like by removing the call to package_name things will work. It's fairly easy to fix, I'll take this
We've seen some mismatch between the ploomber version and the one sagemaker has with Spacy, Spacy wouldn't get imported because of typer that wouldn't get imported because a dependency on click:
----> 1 import typer
~/anaconda3/envs/mxnet_latest_p37/lib/python3.7/site-packages/typer/init.py in
10 from click.termui import echo_via_pager as echo_via_pager
11 from click.termui import edit as edit
---> 12 from click.termui import get_terminal_size as get_terminal_size
13 from click.termui import getchar as getchar
14 from click.termui import launch as launch
ImportError: cannot import name 'get_terminal_size' from 'click.termui' (/home/ec2-user/anaconda3/envs/mxnet_latest_p37/lib/python3.7/site-packages/click/termui.py)
The text was updated successfully, but these errors were encountered: