Closed ziax-training-ground closed 3 weeks ago
Could you tell us in which directory you ran python3 -c import k2
?
Could you switch to a different directory, e.g., cd /tmp/
, to run python3 -c import k2
?
Also please tell us how you installed k2.
Could you tell us in which directory you ran
python3 -c import k2
?
[~/src/icefall/] $ ls build docker egs icefall.egg-info pyproject.toml README.md requirements-tts.txt setup.py contributing.md docs icefall LICENSE qweqwe.txt requirements-ci.txt requirements.txt test
Could you switch to a different directory, e.g.,
cd /tmp/
, to runpython3 -c import k2
?
$cd /tmp
(icefall) [alex@lt-alex-ziax-ru tmp]$ python3 -c "import k2"
Traceback (most recent call last):
File "
Also please tell us how you installed k2.
I installed according to the instructions located here: https://k2-fsa.github.io/k2/installation/from_wheels.html I installed it taking into account the versions that I could pick up for myself:
$ pip install torch==1.13.1+cu116 -f https://download.pytorch.org/whl/torch_stable.html
$ pip install ./k2-1.24.3.dev20230524+cuda11.6.torch1.13.1-cp39-cp39-linux_x86_64.whl
$ pip install -r requirements.txt # "~/src/icefall/requirements.txt"
$ pip install torchvision==0.14.1 torchaudio==0.13.1
/home/alex/src/k2/k2
Could you tell us why there is such a directory?
File "/home/alex/src/k2/k2/python/k2/__init__.py", line 2, in
The above error shows it is looking for k2 in /home/alex/src/k2/k2/python/k2
, not the one you installed.
Is /home/alex/src/k2/k2/python
on your search path?
Could you show the output of
echo $PYTHONPATH
Is
/home/alex/src/k2/k2/python
on your search path?
It's true. I'm blockhead..
I did it by mistake, in one of the wrong attempts to install what I need, and then I didn't fix it. I apologize for the trouble, thank you so much for helping me find the cause of my torment.
Great to hear it helps.
Hello! I apologize in advance if someone has already asked such a question, I have already "dug up" everything that I could find and no solutions helped me, specifically on my device, although it still turned out to install everything without problems on another system, but there are newer versions of drivers and cuda. I would be grateful if someone could help me with this issue.
P.S. I also apologize for the bad English