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.

Config file not found

See original GitHub issue

Running apy --info works. So all the anki related modules have been loaded correctly.

But when running apy info I get a config file not found error. Going through the readme, it felt as in the config file is optional. Is that not the case?

Config file:             Not found
Traceback (most recent call last):
  File "/home/dufferzafar/.local/bin/apy", line 11, in <module>
    load_entry_point('apy==0.1', 'console_scripts', 'apy')()
  File "/usr/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/dufferzafar/.local/lib/python3.8/site-packages/apy/cli.py", line 147, in info
    with Anki(cfg['base']) as a:
  File "/home/dufferzafar/.local/lib/python3.8/site-packages/apy/anki.py", line 28, in __init__
    self._init_load_collection(base, path)
  File "/home/dufferzafar/.local/lib/python3.8/site-packages/apy/anki.py", line 47, in _init_load_collection
    basepath = Path(base)
  File "/usr/lib/python3.8/pathlib.py", line 1033, in __new__
    self = cls._from_parts(args, init=False)
  File "/usr/lib/python3.8/pathlib.py", line 674, in _from_parts
    drv, root, parts = self._parse_args(args)
  File "/usr/lib/python3.8/pathlib.py", line 658, in _parse_args
    a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dufferzafarcommented, Apr 15, 2020

If I don’t create a PR before then 😛

0reactions
dufferzafarcommented, Apr 17, 2020

Yeah, this is done! thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why getting error config file not found in python for Oracle ...
I am trying to connect OCI with Python API. I created start script to start the Oracle Cloud instance. But getting error "Could...
Read more >
Why do I see the "Configuration file does not exist" error after ...
If the installing user does not have sufficient privileges to write to this folder, this file may not be copied to the new...
Read more >
Error: config file not found · Issue #14081 · minio/minio - GitHub
Expected Behavior. When I start minio in erasure coding mode, there should be no errors. Current Behavior. An error is as follows, ...
Read more >
A solution for the "configuration file not found error"
2) Go to the configuration options -> "Audio Configuration" section -> and change the "Input Audio Adapter" which is the microphone settings.. I ......
Read more >
Can not run configure command: "No such file or directory"
They must mean that you use "autoconf" to generate an executable "configure" file. So the order is: $> autoconf $> ./configure $> make...
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