Skip to content

Commit

Permalink
add macOS install python commands
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyzz committed Jan 7, 2022
1 parent cf8ff8d commit da44278
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ A calibre plugin that generates Word Wise and X-Ray files then sends them to Kin

Languages X-Ray supports: Català, Dansk, Deutsch, English, Español, Français, Italiano, Lietuvių, Nederlands, Norsk bokmål, Polski, Português, Română, Ελληνικά, Македонски, Русский, 中文, 日本語.

X-Ray doesn't support macOS, because macOS prohibits calibre from loading unsigned library.

![screenshot](https://user-images.githubusercontent.com/21101839/130245435-b874f19a-7785-4093-9975-81596efc42bb.png)

## Contribute
Expand Down Expand Up @@ -48,12 +46,22 @@ Please read [CONTRIBUTING](./docs/CONTRIBUTING.md).
# pacman -Syu --needed python-pip
```

- Debian or Ubuntu based distro
- Debian based distro

```
$ sudo apt install python3-pip
```

- macOS

```
// install from HomeBrew(recommanded)
$ brew install python
// or install Apple Command Line Tools
$ xcode-select --install
```

- Windows: use Chocolatey or download from https://www.python.org/downloads

```
Expand Down
4 changes: 2 additions & 2 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import webbrowser

from calibre.utils.config import JSONConfig
from PyQt5.Qt import (QCheckBox, QComboBox, QHBoxLayout, QLabel, QPushButton,
QVBoxLayout, QWidget)
from PyQt5.QtWidgets import (QCheckBox, QComboBox, QHBoxLayout, QLabel,
QPushButton, QVBoxLayout, QWidget)

prefs = JSONConfig('plugins/worddumb')
prefs.defaults['search_people'] = False
Expand Down
5 changes: 3 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ class ParseBook:
def __init__(self, gui):
self.gui = gui
plugin_path = Path(config_dir).joinpath('plugins/WordDumb.zip')
self.languages = load_json_or_pickle(plugin_path, 'data/languages.json')
self.languages = load_json_or_pickle(
plugin_path, 'data/languages.json')

def parse(self, create_ww=True, create_x=True):
# get currently selected books
Expand Down Expand Up @@ -120,7 +121,7 @@ def subprocess_error(self, job):
'because they hate me.',
'''
Run the command "sudo apt install python3-pip" to install
pip module if you are using Debian or Ubuntu based distro.
pip module if you are using Debian based distro.
<br><br>
If you still have this error, make sure you installed calibre
with the <a href="https://calibre-ebook.com/download_linux">
Expand Down

0 comments on commit da44278

Please sign in to comment.