Error: Package defined a second time
Opened this issue · 0 comments
n-92 commented
Hi,
I am trying to install a pycrypto package by executing python3 utils/scanpypi pycrypto -o ../external/package
to create the necessary configuration files. But I keep encountering the error below.
What is the right way of including a python package?
mkdir -p /home/aungnaingoo/snakeware/snakeware/buildroot_x86-64/output/build/buildroot-config/lxdialog
PKG_CONFIG_PATH="" make CC="/usr/bin/gcc" HOSTCC="/usr/bin/gcc" \
obj=/home/aungnaingoo/snakeware/snakeware/buildroot_x86-64/output/build/buildroot-config -C support/kconfig -f Makefile.br conf
/usr/bin/gcc -D_GNU_SOURCE -D_DEFAULT_SOURCE -DCURSES_LOC="<ncurses.h>" -DLOCALE -I/home/aungnaingoo/snakeware/snakeware/buildroot_x86-64/output/build/buildroot-config -DCONFIG_=\"\" -MM *.c > /home/aungnaingoo/snakeware/snakeware/buildroot_x86-64/output/build/buildroot-config/.depend 2>/dev/null || :
/usr/bin/gcc -D_GNU_SOURCE -D_DEFAULT_SOURCE -DCURSES_LOC="<ncurses.h>" -DLOCALE -I/home/aungnaingoo/snakeware/snakeware/buildroot_x86-64/output/build/buildroot-config -DCONFIG_=\"\" -c conf.c -o /home/aungnaingoo/snakeware/snakeware/buildroot_x86-64/output/build/buildroot-config/conf.o
/usr/bin/gcc -D_GNU_SOURCE -D_DEFAULT_SOURCE -DCURSES_LOC="<ncurses.h>" -DLOCALE -I/home/aungnaingoo/snakeware/snakeware/buildroot_x86-64/output/build/buildroot-config -DCONFIG_=\"\" -I. -c /home/aungnaingoo/snakeware/snakeware/buildroot_x86-64/output/build/buildroot-config/zconf.tab.c -o /home/aungnaingoo/snakeware/snakeware/buildroot_x86-64/output/build/buildroot-config/zconf.tab.o
/usr/bin/gcc -D_GNU_SOURCE -D_DEFAULT_SOURCE -DCURSES_LOC="<ncurses.h>" -DLOCALE -I/home/aungnaingoo/snakeware/snakeware/buildroot_x86-64/output/build/buildroot-config -DCONFIG_=\"\" /home/aungnaingoo/snakeware/snakeware/buildroot_x86-64/output/build/buildroot-config/conf.o /home/aungnaingoo/snakeware/snakeware/buildroot_x86-64/output/build/buildroot-config/zconf.tab.o -o /home/aungnaingoo/snakeware/snakeware/buildroot_x86-64/output/build/buildroot-config/conf
rm /home/aungnaingoo/snakeware/snakeware/buildroot_x86-64/output/build/buildroot-config/zconf.tab.c
#
# configuration written to /home/aungnaingoo/snakeware/snakeware/buildroot_x86-64/.config
#
/home/aungnaingoo/snakeware/snakeware/external/package/python-pycrypto/python-pycrypto.mk:12: *** Package 'python-pycrypto' defined a second time in '/home/aungnaingoo/snakeware/snakeware/external/package/python-pycrypto/'; previous definition was in 'package/python-pycrypto/'. Stop.
Makefile:84: recipe for target '_all' failed
make: *** [_all] Error 2
Failed to generate rootfs.iso.