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

Hrnet is broke, here is the fix #4900

Closed
IuliuNovac opened this issue Sep 3, 2022 · 1 comment
Closed

Hrnet is broke, here is the fix #4900

IuliuNovac opened this issue Sep 3, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@IuliuNovac
Copy link

IuliuNovac commented Sep 3, 2022

The issue is that ubuntu 20.04 or software-properties-common comes with python 2.7. However, you use python3 for installation and then have python execution in nuclio. The links are broken, and instead of running python 3, it executes with python 2.

I have solved the issues by removing python, followed by installation and linking it as it's done in detron2/retinanet (the only one which works with GPU)

I am too lazy to make a commit, but here is the fix as it is, as I had to go to sleep two hours ago.

Replace this:


        - kind: RUN
          value: add-apt-repository ppa:deadsnakes/ppa
        - kind: RUN
          value: apt-get update && apt-get install -y --no-install-recommends build-essential git curl libglib2.0-0 software-properties-common python3 python3.6-dev python3-pip python3-tk
        - kind: RUN

With this:

        - kind: RUN
          value: add-apt-repository ppa:deadsnakes/ppa
        - kind: RUN
          value: apt remove python* -y
        - kind: RUN
          value: apt-get update && apt-get install -y --no-install-recommends build-essential git curl libglib2.0-0 software-properties-common python3 python3.6-dev python3-pip python3-tk
        - kind: RUN
          value: ln -s /usr/bin/pip3 /usr/local/bin/pip && ln -s /usr/bin/python3 /usr/bin/python

This worked for me, so you should check the bug yourself prior to taking my words for granted since it could be some issues specific to my machine.

@bsekachev bsekachev added the bug Something isn't working label Sep 15, 2022
@yasakova-anastasia
Copy link
Contributor

yasakova-anastasia commented Oct 20, 2022

It's been fixed by #4944

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

No branches or pull requests

3 participants