View Single Post
Old 01-01-2021, 07:10 AM   #1
xxyzz
Evangelist
xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.
 
Posts: 442
Karma: 2666666
Join Date: Nov 2020
Device: none
subprocess.Popen get FileNotFoundError but works fine in debug mode

I get this error on calibre 5.8.1, macOS 11.1:

Code:
File "calibre_plugins.worddumb.database", line 72, in start_redis_server
    subprocess.Popen(['redis-server', '--dir', db_path])
  File "subprocess.py", line 854, in __init__
  File "subprocess.py", line 1702, in _execute_child
FileNotFoundError: [Errno 2] No such file or directory: 'redis-server'
But this code works well if I run it in the debug mode. The PATH must be different between these two modes.
xxyzz is offline   Reply With Quote