Config file not found
See original GitHub issueRunning 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:
- Created 3 years ago
- Comments:12 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If I don’t create a PR before then 😛
Yeah, this is done! thanks!