View Single Post
Old 01-02-2025, 03:16 AM   #3
loveheaven
Junior Member
loveheaven began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2024
Device: android
Quote:
Originally Posted by kovidgoyal View Post
Why are you trying to use bypy at all? You can simply build from source and run. bypy is only needed to create release builds.
it is because README.md told me I should execute "./setup.py build_dep linux" to build calibre binaries. so now it seems that I should follow "Development" section of README.md not "Building calibre binaries" section of README.md. right??

now I tried to follow "Development" section of README.md in my macbook.
after I executed "calibre-debug -g", I got the following error:

calibre 7.23* embedded-python: True
macOS-14.4.1-arm64-arm-64bit Darwin ('64bit', '')
('Darwin', '23.4.0', 'Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000')
Python 3.11.5
OSX: ('14.4.1', ('', '', ''), 'arm64')
Interface language: None
EXE path: /Applications/calibre.app/Contents/MacOS/calibre-debug
Successfully initialized third party plugins: EpubMerge (3, 2, 0)
Traceback (most recent call last):
File "runpy.py", line 198, in _run_module_as_main
File "runpy.py", line 88, in _run_code
File "site.py", line 42, in <module>
File "site.py", line 38, in main
File "/Users/alex/Documents/sourcecode/calibre/src/calibre/debug.py", line 237, in main
calibre(['calibre'] + args[1:])
File "/Users/alex/Documents/sourcecode/calibre/src/calibre/gui_launch.py", line 73, in calibre
from calibre.gui2.main import main
File "/Users/alex/Documents/sourcecode/calibre/src/calibre/gui2/main.py", line 11, in <module>
import apsw
File "bypy-importer.py", line 127, in create_module
ImportError: dlopen(/Applications/calibre.app/Contents/Frameworks/plugins/apsw.__init__.so, 0x0002): Symbol not found: _sqlite3_enable_load_extension
Referenced from: <D463836C-AD17-3C75-B33A-F94E93EB869D> /Applications/calibre.app/Contents/Frameworks/plugins/apsw.__init__.so
Expected in: <877868A7-B883-3A57-8F35-4DBEF7386DC1> /usr/lib/libsqlite3.dylib

so how should I fix it?
loveheaven is offline   Reply With Quote