nifey / epub2sphinx

epub2sphinx is a tool to convert epub files to ReST for Sphinx
https://pypi.org/project/epub2sphinx/
MIT License
12 stars 2 forks source link

Hi, this seems like a good idea, but... #31

Open cleesmith opened 1 year ago

cleesmith commented 1 year ago

Any help would be great, as I am a writer who likes to host my own ebooks and Vellum (vellum.pub) generates very nice epub files and would be an easy way to make static html files. Thanks.

I'm on a Mac in the terminal and after doing the following and restarting:

  1. brew install pandoc ... no errors
  2. python3 setup.py install ... no errors

... but I get this error everytime: ............................... iMac ~ % epub2sphinx --version Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.11/bin/epub2sphinx", line 33, in sys.exit(load_entry_point('epub2sphinx==0.0.3', 'console_scripts', 'epub2sphinx')()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/bin/epub2sphinx", line 25, in importlib_load_entry_point return next(matches).load() ^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/importlib/metadata/init.py", line 202, in load module = import_module(match.group('module')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1206, in _gcd_import File "", line 1178, in _find_and_load File "", line 1149, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/epub2sphinx-0.0.3-py3.11.egg/cli.py", line 1, in import click ModuleNotFoundError: No module named 'click' ...............................

iMac info: Intel, Ventura 13.2.1

iMac ~ % brew -v Homebrew 4.0.10

iMac ~ % python3 --version Python 3.11.1

... other python github projects are working just fine, so what am I missing, thoughts?

nifey commented 1 year ago

Hello @cleesmith,

It looks like the Click module is missing in your installation. Try installing the click module and see if that fixes the issue: pip install click

Another alternative is to install epub2sphinx directly using pip: pip install epub2sphinx

I just updated the latest commits to the Python package index, so I would recommend uninstalling the older epub2sphinx and installing epub2sphinx using pip.