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

google-colab 1.0.0 has requirement ipykernel~=4.10 #28

Open
woctezuma opened this issue Dec 9, 2020 · 1 comment
Open

google-colab 1.0.0 has requirement ipykernel~=4.10 #28

woctezuma opened this issue Dec 9, 2020 · 1 comment

Comments

@woctezuma
Copy link

woctezuma commented Dec 9, 2020

Thank you for the PYPI module.

For information, people using Google Colab have to restart their runtime after they pip install the module.

ERROR: google-colab 1.0.0 has requirement ipykernel~=4.10, but you'll have ipykernel 5.3.4 which is incompatible.
WARNING: Upgrading ipython, ipykernel, tornado, prompt-toolkit or pyzmq can
cause your runtime to repeatedly crash or behave in unexpected ways and is not
recommended. If your runtime won't connect or execute code, you can reset it
with "Factory reset runtime" from the "Runtime" menu.
WARNING: The following packages were previously imported in this runtime:
  [ipykernel]
You must restart the runtime in order to use newly installed versions.

This happens because of the requirements of streamlit.

pydeck>=0.1.dev5->streamlit->retinaface_pytorch) (4.3.3)
Collecting ipykernel>=5.1.2; python_version >= "3.4"
  Downloading https://files.pythonhosted.org/packages/52/19/[...]/ipykernel-5.3.4-py3-none-any.whl (120kB)
     |████████████████████████████████| 122kB 54.6MB/s 

If I run pip install streamlit, I can see the following, which confirms my suspicion:

Requirement already satisfied: ipykernel>=5.1.2; python_version >= "3.4"
in /usr/local/lib/python3.6/dist-packages (from pydeck>=0.1.dev5->streamlit) (5.3.4)

I wonder if it would be possible to downgrade the version of ipykernel or remove the streamlit requirement altogether.

@woctezuma
Copy link
Author

woctezuma commented Dec 9, 2020

Alright, I guess this is due to:

https://github.com/ternaus/retinaface/pull/18/commits

You might need to upload another build to PYPI without the streamlit requirement, after this commit from November:

commit

62647d3#diff-4d7c51b1efe9043e44439a949dfd92e5827321b34082903477fd04876edb7552

which I found thanks to the history of requirements.txt:

https://github.com/ternaus/retinaface/commits/master/requirements.txt

As you can see the build on PYPI is from August:

PYPI build

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

1 participant