Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup.py install for RPi.GPIO ... error #8

Open
abdulazizalmass opened this issue Jul 16, 2022 · 9 comments
Open

setup.py install for RPi.GPIO ... error #8

abdulazizalmass opened this issue Jul 16, 2022 · 9 comments

Comments

@abdulazizalmass
Copy link
Collaborator

abdulazizalmass commented Jul 16, 2022

Based on a test of installation, the error of installation stops at wheel with install.sh. Your support is appreciated


>>> INSTALLING OS DEPENDENCIES...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3 is already the newest version (3.9.2-3).
The following package was automatically installed and is no longer required:
  libfuse2
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3-pip is already the newest version (20.3.4-4+rpt1+deb11u1).
The following package was automatically installed and is no longer required:
  libfuse2
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3-venv is already the newest version (3.9.2-3).
The following package was automatically installed and is no longer required:
  libfuse2
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
dsniff is already the newest version (2.4b1+debian-30).
The following package was automatically installed and is no longer required:
  libfuse2
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

>>> CREATING A PYTHON VIRTUAL ENVIRONMENT AND INSTALLING ITS DEPENDENCIES...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting julian==0.14
  Using cached julian-0.14.zip (2.8 kB)
Requirement already satisfied: schedule==0.6.0 in ./virtual/lib/python3.9/site-packages (from -r requirements_python.txt (line 5)) (0.6.0)
Collecting RPi.GPIO==0.7.0
  Using cached RPi.GPIO-0.7.0.tar.gz (30 kB)
**Using legacy 'setup.py install' for julian, since package 'wheel' is not installed.
Using legacy 'setup.py install' for RPi.GPIO, since package 'wheel' is not installed.
Installing collected packages: RPi.GPIO, julian
    Running setup.py install for RPi.GPIO ... error
    ERROR: Command errored out with exit status 1:**
     command: /home/pi/project_aroundtheclock/virtual/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/setup.py'"'"'; __file__='"'"'/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/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-rylf59g0/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/project_aroundtheclock/virtual/include/site/python3.9/RPi.GPIO
         cwd: /tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/
    Complete output (87 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-armv7l-3.9
    creating build/lib.linux-armv7l-3.9/RPi
    copying RPi/__init__.py -> build/lib.linux-armv7l-3.9/RPi
    creating build/lib.linux-armv7l-3.9/RPi/GPIO
    copying RPi/GPIO/__init__.py -> build/lib.linux-armv7l-3.9/RPi/GPIO
    running build_ext
    building 'RPi._GPIO' extension
    creating build/temp.linux-armv7l-3.9
    creating build/temp.linux-armv7l-3.9/source
    arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/pi/project_aroundtheclock/virtual/include -I/usr/include/python3.9 -c source/c_gpio.c -o build/temp.linux-armv7l-3.9/source/c_gpio.o
    arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/pi/project_aroundtheclock/virtual/include -I/usr/include/python3.9 -c source/common.c -o build/temp.linux-armv7l-3.9/source/common.o
    arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/pi/project_aroundtheclock/virtual/include -I/usr/include/python3.9 -c source/constants.c -o build/temp.linux-armv7l-3.9/source/constants.o
    arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/pi/project_aroundtheclock/virtual/include -I/usr/include/python3.9 -c source/cpuinfo.c -o build/temp.linux-armv7l-3.9/source/cpuinfo.o
    arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/pi/project_aroundtheclock/virtual/include -I/usr/include/python3.9 -c source/event_gpio.c -o build/temp.linux-armv7l-3.9/source/event_gpio.o
    arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/pi/project_aroundtheclock/virtual/include -I/usr/include/python3.9 -c source/py_gpio.c -o build/temp.linux-armv7l-3.9/source/py_gpio.o
    source/py_gpio.c: In function ‘PyInit__GPIO’:
    source/py_gpio.c:1046:4: warning: ‘PyEval_ThreadsInitialized’ is deprecated [-Wdeprecated-declarations]
     1046 |    if (!PyEval_ThreadsInitialized())
          |    ^~
    In file included from /usr/include/python3.9/Python.h:145,
                     from source/py_gpio.c:23:
    /usr/include/python3.9/ceval.h:129:36: note: declared here
      129 | Py_DEPRECATED(3.9) PyAPI_FUNC(int) PyEval_ThreadsInitialized(void);
          |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
    source/py_gpio.c:1047:7: warning: ‘PyEval_InitThreads’ is deprecated [-Wdeprecated-declarations]
     1047 |       PyEval_InitThreads();
          |       ^~~~~~~~~~~~~~~~~~
    In file included from /usr/include/python3.9/Python.h:145,
                     from source/py_gpio.c:23:
    /usr/include/python3.9/ceval.h:130:37: note: declared here
      130 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
          |                                     ^~~~~~~~~~~~~~~~~~
    arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/pi/project_aroundtheclock/virtual/include -I/usr/include/python3.9 -c source/py_pwm.c -o build/temp.linux-armv7l-3.9/source/py_pwm.o
    arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/pi/project_aroundtheclock/virtual/include -I/usr/include/python3.9 -c source/soft_pwm.c -o build/temp.linux-armv7l-3.9/source/soft_pwm.o
    arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -Wl,-z,relro -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.9/source/c_gpio.o build/temp.linux-armv7l-3.9/source/common.o build/temp.linux-armv7l-3.9/source/constants.o build/temp.linux-armv7l-3.9/source/cpuinfo.o build/temp.linux-armv7l-3.9/source/event_gpio.o build/temp.linux-armv7l-3.9/source/py_gpio.o build/temp.linux-armv7l-3.9/source/py_pwm.o build/temp.linux-armv7l-3.9/source/soft_pwm.o -o build/lib.linux-armv7l-3.9/RPi/_GPIO.cpython-39-arm-linux-gnueabihf.so
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:41: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:40: multiple definition of `setup_error'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:40: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:39: multiple definition of `rpiinfo'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:39: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:38: multiple definition of `gpio_direction'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:38: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:37: multiple definition of `pin_to_gpio'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:37: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:36: multiple definition of `pin_to_gpio_rev3'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:36: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:35: multiple definition of `pin_to_gpio_rev2'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:35: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:34: multiple definition of `pin_to_gpio_rev1'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:34: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:33: multiple definition of `gpio_mode'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:33: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:33: multiple definition of `gpio_mode'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:33: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:40: multiple definition of `setup_error'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:40: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:39: multiple definition of `rpiinfo'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:39: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:38: multiple definition of `gpio_direction'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:38: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:41: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:37: multiple definition of `pin_to_gpio'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:37: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:36: multiple definition of `pin_to_gpio_rev3'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:36: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:34: multiple definition of `pin_to_gpio_rev1'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:34: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:35: multiple definition of `pin_to_gpio_rev2'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:35: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:42: multiple definition of `both_edge'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:42: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:41: multiple definition of `falling_edge'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:41: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:40: multiple definition of `rising_edge'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:40: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:39: multiple definition of `pud_down'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:39: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:38: multiple definition of `pud_up'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:38: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:37: multiple definition of `pud_off'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:37: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:36: multiple definition of `bcm'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:36: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:35: multiple definition of `board'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:35: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:34: multiple definition of `unknown'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:34: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:33: multiple definition of `spi'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:33: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:32: multiple definition of `i2c'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:32: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:31: multiple definition of `serial'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:31: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:30: multiple definition of `pwm'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:30: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:29: multiple definition of `output'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:29: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:28: multiple definition of `input'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:28: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:27: multiple definition of `low'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:27: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:26: multiple definition of `high'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/constants.h:26: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:38: multiple definition of `gpio_direction'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:38: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/py_pwm.h:23: multiple definition of `PWMType'; build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/py_pwm.h:23: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:41: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:40: multiple definition of `setup_error'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:40: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:39: multiple definition of `rpiinfo'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:39: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:37: multiple definition of `pin_to_gpio'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:37: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:36: multiple definition of `pin_to_gpio_rev3'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:36: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:35: multiple definition of `pin_to_gpio_rev2'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:35: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:34: multiple definition of `pin_to_gpio_rev1'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:34: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:33: multiple definition of `gpio_mode'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/common.h:33: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/soft_pwm.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/soft_pwm.c:28: multiple definition of `threads'; build/temp.linux-armv7l-3.9/source/event_gpio.o:/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/source/event_gpio.c:60: first defined here
    collect2: error: ld returned 1 exit status
    error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/pi/project_aroundtheclock/virtual/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/setup.py'"'"'; __file__='"'"'/tmp/pip-install-x_9o6gda/rpi-gpio_e8518224745645bbbbdb4784002bd3f7/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-rylf59g0/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/project_aroundtheclock/virtual/include/site/python3.9/RPi.GPIO Check the logs for full command output.

>>> CREATING AN AROUNDTHECLOCK DAEMON USER
useradd: user 'aroundtheclock' already exists

>>> INSTALLING AROUNDTHECLOCK AS A DAEMON...

>>> INSTALLING AROUNDTHECLOCK EXECUTABLE...

>>> CHANGING PERMISSIONS ON AROUNDTHECLOCK PROJECT...
chown: invalid group: 'aroundtheclock:aroundtheclock'

>>> GIVING AROUNDTHECLOCK DAEMON THE NEEDED PERMISSIONS...

The following entry already exists in /etc/sudoers:
'# Automatically generated by 'project_aroundtheclock''

The following entry already exists in /etc/sudoers:
'Cmnd_Alias AROUNDTHECLOCK_CMDS = /usr/local/bin/aroundtheclock'

The following entry already exists in /etc/sudoers:
'aroundtheclock ALL=(ALL) NOPASSWD: AROUNDTHECLOCK_CMDS'

>>> ENABLING AROUNDTHECLOCK DAEMON...

>>> DONE INSTALLING!

>>> CHECKING IF AROUNDTHECLOCK IS RUNNING...
● aroundtheclock.service - Project_AroundTheClock
     Loaded: loaded (/lib/systemd/system/aroundtheclock.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Sat 2022-07-16 04:46:33 +03; 2s ago
    Process: 4059 ExecStart=/home/pi/project_aroundtheclock/bin/run.sh (code=exited, status=1/FAILURE)
   Main PID: 4059 (code=exited, status=1/FAILURE)
        CPU: 233ms
pi@nakedc```
@abdulazizalmass
Copy link
Collaborator Author

I am not sure if the following is the reason. I remember that it worked when I had the raspberry pi wired connected to the home router. I guess I need to do that again. Is this relevant to the above issue?

@othmanalikhan
Copy link
Collaborator

The output is rather hard to read, I would suggest to wrap the output triple backticks (i.e. ```) to make it into an easier code snippet.

From what I can read though, try using pip install wheel and the re-running the installation script. I will need to revisit the script but perhaps the wheel package is deprecated in Python and something is using it that needs to be updated.

@abdulazizalmass
Copy link
Collaborator Author

abdulazizalmass commented Jul 16, 2022

pip

The comment is edited as guided. Please find below the terminal result of running pip install wheel:

pi@nakedcake:- 5 pip install wheel

Requirement already satisfied: wheel in /usr/lib/python3/dist-packages (0.34.2) ```

@othmanalikhan
Copy link
Collaborator

othmanalikhan commented Jul 16, 2022

Much easier to read.

It looks like there is an issue with compiling that library on your Pi. Try for the time being to install the latest version rather than the fixed version (i.e. pip install RPi.GPIO) and see if that works.

@abdulazizalmass
Copy link
Collaborator Author

abdulazizalmass commented Jul 16, 2022

Much easier to read.

It looks like there is an issue with compiling that library on your Pi. Try for the time being to install the latest version rather than the fixed version (i.e. pip install RPi.GPIO) and see if that works.

done that and the output is similar

pi@nakedcake:- 5 pip install RP1.GPIO


Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple

Requirement already satisfied: RP1 GPIO in /usr/lib/python3/dist-packages (0.7.0) ```

@othmanalikhan
Copy link
Collaborator

Check the logs of the application and paste them here: journalctl -u aroundtheclock.service and there should be a <PROJECT_DIR>/output/log.txt file too.

@abdulazizalmass
Copy link
Collaborator Author

abdulazizalmass commented Jul 17, 2022

Check the logs of the application and paste them here: journalctl -u aroundtheclock.service and there should be a <PROJECT_DIR>/output/log.txt file too.

I did not get to notice the output/log.txt . however, you can see output below from the provided command:

Jul 16 04:37:45 nakedcake systemd[1]: Started Project_AroundTheClock.
Jul 16 04:37:45 nakedcake run.sh[3427]: Traceback (most recent call last):
Jul 16 04:37:45 nakedcake run.sh[3427]:   File "/home/pi/project_aroundtheclock/aroundtheclock/main.py", line 14, in <module>
Jul 16 04:37:45 nakedcake run.sh[3427]:     from prayer import nextFivePrayers, printPrayerTimes, writePrayerTimes
Jul 16 04:37:45 nakedcake run.sh[3427]:   File "/home/pi/project_aroundtheclock/aroundtheclock/prayer.py", line 32, in <module>
Jul 16 04:37:45 nakedcake run.sh[3427]:     from algorithms import asrEquation, horizonEquation, sunEquation
Jul 16 04:37:45 nakedcake run.sh[3427]:   File "/home/pi/project_aroundtheclock/aroundtheclock/algorithms.py", line 9, in <module>
Jul 16 04:37:45 nakedcake run.sh[3427]:     import julian
Jul 16 04:37:45 nakedcake run.sh[3427]: ModuleNotFoundError: No module named 'julian'

@othmanalikhan
Copy link
Collaborator

We will come back to the root cause of this; it seems that your Python dependencies didn't install properly. For now, try installing them all manually pip install julian schedule

@othmanalikhan
Copy link
Collaborator

@abdulazizalmass Is this issue still relevant or shall I mark it as resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants