Skip to content

make passed but 'pip install -e .' failed #2

@SeekPoint

Description

@SeekPoint

ub16hp@UB16HP:/ub16_prj/extremeText$ make -j4
c++ -pthread -std=c++0x -march=native -O3 -funroll-loops -c src/args.cc
c++ -pthread -std=c++0x -march=native -O3 -funroll-loops -c src/dictionary.cc
c++ -pthread -std=c++0x -march=native -O3 -funroll-loops -c src/productquantizer.cc
c++ -pthread -std=c++0x -march=native -O3 -funroll-loops -c src/matrix.cc
c++ -pthread -std=c++0x -march=native -O3 -funroll-loops -c src/qmatrix.cc
c++ -pthread -std=c++0x -march=native -O3 -funroll-loops -c src/vector.cc
c++ -pthread -std=c++0x -march=native -O3 -funroll-loops -c src/model.cc
c++ -pthread -std=c++0x -march=native -O3 -funroll-loops -c src/utils.cc
c++ -pthread -std=c++0x -march=native -O3 -funroll-loops -c src/fasttext.cc
c++ -pthread -std=c++0x -march=native -O3 -funroll-loops -c src/losslayer.cc
c++ -pthread -std=c++0x -march=native -O3 -funroll-loops -c src/plt.cc
c++ -pthread -std=c++0x -march=native -O3 -funroll-loops -c src/ensemble.cc
c++ -pthread -std=c++0x -march=native -O3 -funroll-loops -c src/kmeans.cc
c++ -pthread -std=c++0x -march=native -O3 -funroll-loops args.o dictionary.o productquantizer.o matrix.o qmatrix.o vector.o model.o utils.o fasttext.o losslayer.o plt.o ensemble.o kmeans.o src/main.cc -o fasttext
ub16hp@UB16HP:
/ub16_prj/extremeText$ sudo pip2 install -e .
The directory '/home/ub16hp/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/ub16hp/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Obtaining file:///home/ub16hp/ub16_prj/extremeText
Requirement already satisfied: pybind11>=2.2 in /usr/local/lib/python2.7/dist-packages (from fasttext==0.8.22) (2.2.4)
Requirement already satisfied: setuptools>=0.7.0 in /usr/lib/python2.7/dist-packages (from fasttext==0.8.22) (20.7.0)
Requirement already satisfied: numpy in /usr/local/lib/python2.7/dist-packages (from fasttext==0.8.22) (1.15.2)
Installing collected packages: fasttext
Running setup.py develop for fasttext
Complete output from command /usr/bin/python -c "import setuptools, tokenize;file='/home/ub16hp/ub16_prj/extremeText/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" develop --no-deps:
running develop
running egg_info
writing requirements to python/fasttext.egg-info/requires.txt
writing python/fasttext.egg-info/PKG-INFO
writing top-level names to python/fasttext.egg-info/top_level.txt
writing dependency_links to python/fasttext.egg-info/dependency_links.txt
warning: manifest_maker: standard file '-c' not found

reading manifest file 'python/fasttext.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'python/fasttext.egg-info/SOURCES.txt'
running build_ext
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c /tmp/tmplCBmp6.cpp -o tmp/tmplCBmp6.o -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c /tmp/tmpEuLOKz.cpp -o tmp/tmpEuLOKz.o -fvisibility=hidden
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
building 'fasttext_pybind' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/include/python2.7 -I/home/ub16hp/.local/include/python2.7 -Isrc -I/usr/include/python2.7 -c python/fastText/pybind/fasttext_pybind.cc -o build/temp.linux-x86_64-2.7/python/fastText/pybind/fasttext_pybind.o -DVERSION_INFO="0.8.22" -std=c++14 -fvisibility=hidden
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
python/fastText/pybind/fasttext_pybind.cc: In function ‘std::pair<std::vector<std::__cxx11::basic_string<char> >, std::vector<std::__cxx11::basic_string<char> > > getLineText(fasttext::FastText&, std::__cxx11::string)’:
python/fastText/pybind/fasttext_pybind.cc:29:33: error: no matching function for call to ‘fasttext::Dictionary::readWord(std::stringstream&, std::__cxx11::string&) const’
   while (d->readWord(ioss, token)) {
                                 ^
In file included from src/fasttext.h:23:0,
                 from python/fastText/pybind/fasttext_pybind.cc:11:
src/dictionary.h:106:10: note: candidate: bool fasttext::Dictionary::readWord(std::istream&, std::__cxx11::string&, fasttext::real&) const
     bool readWord(std::istream&, std::string&, real&) const;
          ^
src/dictionary.h:106:10: note:   candidate expects 3 arguments, 2 provided
python/fastText/pybind/fasttext_pybind.cc:30:21: error: ‘const class fasttext::Dictionary’ has no member named ‘hash’
     uint32_t h = d->hash(token);
                     ^
python/fastText/pybind/fasttext_pybind.cc: In lambda function:
python/fastText/pybind/fasttext_pybind.cc:153:64: error: conversion from ‘std::tuple<long unsigned int, double, double, double>’ to non-scalar type ‘std::tuple<long int, double, double>’ requested
             std::tuple<int64_t, double, double> result = m.test(ifs, k);
                                                                ^
python/fastText/pybind/fasttext_pybind.cc: In lambda function:
python/fastText/pybind/fasttext_pybind.cc:173:45: error: no matching function for call to ‘fasttext::Dictionary::readWord(std::stringstream&, std::__cxx11::string&) const’
               while (d->readWord(ioss, token)) {
                                             ^
In file included from src/fasttext.h:23:0,
                 from python/fastText/pybind/fasttext_pybind.cc:11:
src/dictionary.h:106:10: note: candidate: bool fasttext::Dictionary::readWord(std::istream&, std::__cxx11::string&, fasttext::real&) const
     bool readWord(std::istream&, std::string&, real&) const;
          ^
src/dictionary.h:106:10: note:   candidate expects 3 arguments, 2 provided
python/fastText/pybind/fasttext_pybind.cc: In lambda function:
python/fastText/pybind/fasttext_pybind.cc:206:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (int32_t i = 0; i < vocab_freq.size(); i++) {
                                   ^
python/fastText/pybind/fasttext_pybind.cc: In lambda function:
python/fastText/pybind/fasttext_pybind.cc:220:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (int32_t i = 0; i < labels_freq.size(); i++) {
                                   ^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------

Command "/usr/bin/python -c "import setuptools, tokenize;file='/home/ub16hp/ub16_prj/extremeText/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" develop --no-deps" failed with error code 1 in /home/ub16hp/ub16_prj/extremeText/
ub16hp@UB16HP:~/ub16_prj/extremeText$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions