Package Details: python-pathvalidate 3.2.1-1

Git Clone URL: https://aur.archlinux.org/python-pathvalidate.git (read-only, click to copy)
Package Base: python-pathvalidate
Description: Sanitize/validate strings in filenames/file-paths/etc
Upstream URL: https://github.com/thombashi/pathvalidate
Keywords: sanitize validate
Licenses: MIT
Submitter: fl0w1
Maintainer: fordprefect
Last Packager: fordprefect
Votes: 36
Popularity: 4.45
First Submitted: 2017-09-01 11:56 (UTC)
Last Updated: 2024-08-25 18:33 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

octia commented on 2024-08-29 11:37 (UTC) (edited on 2024-08-29 11:39 (UTC) by octia)

Got a build error, doesn't seem like a checksum problem? This happened directly after cleaning yay cache.

Traceback (most recent call last):
  File "/home/octia/.cache/yay/python-pathvalidate/src/pathvalidate-3.2.1/setup.py", line 43, in <module>
setuptools.setup(
  File "/usr/lib/python3.12/site-packages/setuptools/__init__.py", line 104, in setup
return distutils.core.setup(**attrs)
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 146, in setup
_setup_distribution = dist = klass(attrs)
                             ^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/setuptools/dist.py", line 307, in __init__
_Distribution.__init__(self, dist_attrs)
  File "/usr/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 284, in __init__
self.finalize_options()
  File "/usr/lib/python3.12/site-packages/setuptools/dist.py", line 658, in finalize_options
ep(self)
  File "/usr/lib/python3.12/site-packages/setuptools_scm/_integration/setuptools.py", line 123, in infer_version
_assign_version(dist, config)
  File "/usr/lib/python3.12/site-packages/setuptools_scm/_integration/setuptools.py", line 58, in _assign_version
_version_missing(config)
  File "/usr/lib/python3.12/site-packages/setuptools_scm/_get_version_impl.py", line 117, in _version_missing
raise LookupError(
LookupError: setuptools-scm was unable to detect version for /home/octia/.cache/yay/python-pathvalidate/src/pathvalidate-3.2.1.

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``

<deleted-account> commented on 2024-08-29 11:31 (UTC)

Got a build error, doesn't seem like a checksum problem?

Traceback (most recent call last):
  File "/home/octia/.cache/yay/python-pathvalidate/src/pathvalidate-3.2.1/setup.py", line 43, in <module>
setuptools.setup(
  File "/usr/lib/python3.12/site-packages/setuptools/__init__.py", line 104, in setup
return distutils.core.setup(**attrs)
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 146, in setup
_setup_distribution = dist = klass(attrs)
                             ^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/setuptools/dist.py", line 307, in __init__
_Distribution.__init__(self, dist_attrs)
  File "/usr/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 284, in __init__
self.finalize_options()
  File "/usr/lib/python3.12/site-packages/setuptools/dist.py", line 658, in finalize_options
ep(self)
  File "/usr/lib/python3.12/site-packages/setuptools_scm/_integration/setuptools.py", line 123, in infer_version
_assign_version(dist, config)
  File "/usr/lib/python3.12/site-packages/setuptools_scm/_integration/setuptools.py", line 58, in _assign_version
_version_missing(config)
  File "/usr/lib/python3.12/site-packages/setuptools_scm/_get_version_impl.py", line 117, in _version_missing
raise LookupError(
LookupError: setuptools-scm was unable to detect version for /home/octia/.cache/yay/python-pathvalidate/src/pathvalidate-3.2.1.

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``

fordprefect commented on 2024-08-28 10:45 (UTC)

current checksum works for me, I can't reproduce reports complaining about erroneous checksums. Please build in a clean environment with no previously downloaded assets around and see if that fixes your problems.

chaos2theory commented on 2024-08-25 19:51 (UTC)

PKGBuild sha256 sum was not updated in the latest build and fails to install. You can edit it yourself as forge notes down below but this should be updated in the package itself

musta_ruhtinas commented on 2024-08-25 17:46 (UTC)

It finally builds in clean chroot, following pbordron's modifications.

However, I still had to add to makedepends python-build, python-wheel, and python-installer.

forge commented on 2024-08-25 16:41 (UTC)

Had to change the sha256sum in the PKGBUILD to f5d07b1e2374187040612a1fcd2bcb2919f8db180df254c9581bb90bf903377d and then it built and installed. The PKGBUILD as provided would not verify/build with makepkg. No other changes.

javallone commented on 2024-08-25 14:58 (UTC)

The source checksum in the pkgbuild doesn't match with the checksum of the updated source URL.

musta_ruhtinas commented on 2024-08-25 12:02 (UTC) (edited on 2024-08-25 12:04 (UTC) by musta_ruhtinas)

Building in a clean chroot gives the following error:

==> Starting build()...
/usr/bin/python: No module named build.__main__; 'build' is a package and cannot be directly executed
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Build failed

Adding python-build to makedepends returns the error(s) posted below by asd2003ru

asd2003ru commented on 2024-08-25 07:44 (UTC)

Build error

Traceback (most recent call last):
  File "/home/asd/.cache/yay/python-pathvalidate/src/pathvalidate-3.2.1/setup.py", line 43, in <module>
    setuptools.setup(
  File "/usr/lib/python3.12/site-packages/setuptools/__init__.py", line 104, in setup
    return distutils.core.setup(**attrs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 146, in setup
    _setup_distribution = dist = klass(attrs)
                                 ^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/setuptools/dist.py", line 307, in __init__
    _Distribution.__init__(self, dist_attrs)
  File "/usr/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 284, in __init__
    self.finalize_options()
  File "/usr/lib/python3.12/site-packages/setuptools/dist.py", line 658, in finalize_options
    ep(self)
  File "/usr/lib/python3.12/site-packages/setuptools_scm/_integration/setuptools.py", line 123, in infer_version
    _assign_version(dist, config)
  File "/usr/lib/python3.12/site-packages/setuptools_scm/_integration/setuptools.py", line 58, in _assign_version
    _version_missing(config)
  File "/usr/lib/python3.12/site-packages/setuptools_scm/_get_version_impl.py", line 117, in _version_missing
    raise LookupError(
LookupError: setuptools-scm was unable to detect version for /home/asd/.cache/yay/python-pathvalidate/src/pathvalidate-3.2.1.

pt6174 commented on 2024-08-25 02:31 (UTC)

The pkgbuild is missing the final }. If you close the open bracket. It should install without changing the source or sha256sum. Atleast it worked for me.