Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tag cache #594

Merged
merged 1 commit into from
Aug 26, 2022
Merged

tag cache #594

merged 1 commit into from
Aug 26, 2022

Conversation

rachmadaniHaryono
Copy link
Collaborator

fix #559

trade off, start up, update and delete tag take little bit longer because it load all tag after the operation

@GreenLunar do you have lot of tags? if yes, can you test this?

@GreenLunar
Copy link

Yes, I have.

I've installed bukuserver 4.7-1 from https://aur.archlinux.org/packages/bukuserver

I didn't apply the patch yet.

Error

[admin@workstation ~]$ bukuserver run --host 127.0.0.1 --port 5001
Traceback (most recent call last):
  File "/usr/bin/bukuserver", line 33, in <module>
    sys.exit(load_entry_point('buku==4.7', 'console_scripts', 'bukuserver')())
  File "/usr/bin/bukuserver", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.10/site-packages/bukuserver/server.py", line 12, in <module>
    from flask.cli import FlaskGroup
  File "/home/admin/.local/lib/python3.10/site-packages/flask/__init__.py", line 14, in <module>
    from jinja2 import escape
  File "/home/admin/.local/lib/python3.10/site-packages/jinja2/__init__.py", line 12, in <module>
    from .environment import Environment
  File "/home/admin/.local/lib/python3.10/site-packages/jinja2/environment.py", line 25, in <module>
    from .defaults import BLOCK_END_STRING
  File "/home/admin/.local/lib/python3.10/site-packages/jinja2/defaults.py", line 3, in <module>
    from .filters import FILTERS as DEFAULT_FILTERS  # noqa: F401
  File "/home/admin/.local/lib/python3.10/site-packages/jinja2/filters.py", line 13, in <module>
    from markupsafe import soft_unicode
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/usr/lib/python3.10/site-packages/markupsafe/__init__.py)

@rachmadaniHaryono
Copy link
Collaborator Author

try from git instead aur. this should be fixed already #578

also check markupsafe version

@jarun jarun merged commit 79294e5 into jarun:master Aug 26, 2022
@jarun
Copy link
Owner

jarun commented Aug 26, 2022

Thank you!

@rachmadaniHaryono rachmadaniHaryono deleted the feature/tag-cache branch August 26, 2022 23:29
@github-actions github-actions bot locked and limited conversation to collaborators Sep 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bukuserver] Load a specific set of tags upon autocomplete
3 participants