![]() |
#1 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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' |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The modes dont change the path. You are launching one from the terminal and one via launch services. The PATH in launch services is very different from in the terminal.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 442
Karma: 2666666
Join Date: Nov 2020
Device: none
|
I change the code to use the absolute path and now it works.
Last edited by xxyzz; 01-01-2021 at 10:04 PM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do you get out of debug mode? | Rellwood | Calibre | 3 | 08-01-2016 08:34 PM |
Debug Mode and plugins | apprenticeharper | Development | 3 | 04-29-2016 01:59 AM |
Normal vs. Debug Mode | rpspringuel | Calibre | 7 | 04-17-2016 09:03 PM |
Validating? Everything works/looks fine | RedHenPress | Sigil | 4 | 12-21-2014 08:13 AM |
Debug mode of HanLin v3 | sang | HanLin eBook | 4 | 07-01-2009 04:00 PM |