Package Details: pyglossary 4.5.0-1

Git Clone URL: https://aur.archlinux.org/pyglossary.git (read-only, click to copy)
Package Base: pyglossary
Description: A tool for converting dictionary files aka glossaries with various formats for different dictionary applications
Upstream URL: https://github.com/ilius/pyglossary
Licenses: GPL3
Provides: pyglossary
Submitter: sikmir
Maintainer: jukan
Last Packager: jukan
Votes: 7
Popularity: 0.076151
First Submitted: 2017-01-04 05:19 (UTC)
Last Updated: 2022-03-12 18:43 (UTC)

Dependencies (12)

Required by (1)

Sources (1)

Latest Comments

1 2 Next › Last »

bergentroll commented on 2022-09-21 12:44 (UTC)

There is also a desktop entry pkg/pyglossary.desktop which seems missing in the Arch package.

bergentroll commented on 2022-09-18 13:23 (UTC)

Seems python-polib is also an optional dependency to work with PO files.

jukan commented on 2021-05-29 01:14 (UTC) (edited on 2021-05-29 01:47 (UTC) by jukan)

Hey @m040601 thanks for testing things! I already had python-prompt_toolkit installed on my system as a dep for another package so I missed this issue. I'll update the pkgbuild accordingly.

Most of the optional dep descriptions were taking straight from the upstream readme so don't give me too much credit for them, I'm just the copy-paster :P

Also I'll be sure to update the package to 4.1 when it's released!

m040601 commented on 2021-05-28 21:22 (UTC) (edited on 2021-05-28 21:50 (UTC) by m040601)

Thanks to @jukan for taking over this so much usefull package.

Very usefull this information you added in the optdependes, describing "why" they might be needed:

+ optdepends = python-lxml: Many optional flags and formats
+ optdepends = python-beautifulsoup4: HTML parsing
+ optdepends = python-yaml: Reading from cc-kedict
+ optdepends = python-pyicu: Reading or writing Aard 2 (.slob) files
+ optdepends = python-marisa: Writing to Kobo E-Reader Dictionary

I had almost missed the "Kobo E-Reader" one. Very usefull for my ereader.

I've tested it but the command line version was not working:

pyglossary -h

...
    Interactive command-line interface:
        Minimal command:
            pyglossary --cmd
        Or
            pyglossary --ui=cmd
        Additionally you can pass any flag to act to act as default
...

pyglossary --cmd

[CRITICAL] Traceback (most recent call last):
  File "/usr/bin/pyglossary", line 6, in <module>
    main()
  File "/usr/lib/python3.9/site-packages/pyglossary/ui/main.py", line 530, in main
    from pyglossary.ui.ui_cmd_interactive import UI
  File "/usr/lib/python3.9/site-packages/pyglossary/ui/ui_cmd_interactive.py", line 44, in <module>
    from prompt_toolkit import prompt as promptLow
ModuleNotFoundError: No module named 'prompt_toolkit'

This seems to solve the problem:

pacman -S python-prompt_toolkit 

I understand this is not the easiest PKGBUILD to maintain, but hope you can keep up with it. Maybe if we can get enough votes and traction this should be moved and provided by the official arch packages. So usefull for ereaders.

In the mean time, version 4.1 is comming soon in June 2021 I think, https://github.com/ilius/pyglossary/releases

sikmir commented on 2021-03-20 16:34 (UTC)

@jukan Disowned, feel free to adopt.

jukan commented on 2021-03-20 16:23 (UTC)

Willing to take over this package, I've updated to 4.0.11 and it seems to be working well. @sikmir can you add me as a maintainer?

m040601 commented on 2020-12-08 16:34 (UTC) (edited on 2020-12-08 16:37 (UTC) by m040601)

sikmir commented on 2020-10-13 10:28    
Updated. Maintainer wanted.

Anyone willing to take over this so usefull python tool ? There's at least 10 new weekly releases since this last PKGBUILD was updated.

And furthemore this python tool is not suited for installing with pipx. Only pip, but that makes a mess on your system. Even if it's "pip install --user".

The only alternative would be a separate clean python virtual environment:

python -m venv mypyglossvenv
cd mypyglossvenv
source bin/activate
pip install pyglossary

That works, but it's cumbersome.

So, conclusion, a PKGBUILD for a system wide Arch install for this tool is really usefull.

pix3l commented on 2020-11-11 15:57 (UTC)

@homocomputeri

CRITICAL] Traceback (most recent call last): File "/usr/bin/pyglossary", line 6, in <module> main() File "/usr/lib/python3.8/site-packages/pyglossary/ui/main.py", line 503, in main from ui.ui_cmd import UI ModuleNotFoundError: No module named 'ui.ui_cmd'; 'ui' is not a package

  • -

pyglossary [ERROR] error while importing UI module: Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/pyglossary/ui/main.py", line 516, in main import(f"ui.ui_{ui_type2}"), ModuleNotFoundError: No module named 'ui.ui_gtk'; 'ui' is not a package Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/pyglossary/ui/main.py", line 516, in main import(f"ui.ui_{ui_type2}"), ModuleNotFoundError: No module named 'ui.ui_gtk'; 'ui' is not a packag

homocomputeris commented on 2020-11-08 16:39 (UTC)

pkgname=pyglossary
pkgver=4.0.0
pkgrel=1
pkgdesc="A tool for converting dictionary files aka glossaries"
arch=('any')
url="https://github.com/ilius/pyglossary"
license=('GPL3')
depends=(
  'python>=3.7'
  'python-lxml'
  'python-beautifulsoup4'
  'python-pyaml'
  'python-pyicu'
  'python-marisa'
  'libzim'
  'python-jinja'
  )
makedepends=('python-setuptools')
optdepends=(
  'gtk3: GTK3-based interface'
  'python-gobject: GTK3-based interface'
  'tix: Tkinter-based interface'
  'python-prompt_toolkit: interactive CLI'
  )
provides=("${pkgname}=${pkgver}")
source=("https://github.com/ilius/${pkgname}/archive/${pkgver}.tar.gz")
sha256sums=('SKIP')

package() {
  cd "$srcdir/$pkgname-$pkgver"
  python setup.py install --root="$pkgdir/" --prefix=/usr --optimize=1
  mkdir -p $pkgdir/usr/bin
  cp config.json $pkgdir/usr/share/pyglossary
}

m040601 commented on 2020-10-17 12:46 (UTC)

Getting this error trying to run it:

Traceback (most recent call last):
  File "/usr/bin/pyglossary", line 5, in <module>
    with open(join(dirname(__file__), "main.py")) as fp:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/main.py'