sandro
July 12, 2020, 11:49am
1
Hi,
up to now I developed using anki <= 2.1.15. But since things are moving I wanted to give a try to the new code. I’m stuck with the following error:
$ LANG=en ./run
make: Entering directory '/home/misc/src/git/anki-latest'
make[1]: Entering directory '/home/misc/src/git/anki-latest/rslib'
make[1]: Nothing to be done for 'develop'.
make[1]: Leaving directory '/home/misc/src/git/anki-latest/rslib'
make[1]: Entering directory '/home/misc/src/git/anki-latest/rspy'
touch ../proto/backend.proto
FTL_TEMPLATE_DIRS="../qt/ftl" FTL_LOCALE_DIRS="../qt/ftl/repo/desktop" CARGO_TARGET_DIR="target" \
maturin develop --release --strip
/bin/bash: maturin: command not found
make[1]: *** [Makefile:63: .build/develop] Error 127
make[1]: Leaving directory '/home/misc/src/git/anki-latest/rspy'
make: *** [Makefile:94: develop] Error 2
make: Leaving directory '/home/misc/src/git/anki-latest'
What does this mean? What I’m doing wrong?
Is there a post or a document I may have missed that explains the move across 2.1.16?
Thank in advance for any possible hint
Maybe…
It looks like maturin
for some reason wasn’t installed in pyenv
virtual environment.
What is a virtual environment?
Maybe remove it completely and rerun Anki.
rm -rf pyenv
make
1 Like
sandro
July 12, 2020, 10:26pm
3
Thanks @kelciour for the links.
As far as the error is concerned it seems the error does not change:
$ rm -Rf pyenv/
sandro@bluffx:/misc/src/git/anki-latest$ make
set -eu -o pipefail ; \
"python3" -m venv pyenv; \
case "$(uname -s)" in CYGWIN*|MINGW*|MSYS*) \
dos2unix "pyenv/bin/activate"; \
VIRTUAL_ENV="$(pwd)"; \
VIRTUAL_ENV="$(cygpath -m "${VIRTUAL_ENV}")"; \
sed -i -- "s@VIRTUAL_ENV=\".*\"@VIRTUAL_ENV=\"$(pwd)/pyenv\"@g" "pyenv/bin/activate"; \
sed -i -- "s@export PATH@export PATH; VIRTUAL_ENV=\"${VIRTUAL_ENV}/pyenv\";@g" "pyenv/bin/activate"; \
;; esac; \
. "pyenv/bin/activate"; \
python --version; \
python -m pip install --upgrade pip setuptools; \
true; \
if ! python -c 'import PyQt5' 2>/dev/null; then \
python -m pip install -r qt/requirements.qt; \
fi;
Python 3.7.5
Looking in indexes: https://pypi.org/simple/
Cache entry deserialization failed, entry ignored
Collecting pip
Using cached https://files.pythonhosted.org/packages/43/84/23ed6a1796480a6f1a2d38f2802901d078266bda38388954d01d3f2e821d/pip-20.1.1-py2.py3-none-any.whl
Collecting setuptools
Downloading https://files.pythonhosted.org/packages/8e/11/9e10f1cad4518cb307b484c255cae61e97f05b82f6d536932b1714e01b47/setuptools-49.2.0-py3-none-any.whl (789kB)
100% |████████████████████████████████| 798kB 677kB/s
Installing collected packages: pip, setuptools
Found existing installation: pip 18.1
Uninstalling pip-18.1:
Successfully uninstalled pip-18.1
Found existing installation: setuptools 40.8.0
Uninstalling setuptools-40.8.0:
Successfully uninstalled setuptools-40.8.0
Successfully installed pip-20.1.1 setuptools-49.2.0
Looking in indexes: https://pypi.org/simple/
Collecting pyqt5==5.15.0
Using cached PyQt5-5.15.0-5.15.0-cp35.cp36.cp37.cp38-abi3-manylinux2014_x86_64.whl (76.6 MB)
Collecting pyqtwebengine==5.15.0
Using cached PyQtWebEngine-5.15.0-5.15.0-cp35.cp36.cp37.cp38-abi3-manylinux2014_x86_64.whl (65.9 MB)
Collecting PyQt5-sip<13,>=12.8
Using cached PyQt5_sip-12.8.0-cp37-cp37m-manylinux1_x86_64.whl (283 kB)
Installing collected packages: PyQt5-sip, pyqt5, pyqtwebengine
Successfully installed PyQt5-sip-12.8.0 pyqt5-5.15.0 pyqtwebengine-5.15.0
make[1]: ingresso nella directory "/home/misc/src/git/anki-latest/rslib"
make[1]: Nessuna operazione da eseguire per "develop".
make[1]: uscita dalla directory "/home/misc/src/git/anki-latest/rslib"
make[1]: ingresso nella directory "/home/misc/src/git/anki-latest/rspy"
touch ../proto/backend.proto
FTL_TEMPLATE_DIRS="../qt/ftl" FTL_LOCALE_DIRS="../qt/ftl/repo/desktop" CARGO_TARGET_DIR="target" \
maturin develop --release --strip
/bin/bash: maturin: comando non trovato
make[1]: *** [Makefile:63: .build/develop] Error 127
make[1]: uscita dalla directory "/home/misc/src/git/anki-latest/rspy"
make: *** [Makefile:94: develop] Error 2
sandro:
maturin develop
Try running make run -B
Are you using the latest master branch? https://github.com/ankitects/anki/commits/master
2 Likes
sandro
July 12, 2020, 11:11pm
5
Thanks @addons_zz , that made the difference. I now have a working source installation.
sandro