apy: Error when trying to run apy command
I installed apy
with
pip install -e .
The command apy --help
works fine, but when I try to do e.g. apy add
, I get:
Traceback (most recent call last):
File "/home/skervim/anaconda3/envs/rl/bin/apy", line 11, in <module>
load_entry_point('apy', 'console_scripts', 'apy')()
File "/home/skervim/anaconda3/envs/rl/lib/python3.7/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/home/skervim/anaconda3/envs/rl/lib/python3.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/skervim/anaconda3/envs/rl/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/skervim/anaconda3/envs/rl/lib/python3.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/skervim/anaconda3/envs/rl/lib/python3.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/skervim/apy/apy/cli.py", line 57, in add
with Anki(BASE) as a:
File "/home/skervim/apy/apy/anki.py", line 14, in __init__
import anki
ModuleNotFoundError: No module named 'anki'
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 18 (9 by maintainers)
I’d be glad to help you. Could I kindly ask you to open a new issue and describe it independent of the present thread? As you may notice, the current thread was resolved almost three years ago, so there have been updates and changes since then that may make some of the comments here outdated.
I believe the issue is about how you install Anki. Still, it would be easier to help if you open a new issue and include as many details as you can. More or less the same as in your last comment, but also please mention your OS (and distribution, if applicable). Feel free to link to this issue, since you believe they are related.
Yes, I think this might explain the issue. When you download from the Anki web page, you only get a bundled/compiled version. The source is not available. Could you uninstall Anki with
cd Downloads/anki-2.1.15-linux-amd64
thensudo make uninstall
, then dosudo apt install anki
? I think this might fix your issue.I see I will need to update the README/instructions again, but I’ll wait until we’ve settled this so that I know things work as expected.