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

Error while building cache #155

Closed
MeisterLLD opened this issue Sep 19, 2022 · 0 comments
Closed

Error while building cache #155

MeisterLLD opened this issue Sep 19, 2022 · 0 comments

Comments

@MeisterLLD
Copy link

MeisterLLD commented Sep 19, 2022

Hello,
I have the following error while building cache since a few days

[lld@pcfixe dmenu-extended]$ dmenu_extended_cache_build
Traceback (most recent call last):
  File "/home/lld/.local/lib/python3.10/site-packages/dmenu_extended/main.py", line 771, in cache_save
    f.write(item + "\n")
UnicodeEncodeError: 'utf-8' codec can't encode character '\udc82' in position 34: surrogates not allowed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/lld/.local/bin/dmenu_extended_cache_build", line 8, in <module>
    sys.exit(build_cache())
  File "/home/lld/.local/lib/python3.10/site-packages/dmenu_extended/main.py", line 2266, in build_cache
    d.build_cache()
  File "/home/lld/.local/lib/python3.10/site-packages/dmenu_extended/main.py", line 1233, in build_cache
    self.cache_save(filenames, file_cache_files)
  File "/home/lld/.local/lib/python3.10/site-packages/dmenu_extended/main.py", line 801, in cache_save
    f.write(item + "\n")
TypeError: a bytes-like object is required, not 'str'

I guess that I have a filename using a unicode character that causes a problem but I don't know where and I guess if the filename can be set like that, dmenu should be able to cache it ? Or at least just ignore it, but here it prevents everything else from being cached.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant