asselapathirana / epanettools

EPANET calling API for python.
Other
16 stars 13 forks source link

How to threat invalid format #32

Closed ghost closed 3 years ago

ghost commented 5 years ago

I have try to install Epanet Tools in a virtual enviroment and it gives an error:

...
creating build/temp.linux-x86_64-3.7/src/epanettools/epanet
    creating build/temp.linux-x86_64-3.7/src/epanettools/pdd
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Isrc/epanettools/adf -Isrc/epanettools/epanet -Isrc/epanettools/pdd -I/usr/include/python3.7m -I/home/pc/Downloads/odoya/venv/include/python3.7m -c src/epanettools/epanet/epanet.c -o build/temp.linux-x86_64-3.7/src/epanettools/epanet/epanet.o -Wno-format -O0
    cc1: error: -Wformat-security ignored without -Wformat [-Werror=format-security]
    cc1: some warnings being treated as errors
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
Command "/home/pc/Downloads/odoya/venv/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-uzu2bnrs/EPANETTOOLS/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-tqpf78gl/install-record.txt --single-version-externally-managed --compile --install-headers /home/pc/Downloads/odoya/venv/include/site/python3.7/EPANETTOOLS" failed with error code 1 in /tmp/pip-install-uzu2bnrs/EPANETTOOLS/

Reading this looks like the problem is related to some argument format...