Package Details: pigar 2.1.6-1

Git Clone URL: https://aur.archlinux.org/pigar.git (read-only, click to copy)
Package Base: pigar
Description: A tool to generate requirements.txt for Python projects.
Upstream URL: https://github.com/Damnever/pigar
Licenses: BSD-3-Clause
Submitter: arojas
Maintainer: yochananmarqos
Last Packager: yochananmarqos
Votes: 0
Popularity: 0.000000
First Submitted: 2023-04-01 10:04 (UTC)
Last Updated: 2024-07-10 16:10 (UTC)

Latest Comments

rubikonx9 commented on 2023-04-05 07:07 (UTC) (edited on 2023-04-05 07:11 (UTC) by rubikonx9)

Hello, it seems that this package is missing a dependency to python-pyparsing (in extra) for both build and runtime.

Having tried to upgrade, I got:

==> Starting build()...
* Getting build dependencies for wheel...
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/pyproject_hooks/_impl.py", line 321, in _call_hook
    raise BackendUnavailable(data.get('traceback', ''))
pyproject_hooks._impl.BackendUnavailable: Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process.py", line 77, in _build_backend
    obj = import_module(mod_path)
  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 992, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  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/setuptools/__init__.py", line 18, in <module>
    from setuptools.dist import Distribution
  File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 42, in <module>
    from setuptools.config import setupcfg, pyprojecttoml
  File "/usr/lib/python3.10/site-packages/setuptools/config/__init__.py", line 10, in <module>
    from . import setupcfg
  File "/usr/lib/python3.10/site-packages/setuptools/config/setupcfg.py", line 30, in <module>
    from packaging.requirements import Requirement, InvalidRequirement
  File "/home/<<username>>/.local/lib/python3.10/site-packages/packaging/requirements.py", line 10, in <module>
    from pyparsing import (  # noqa
ModuleNotFoundError: No module named 'pyparsing'
ERROR Backend 'setuptools.build_meta:__legacy__' is not available.

Having tried to run, I got:

$ pigar -h
Traceback (most recent call last):
  File "/usr/bin/pigar", line 33, in <module>
    sys.exit(load_entry_point('pigar==1.0.2', 'console_scripts', 'pigar')())
  File "/usr/bin/pigar", 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/pigar/__main__.py", line 9, in <module>
    from .log import enable_pretty_logging
  File "/usr/lib/python3.10/site-packages/pigar/log.py", line 8, in <module>
    from .helpers import Color
  File "/usr/lib/python3.10/site-packages/pigar/helpers.py", line 13, in <module>
    from packaging.requirements import Requirement, InvalidRequirement
  File "/home/<<username>>/.local/lib/python3.10/site-packages/packaging/requirements.py", line 10, in <module>
    from pyparsing import (  # noqa
ModuleNotFoundError: No module named 'pyparsing'

Installing python-pyparsing fixed both issues.