phuang / wallet-core-python

Wallet-core python binding

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python3 setup.py build error

ijglb opened this issue · comments

error when run python3 setup.py build

# python3 setup.py build
running build
running build_ext
building 'walletcore' extension
/usr/bin/clang -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iwallet-core/include -Isrc -I/usr/include/python3.6m -c src/Data.cc -o build/temp.linux-x86_64-3.6/src/Data.o -std=c++17
/usr/bin/clang -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iwallet-core/include -Isrc -I/usr/include/python3.6m -c src/String.cc -o build/temp.linux-x86_64-3.6/src/String.o -std=c++17
/usr/bin/clang -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iwallet-core/include -Isrc -I/usr/include/python3.6m -c src/AnySigner.cc -o build/temp.linux-x86_64-3.6/src/AnySigner.o -std=c++17
/usr/bin/clang -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iwallet-core/include -Isrc -I/usr/include/python3.6m -c src/generated/FIOAccount.cc -o build/temp.linux-x86_64-3.6/src/generated/FIOAccount.o -std=c++17
src/generated/FIOAccount.cc:118:6: warning: ISO C++11 does not allow conversion from string literal to 'char *'
      [-Wwritable-strings]
    {"description", (getter)PyFIOAccountDescription, nullptr,
     ^
src/generated/FIOAccount.cc:119:6: error: cannot initialize a member subobject of type 'char *' with an lvalue of type
      'const char [64]'
     PyFIOAccountDescription_doc},
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
error: command '/usr/bin/clang' failed with exit status 1

I am OK with python 3.9. Can you try python 3.9?

thanks,it works