Package Details: python-langdetect 1.0.9-7

Git Clone URL: https://aur.archlinux.org/python-langdetect.git (read-only, click to copy)
Package Base: python-langdetect
Description: Language detection library ported from Google's language-detection
Upstream URL: https://github.com/Mimino666/langdetect
Licenses: Apache-2.0
Submitter: gromit
Maintainer: atomicfs
Last Packager: atomicfs
Votes: 3
Popularity: 0.046440
First Submitted: 2024-03-19 23:08 (UTC)
Last Updated: 2024-05-13 07:08 (UTC)

Latest Comments

atomicfs commented on 2024-05-13 07:08 (UTC)

@kusoneko fixed

kusoneko commented on 2024-05-13 02:14 (UTC)

Currently doesn't build on my end:

==> Extracting sources...
  -> Creating working copy of python-langdetect git repo...
Cloning into 'python-langdetect'...
done.
Switched to a new branch 'makepkg'
==> Starting build()...
* Getting build dependencies for wheel...

Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/pyproject_hooks/_impl.py", line 402, in _call_hook
    raise BackendUnavailable(
pyproject_hooks._impl.BackendUnavailable: Cannot import 'setuptools.build_meta'

ERROR Backend 'setuptools.build_meta:__legacy__' is not available.
==> ERROR: A failure occurred in build().
    Aborting...

Note, I'm building in a clean chroot, which only installs by default what's in the base-devel metapackage and what's in the depends, checkdepends and makedepends arrays of the PKGBUILD, however, it compiles just fine if I modify the PKGBUILD to include python-setuptools to the makedepends array.

atomicfs commented on 2024-05-05 08:08 (UTC)

I am not sure about that. I think that would be super nice if this was a binary package (aka pre-build, just like any official ArchLinux package). I think I can just live with incrementing pkgrel.

Unfortunately the upstream project is no longer maintained (last commit was 3 years ago). So I might have to eventually switch to some actively maintained fork anyway.

taba commented on 2024-05-04 23:20 (UTC)

@atomicfs thoughts on adding python version to the package version like sohttps://aur.archlinux.org/packages/messlidger? Also thanks.

atomicfs commented on 2024-05-04 11:49 (UTC) (edited on 2024-05-04 12:00 (UTC) by atomicfs)

@taba can you give me more context? Is that a error you get when building the package? I just tried to build it from scratch and it works for me.

UPDATE: I guess it is a runtime problem, you have to rebuild the package for the new python 3.12. I can bump the version to trigger it. FYI, you can do: yay -S $(pacman -Qoq /usr/lib/python3.11) --answerclean All

taba commented on 2024-05-04 08:58 (UTC)

============================================== ERRORS ==============================================
_______________ ERROR collecting langdetect-1.0.9/langdetect/tests/test_detector.py ________________
import file mismatch:
imported module 'langdetect.tests.test_detector' has this __file__ attribute:
  /home/custompkgs/.cache/aurutils/sync/python-langdetect/src/python-langdetect-1.0.9/langdetect/tests/test_detector.py
which is not the same as the test file we want to collect:
  /home/custompkgs/.cache/aurutils/sync/python-langdetect/src/python-langdetect-1.0.9/langdetect-1.0.9/langdetect/tests/test_detector.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_______________ ERROR collecting langdetect-1.0.9/langdetect/tests/test_language.py ________________
import file mismatch:
imported module 'langdetect.tests.test_language' has this __file__ attribute:
  /home/custompkgs/.cache/aurutils/sync/python-langdetect/src/python-langdetect-1.0.9/langdetect/tests/test_language.py
which is not the same as the test file we want to collect:
  /home/custompkgs/.cache/aurutils/sync/python-langdetect/src/python-langdetect-1.0.9/langdetect-1.0.9/langdetect/tests/test_language.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules