r4victor / syncabook

📖🎧 A tool for creating ebooks with synchronized text and audio (EPUB3 with Media Overlays)
MIT License
264 stars 27 forks source link

problem running syncabook #15

Closed ghost closed 1 year ago

ghost commented 2 years ago

whenever i run syncabook -h, it shows me this-

D:\Downloads\syncabook\syncabook>syncabook -h Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\Scripts\syncabook-script.py", line 33, in sys.exit(load_entry_point('syncabook==0.1.1', 'console_scripts', 'syncabook')()) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\Scripts\syncabook-script.py", line 25, in importlib_load_entry_point return next(matches).load() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\importlib\metadata__init.py", line 171, in load module = import_module(match.group('module')) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\importlib__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\syncabook-0.1.1-py3.10.egg\syncabook\main__.py", line 3, in from .create import create_ebook File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\syncabook-0.1.1-py3.10.egg\syncabook\create.py", line 9, in from bs4 import BeautifulSoup ModuleNotFoundError: No module named 'bs4'

r4victor commented 1 year ago

@avijitb129, it seems beautifulsoup4 is not installed. It should be installed automatically when you do pip install . to install syncabook. Try reinstalling it and look for error messages during installation. And I'd recommend using syncabook with Docker to avoid such issues.

Note also, that for the sync step you need the afaligner library that is not tested on Windows. You may need to use a VM.