Install mqttwarn 0.23.1: TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
See original GitHub issueUsing standard install of mqttwarn on debian 10. Did update as imagebash64 via pushover gave error messages. Update now gives error: both on debian 10 install as well as on docker.
Error:
Traceback (most recent call last):
File "/usr/local/bin/mqttwarn", line 8, in <module>
sys.exit(run())
File "/usr/local/lib/python3.9/site-packages/mqttwarn/commands.py", line 76, in run
run_mqttwarn()
File "/usr/local/lib/python3.9/site-packages/mqttwarn/commands.py", line 98, in run_mqttwarn
config = load_configuration(name=scriptname)
File "/usr/local/lib/python3.9/site-packages/mqttwarn/configuration.py", line 191, in load_configuration
return Config(configfile, defaults=defaults)
File "/usr/local/lib/python3.9/site-packages/mqttwarn/configuration.py", line 88, in __init__
if os.path.isfile(self.functions):
File "/usr/local/lib/python3.9/genericpath.py", line 30, in isfile
st = os.stat(path)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top Results From Across the Web
stat: path should be string, bytes, os.PathLike or integer, not ...
TypeError : stat: path should be string, bytes, os.PathLike or integer, not image. i am trying to give the path of the image...
Read more >stat: path should be string, bytes, os.PathLike or integer, not ...
Cannot debug poetry error: TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType #987.
Read more >scandir: path should be string, bytes, os.PathLike or None, not ...
When using a FilePathField as follows def chunk_path(): return os.path.join(settings.MEDIA_ROOT, 'footage/chunks') file = models.
Read more >Backup Error: TypeError: stat: path should be string, bytes, os ...
PathLike or integer, not NoneType. Is anyone getting this error on Dropbox or Amazon S3? This started two days ago and i can't...
Read more >Issue #7469: ipa-replica-prepare fail with "stat: path should be ...
Host.master.cmd32] stat: path should be string, bytes, os.PathLike or integer, not NoneType [ipatests.pytest_plugins.integration.host.
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
Apologize for not being complete. It was indeed the solution:
I disabled the functions resulting in an error. In the older version (April '21) it worked, that’s why I expected another issue. Thanks a lot for the input.
Thanks a stack for your report, leading to the mitigation of this regression.