I'm running into an issue installing this package during check():
This resolved itself after I removed cached build files (yay -Sc
) and reinstalled
Git Clone URL: | https://aur.archlinux.org/plover-git.git (read-only, click to copy) |
---|---|
Package Base: | plover-git |
Description: | Free and open source real-time stenography engine. |
Upstream URL: | http://www.openstenoproject.org/plover/ |
Licenses: | GPL2 |
Conflicts: | plover |
Provides: | plover |
Submitter: | bpierre |
Maintainer: | SammyPoot |
Last Packager: | bpierre |
Votes: | 4 |
Popularity: | 0.000139 |
First Submitted: | 2016-05-01 21:41 (UTC) |
Last Updated: | 2022-08-16 16:18 (UTC) |
I'm running into an issue installing this package during check():
This resolved itself after I removed cached build files (yay -Sc
) and reinstalled
I'm running into an issue installing this package during check()
:
Successfully built plover-4.0.0.dev12+18.ge6516275-py3-none-any.whl
==> Starting check()...
ImportError while loading conftest '/home/austin/.cache/yay/plover-git/src/plover-git/test/conftest.py'.
test/conftest.py:8: in <module>
from plover import system
plover/system/__init__.py:8: in <module>
from plover.steno import Stroke
plover/steno.py:12: in <module>
from plover_stroke import BaseStroke
E ModuleNotFoundError: No module named 'plover_stroke'
==> ERROR: A failure occurred in check().
Aborting...
-> error making: plover-git-exit status 4
-> Failed to install the following packages. Manual intervention is required:
plover-git - exit status 4
python-plover_stroke does seem to be getting installed; however, I can reproduce the failure in a python repl:
Python 3.11.5 (main, Sep 2 2023, 14:16:33) [GCC 13.2.1 20230801] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import plover_stroke
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'plover_stroke'
Has anyone else encountered this error?
This is not how you write a pkgver()
function for a VCS package, it needs to uniquely refer to the latest commit on the main branch (not just a general version). I suggest checking the wiki page on this topic.
Also renaming the source from plover
to plover-git
seems unnecessary here.
Trying to upgrade fromplover-4.0.0.dev11+21.g486a032f-1
to *.g486a032-1
, it errors during the check()
phase,
> assert config_file.read_text(encoding='utf-8').strip() == dedent_strip(resulting_contents)
E assert '[System: Eng..."main.json"}]' == '[System: Eng..."main.json"}]'
E Skipping 61 identical leading characters in diff, use -v to show
E - "path": "user.json"}, {"enabled": true, "path": "commands.json"}, {"enabled": true, "path": "main.json"}]
E + "path": "~/.dotfiles/plover_user_dict.json"}, {"enabled": true, "path": "commands.json"}, {"enabled": true, "path": "main.json"}]
E ? +++++++++++++++++++ +++++
test/test_config.py:505: AssertionError
============================== warnings summary ===============================
test/test_blackbox.py::TestsBlackbox::test_after_initial_being
/usr/lib/python3.10/site-packages/packaging/specifiers.py:255: DeprecationWarning: Creating a LegacyVersion has been deprecated and will be removed in the next major release
warnings.warn(
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ===========================
FAILED test/test_config.py::test_config[legacy_dictionaries_1] - assert '[Sy...
FAILED test/test_config.py::test_config[legacy_dictionaries_2] - assert '[Sy...
================== 2 failed, 1165 passed, 1 warning in 3.58s ==================
==> ERROR: A failure occurred in check().
(I just copied the part that was highlighted red +1 line before, there seems to be a bunch of things which work normally before this)
Edit: I changed from a softlink to naming the full path of my user dictionary in the config file, and the error disappeared. My bad.
@bpierre I think this now depends on python-mock
@liljaylj: thanks, done.
@bpierre please add python-wheel to make dependencies
@biscuits: yep, I know, will make an update right away.
during check: ModuleNotFoundError: No module named 'rtf_tokenize'
Fixed with pip install rtf-tokenize
(it's not on the AUR currently)
It required installing python-plover_stroke from AUR, but other than that it worked, thanks!
Pinned Comments
bpierre commented on 2021-04-16 23:05 (UTC) (edited on 2021-04-16 23:51 (UTC) by bpierre)
Starting with 4.0.0.dev8+434.g60779ea-1, the main entry point has been changed to isolate plugins install, similarly to how they are handled when using the official AppImage.
The plugins manager is available as a separate package: https://aur.archlinux.org/packages/plover_plugins_manager/.