Package Details: python-fasttext 0.9.2-5

Git Clone URL: https://aur.archlinux.org/python-fasttext.git (read-only, click to copy)
Package Base: python-fasttext
Description: Library for fast text representation and classification – Python bindings
Upstream URL: https://github.com/facebookresearch/fastText
Licenses: BSD
Conflicts: python-fasttext
Provides: python-fasttext
Submitter: peippo
Maintainer: peippo
Last Packager: peippo
Votes: 0
Popularity: 0.000000
First Submitted: 2019-03-12 10:12 (UTC)
Last Updated: 2024-05-02 09:03 (UTC)

Latest Comments

carlosal1015 commented on 2023-05-13 19:53 (UTC)

Hi, I have the following message error

gcc -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fPIC -I/usr/lib/python3.11/site-packages/pybind11/include -I/usr/lib/python3.11/site-packages/pybind11/include -Isrc -I/usr/include/python3.11 -c src/args.cc -o build/temp.linux-x86_64-cpython-311/src/args.o -DVERSION_INFO=\"0.9.2\" -std=c++14 -fvisibility=hidden
src/args.cc: In member function ‘void fasttext::Args::parseArgs(const std::vector<std::__cxx11::basic_string<char> >&)’:
src/args.cc:120:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::__cxx11::basic_string<char> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  120 |   for (int ai = 2; ai < args.size(); ai += 2) {
      |                    ~~~^~~~~~~~~~~~~
src/args.cc:221:19: warning: catching polymorphic type ‘class std::out_of_range’ by value [-Wcatch-value=]
  221 |     } catch (std::out_of_range) {
      |                   ^~~~~~~~~~~~
src/args.cc: In member function ‘int64_t fasttext::Args::getAutotuneModelSize() const’:
src/args.cc:468:3: error: ‘uint64_t’ was not declared in this scope
  468 |   uint64_t multiplier = 1;
      |   ^~~~~~~~
src/args.cc:17:1: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?

in this line

peippo commented on 2022-09-29 07:54 (UTC)

Thanks for noticing this, @sparrowhawk. Not sure how python2-setuptools managed to stay in the makedepends, but they definitely don’t belong there.

That said, namcap prints some cryptic warnings, referencing Python 2 packages:

python-fasttext W: Referenced library 'urllib2' is an uninstalled dependency
...

Not sure what to make out of this, but, then again, the fasttext Python module’s code is not exactly best-practice, in general.

sparrowhawk commented on 2022-09-28 14:35 (UTC)

Dear @peippo,

Is there a reason to keep both python2-setuptools and python-setuptools in the makedepends ? As far as I can tell, the python2 is not required but filling it means installing python2, even though they have been removed from the official repositories.

Cheers,