|
|
#1 |
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 448
Karma: 3000000
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,610
Karma: 28549044
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: 448
Karma: 3000000
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 11:04 PM. |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do you get out of debug mode? | Rellwood | Calibre | 3 | 08-01-2016 09:34 PM |
| Debug Mode and plugins | apprenticeharper | Development | 3 | 04-29-2016 02:59 AM |
| Normal vs. Debug Mode | rpspringuel | Calibre | 7 | 04-17-2016 10:03 PM |
| Validating? Everything works/looks fine | RedHenPress | Sigil | 4 | 12-21-2014 09:13 AM |
| Debug mode of HanLin v3 | sang | HanLin eBook | 4 | 07-01-2009 05:00 PM |