Package Details: python-shortuuid 1.0.13-1

Git Clone URL: https://aur.archlinux.org/python-shortuuid.git (read-only, click to copy)
Package Base: python-shortuuid
Description: library that generates concise, unambiguous, URL-safe UUIDs
Upstream URL: https://github.com/skorokithakis/shortuuid
Licenses: BSD
Submitter: haawda
Maintainer: alerque
Last Packager: alerque
Votes: 1
Popularity: 0.000000
First Submitted: 2020-04-02 08:54 (UTC)
Last Updated: 2024-03-28 11:31 (UTC)

Latest Comments

alerque commented on 2023-01-11 08:48 (UTC)

Sorry this isn't fixed up yet. I've actually tried a couple times and run into issues every time. Patches are welcome or PR it against this if anybody gets the kinks worked out.

ModYokosuka commented on 2022-11-18 10:22 (UTC)

Same issue as Freed. 'charset-normalizer' was not found and is required by aiohttp.

Freed commented on 2022-11-04 04:29 (UTC)

❯ yay -Sy python-shortuuid
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
 archlinuxcn is up to date
 arch4edu is up to date
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1]  python-shortuuid-1.0.8-2

  1 python-shortuuid                         (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
:: PKGBUILD up to date, Skipping (1/0): python-shortuuid
  1 python-shortuuid                         (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
:: (1/1) Parsing SRCINFO: python-shortuuid
==> Making package: python-shortuuid 1.0.8-2 (Fri 04 Nov 2022 12:26:53 PM CST)
==> Retrieving sources...
  -> Found shortuuid-1.0.8.tar.gz
==> Validating source files with sha256sums...
    shortuuid-1.0.8.tar.gz ... Passed
==> Making package: python-shortuuid 1.0.8-2 (Fri 04 Nov 2022 12:26:54 PM CST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found shortuuid-1.0.8.tar.gz
==> Validating source files with sha256sums...
    shortuuid-1.0.8.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting shortuuid-1.0.8.tar.gz with bsdtar
==> Starting prepare()...
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 581, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 909, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 800, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (charset-normalizer 3.0.0 (/usr/lib/python3.10/site-packages), Requirement.parse('charset-normalizer<3.0,>=2.0'), {'aiohttp'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/dephell", line 33, in <module>
    sys.exit(load_entry_point('dephell==0.8.3', 'console_scripts', 'dephell')())
  File "/usr/bin/dephell", 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/dephell/cli.py", line 11, in <module>
    from .commands import COMMANDS
  File "/usr/lib/python3.10/site-packages/dephell/commands/__init__.py", line 2, in <module>
    from .discover import COMMANDS
  File "/usr/lib/python3.10/site-packages/dephell/commands/discover.py", line 86, in <module>
    module = import_module('.' + module_name, package=package)
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/usr/lib/python3.10/site-packages/dephell/commands/deps_add.py", line 7, in <module>
    from ..actions import get_resolver
  File "/usr/lib/python3.10/site-packages/dephell/actions/__init__.py", line 7, in <module>
    from ._converting import attach_deps
  File "/usr/lib/python3.10/site-packages/dephell/actions/_converting.py", line 6, in <module>
    from ..config import Config
  File "/usr/lib/python3.10/site-packages/dephell/config/__init__.py", line 3, in <module>
    from .manager import Config
  File "/usr/lib/python3.10/site-packages/dephell/config/manager.py", line 15, in <module>
    from cerberus import Validator
  File "/usr/lib/python3.10/site-packages/cerberus/__init__.py", line 13, in <module>
    from pkg_resources import get_distribution, DistributionNotFound
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3260, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3234, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3272, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 596, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 795, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'charset-normalizer<3.0,>=2.0' distribution was not found and is required by aiohttp
==> ERROR: A failure occurred in prepare().
    Aborting...
 -> error making: python-shortuuid

MarsSeed commented on 2022-07-09 14:04 (UTC)

Please kindly fix the package - prepare() phase fails.

I suggest you remove the back-conversion to setuptools, and use the Python standards-based installation as recommended by Arch Python package guidelines.

==> Making package: python-shortuuid 1.0.8-2 (2022-07-09 16:00:36 CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found shortuuid-1.0.8.tar.gz
==> Validating source files with sha256sums...
    shortuuid-1.0.8.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting shortuuid-1.0.8.tar.gz with bsdtar
==> Starting prepare()...
Traceback (most recent call last):
  File "/usr/bin/dephell", line 33, in <module>
    sys.exit(load_entry_point('dephell==0.8.3', 'console_scripts', 'dephell')())
  File "/usr/bin/dephell", 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/dephell/cli.py", line 11, in <module>
    from .commands import COMMANDS
  File "/usr/lib/python3.10/site-packages/dephell/commands/__init__.py", line 2, in <module>
    from .discover import COMMANDS
  File "/usr/lib/python3.10/site-packages/dephell/commands/discover.py", line 86, in <module>
    module = import_module('.' + module_name, package=package)
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/usr/lib/python3.10/site-packages/dephell/commands/deps_add.py", line 7, in <module>
    from ..actions import get_resolver
  File "/usr/lib/python3.10/site-packages/dephell/actions/__init__.py", line 7, in <module>
    from ._converting import attach_deps
  File "/usr/lib/python3.10/site-packages/dephell/actions/_converting.py", line 7, in <module>
    from ..converters import CONVERTERS
  File "/usr/lib/python3.10/site-packages/dephell/converters/__init__.py", line 5, in <module>
    from .base import BaseConverter
  File "/usr/lib/python3.10/site-packages/dephell/converters/base.py", line 11, in <module>
    from ..controllers import Graph, Mutator, Resolver
  File "/usr/lib/python3.10/site-packages/dephell/controllers/__init__.py", line 7, in <module>
    from ._readme import Readme
  File "/usr/lib/python3.10/site-packages/dephell/controllers/_readme.py", line 9, in <module>
    from m2r import convert
  File "/usr/lib/python3.10/site-packages/m2r.py", line 13, in <module>
    from docutils.core import ErrorString
ImportError: cannot import name 'ErrorString' from 'docutils.core' (/usr/lib/python3.10/site-packages/docutils/core.py)
==> ERROR: A failure occurred in prepare().

4rozenwolves commented on 2021-12-17 20:09 (UTC)

Thank you. It is working.

alerque commented on 2021-12-17 19:43 (UTC)

There, try that.

alerque commented on 2021-12-17 19:40 (UTC)

Take that back, after the 3.10 bump I also updated the main package and the setuptools shim appears to have misfired. I'll look for another way to build...

alerque commented on 2021-12-17 19:38 (UTC)

@4rozenwolves That error suggests you are trying to import the module from a different version of Python than what you compiled this package with. If you installed this when your system had Python 3.9 and then upgraded to 3.10 you need to rebuild & reinstall this package.

4rozenwolves commented on 2021-12-17 13:17 (UTC)

I get ModuleNotFoundError: No module named 'shortuuid' It was working previously.

alerque commented on 2021-09-20 17:51 (UTC)

Missing makedepends on setuptools. BSD license is not custom. Needs checks.