Closed TheLazyHatGuy closed 7 years ago
I tried installing this via pip and using source and I keep getting the same error
sudo python3.6 setup.py install running install running bdist_egg running egg_info creating py/erlpack.egg-info writing py/erlpack.egg-info/PKG-INFO writing dependency_links to py/erlpack.egg-info/dependency_links.txt writing top-level names to py/erlpack.egg-info/top_level.txt writing manifest file 'py/erlpack.egg-info/SOURCES.txt' reading manifest file 'py/erlpack.egg-info/SOURCES.txt' writing top-level names to py/erlpack.egg-info/top_level.txt writing manifest file 'py/erlpack.egg-info/SOURCES.txt' reading manifest file 'py/erlpack.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'py/COPYING' warning: no files found matching '*.cpp' under directory 'cpp' writing manifest file 'py/erlpack.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_py creating build creating build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/erlpack copying py/erlpack/types.py -> build/lib.linux-x86_64-3.6/erlpack copying py/erlpack/constants.py -> build/lib.linux-x86_64-3.6/erlpack copying py/erlpack/__init__.py -> build/lib.linux-x86_64-3.6/erlpack running build_ext building 'erlpack._packer' extension creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/py creating build/temp.linux-x86_64-3.6/py/erlpack x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -c py/erlpack/_packer.cpp -o build/temp.linux-x86_64-3.6/py/erlpack/_packer.o -O3 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ py/erlpack/_packer.cpp: In function ‘int __pyx_pf_7erlpack_7_packer_17ErlangTermEncoder_2__init__(__pyx_obj_7erlpack_7_packer_ErlangTermEncoder*, PyObject*, PyObject*, PyObject*, PyObject*)’: py/erlpack/_packer.cpp:1273:52: error: ‘PyString_AsString’ was not declared in this scope __pyx_t_5 = PyString_AsString(__pyx_v__encoding); if (unlikely(__pyx_t_5 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx ^ py/erlpack/_packer.cpp: In function ‘int __pyx_f_7erlpack_7_packer_17ErlangTermEncoder__pack(__pyx_obj_7erlpack_7_packer_ErlangTermEncoder*, PyObject*, __pyx_opt_args_7erlpack_7_packer_17ErlangTermEncoder__pack*)’: py/erlpack/_packer.cpp:2036:90: error: ‘PyString_AS_STRING’ was not declared in this scope __pyx_v_ret = erlpack_append_atom((&__pyx_v_self->pk), PyString_AS_STRING(__pyx_v_val), PyString_GET_SIZE(__pyx_v_val)); ^ py/erlpack/_packer.cpp:2036:122: error: ‘PyString_GET_SIZE’ was not declared in this scope __pyx_v_ret = erlpack_append_atom((&__pyx_v_self->pk), PyString_AS_STRING(__pyx_v_val), PyString_GET_SIZE(__pyx_v_val)); ^ py/erlpack/_packer.cpp:2065:90: error: ‘PyString_AS_STRING’ was not declared in this scope __pyx_v_ret = erlpack_append_binary((&__pyx_v_self->pk), PyString_AS_STRING(__pyx_v_o), PyString_GET_SIZE(__pyx_v_o)); ^ py/erlpack/_packer.cpp:2065:120: error: ‘PyString_GET_SIZE’ was not declared in this scope __pyx_v_ret = erlpack_append_binary((&__pyx_v_self->pk), PyString_AS_STRING(__pyx_v_o), PyString_GET_SIZE(__pyx_v_o)); ^ py/erlpack/_packer.cpp: In function ‘PyObject* __pyx_f_7erlpack_7_packer_17ErlangTermEncoder__encode_unicode(__pyx_obj_7erlpack_7_packer_ErlangTermEncoder*, PyObject*)’: py/erlpack/_packer.cpp:3438:39: error: ‘PyString_Size’ was not declared in this scope __pyx_t_4 = PyString_Size(__pyx_v_st); if (unlikely(__pyx_t_4 == -1L)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 255; __pyx_clineno = __ ^ py/erlpack/_packer.cpp:3491:110: error: ‘PyString_AS_STRING’ was not declared in this scope __pyx_t_2 = __Pyx_PyInt_From_int(erlpack_append_binary((&__pyx_v_self->pk), PyString_AS_STRING(__pyx_v_st), __pyx_v_size)); if (unlikely( ^ py/erlpack/_packer.cpp:3556:110: error: ‘PyString_AS_STRING’ was not declared in this scope __pyx_t_2 = __Pyx_PyInt_From_int(erlpack_append_string((&__pyx_v_self->pk), PyString_AS_STRING(__pyx_v_st), __pyx_v_size)); if (unlikely( ^ error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
This library does not support Python 3.x
Support for python3 when?
I tried installing this via pip and using source and I keep getting the same error