Package Details: python-vdf 3.4-2

Git Clone URL: https://aur.archlinux.org/python-vdf.git (read-only, click to copy)
Package Base: python-vdf
Description: Library for working with Valve's VDF text format
Upstream URL: https://github.com/ValvePython/vdf
Licenses: MIT
Submitter: vanyasem
Maintainer: Rhinoceros
Last Packager: Rhinoceros
Votes: 91
Popularity: 4.53
First Submitted: 2018-02-25 00:52 (UTC)
Last Updated: 2021-12-13 08:57 (UTC)

Latest Comments

1 2 3 Next › Last »

Rhinoceros commented on 2022-11-20 03:10 (UTC)

@sickcodes I just tested building in a clean chroot and check seems to work fine. Looks like you are using an AUR helper. What happens if you build it manually, e.g. with makepkg -s?

sickcodes commented on 2022-11-19 16:38 (UTC)

I had to comment out the test to make this work.

# check() {
#   cd "$_pkgname-$pkgver"
#   python setup.py test
# }

Otherwise:

==> Starting check()...
Traceback (most recent call last):
  File "./.cache/yay/python-vdf/src/vdf-3.4/setup.py", line 12, in <module>
    setup(
  File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 87, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 172, in setup
    ok = dist.parse_command_line()
  File "/usr/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 474, in parse_command_line
    args = self._parse_command_opts(parser, args)
  File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 1107, in _parse_command_opts
    nargs = _Distribution._parse_command_opts(self, parser, args)
  File "/usr/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 533, in _parse_command_opts
    cmd_class = self.get_command_class(command)
  File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 954, in get_command_class
    self.cmdclass[command] = cmdclass = ep.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 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'tasks'

Rhinoceros commented on 2022-09-17 06:32 (UTC)

@king-geedorah

I just tested again and it builds fine for me. I can't see anything obvious in your error messages. It's plausibly a missing dependency that I should have in the PKGBUILD. Otherwise if it's not a PKGBUILD problem, perhaps check upstream?

king-geedorah commented on 2022-09-16 21:43 (UTC)

Getting an error during build:

 Starting build()...
Traceback (most recent call last):
  File "/tmp/makepkg/python-vdf/src/vdf-3.4/setup.py", line 12, in <module>
    setup(
  File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 86, in setup
    _install_setup_requires(attrs)
  File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 75, in _install_setup_requires
    dist = MinimalDistribution(attrs)
  File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 57, in __init__
    super().__init__(filtered)
  File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 475, in __init__
    for ep in metadata.entry_points(group='distutils.setup_keywords'):
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 1009, in entry_points
    return SelectableGroups.load(eps).select(**params)
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 459, in load
    ordered = sorted(eps, key=by_group)
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 1006, in <genexpr>
    eps = itertools.chain.from_iterable(
  File "/usr/lib/python3.10/importlib/metadata/_itertools.py", line 16, in unique_everseen
    k = key(element)
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 941, in _normalized_name
    return self._name_from_stem(stem) or super()._normalized_name
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 622, in _normalized_name
    return Prepared.normalize(self.name)
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 871, in normalize
    return re.sub(r"[-_.]+", "-", name).lower().replace('-', '_')
  File "/usr/lib/python3.10/re.py", line 209, in sub
    return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or bytes-like object
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: python-vdf

Rhinoceros commented on 2021-01-08 08:40 (UTC)

@deemon Yes there is. You need to rebuild manually-installed AUR python packages for the python update to 3.9 (which was over a month ago). I actually bumped the pkgrel for this, but your system must have been lagging out of date at the time.

deemon commented on 2021-01-04 08:07 (UTC) (edited on 2021-01-04 08:08 (UTC) by deemon)

There is no vdf for python 3.9 :(

[deemon@Zen ~]$ protontricks
Traceback (most recent call last):
  File "/usr/bin/protontricks", line 33, in <module>
    sys.exit(load_entry_point('protontricks==1.4.4.dev4+g0fab781', 'console_scripts', 'protontricks')())
  File "/usr/bin/protontricks", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.9/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 790, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/usr/lib/python3.9/site-packages/protontricks/__init__.py", line 1, in <module>
    from .steam import *
  File "/usr/lib/python3.9/site-packages/protontricks/steam.py", line 8, in <module>
    import vdf
ModuleNotFoundError: No module named 'vdf'

Rhinoceros commented on 2020-04-25 03:20 (UTC) (edited on 2020-04-25 03:20 (UTC) by Rhinoceros)

@mirh I'm not sure what you mean about python 3.8?

Good idea about the separation. I don't think many people are using the python2-vdf version anyway. (I've orphaned that package.) This change also prevents checking both packages.

I'm happy for you to maintain python-vdf-git!

mirh commented on 2020-04-24 23:33 (UTC) (edited on 2020-04-24 23:42 (UTC) by mirh)

One week ago official support for python 3.8 landed.

Also, wouldn't it make sense to separate python-vdf and python2-vdf? It doesn't make sense to pull in the makedepends of one for the other.

EDIT: there's also a python-vdf-git package that somebody could revive..

ruahcra commented on 2020-03-14 16:14 (UTC) (edited on 2020-03-14 16:21 (UTC) by ruahcra)

@Ender Seems to be an issue with the version detection (at least when using pikaur). I removed the version requirement from protontricks PKGBUILD in order to continue.

Rhinoceros commented on 2020-03-11 21:03 (UTC)

@Ender python PKGBUILDs install to the currently-installed version of python during the build. You need to rebuild all AUR packages after a python (and perl) update, e.g. as per this