Package Details: python-torchtext 1:0.18.0-4

Git Clone URL: https://aur.archlinux.org/python-torchtext.git (read-only, click to copy)
Package Base: python-torchtext
Description: Data loaders and abstractions for text and NLP
Upstream URL: https://github.com/pytorch/text
Licenses: BSD-3-Clause
Submitter: flacks
Maintainer: hottea (lilac)
Last Packager: lilac
Votes: 3
Popularity: 0.000000
First Submitted: 2018-01-31 10:53 (UTC)
Last Updated: 2025-08-26 13:33 (UTC)

Latest Comments

carlosal1015 commented on 2026-02-02 14:13 (UTC)

$ docker run -it --rm registry.gitlab.com/dune-archiso/images/dune-archiso-archlinuxcn
[aur@4a5be18a9380 ~]$ python
Python 3.14.2 (main, Jan  2 2026, 14:27:39) [GCC 15.2.1 20251112] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torchtext
Traceback (most recent call last):
  File "/usr/lib/python3.14/site-packages/torch/_ops.py", line 1442, in load_library
    ctypes.CDLL(path)
    ~~~~~~~~~~~^^^^^^
  File "/usr/lib/python3.14/ctypes/__init__.py", line 433, in __init__
    self._handle = self._load_library(name, mode, handle, winmode)
                   ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/ctypes/__init__.py", line 473, in _load_library
    return _dlopen(name, mode)
OSError: /usr/lib/python3.14/site-packages/torchtext/lib/libtorchtext.so: undefined symbol: _ZN3c104impl12PyObjectSlotD1Ev

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<python-input-0>", line 1, in <module>
    import torchtext
  File "/usr/lib/python3.14/site-packages/torchtext/__init__.py", line 18, in <module>
    from torchtext import _extension  # noqa: F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/site-packages/torchtext/_extension.py", line 64, in <module>
    _init_extension()
    ~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.14/site-packages/torchtext/_extension.py", line 58, in _init_extension
    _load_lib("libtorchtext")
    ~~~~~~~~~^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/site-packages/torchtext/_extension.py", line 50, in _load_lib
    torch.ops.load_library(path)
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/usr/lib/python3.14/site-packages/torch/_ops.py", line 1444, in load_library
    raise OSError(f"Could not load this library: {path}") from e
OSError: Could not load this library: /usr/lib/python3.14/site-packages/torchtext/lib/libtorchtext.so

micwoj92 commented on 2025-08-25 20:38 (UTC)

Fails to build:

CMake Deprecation Warning at third_party/re2/CMakeLists.txt:6 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


CMake Error at third_party/double-conversion/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.


-- Configuring incomplete, errors occurred!

xnmbyy commented on 2022-11-01 02:26 (UTC)

I think the version number should be 0.14.0 instead.

naetherm commented on 2020-11-23 11:49 (UTC)

I've updated the PKGBUILD to version 0.8.0: https://gist.github.com/naetherm/9a0f4097eab939c17758621e79f3d021