question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when trying to run apy command

See original GitHub issue

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'

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:18 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
lervagcommented, Dec 23, 2022

I am having the same problem, but I am not able to solve it, even with APY_ANKI_PATH=$HOME/anki: …

Could you help me? Thanks

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.

1reaction
lervagcommented, Oct 17, 2019

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 then sudo make uninstall, then do sudo 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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Command line option syntax error. - Microsoft Support
Error message when you try to install an application on a Windows Vista SP1-based or Windows 7 computer: "Command line option syntax error."....
Read more >
11 Ways to Fix "The System Cannot Find The Path Specified ...
Right-click on the Command Prompt app and click Run as administrator. Running Command Prompt as an Administrator on Windows. If the error ...
Read more >
Error Puppet not found when trying to run puppet config ...
I am trying to configure dns-alt-names, so on running the following command on my ubuntu puppet master where I already installed puppet ...
Read more >
Command: apply | Terraform - HashiCorp Developer
The terraform apply command executes the actions proposed in a Terraform plan to ... You may want to use this two-step workflow when...
Read more >
Troubleshooting AWS CLI errors - AWS Command Line Interface
If you receive an error that indicates that a command doesn't exist, or that it doesn't recognize a parameter ( Parameter validation failed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found