Problems running from source

arthur's Avatar

arthur

22 Jan, 2020 01:57 AM

This comment was split from the discussion: Anki 2.1.20: Updates to card template rendering

Thank you very much for taking this into consideration.

I've already received three bugs report related to beta. So I think that
updating the add-on is already going to take work, and it's far better
if I can simply concentrate on the new version.

Sadly, I have never been able to start github's beta on my computer
(ubuntu), which means I can't debug those add-on immediately.

Le 21/01/2020 à 01:23, Damien Elmes a écrit :

  1. Support Staff 1 Posted by Damien Elmes on 22 Jan, 2020 01:57 AM

    Damien Elmes's Avatar

    What's the error you're getting?

  2. 2 Posted by arthur on 22 Jan, 2020 02:19 AM

    arthur's Avatar

    I'm up to date with github. I just pulled to have your last update.
    Reading README.development I tried "make check" and I got this message.

    make check
    oldhash=$(test -f meta/buildhash && cat meta/buildhash || true); \
    newhash=$(git rev-parse --short=8 HEAD); \
    if [ "$oldhash" != "$newhash" ]; then \
    echo $newhash > meta/buildhash; \
    fi
    bash: ligne 1: pyenv/bin/activate: Aucun fichier ou dossier de ce type
    make: *** [Makefile:79: check] Error 1

    Note that I didn't know until today that the page https://apps.ankiweb.net/docs/beta.html did exists, I always used directly github's code.

  3. 3 Posted by arthur on 22 Jan, 2020 02:20 AM

    arthur's Avatar

    If I try make build, I get the error:

    rm -rf dist
    oldhash=$(test -f meta/buildhash && cat meta/buildhash || true); \
    newhash=$(git rev-parse --short=8 HEAD); \
    if [ "$oldhash" != "$newhash" ]; then \
    echo $newhash > meta/buildhash; \
    fi
    bash: pyenv/bin/activate: Aucun fichier ou dossier de ce type
    make: *** [Makefile:53: build-rspy] Error 1

  4. Support Staff 4 Posted by Damien Elmes on 22 Jan, 2020 02:37 AM

    Damien Elmes's Avatar

    Please try

    rm -rf pyenv
    make clean
    make run

    If that still doesn't help, try checking out the code into a separate tree, free of any files you may have lying around.

  5. 5 Posted by arthur on 22 Jan, 2020 08:55 AM

    arthur's Avatar

    I cloned in a new dir. I had the message:

    oldhash=$(test -f meta/buildhash && cat meta/buildhash || true); \
    newhash=$(git rev-parse --short=8 HEAD); \
    if [ "$oldhash" != "$newhash" ]; then \
    echo $newhash > meta/buildhash; \
    fi
    bash: ligne 1: pyenv/bin/activate: Aucun fichier ou dossier de ce type
    make: *** [Makefile:79: check] Error 1

    The french message was "no file nor folder of this type"

    I then applied the
    rm -rf pyenv
    make clean
    make run

    it took a lot of time installing and downloading stuff. It ended with:
    protoc --proto_path=../proto --python_out=anki --mypy_out=anki
    ../proto/backend.proto
    bash: protoc : commande introuvable
    make[1]: *** [Makefile:27: .build/py-proto] Error 127
    make[1] : on quitte le répertoire « /home/arthur/anki/ankitects/anki/pylib »
    make: *** [Makefile:33: develop] Error 2

    In English, it would be something such as:
    bash: protoc : unfound command
    make[1]: *** [Makefile:27: .build/py-proto] Error 127
    make[1] : we leave the folder « /home/arthur/anki/ankitects/anki/pylib
    make: *** [Makefile:33: develop] Error 2

    When I try to make
    sudo -H pip3 install protobuf

    it states that protobuf is already in /usr/lib/python3/dist-packages (3.6.1)

    With the link only, as given in the readme, I have not yet figured out how
    to install protoc

  6. Support Staff 6 Posted by Damien Elmes on 22 Jan, 2020 10:13 AM

    Damien Elmes's Avatar

    You need to install the protoc command, either from your distro's package manager, or from Google if your distro doesn't have a recent version.

Comments are closed, but you can start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac