Package Details: konsave 2.2.0-3

Git Clone URL: https://aur.archlinux.org/konsave.git (read-only, click to copy)
Package Base: konsave
Description: Save and apply your KDE Plasma customizations with just one command!
Upstream URL: https://github.com/Prayag2/konsave
Licenses: GPL3
Submitter: zhixi
Maintainer: brody
Last Packager: brody
Votes: 16
Popularity: 0.48
First Submitted: 2021-03-06 09:32 (UTC)
Last Updated: 2023-11-13 14:58 (UTC)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

brody commented on 2023-11-13 14:55 (UTC)

@zagg thanks for the hint. An updated package will follow.

zagg commented on 2023-11-13 12:17 (UTC)

Hi, Feels like python-setuptools is required. Without it I get

Traceback (most recent call last):
  File "/usr/bin/konsave", line 33, in <module>
    sys.exit(load_entry_point('Konsave==2.2.0', 'console_scripts', 'konsave')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/konsave", line 25, in importlib_load_entry_point
    return next(matches).load()
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 202, in load
    module = import_module(match.group('module'))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.11/site-packages/konsave/__init__.py", line 3, in <module>
    from pkg_resources import get_distribution, DistributionNotFound
ModuleNotFoundError: No module named 'pkg_resources'

brody commented on 2023-05-04 18:08 (UTC)

I understand your reasoning. And normally I also use double quotes for variables. However, Shellcheck is of limited use here. I would even argue that it reflects a false positive, since all variables are known. And all of them (url, pkgname, pkgver) must not contain spaces. The bottom line is that the feared error case cannot happen at all.

mehrad commented on 2023-05-04 14:49 (UTC)

in the latest update you have removed the double quotes from addresses which contains a variable. This is a bad practice. I suggest running shellcheck on your PKGBUILD before pushing.

ishaanbhimwal commented on 2022-03-31 14:05 (UTC)

Anybody getting this error can modify the requires.txt file to use a latest version of PyYaml:

pkg_resources.DistributionNotFound: The 'PyYaml==5.4.1' distribution was not found and is required by Konsave
sudo sed -i 's/PyYaml==5.4.1/PyYaml>=5.4.1/g' /usr/lib/python3.10/site-packages/Konsave-2.1.1-py3.10.egg-info/requires.txt

nmiculinic commented on 2021-04-01 14:57 (UTC)

LookupError: setuptools-scm was unable to detect version for '/home/nmiculinic/.cache/yay/konsave/src/konsave-1.1.9'.

Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.

still having the same issue with installation

brody commented on 2021-03-21 17:44 (UTC)

@moonglade please refer to my comment of March 8.

Moonglade commented on 2021-03-21 17:09 (UTC)

It fails to build with the error: LookupError: setuptools-scm was unable to detect version for '/home/<user>/.cache/paru/clone/konsave/src/konsave-1.1.9'.

Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.

I replaced my username with <user> btw, just to clarify.

al3xis commented on 2021-03-13 18:34 (UTC) (edited on 2021-03-13 20:25 (UTC) by al3xis)

Version 1.1.6 works fine ;) But I see a new version already on GitHub. Update: Thanks, got the update to 1.1.7 already!

nmiculinic commented on 2021-03-10 09:06 (UTC)

Cannot install konsave 1.1.5-1

==> Starting build()...
Traceback (most recent call last):
  File "/home/nmiculinic/.cache/yay/konsave/src/konsave-1.1.5/setup.py", line 9, in <module>
    setup(
  File "/usr/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib/python3.9/distutils/core.py", line 108, in setup
    _setup_distribution = dist = klass(attrs)
  File "/usr/lib/python3.9/site-packages/setuptools/dist.py", line 432, in __init__
    _Distribution.__init__(self, {
  File "/usr/lib/python3.9/distutils/dist.py", line 292, in __init__
    self.finalize_options()
  File "/usr/lib/python3.9/site-packages/setuptools/dist.py", line 708, in finalize_options
    ep(self)
  File "/usr/lib/python3.9/site-packages/setuptools/dist.py", line 715, in _finalize_setup_keywords
    ep.load()(self, ep.name, value)
  File "/usr/lib/python3.9/site-packages/setuptools_scm/integration.py", line 26, in version_keyword
    dist.metadata.version = _get_version(config)
  File "/usr/lib/python3.9/site-packages/setuptools_scm/__init__.py", line 173, in _get_version
    parsed_version = _do_parse(config)
  File "/usr/lib/python3.9/site-packages/setuptools_scm/__init__.py", line 134, in _do_parse
    raise LookupError(
LookupError: setuptools-scm was unable to detect version for '/home/nmiculinic/.cache/yay/konsave/src/konsave-1.1.5'.

Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.

For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj