Skip to content

Failed to install latest 2.15. #22

@zhihongliuus

Description

@zhihongliuus

When trying to upgrade from 2.6 to 2.15. I got following compile error:

                  ^
src/methods.cpp:2157:108: warning: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
 #define _set_fire_settings(handle, settings, save) __set_fire_settings(handle, settings, save, __FUNCTION__);
                                                                                                            ^
src/methods.cpp:2440:20: note: in expansion of macro ‘_set_fire_settings’
             return _set_fire_settings(handle, settings, save_to_eeprom);
                    ^
src/methods.cpp:2084:18: warning:   initializing argument 4 of ‘PyObject* __set_fire_settings(void*, PyObject*, int&, char*)’ [-fpermissive]
 static PyObject* __set_fire_settings(ICS_HANDLE handle, PyObject* settings, int& save, char* func_name)
                  ^
src/methods.cpp: In function ‘PyObject* meth_get_library_path(PyObject*)’:
****src/methods.cpp:4127:49: error: cannot pass objects of non-trivially-copyable type ‘std::string {aka class std::basic_string<char>}’ through ‘...’
         return Py_BuildValue("s", lib->getPath());****
                                                 ^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

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

Rolling back uninstall of python-ics
Command "/home/yz2q7g/pyauto/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-install-U2_A0G/python-ics/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-XmLaC6/install-record.txt --single-version-externally-managed --compile --install-headers /home/yz2q7g/pyauto/include/site/python2.7/python-ics" failed with error code 1 in /tmp/pip-install-U2_A0G/python-ics/

Could you help to take a look?

Thanks,
Frank

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions